@media (min-width: 1200px) {
    .container {
        max-width: 1250px;
    }
}

.container-fluid {

}

.navbar {
    -webkit-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.1);
    box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.1);
}

nav, nav.navbar, .navbar-collapse {
    background-color: var(--site-background-color) !important;
}

.navbar-brand span {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 2px;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23bbb' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23bbb' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.dropdown-menu {
    border: none;
    -webkit-box-shadow: 0px 0px 30px 2px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 0px 30px 2px rgba(0,0,0,0.15);
    box-shadow: 0px 0px 30px 2px rgba(0,0,0,0.15);
}

.lead {
    font-family: 'Open Sans', sans-serif;
    /* Canonical lead size, site-wide: one grade over body on the brand scale
       (was Bootstrap's 1.25rem / ~17.5px). Keep this the single source of truth —
       do NOT re-size .lead per page. */
    font-size: var(--fs-500);
    letter-spacing: var(--airy);
    font-weight: 400;
    color: #333;
}

.collapse {
    background-color: var(--site-background-color);
}

button:disabled {
    cursor: default;
    pointer-events: all !important;
}

.btn {
    /* §7: buttons carry 600–700 weight. Bootstrap's base is a thin 400 — bump it to 600
       (the .fw-bold utilities still win for strong CTAs, so the 600/700 hierarchy holds).
       DO NOT set --bs-btn-font-size here: .btn-sm/.btn-lg write the SAME variable, and this
       sheet loads after vendor at equal specificity, so a base font-size silently defeats
       their sizes (btn-sm would grow, btn-lg shrink). Base size stays Bootstrap's 1rem
       (= 14px = --fs-body), so there's nothing to gain and a modifier-breaking bug to avoid. */
    border-radius: 8px; /* literal on purpose: also neutralizes .btn-sm/.btn-lg per-size radius */
}

.btn-primary {
    border: none;
    background-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-success {
    border: none;
}

.btn-warning {
    border: none;
}

.btn-danger {
    border: none;
    background-color: var(--danger-color);
}

.btn-info {
    border: none;
}

.btn-collection, .btn-collection:hover {
    background-color: var(--collection-color);
    color: white;
}

/* THE unified white button, site-wide. Former .btn-white, folded into .btn-light.
   State handling via Bootstrap's --bs-btn-* vars; hover shadow is not a state var,
   hence the explicit :hover rule. */
.btn-light {
    --bs-btn-color: #000;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #e0e0e0;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #bbb;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #f5f5f5;
    --bs-btn-active-border-color: #bbb;
    --bs-btn-disabled-color: #999;
    --bs-btn-disabled-bg: #fff;
    --bs-btn-disabled-border-color: #e0e0e0;
}

/* Unified open animation for ALL Bootstrap modals: the dialog fades in (no top-down slide)
   and the backdrop fades in-sync. The body.modal-opening flag (added on show.bs.modal,
   removed on shown.bs.modal — see layouts/common-scripts) sets transition:none on the
   backdrop so Bootstrap doesn't wait for it before revealing the dialog (otherwise the
   default "backdrop first, then modal" stagger); a same-duration keyframe still fades it.
   The flag is dropped once shown, so closing keeps Bootstrap's normal fade-out. */
.modal.fade .modal-dialog { transform: none; transition: opacity .2s ease-out; opacity: 0; }
.modal.fade.show .modal-dialog { opacity: 1; }
@keyframes modal-backdrop-fade-in { from { opacity: 0; } }
body.modal-opening .modal-backdrop.show { transition: none; animation: modal-backdrop-fade-in .2s ease-out; }

/* Canonical .badge rule (the only one - do not redefine .badge elsewhere).
   The explicit letter-spacing is the global safeguard: badges are UI, not
   reading content, so this tight caps tracking also stops any badge from
   inheriting the airy tracking of a .text-airy / .lead parent. */
.badge {
    padding: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.bg-secondary {
    background-color: var(--warm-grey-color);
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.badge-pill {
    border-radius: 10px;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before{
    background-color: var(--primary-color);
}

.font-discount {
    background-color: var(--primary-color);
}

/* Bootstrap Popover overrides */
.popover {
    z-index: 1151 !important;
    background-color: white !important;
    border: none;
    border-radius: 8px;
    -webkit-box-shadow: 0px 0px 40px 2px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 0px 40px 2px rgba(0,0,0,0.20);
    box-shadow: 0px 0px 40px 2px rgba(0,0,0,0.20);
}

.popover-header {
    border: none;
    background-color: white !important;
    color: #111111;
    font-size: 1.2rem;
}

.popover-body {
    border: none;
    color: #111111;
}

/* Modals — white panel, .fillet-sm radius, .shadow-lg. */
.modal-content {
    border: none !important;
    border-radius: 8px;                          /* = .fillet-sm */
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);    /* = .shadow-lg */
}

/* A touch more breathing room in the modal body (the shared .modal-body.p-4 the
   native modals use), and a slightly darker backdrop while a modal is open. */
.modal-body.p-4 { padding: 1.75rem !important; }   /* Bootstrap .p-4 = 1.5rem */
.modal-backdrop { --bs-backdrop-opacity: .6; }     /* Bootstrap default = .5 */

/* Fancybox v6's dialog sits at z-index 1050 (below BS5 modals at 1055), so an image
   lightbox opened from inside a modal — the delete-product image, the upload dropzone
   zoom — would render behind it. Lift the lightbox above every modal layer. */
.fancybox__dialog { z-index: 1200; }

/* Square thumbnails in the lightbox strip: Fancybox defaults the tile to 94x76. Bound to the
   height (rather than repeating 76px) so the tiles stay square if the height ever changes. */
.fancybox__thumbs { --f-thumb-width: var(--f-thumb-height); }
