/*
 * KosaQ — Bootstrap 5 theme bridge.
 * Loaded after bootstrap.min.css and before style.css / admin.css:
 *  1. points Bootstrap's variables at the KosaQ brand (gold, black, ivory, fonts);
 *  2. undoes Bootstrap defaults that clash with KosaQ's own component classes
 *     (.btn, .card, .table, .alert, .badge, .breadcrumb, .pagination, .container…).
 */
:root, [data-bs-theme=light] {
  --bs-primary: #111111;            --bs-primary-rgb: 17, 17, 17;
  --bs-secondary: #5E5848;          --bs-secondary-rgb: 94, 88, 72;
  --bs-warning: #C9A13B;            --bs-warning-rgb: 201, 161, 59;
  --bs-success: #1E6B45;            --bs-success-rgb: 30, 107, 69;
  --bs-danger: #A12D1E;             --bs-danger-rgb: 161, 45, 30;
  --bs-light: #FAF6EC;              --bs-light-rgb: 250, 246, 236;
  --bs-dark: #111111;               --bs-dark-rgb: 17, 17, 17;
  --bs-body-font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #111111;         --bs-body-color-rgb: 17, 17, 17;
  --bs-secondary-color: #5E5848;
  --bs-body-bg: #FAF6EC;            --bs-body-bg-rgb: 250, 246, 236;
  --bs-border-color: #E3DAC6;
  --bs-border-radius: 14px;         --bs-border-radius-lg: 20px; --bs-border-radius-sm: 10px;
  --bs-border-radius-pill: 999px;
  --bs-link-color: #7A5C10;         --bs-link-color-rgb: 122, 92, 16;
  --bs-link-hover-color: #111111;   --bs-link-hover-color-rgb: 17, 17, 17;
  --bs-focus-ring-color: rgba(201, 161, 59, .35);
  --bs-emphasis-color: #111111;
  --bs-heading-color: inherit;
}

/* Undo Bootstrap's "reboot" element defaults so KosaQ's own stylesheet starts from the
   same browser defaults it was designed on. Element-level only, so every rule in
   style.css / admin.css (loaded next) still wins. */
body { margin: revert; font-family: revert; font-size: revert; font-weight: revert; line-height: revert; color: revert; text-align: revert; background-color: revert; -webkit-tap-highlight-color: revert; }
hr { margin: revert; color: revert; border: revert; opacity: revert; }
h1, h2, h3, h4, h5, h6 { margin-top: revert; margin-bottom: revert; font-weight: revert; line-height: revert; color: revert; font-size: revert; }
p, ol, ul, dl, blockquote, figure, pre { margin-top: revert; margin-bottom: revert; }
ol, ul { padding-left: revert; }
dt { font-weight: revert; } dd { margin-bottom: revert; margin-left: revert; }
b, strong { font-weight: revert; }
small { font-size: revert; }
mark { padding: revert; background-color: revert; color: revert; }
sub, sup { position: revert; font-size: revert; line-height: revert; vertical-align: revert; }
a { color: revert; text-decoration: revert; }
a:hover { color: revert; }
pre, code, kbd, samp { font-family: revert; font-size: revert; }
code { color: revert; word-wrap: revert; }
img, svg { vertical-align: revert; }
table { caption-side: revert; border-collapse: revert; }
caption { padding-top: revert; padding-bottom: revert; color: revert; text-align: revert; }
th { text-align: revert; }
thead, tbody, tfoot, tr, td, th { border-color: revert; border-style: revert; border-width: revert; }
label { display: revert; }
button { border-radius: revert; }
button:focus:not(:focus-visible) { outline: revert; }
input, button, select, optgroup, textarea { margin: revert; font-family: revert; font-size: revert; line-height: revert; }
button, select { text-transform: revert; }
select { word-wrap: revert; }
button, [type=button], [type=reset], [type=submit] { -webkit-appearance: revert; appearance: revert; }
textarea { resize: revert; }
fieldset { min-width: revert; padding: revert; margin: revert; border: revert; }
legend { float: revert; width: revert; padding: revert; margin-bottom: revert; font-size: revert; line-height: revert; }
legend + * { clear: revert; }
[type=search] { -webkit-appearance: revert; appearance: revert; outline-offset: revert; }
summary { display: revert; cursor: revert; }
iframe { border: revert; }

/* Layout: KosaQ's .container keeps its own fluid width at every breakpoint */
.container { max-width: var(--container, 1280px); padding-left: 0; padding-right: 0; }

/* Components KosaQ already styles under the same names */
.btn {
  --bs-btn-padding-x: initial; --bs-btn-padding-y: initial; --bs-btn-font-size: inherit;
  --bs-btn-font-weight: inherit; --bs-btn-line-height: inherit; --bs-btn-border-width: 0;
  --bs-btn-border-radius: initial; --bs-btn-box-shadow: none;
  padding: 0; font-size: inherit; line-height: inherit; border: 0; border-radius: 0;
  color: inherit; background: none; vertical-align: middle; user-select: auto;
}
.btn:focus-visible { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.btn-sm, .btn-lg { --bs-btn-padding-x: initial; --bs-btn-padding-y: initial; --bs-btn-font-size: inherit; }
.card { display: block; position: static; min-width: 0; color: inherit; background-clip: border-box; border: 0; border-radius: 0; word-wrap: normal; }
.table { --bs-table-bg: transparent; --bs-table-color: inherit; --bs-table-border-color: inherit; margin-bottom: 0; vertical-align: middle; }
.table > :not(caption) > * > * { padding: 1px; background-color: transparent; border-bottom-width: 0; box-shadow: none; color: inherit; }
.alert { position: static; padding: 0; margin-bottom: 0; border: 0; border-radius: 0; color: inherit; background: none; }
.badge { display: inline-block; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; text-align: inherit; white-space: normal; vertical-align: baseline; border-radius: 0; }
.breadcrumb { display: block; flex-wrap: nowrap; padding: 0; margin-bottom: 0; font-size: inherit; list-style: none; }
.pagination { display: flex; padding-left: 0; list-style: none; }
.accordion { --bs-accordion-bg: transparent; }
.progress-bar { display: block; flex-direction: row; overflow: visible; color: inherit; text-align: inherit; white-space: normal; background-color: transparent; }

/* Bootstrap components added for KosaQ, in brand colours */
.btn-kq { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; background: #111; color: #FAF6EC; border: 1px solid #111; transition: background .2s, color .2s, border-color .2s; }
.btn-kq:hover, .btn-kq:focus-visible { background: #C9A13B; border-color: #C9A13B; color: #111; }
.btn-kq-outline { background: transparent; color: #111; border-color: #111; }
.btn-kq-outline:hover { background: #111; color: #FAF6EC; border-color: #111; }
.offcanvas { --bs-offcanvas-bg: #FAF6EC; --bs-offcanvas-color: #111; --bs-offcanvas-width: min(380px, 88vw); --bs-offcanvas-border-color: #E3DAC6; }
.offcanvas-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.3rem; }
.modal { --bs-modal-bg: #fff; --bs-modal-border-radius: 20px; --bs-modal-border-color: #E3DAC6; }
.modal-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
.tooltip { --bs-tooltip-bg: #111; --bs-tooltip-color: #FAF6EC; --bs-tooltip-font-size: .8rem; font-family: "DM Sans", sans-serif; }
.btn-close:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
::-webkit-datetime-edit-fields-wrapper, ::-webkit-datetime-edit-text, ::-webkit-datetime-edit-minute, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-year-field { padding: revert; }
::-webkit-inner-spin-button { height: revert; }

/* Mobile menu (offcanvas) */
.mobile-menu__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5E5848; margin: 0 0 10px; }
.mobile-menu__shop { display: block; padding: 16px 18px; border-radius: 16px; margin-bottom: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; color: #111; text-decoration: none; border: 2px solid transparent; }
.mobile-menu__shop small { display: block; font-family: "DM Sans", sans-serif; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.mobile-menu__shop.is-dark { background: #111; color: #FAF6EC; } .mobile-menu__shop.is-dark small { color: #C9A13B; }
.mobile-menu__shop.is-gold { background: #EFE2BF; } .mobile-menu__shop.is-gold small { color: #7A5C10; }
.mobile-menu__shop.is-active { border-color: #C9A13B; }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 8px; }
.mobile-menu__links a { padding: 14px 2px; border-bottom: 1px solid #E3DAC6; color: #111; text-decoration: none; font-weight: 500; }
.mobile-menu__links a:hover { color: #7A5C10; }

/* Mini-cart drawer */
.mini-cart .offcanvas-title { display: flex; align-items: center; gap: 8px; }
.mini-cart .offcanvas-title svg { color: #1E6B45; }
.mini-cart__msg { color: #5E5848; }
.mini-cart__totals { margin: 0 0 12px; border-top: 1px solid #E3DAC6; }
.mini-cart__totals div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #E3DAC6; }
.mini-cart__totals dt { font-weight: 500; } .mini-cart__totals dd { margin: 0; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; }
.mini-cart__free { font-size: .9rem; color: #7A5C10; margin-bottom: 6px; }
.mini-cart__progress { height: 8px; background: #F1EADB; border-radius: 999px; overflow: hidden; }
.mini-cart__progress .progress-bar { height: 100%; background: #C9A13B; border-radius: 999px; transition: width .4s ease; }
.mini-cart__continue { display: block; width: 100%; margin-top: 14px; padding: 10px; background: none; border: 0; color: #5E5848; text-decoration: underline; font: inherit; cursor: pointer; }

/* Back-to-top */
.back-to-top { position: fixed; right: 24px; bottom: 96px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #E3DAC6; background: #fff; color: #111; font-size: 1.2rem; font-weight: 700; box-shadow: 0 6px 20px rgba(17,17,17,.12); cursor: pointer; transition: background .2s, color .2s; }
.back-to-top:hover { background: #111; color: #FAF6EC; }
@media (max-width: 767px) { .back-to-top { right: 16px; bottom: 148px; width: 42px; height: 42px; } }

/* Admin confirm modal */
.btn-kq.is-danger { background: #A12D1E; border-color: #A12D1E; color: #fff; }
.btn-kq.is-danger:hover { background: #7f2216; border-color: #7f2216; color: #fff; }
.filters-panel.offcanvas-lg { --bs-offcanvas-bg: #fff; }
