/* ==========================================================================
   Critical CSS - Above the fold styles only
   This file contains only the essential CSS needed for initial page render.
   Load synchronously. All other CSS should be deferred.
   ========================================================================== */

/* --- Font Face Declarations with font-display: swap --- */
@font-face {
    font-family: 'bootstrap-icons';
    src: url('../vendor/bootstrap-icons/fonts/bootstrap-icons.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('../vendor/font-awesome/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('../vendor/font-awesome/webfonts/fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --bs-primary: #af261d;
    --bs-primary-rgb: 175, 38, 29;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-body-color: #747579;
    --bs-body-bg: #fff;
    --bs-heading-color: #24292d;
    --bs-link-color: #af261d;
    --bs-link-hover-color: #8a1e17;
    --bs-border-color: #e9ecef;
    --bs-gray-200: #e9ecef;
    --bs-gray-500: #adb5bd;
    --bs-font-sans-serif: "DM Sans", sans-serif;
}

/* --- Accessibility Helper --- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bs-heading-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--bs-link-hover-color);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Container --- */
.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

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

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* --- Flexbox Utilities --- */
.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* --- Grid System (minimal) --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-xl-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .col-xl-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .col-xl-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1400px) {
    .col-xxl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-xxl-9 {
        flex: 0 0 auto;
        width: 75%;
    }
}

/* --- Spacing Utilities --- */
.m-0 {
    margin: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.g-0,
.gx-0 {
    --bs-gutter-x: 0;
}

.g-3,
.gx-3 {
    --bs-gutter-x: 1rem;
}

.g-4,
.gx-4 {
    --bs-gutter-x: 1.5rem;
}

.gy-3 {
    --bs-gutter-y: 1rem;
}

.gy-4 {
    --bs-gutter-y: 1.5rem;
}

.row>* {
    padding-right: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
}

/* --- Text Utilities --- */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

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

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

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

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: #fff !important;
}

/* --- Background Utilities --- */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-transparent {
    background-color: transparent !important;
}

/* --- Border Utilities --- */
.border {
    border: 1px solid var(--bs-border-color) !important;
}

.border-0 {
    border: 0 !important;
}

.border-bottom {
    border-bottom: 1px solid var(--bs-border-color) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* --- Position Utilities --- */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.top-0 {
    top: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.top-50 {
    top: 50% !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

/* --- Display Utilities --- */
.overflow-hidden {
    overflow: hidden !important;
}

.w-100 {
    width: 100% !important;
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block !important;
    }

    .d-sm-none {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }

    .d-xl-block {
        display: block !important;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #8a1e17;
    border-color: #8a1e17;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.4rem;
}

.btn-primary-soft {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.btn-primary-soft:hover {
    color: #fff;
    background-color: var(--bs-primary);
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.5rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 1;
}

/* --- Forms --- */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #29292e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dfdfe3;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #29292e;
    background-color: #fff;
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #29292e;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #dfdfe3;
    border-radius: 0.5rem;
    appearance: none;
}

/* --- Form Check (Radio/Checkbox) --- */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    -webkit-appearance: none;
    print-color-adjust: exact;
    float: left;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: #af261d;
    border-color: #af261d;
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: #af261d;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(175, 38, 29, 0.25);
}

.form-check-label {
    cursor: pointer;
}

/* --- Cards --- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 0.5rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.5rem;
    color: var(--bs-heading-color);
}

.card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

/* --- Navbar (Header) - Critical --- */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar>.container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand img {
    max-height: 36px;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--bs-primary);
}

.navbar-light {
    background-color: #fff;
}

.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-expand-xl .navbar-nav {
    flex-direction: row;
}

.navbar-expand-xl .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.navbar-expand-xl.navbar-divider {
    border-top: 1px solid var(--bs-gray-200);
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        display: none;
    }

    .navbar-collapse.show {
        display: block;
    }
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: middle;
    content: "";
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-bottom: 0;
    border-left: 0.35em solid transparent;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 15rem;
    padding: 1rem 0.8rem;
    margin: 0;
    font-size: 1rem;
    color: var(--bs-body-color);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 500;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: 0.4rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* --- Alert --- */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-success {
    color: #0a3622;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.5rem;
}

/* --- Cart Badge (Header) --- */
.cart-btn {
    position: relative;
}

.cart-btn .nav-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -8px;
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    line-height: 1;
    padding: 2px;
}

/* --- Search Box --- */
.search-style-2 {
    position: relative;
    width: 100%;
}

.search-style-2 form {
    position: relative;
}

.search-style-2 .form-control {
    padding-right: 2.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
}

/* --- Modal (Critical for city selection) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-radius: 0.5rem;
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

/* --- Offcanvas (Cart sidebar) --- */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform 0.3s ease-in-out;
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 400px;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
}

.offcanvas.show {
    transform: none;
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
}

.offcanvas-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1rem 1rem;
    overflow-y: auto;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

/* --- Mobile Bottom Nav - ALWAYS FIXED AT BOTTOM --- */
.navbar-mobile,
.navbar.navbar-mobile,
div.navbar-mobile {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-mobile .navbar-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

.navbar-mobile .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.navbar-mobile .nav-text {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .navbar-mobile {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}

/* --- City Selection Modal --- */
.city-btn {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.city-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.city-btn input[type="checkbox"] {
    display: none;
}

.city-btn img {
    width: 60%;
    max-width: 80px;
    margin: 0 auto;
    display: block;
}

.city-btn h6 {
    margin-top: 10px;
    font-weight: 600;
    color: #333;
}

/* --- WhatsApp Float --- */
.whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}

.whatsapp img {
    width: 50px;
    height: 50px;
}

@media (max-width: 991.98px) {
    .whatsapp {
        bottom: 5rem;
    }
}

/* --- Icons (Minimal subset) --- */
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
}

.bi-bag::before {
    content: "\f217";
}

.bi-cart::before {
    content: "\f241";
}

.bi-house-door::before {
    content: "\f422";
}

.bi-telephone::before {
    content: "\f5b4";
}

.bi-person-circle::before {
    content: "\f4d8";
}

.bi-envelope::before {
    content: "\f32f";
}

.bi-check-circle-fill::before {
    content: "\f26a";
}

.bi-exclamation-octagon-fill::before {
    content: "\f336";
}

.bi-trash::before {
    content: "\f5de";
}

.bi-funnel::before {
    content: "\f3a4";
}

/* Font Awesome minimal subset */
.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-style: normal;
}

.fa-search::before {
    content: "\f002";
}

.fa-angle-left::before {
    content: "\f104";
}

.fa-angle-right::before {
    content: "\f105";
}

.fa-user::before {
    content: "\f007";
}

.fa-right-to-bracket::before {
    content: "\f2f6";
}

/* --- Splide Gallery (Critical for product detail) --- */
/* Override splide.min.css visibility:hidden to show images before JS loads */
.splide,
.splide.is-initialized {
    position: relative;
    visibility: visible !important;
}

.splide__track {
    overflow: hidden;
    position: relative;
}

.splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.splide__slide {
    flex-shrink: 0;
    list-style: none;
    position: relative;
}

.splide__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Splide Main Gallery */
.splide-main {
    margin-bottom: 1rem;
}

.splide-main .splide__slide {
    border-radius: 8px;
    overflow: hidden;
}

.splide-main .splide__slide img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
}

/* Splide Thumbnails */
.splide-thumb .splide__slide {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.splide-thumb .splide__slide.is-active {
    opacity: 1;
    border: 2px solid #af261d;
}

.splide-thumb .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Splide Arrows */
.splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #af261d;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.splide__arrow--prev {
    left: 10px;
}

.splide__arrow--next {
    right: 10px;
}

/* ==========================================================================
   Critical Mobile Header Responsive Fixes
   ========================================================================== */

/* Mobile header layout - essential for preventing layout breaking */
@media (max-width: 1199.98px) {

    /* Header container */
    header.navbar-light .navbar {
        padding: 0.5rem 0;
    }

    header.navbar-light .navbar>.container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Logo - prevent stretching */
    .navbar-brand {
        flex: 0 0 auto;
        max-width: 120px;
        margin-right: 0.5rem;
    }

    .navbar-brand img,
    .navbar-brand-item {
        width: 100%;
        max-width: 120px;
        height: auto !important;
        object-fit: contain;
    }

    /* City selector dropdown */
    header .form-select,
    header select#city_id {
        font-size: 0.8rem;
        padding: 0.35rem 1.5rem 0.35rem 0.5rem;
        min-width: 100px;
        max-width: 130px;
        flex: 0 0 auto;
    }

    /* Navbar toggler */
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        order: 3;
    }

    /* Right side nav items */
    .nav.flex-row.align-items-center {
        flex: 0 0 auto;
        gap: 0.25rem;
    }

    /* Cart badge mobile adjustment */
    .cart-badge {
        top: -2px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    /* Collapsed navbar content */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e9ecef;
        z-index: 1000;
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    /* Search input in mobile - prevent zoom on iOS */
    .navbar-collapse .search-style-2 .form-control {
        font-size: 16px;
    }
}

/* Smaller mobile devices */
@media (max-width: 575.98px) {
    header.navbar-light .navbar>.container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        max-width: 100px;
    }

    .navbar-brand img,
    .navbar-brand-item {
        max-width: 100px;
    }

    header .form-select,
    header select#city_id {
        font-size: 0.75rem;
        padding: 0.3rem 1.2rem 0.3rem 0.4rem;
        min-width: 80px;
        max-width: 110px;
    }

    .cart-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.55rem;
        top: -3px;
        right: -3px;
    }
}

/* Very small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .navbar-brand {
        max-width: 85px;
    }

    .navbar-brand img,
    .navbar-brand-item {
        max-width: 85px;
    }

    header .form-select,
    header select#city_id {
        min-width: 70px;
        max-width: 90px;
        font-size: 0.7rem;
    }

    .nav.flex-row.align-items-center {
        gap: 0.15rem;
    }
}