@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* Home Foods E-commerce - Main Stylesheet */

:root {
    /* Warm coffee palette from provided image */
    --primary-color: #6F4D38;      /* Coffee */
    --secondary-color: #3D211A;    /* Bistre (dark accent) */
    --accent-color: #A07856;       /* Chamoisee */
    --light-bg: #F5F5DC;           /* Beige page background */
    --border-color: #CBB799;       /* Khaki borders */
    --text-dark: #3D211A;          /* Main text */
    --text-muted: #7C6854;         /* Muted text (derived from palette) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

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

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

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

/* Cards */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Forms */
.form-control, .form-select {
    border-color: var(--border-color);
    border-radius: 5px;
    padding: 10px 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 77, 56, 0.25);
}

/* Navigation */
.navbar {
    background-color: #FDFBF3 !important;
    box-shadow: 0 1px 4px rgba(61, 33, 26, 0.06);
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.hf-logo {
    height: 100px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: #FDFBF3;
    margin-top: 60px;
    border-top: none;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Product Grid */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #6F4D38 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #CBB799 !important;
    color: #3D211A;
}

.badge.bg-info {
    background-color: #A07856 !important;
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Images */
img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 18px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading spinner */
.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

/* Table styles */
.table {
    border-collapse: collapse;
}

.table thead th {
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

.table tbody tr {
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Pagination */
.pagination {
    gap: 6px;
}

.pagination .page-item {
    border-radius: 999px;
    overflow: hidden;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: transparent;
    border-radius: 999px !important;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #fdfbf3;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(63, 35, 26, 0.25);
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(111, 77, 56, 0.12) 0%, rgba(192, 183, 153, 0.18) 100%);
    padding: 60px 0;
    border-radius: 10px;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Home page */
.home-hero {
    border-radius: 0;
}

.home-hero-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(203, 183, 153, 0.35);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.home-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6F4D38;
}

.home-hero-visual {
    border-radius: 24px;
    background-color: #FDFBF3;
}

.home-hero-plate {
    width: 260px;
    height: 260px;
    position: relative;
}

.home-hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #F5F5DC, #A07856);
    opacity: 0.9;
}

.home-hero-circle-lg {
    width: 100%;
    height: 100%;
}

.home-hero-circle-sm {
    width: 120px;
    height: 120px;
    bottom: -10px;
    right: -10px;
    filter: blur(1px);
}

.home-hero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: #3D211A;
    opacity: 0.92;
}

/* ============ TRADITION CATEGORIES (HOME) ============ */
.hf-tradition-categories {
    background: #fff;
    color: #1a1a1a;
}

.hf-tradition-title {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    color: #1a1a1a;
    line-height: 1.2;
}

.hf-tradition-title-accent {
    color: #f97316;
}

.hf-tradition-subtitle {
    max-width: 720px;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    color: #4b5563;
}

.hf-cat-tile {
    display: flex;
    height: 100%;
}

.hf-category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1rem;
}

.hf-category-grid-item {
    min-width: 0;
}

.hf-cat-showcase {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(255, 76, 0, 0.08);
    border: 1px solid rgba(77, 0, 0, 0.25);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

.hf-cat-showcase:hover,
.hf-cat-showcase.is-accent {
    background: #7c0000;
    border-color: #7c0000;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(124, 0, 0, 0.28);
    color: inherit;
    text-decoration: none;
}

.hf-cat-showcase-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f4f4;
    flex-shrink: 0;
}

.hf-cat-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hf-cat-showcase:hover .hf-cat-showcase-media img,
.hf-cat-showcase.is-accent .hf-cat-showcase-media img {
    transform: scale(1.04);
}

.hf-cat-card-fallback {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 2.5rem;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border-radius: 14px;
}

.hf-cat-showcase-body {
    padding: 16px 14px 14px;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hf-cat-showcase-body h3 {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', 'Jost', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4d0000;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hf-cat-showcase:hover .hf-cat-showcase-body h3,
.hf-cat-showcase.is-accent .hf-cat-showcase-body h3 {
    color: #ffffff;
}

.hf-cat-showcase-body p {
    margin: 0;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2b2b2b;
    font-size: 0.74rem;
    line-height: 1.48;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hf-cat-showcase:hover .hf-cat-showcase-body p,
.hf-cat-showcase.is-accent .hf-cat-showcase-body p {
    color: #ffffff;
}

.hf-cat-showcase-foot {
    margin-top: auto;
    background: #7c0000;
    color: #ffffff;
    text-align: center;
    padding: 10px 4px 11px;
    border-radius: 10px;
    width: 100%;
    transition: background-color 0.35s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hf-cat-showcase:hover .hf-cat-showcase-foot,
.hf-cat-showcase.is-accent .hf-cat-showcase-foot {
    background: #ff4700;
}

.hf-cat-showcase-foot strong {
    display: block;
    font-family: 'Plus Jakarta Sans', 'Jost', system-ui, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}

.hf-cat-showcase-foot span {
    display: block;
    margin-top: 3px;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.56rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hf-cat-showcase-body p {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .hf-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hf-category-grid-item {
        min-width: 0;
    }
}

.home-categories-section {
    background-color: #f5f2ea;
}

.home-products-section {
    background-color: #fbf7ee !important;
}

.home-product-card {
    border-radius: 16px;
}

.home-product-image-wrapper {
    width: 300px;
    height: 300px;
    margin: 12px auto 0;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-radius: 12px;
}

.home-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-product-card:hover .home-product-image {
    transform: scale(1.05);
}

.home-product-body {
    padding-bottom: 1.1rem;
}

.home-product-title {
    font-weight: 600;
}

.home-product-price strong {
    color: #6F4D38;
    font-size: 1rem;
}

.home-features-section {
    border-top: 1px solid rgba(203, 183, 153, 0.5);
}

.home-feature-icon {
    font-size: 40px;
    color: #6F4D38;
}

/* Home slider & announcement bar */

.home-announcement-bar {
    background: linear-gradient(90deg, #6F4D38, #A07856);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

.home-announcement-marquee {
    animation: home-announcement-scroll 28s linear infinite;
    white-space: nowrap;
}

@keyframes home-announcement-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .home-slider-container {
        height: 280px;
        padding-inline: 1rem;
    }

    .home-slider-nav-btn {
        width: 34px;
        height: 34px;
    }
}

/* Auth pages (login/register/reset/forgot) with rich food heritage background */
.auth-page {
    background: linear-gradient(135deg, rgba(20, 14, 10, 0.55) 0%, rgba(43, 26, 18, 0.45) 50%, rgba(20, 14, 10, 0.65) 100%),
                url('../images/auth-bg.jpg') center center / cover no-repeat fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 248, 235, 0.12) 0%, rgba(15, 10, 6, 0.5) 100%);
    pointer-events: none;
}

/* Standalone Auth Top Bar & Back Button */
.auth-top-bar {
    position: relative;
    z-index: 10;
    margin-bottom: 16px;
    width: 100%;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    color: #2b1a12;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.auth-back-btn:hover {
    background: #ffffff;
    color: #2e8b57;
    transform: translateX(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.auth-page .container {
    position: relative;
    z-index: 2;
}

.auth-card {
    border-radius: 24px;
    background: rgba(255, 253, 247, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 245, 230, 0.85);
    box-shadow: 0 20px 45px -10px rgba(27, 16, 10, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.auth-illustration {
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(43, 26, 18, 0.82), rgba(64, 38, 24, 0.72));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 230, 200, 0.2);
    color: #fff9f0;
    box-shadow: 0 20px 45px -10px rgba(27, 16, 10, 0.4);
}

.auth-heading {
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: rgba(255, 245, 235, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-benefits li {
    margin-bottom: 0.6rem;
    color: rgba(255, 245, 235, 0.9) !important;
    font-size: 0.95rem;
}

.auth-benefits li i {
    color: #34d399;
}

.auth-title {
    font-weight: 700;
    color: #2b1a12;
    font-size: 1.7rem;
    letter-spacing: -0.3px;
}

.auth-card .form-control {
    border-radius: 12px;
    border: 1px solid #e5ded5;
    background-color: #ffffff;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
    background-color: #ffffff;
}

.auth-form .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a382c;
    margin-bottom: 0.35rem;
}

.auth-submit-btn {
    border-radius: 12px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(46, 139, 87, 0.28);
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(46, 139, 87, 0.38);
}

.auth-link {
    color: #2e8b57;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #236b43;
    text-decoration: underline;
}

/* Footer (Lumeria-like layout) */
.hf-footer {
    background-color: #FDFBF3;
    border-top: 1px solid rgba(203, 183, 153, 0.6);
    font-size: 0.95rem;
}

.hf-footer-logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hf-footer-logo-img {
    height: 100px;
    width: auto;
}

.hf-footer-text {
    color: var(--text-muted);
    max-width: 360px;
}

.hf-footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.hf-footer-links li + li {
    margin-top: 0.45rem;
}

.hf-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.hf-footer-links a:hover {
    color: var(--primary-color);
}

.hf-footer-newsletter .hf-footer-input {
    background-color: #fbf7ee;
    border-color: rgba(203, 183, 153, 0.8);
}

.hf-footer-newsletter .hf-footer-input:focus {
    background-color: #fff;
}

.hf-footer-subscribe {
    border-radius: 999px;
}

.hf-footer-bottom {
    border-top: 1px solid rgba(203, 183, 153, 0.5);
    background-color: #FBF7EE;
}

/* Footer social icons */
.hf-footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 163, 115, 0.08);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 163, 115, 0.4);
    font-size: 0.9rem;
}

.hf-footer-social:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(111, 77, 56, 0.25);
}

/* ============ BRAHMANA-STYLE HEADER ============ */
.hf-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050;
}

.hf-brahmana-container {
    margin-left: auto;
    margin-right: auto;
}

.hf-brahmana-nav-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 104px;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .hf-brahmana-nav-row {
        min-height: 60px;
        padding: 0.35rem 0;
        flex-wrap: nowrap;
    }
}

.hf-logo-image {
    display: block;
    height: 96px;
    width: auto;
}

@media (max-width: 768px) {
    .hf-logo-image {
        height: 72px;
    }
}

.bk-footer-logo {
    display: block;
    height: 130px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .bk-footer-logo {
        height: 112px;
    }
}

.hf-text-logo-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 0.55rem 1rem 0.45rem;
    line-height: 1;
}

.hf-text-logo-line1 {
    font-family: 'Oswald', 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
}

.hf-logo-brah {
    color: #1a1a1a;
}

.hf-logo-mana {
    color: #f97316;
}

.hf-text-logo-line2 {
    font-family: 'Oswald', 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: #1a1a1a;
    margin-top: 0.15rem;
    text-align: center;
}

.hf-nav-pills-wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0.15rem;
}

.hf-nav-actions {
    margin-left: auto;
}

.hf-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #f97316;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.1;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.hf-nav-pill:hover {
    background: #ea580c;
    color: #fff !important;
    transform: translateY(-1px);
}

.hf-nav-pill.active {
    background: #c2410c;
    box-shadow: none;
}

.hf-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #f97316;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hf-icon-action:hover {
    color: #ea580c;
    transform: scale(1.05);
}

.hf-brahmana-nav .hf-cart-badge {
    top: -4px;
    right: -6px;
    background: #f97316;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
}

.hf-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    max-width: 140px;
}

.hf-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hf-account-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hf-mobile-menu-toggle {
    color: #f97316 !important;
    font-size: 1.35rem;
}

.hf-nav-pill-mobile {
    border-radius: 999px;
    background: #f97316;
    color: #fff !important;
    font-weight: 700;
    justify-content: center;
}

.hf-nav-pill-mobile:hover,
.hf-nav-pill-mobile.active {
    background: #ea580c;
    color: #fff !important;
}

/* ============ MOBILE ACCOUNT PAGE ============ */
.mobile-account-page {
    display: none;
}

.customer-mobile-page-header {
    display: none;
}

@media (max-width: 768px) {
    body.customer-page {
        background: #fff;
        color: #34272a;
    }

    .customer-mobile-page-header {
        display: flex;
        min-height: 76px;
        align-items: center;
        gap: 13px;
        padding: 12px 16px;
        border-bottom: 1px solid #f0e7e8;
        background: #fff;
    }

    .customer-mobile-page-header > a {
        display: inline-flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid #eee4e5;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 3px 10px rgba(66, 25, 32, 0.08);
        color: #6b1f2a;
        text-decoration: none;
    }

    .customer-mobile-page-header > a:active {
        background: #f8eff0;
    }

    .customer-mobile-page-header h1 {
        margin: 0;
        color: #351b20;
        font-size: 1.15rem;
        font-weight: 750;
        line-height: 1.25;
    }

    .customer-mobile-page-header p {
        margin: 2px 0 0;
        color: #87797b;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    body.customer-page .customer-account-shell {
        width: 100%;
        max-width: 100%;
        padding: 1.1rem 14px calc(5rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #fff;
    }

    body.customer-page .customer-account-heading {
        display: none;
    }

    body.customer-page .customer-account-content > .card,
    body.customer-page .customer-account-content .customer-account-card,
    body.customer-page .customer-address-card {
        overflow: hidden;
        border: 1px solid #eee7e8 !important;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(65, 24, 32, 0.06);
        transform: none;
    }

    body.customer-page .customer-account-content .card-header {
        padding: 1rem 1rem 0.75rem;
        border-bottom: 1px solid #f1ebec;
        background: #fff;
    }

    body.customer-page .customer-account-content .card-header h5 {
        color: #351b20;
        font-size: 1rem;
        font-weight: 700;
    }

    body.customer-page .customer-account-content .card-body,
    body.customer-page .customer-address-card .card-body {
        padding: 1rem;
    }

    body.customer-page .customer-account-content .form-label {
        margin-bottom: 0.4rem;
        color: #514246;
        font-size: 0.8rem;
        font-weight: 650;
    }

    body.customer-page .customer-account-content .form-control,
    body.customer-page .customer-account-content .form-select {
        min-height: 46px;
        border-color: #e9dfe1;
        border-radius: 9px;
        background: #fcfafb;
        color: #35292c;
    }

    body.customer-page .customer-account-content textarea.form-control {
        min-height: 96px;
    }

    body.customer-page .customer-account-content .btn-primary {
        border-color: #6b1f2a;
        border-radius: 9px;
        background: #6b1f2a;
    }

    body.customer-page .customer-account-content .btn-outline-primary {
        border-color: #6b1f2a;
        border-radius: 9px;
        color: #6b1f2a;
    }

    body.customer-page .customer-account-content .btn-outline-primary:hover {
        background: #6b1f2a;
        color: #fff;
    }

    body.customer-page .customer-account-content .btn-outline-secondary {
        border-radius: 9px;
    }

    body.customer-page .customer-address-actions {
        gap: 0.65rem;
    }

    body.customer-page .customer-address-empty {
        padding: 1.25rem 0.25rem;
    }

    body.customer-page .mobile-nav-item.active {
        background: #f8eff0;
        color: #6b1f2a;
    }

    body.customer-page .cart-page {
        min-height: calc(100vh - 140px);
        padding: 1rem 0 calc(5rem + env(safe-area-inset-bottom, 0px));
        background: #fff !important;
    }

    body.customer-page .cart-shell {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.customer-page .cart-heading {
        margin-bottom: 1rem;
    }

    body.profile-page {
        background: #f5f5f7;
    }

    body.profile-page .hf-marquee-bar,
    body.profile-page .hf-site-header,
    body.profile-page .profile-desktop-view,
    body.profile-page .bk-footer {
        display: none !important;
    }

    body.profile-page .mobile-account-page {
        display: block;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        color: #152235;
        font-family: 'Jost', sans-serif;
        background: #fff;
    }

    body.profile-page .mobile-account-page.has-expanded-section {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-account-topbar {
        display: flex;
        min-height: 52px;
        align-items: center;
        gap: 12px;
        padding: 8px 14px;
        border-bottom: 1px solid #f0e7e8;
        background: #fff;
    }

    .mobile-account-topbar a {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid #eee4e5;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 3px 10px rgba(66, 25, 32, 0.08);
        color: #6b1f2a;
        text-decoration: none;
    }

    .mobile-account-topbar h1 {
        margin: 0;
        color: #351b20;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .mobile-account-summary {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-height: 108px;
        padding: 2px 15px 18px;
        border-radius: 0 0 22px 22px;
        border-bottom: 1px solid #f4eded;
        background: linear-gradient(135deg, #fbf7f6 0%, #fff 100%);
    }

    .mobile-account-summary h2 {
        margin: 0 0 1px;
        color: #351b20;
        font-size: 1.65rem;
        font-weight: 800;
    }

    .mobile-account-summary a {
        color: #776568;
        font-size: 0.92rem;
        line-height: 1.4;
        text-decoration: none;
    }

    .mobile-account-shortcuts {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin: 22px 9px 14px;
    }

    .mobile-account-shortcuts > a {
        position: relative;
        display: flex;
        min-height: 92px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 3px;
        border: 1px solid #eee5e6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(65, 24, 32, 0.045);
        color: #3e2a2e;
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
    }

    .mobile-account-shortcut-icon {
        font-size: 1.25rem;
    }

    .mobile-account-count {
        position: absolute;
        top: 5px;
        right: 5px;
        display: inline-flex;
        min-width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border-radius: 10px;
        background: #6b1f2a;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
    }

    .mobile-account-notice {
        margin: 0 9px 12px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .mobile-account-notice-error {
        background: #fff0f0;
        color: #b42332;
    }

    .mobile-account-notice-success {
        background: #f5ebed;
        color: #6b1f2a;
    }

    .mobile-account-menu {
        overflow: hidden;
        margin: 0 9px;
        border: 1px solid #eee5e6;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(65, 24, 32, 0.055);
    }

    .mobile-account-menu-item {
        display: flex;
        width: 100%;
        min-height: 78px;
        align-items: center;
        gap: 17px;
        padding: 12px 18px;
        border: 0;
        border-bottom: 1px solid #edf0f3;
        background: #fff;
        color: #18263a;
        text-align: left;
        text-decoration: none;
    }

    details.mobile-account-menu-item {
        display: block;
    }

    .mobile-account-menu-item:last-child {
        border-bottom: 0;
    }

    .mobile-account-menu-item > i:first-child {
        width: 24px;
        flex: 0 0 24px;
        color: #6b1f2a;
        font-size: 1.15rem;
        text-align: center;
    }

    .mobile-account-menu-item > span {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-account-menu-item strong {
        color: #351b20;
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .mobile-account-menu-item small {
        color: #827477;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .mobile-account-menu-item .mobile-account-chevron {
        width: auto;
        flex: 0 0 auto;
        color: #99a6b7;
        font-size: 0.85rem;
    }

    .mobile-account-menu-item summary {
        display: flex;
        width: 100%;
        min-height: 78px;
        align-items: center;
        gap: 17px;
        cursor: pointer;
        list-style: none;
    }

    .mobile-account-menu-item summary:focus-visible {
        outline: 2px solid #6b1f2a;
        outline-offset: -3px;
    }

    .mobile-account-menu-item summary:hover {
        background: #fafbfd;
    }

    .mobile-account-menu-item summary > span {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-account-menu-item summary::-webkit-details-marker {
        display: none;
    }

    .mobile-account-menu-item summary::marker {
        content: '';
    }

    .mobile-account-menu-item[open] .mobile-account-chevron {
        transform: rotate(90deg);
    }

    .mobile-account-detail {
        display: grid;
        gap: 8px;
        padding: 0 0 14px 41px;
    }

    details.mobile-account-menu-item[open] {
        background: #fff;
    }

    details.mobile-account-menu-item[open] > summary {
        border-bottom: 1px solid #edf0f3;
    }

    .mobile-account-detail label {
        color: #514246;
        font-size: 0.82rem;
        font-weight: 600;
    }

    .mobile-account-detail input {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        border: 1px solid #e9dfe1;
        border-radius: 8px;
        background: #fcfafb;
        color: #35292c;
        font: inherit;
    }

    .mobile-account-detail button {
        justify-self: start;
        margin-top: 4px;
        padding: 8px 16px;
        border: 0;
        border-radius: 8px;
        background: #6b1f2a;
        color: #fff;
        font: inherit;
        font-weight: 700;
    }

    .mobile-account-address-list {
        padding-right: 14px;
    }

    .mobile-account-no-addresses {
        margin: 0;
        padding: 8px 0;
        color: #827477;
        font-size: 0.86rem;
    }

    .mobile-account-address-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        color: #514246;
        font-size: 0.86rem;
        text-decoration: none;
    }

    .mobile-account-address-list a + a {
        border-top: 1px solid #edf0f3;
    }

    .mobile-account-address-list a i {
        color: #6b1f2a;
    }

    .mobile-account-address-list .mobile-account-add-address {
        justify-content: flex-start;
        color: #6b1f2a;
        font-weight: 700;
    }

    .mobile-account-logout > i:first-child,
    .mobile-account-logout strong,
    .mobile-account-logout .mobile-account-chevron,
    .mobile-account-danger > i:first-child,
    .mobile-account-danger strong,
    .mobile-account-danger .mobile-account-chevron {
        color: #e63952;
    }

    .mobile-account-version {
        margin: 16px 0 0;
        color: #827477;
        font-size: 0.78rem;
        text-align: center;
    }
}

/* ============ MODERN NAVBAR ============ */
.hf-modern-nav {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    padding: 0;
    z-index: 1050;
}

.hf-modern-brand {
    transition: all 0.3s ease;
}

.hf-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.hf-logo-glow {
    display: none;
}

.hf-modern-brand:hover .hf-logo-glow {
    display: none;
}

.hf-logo-modern {
    position: relative;
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.hf-modern-brand:hover .hf-logo-modern {
    transform: scale(1.05);
}

.hf-brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--text-dark), var(--text-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.hf-modern-brand:hover .hf-brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hf-nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .hf-nav-link {
        font-weight: 600;
        font-size: 0.95rem;
    }
}

.hf-nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.05);
}

.hf-nav-link.active {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.1);
}

.hf-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hf-cart-btn {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.hf-cart-btn:hover {
    background-color: rgba(111, 77, 56, 0.1);
    color: var(--primary-color);
}

.hf-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.hf-login-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hf-login-btn:hover {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.05);
}

.hf-register-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--text-dark), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hf-register-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--text-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.hf-user-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hf-user-btn:hover {
    background-color: rgba(111, 77, 56, 0.05);
    color: var(--primary-color);
}

.hf-mobile-toggle {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.hf-mobile-toggle:hover {
    background-color: rgba(111, 77, 56, 0.1);
}

.hf-mobile-menu {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.hf-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.hf-mobile-link:hover,
.hf-mobile-link.active {
    color: var(--primary-color);
    background-color: rgba(111, 77, 56, 0.1);
    border-left: 4px solid var(--primary-color);
}

.hf-mobile-register {
    background: linear-gradient(135deg, var(--text-dark), var(--secondary-color));
    color: white;
    font-weight: 600;
}

.hf-mobile-register:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--text-dark));
    color: white;
}

/* ============ MARQUEE BAR ============ */
.hf-marquee-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1025;
}

.hf-marquee-bar--top {
    background: #7f1d1d;
    padding: 0.8rem 0;
    min-height: 56px;
}

.hf-marquee-bar--top .hf-marquee-content {
    gap: 1.5rem;
    animation-duration: 35s;
}

.hf-marquee-bar--top .hf-marquee-content span {
    font-size: 1.05rem;
    font-weight: 700;
}

.hf-marquee-sep {
    opacity: 0.9;
    font-size: 0.8rem !important;
}

.hf-marquee-highlight {
    color: #fde047;
    font-weight: 700;
}

.hf-marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: hf-marquee-scroll 30s linear infinite;
}

.hf-marquee-content span {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

.hf-marquee-content span:nth-child(even):not(.hf-marquee-sep):not(.hf-marquee-highlight) {
    opacity: 0.7;
}

@keyframes hf-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============ HOME CATEGORY BANNER SLIDER ============ */
.home-category-slider-section {
    padding: 0.8rem 0 0.25rem;
    background: #f7f7f7;
}

.home-category-slider {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0 1.7rem;
}

.home-category-slider-viewport {
    overflow: hidden;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .home-category-slider-viewport {
        border-radius: 16px;
    }
}

.home-category-slider-track {
    display: flex;
    gap: 14px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.home-category-slide {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - 28px) / 3);
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
}

.home-category-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.home-category-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 35, 35, 0.4);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.home-category-slider-arrow:hover {
    background: rgba(35, 35, 35, 0.68);
}

.home-category-slider-prev {
    left: 24px;
}

.home-category-slider-next {
    right: 24px;
}

.home-category-slider-dots {
    position: absolute;
    right: 0;
    bottom: 0.25rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.home-category-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9c9c9;
    cursor: pointer;
}

.home-category-slider-dot.active {
    background: #f7bd27;
}

@media (max-width: 767.98px) {
    .home-category-slider-section {
        padding-top: 0.65rem;
    }

    .home-category-slider {
        padding-right: 16px;
        padding-left: 16px;
        padding-bottom: 1.5rem;
    }

    .home-category-slider-track {
        gap: 10px;
    }

    .home-category-slide {
        flex-basis: 100%;
        border-radius: 15px;
    }

    .home-category-slide img {
        height: auto;
        object-fit: contain;
    }

    .home-category-slider-prev {
        left: 7px;
    }

    .home-category-slider-next {
        right: 7px;
    }

    .home-category-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

}

/* ============ SLIDER ============ */
.home-slider-section {
    height: 500px;
    overflow: hidden;
    position: relative;
    background-color: #111827;
}

.home-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6F4D38;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.home-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.home-slider-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.home-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
}

.home-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.home-slider-nav-prev {
    left: 1rem;
}

.home-slider-nav-next {
    right: 1rem;
}

.home-slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 30;
}

.home-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.home-slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.home-slider-indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .home-slider-section {
        height: 300px;
        min-height: 300px;
    }
    
    .home-slider-container {
        height: 100%;
    }
    
    .home-slider-slide {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .home-slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .home-slider-nav-btn:active {
        background: rgba(255, 255, 255, 0.6);
        transform: translateY(-50%) scale(0.95);
    }
    
    .home-slider-nav-prev {
        left: 0.75rem;
    }
    
    .home-slider-nav-next {
        right: 0.75rem;
    }
    
    .home-slider-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .home-slider-indicator {
        width: 10px;
        height: 10px;
    }
    
    .home-slider-indicator.active {
        width: 24px;
    }
    
    .home-slider-overlay {
        background: transparent;
    }
    
    .hf-marquee-content {
        font-size: 0.8rem;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .home-slider-section {
        height: 250px;
        min-height: 250px;
    }
    
    .home-slider-slide {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .home-slider-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    
    .home-slider-nav-prev {
        left: 0.5rem;
    }
    
    .home-slider-nav-next {
        right: 0.5rem;
    }
    
    .home-slider-indicators {
        bottom: 0.75rem;
        gap: 0.4rem;
    }
    
    .home-slider-indicator {
        width: 8px;
        height: 8px;
    }
    
    .home-slider-indicator.active {
        width: 20px;
    }
}

/* Product card (home + category) */
.category-desktop-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 auto 1.75rem;
}

.category-desktop-tabs a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.35rem;
    border: 1px solid #dedbd8;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.category-desktop-tabs a:hover {
    border-color: #d62f2f;
    color: #d62f2f;
}

.category-desktop-tabs a.active {
    border-color: #d62f2f;
    background: #d62f2f;
    color: #fff;
}

@media (max-width: 767.98px) {
    .category-desktop-tabs {
        display: none;
    }
}

.hf-shop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e1d9;
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(172, 142, 112, 0.12);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(71, 52, 42, 0.14);
}

.hf-shop-card-product-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hf-shop-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(117, 93, 70, 0.08), rgba(233, 217, 188, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hf-shop-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: #7b0d07;
    color: #fff;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.15;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(48, 130, 68, 0.12);
}

.product-off-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 6px;
    background: #f0781a;
    box-shadow: 0 2px 7px rgba(45, 10, 7, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.product-off-badge[hidden] {
    display: none;
}

.hf-shop-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hf-shop-card-image-wrap i {
    font-size: 3rem;
    color: rgba(82, 70, 62, 0.5);
}

.hf-shop-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: #fff;
    color: #1e1e1e;
}

.hf-shop-card-name {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0;
    color: #9a3f08;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-shop-card-description {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 3em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hf-shop-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.hf-shop-card-weight {
    font-size: 0.8rem;
    color: #4f4f4f;
    font-weight: 600;
    white-space: nowrap;
}

.hf-shop-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #181818;
    white-space: nowrap;
}

.hf-shop-card-prices {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.05rem;
    white-space: nowrap;
}

.hf-shop-card-mrp {
    color: #817c78;
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: line-through;
    white-space: nowrap;
}

.hf-shop-card-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    padding: 0.25rem 0.6rem;
    border: 1px solid #7b0d07;
    border-radius: 6px;
    background: #7b0d07;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.hf-shop-card-action small {
    margin-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 500;
    text-transform: none;
}

.hf-shop-card-action:hover {
    background: #650a06;
    color: #fff;
}

.hf-shop-card-action.is-added,
.hf-shop-card-action.is-added:hover {
    border-color: #21823f;
    background: #21823f;
    color: #fff;
}

.hf-shop-card-action.disabled,
.hf-shop-card-action.disabled:hover {
    cursor: not-allowed;
    opacity: 0.55;
}

.hf-cart-feedback {
    min-height: 0;
    color: #21823f;
    font-size: 0.72rem;
}

.hf-variant-dialog {
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 850px);
    max-width: none;
    max-height: min(48vh, 380px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    color: #252525;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.hf-variant-dialog::backdrop {
    background: rgba(22, 27, 24, 0.5);
}

.hf-variant-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ededed;
    font-size: 0.95rem;
}

.hf-variant-dialog-close {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 1.6rem;
    line-height: 1;
}

.hf-variant-list {
    max-height: calc(min(48vh, 380px) - 55px);
    overflow-y: auto;
    padding: 0.4rem 0.65rem max(0.65rem, env(safe-area-inset-bottom));
}

.hf-variant-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 66px;
    margin: 0.35rem 0;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
}

.hf-variant-row-feedback {
    display: block;
    min-height: 0;
    color: #21823f;
    font-size: 0.72rem;
    text-align: right;
}

.hf-variant-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 7px;
    object-fit: cover;
}

.hf-variant-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f0ed;
    color: #928b83;
}

.hf-variant-details {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.hf-variant-discount {
    width: fit-content;
    padding: 0.08rem 0.25rem;
    border-radius: 3px;
    background: #168a3a;
    color: #fff;
    font-size: 0.52rem;
    font-weight: 700;
}

.hf-variant-name {
    color: #777;
    font-size: 0.72rem;
}

.hf-variant-prices {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.hf-variant-prices del {
    color: #999;
    font-size: 0.62rem;
}

.hf-variant-add {
    min-width: 50px;
    padding: 0.3rem 0.55rem;
    border: 1px solid #268b48;
    border-radius: 5px;
    background: #f7fff9;
    color: #21823f;
    font-size: 0.62rem;
    font-weight: 800;
}

.hf-variant-add:disabled {
    border-color: #bbb;
    color: #888;
    background: #f5f5f5;
    cursor: not-allowed;
}

.hf-variant-add.is-added {
    border-color: #21823f;
    background: #21823f;
    color: #fff;
}

/* ============ CUSTOMER ACCOUNT DESKTOP PAGES ============ */
.customer-account-sidebar {
    display: none;
}

.customer-address-name {
    margin: 0;
    color: #302a2b;
    font-size: 1rem;
    font-weight: 700;
}

.customer-address-text {
    margin: 0 0 0.65rem;
    color: #6f6565;
    font-size: 0.88rem;
    line-height: 1.5;
}

.customer-address-phone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: #6f6565;
    font-size: 0.88rem;
}

.customer-address-phone a {
    color: inherit;
    text-decoration: none;
}

.customer-address-actions {
    display: flex;
    gap: 0.5rem;
}

.customer-address-actions > a,
.customer-address-actions > form {
    flex: 1;
}

.customer-address-actions .btn {
    width: 100%;
}

.customer-address-empty {
    padding: 1.5rem 0.5rem;
    color: #71676a;
    text-align: center;
}

.customer-address-empty > i {
    margin-bottom: 0.75rem;
    color: #6b1f2a;
    font-size: 2rem;
}

@media (max-width: 991.98px) {
    .customer-account-layout > .col-lg-3,
    .customer-cart-layout > div:first-child {
        display: none;
    }
}

@media (min-width: 992px) {
    body.customer-page {
        background: #fff;
        color: #292b30;
    }

    body.customer-page .card {
        border-color: #e9e5e5 !important;
        border-radius: 12px;
        box-shadow: 0 5px 16px rgba(54, 20, 24, 0.06);
        transform: none;
    }

    body.customer-page .card-header {
        border-color: #eee9e9;
        background: #fff;
    }

    body.customer-page .customer-account-shell {
        max-width: 1320px;
        min-height: 65vh;
        padding-top: 2.5rem !important;
        padding-bottom: 4rem !important;
    }

    .customer-account-heading {
        margin-bottom: 2.6rem;
    }

    .customer-account-heading h1 {
        margin: 0;
        color: #2e171a;
        font-size: clamp(2rem, 3vw, 2.8rem);
        font-weight: 800;
        line-height: 1.15;
    }

    .customer-account-heading p {
        margin: 0.45rem 0 0;
        color: #6f6565;
        font-size: 1rem;
    }

    .customer-account-layout {
        align-items: start;
    }

    .customer-account-sidebar {
        display: block;
        overflow: hidden;
        border: 1px solid #eee7e7;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(54, 20, 24, 0.08);
    }

    .customer-account-sidebar nav {
        display: flex;
        flex-direction: column;
    }

    .customer-account-sidebar a {
        display: flex;
        min-height: 58px;
        align-items: center;
        gap: 14px;
        padding: 0 18px;
        border-bottom: 1px solid #f2eeee;
        color: #37353a;
        font-size: 0.94rem;
        font-weight: 600;
        text-decoration: none;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

    .customer-account-sidebar a:last-child {
        border-bottom: 0;
    }

    .customer-account-sidebar a i {
        width: 16px;
        color: #827d80;
        text-align: center;
    }

    .customer-account-sidebar a:hover {
        background: #fbf6f6;
        color: #6b1f2a;
    }

    .customer-account-sidebar a.active {
        border-color: #6b1f2a;
        background: #6b1f2a;
        color: #fff;
    }

    .customer-account-sidebar a.active i {
        color: #fff;
    }

    .customer-account-sidebar a.customer-account-logout {
        margin-top: 0.35rem;
        border-top: 1px solid #eee7e7;
        color: #c52c3d;
    }

    .customer-account-sidebar a.customer-account-logout i {
        color: #c52c3d;
    }

    .customer-account-content > .card,
    .customer-account-content .customer-account-card {
        border: 1px solid #e9e5e5 !important;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(54, 20, 24, 0.06);
        transform: none;
    }

    .customer-account-card > .card-header {
        padding: 1.2rem 1.35rem 0.9rem;
        border: 0;
        background: #fff;
        color: #302a2b;
    }

    .customer-account-card > .card-header h5 {
        color: #302a2b;
        font-size: 1.15rem;
        font-weight: 700;
    }

    .customer-account-card > .card-header i {
        margin-right: 0.45rem;
        color: #6b1f2a;
    }

    .customer-account-card > .card-body {
        padding: 1rem 1.35rem 1.4rem;
    }

    body.customer-page .form-control,
    body.customer-page .form-select {
        min-height: 48px;
        border-color: #e4e3e5;
        border-radius: 6px;
        background-color: #f7f7f8;
        color: #292b30;
    }

    body.customer-page textarea.form-control {
        min-height: auto;
    }

    body.customer-page .form-control:focus,
    body.customer-page .form-select:focus {
        border-color: #8c4a52;
        box-shadow: 0 0 0 0.2rem rgba(107, 31, 42, 0.12);
    }

    body.customer-page .form-label {
        color: #61595a;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }

    body.customer-page .btn-primary {
        border-color: #6b1f2a;
        background: #6b1f2a;
        color: #fff;
        font-weight: 700;
    }

    body.customer-page .btn-primary:hover {
        border-color: #4e151e;
        background: #4e151e;
    }

    body.customer-page .btn-outline-primary {
        border-color: #6b1f2a;
        color: #6b1f2a;
    }

    body.customer-page .btn-outline-primary:hover {
        border-color: #6b1f2a;
        background: #6b1f2a;
        color: #fff;
    }

    .customer-address-card {
        border-color: #e8e6e7 !important;
        border-radius: 10px;
        background: #fafafa;
        box-shadow: 0 2px 9px rgba(34, 24, 24, 0.05);
        transform: none;
    }

    .customer-address-card .card-body {
        padding: 1rem;
    }

    body.customer-page .bg-success {
        background-color: #6b1f2a !important;
    }

    .customer-account-content .list-group-item {
        border-color: #eee7e7;
        color: #42393a;
    }

    body.customer-page .alert-info {
        background: #fbf5f5;
        color: #5a3439;
    }

    body.customer-page .cart-page {
        background: #fff !important;
    }

    body.customer-page .cart-shell.customer-cart-shell {
        max-width: 1320px;
    }

    .customer-cart-layout {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) minmax(0, 3.2fr);
        gap: 1.5rem;
        align-items: start;
    }

    .customer-cart-layout > div:first-child {
        display: block;
    }

    .customer-cart-layout .customer-account-content {
        min-width: 0;
    }

    .customer-cart-layout .cart-items-panel,
    .customer-cart-layout .cart-summary-panel,
    .customer-cart-layout .cart-empty-state,
    .customer-cart-layout .cart-shipping-note {
        border-color: #e9e5e5;
        box-shadow: 0 4px 14px rgba(54, 20, 24, 0.05);
    }

    body.customer-page .cart-checkout-button {
        background: #6b1f2a;
    }

    body.customer-page .cart-checkout-button:hover {
        background: #4e151e;
    }

    body.customer-page .cart-continue-button {
        color: #6b1f2a;
    }
}

.hf-variant-desktop-layout {
    display: none;
}

@media (min-width: 768px) {
    dialog.hf-variant-dialog[open] {
        position: fixed;
        inset: 50% auto auto 50%;
        display: grid;
        width: min(92vw, 940px);
        max-width: 940px;
        max-height: 86vh;
        margin: 0;
        transform: translate(-50%, -50%);
        grid-template-columns: minmax(0, 1fr);
        border-radius: 12px;
        overflow-y: auto;
    }

    .hf-variant-dialog-header {
        position: absolute;
        z-index: 2;
        top: 0.5rem;
        right: 0.55rem;
        padding: 0;
        border: 0;
    }

    .hf-variant-dialog-header strong {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .hf-variant-dialog-close {
        width: 28px;
        height: 28px;
        font-size: 1.4rem;
    }

    .hf-variant-desktop-layout {
        display: grid;
        grid-template-columns: minmax(250px, 1fr) minmax(0, 1fr);
        gap: 1.1rem;
        padding: 1.1rem;
        background: #fffaf0;
    }

    .hf-variant-desktop-media {
        position: relative;
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 0.65rem;
    }

    .hf-variant-desktop-media > img,
    .hf-variant-desktop-placeholder {
        display: flex;
        width: 100%;
        aspect-ratio: 1 / 1;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #f2eee8;
        object-fit: cover;
        color: #8a8177;
        font-size: 2.5rem;
    }

    .hf-variant-desktop-veg {
        position: absolute;
        top: 0.55rem;
        left: 0.55rem;
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        background: #168a3a;
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .hf-variant-benefits {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .hf-variant-benefits span {
        display: flex;
        min-height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        border-radius: 8px;
        background: #f3f0ea;
        color: #756d64;
        font-size: 0.58rem;
        text-align: center;
    }

    .hf-variant-benefits i {
        color: #f0781a;
        font-size: 0.8rem;
    }

    .hf-variant-desktop-details {
        display: flex;
        min-width: 0;
        flex-direction: column;
        padding: 0.15rem 0.4rem 0.1rem 0;
    }

    .hf-variant-desktop-details h2 {
        margin: 0 1.3rem 0.65rem 0;
        color: #29231f;
        font-family: Georgia, serif;
        font-size: clamp(1.15rem, 2vw, 1.55rem);
        line-height: 1.25;
    }

    .hf-variant-desktop-price {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid #e7dfd5;
    }

    .hf-variant-desktop-price strong {
        color: #29231f;
        font-size: 1.35rem;
    }

    .hf-variant-desktop-price del {
        color: #888;
        font-size: 0.75rem;
    }

    .hf-variant-desktop-price del[hidden] {
        display: none;
    }

    .hf-variant-desktop-price small {
        color: #8a8177;
        font-size: 0.65rem;
    }

    .hf-variant-desktop-details h3 {
        margin: 0 0 0.45rem;
        color: #39312b;
        font-family: Georgia, serif;
        font-size: 0.85rem;
    }

    .hf-variant-desktop-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        margin-bottom: 0.85rem;
    }

    .hf-variant-option {
        display: flex;
        min-height: 48px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        border: 1px solid #e4ddd5;
        border-radius: 8px;
        background: #fffaf2;
        color: #312b26;
        font-size: 0.74rem;
    }

    .hf-variant-option small {
        color: #81786f;
        font-size: 0.63rem;
    }

    .hf-variant-option.selected {
        border: 1.5px solid #ed6a00;
        background: #fff0df;
    }

    .hf-variant-option:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .hf-variant-quantity {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 0.65rem;
        margin: 0 0 0.8rem;
    }

    .hf-variant-quantity button {
        width: 30px;
        height: 30px;
        border: 1px solid #e4ddd5;
        border-radius: 8px;
        background: #fffaf2;
        color: #302a25;
        font-size: 1rem;
    }

    .hf-variant-quantity [data-quantity-value] {
        min-width: 20px;
        text-align: center;
        font-size: 0.85rem;
    }

    .hf-variant-desktop-actions {
        display: flex;
        gap: 0.45rem;
        margin-top: auto;
    }

    .hf-variant-desktop-actions button {
        display: inline-flex;
        min-height: 38px;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.4rem;
        border: 0;
        border-radius: 7px;
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .hf-variant-checkout {
        background: #159947;
    }

    .hf-variant-desktop-add {
        background: #f37a08;
    }

    .hf-variant-desktop-actions button:disabled {
        opacity: 0.6;
        cursor: wait;
    }

    .hf-variant-desktop-feedback {
        min-height: 1rem;
        margin-top: 0.3rem;
        color: #21823f;
        font-size: 0.7rem;
    }

    .hf-variant-dialog > .hf-variant-list {
        display: none;
    }
}

@media (max-width: 576px) {
    .hf-shop-card-badge {
        font-size: 0.52rem;
        padding: 4px 8px;
        letter-spacing: 0.04em;
    }

    .hf-shop-card-name {
        font-size: 0.94rem;
    }

    .hf-shop-card-description {
        font-size: 0.8rem;
    }

    .hf-shop-card-price {
        font-size: 0.76rem;
    }

    .hf-shop-card-action {
        min-width: 58px;
        min-height: 38px;
        padding: 0.2rem 0.4rem;
        font-size: 0.68rem;
    }

    .hf-shop-card-action small {
        font-size: 0.52rem;
    }

    .hf-shop-card-body {
        padding: 0.8rem 0.8rem 0.9rem;
    }
}

/* -- Mobile Category Card Overrides -- */
@media (max-width: 767.98px) {
    .hf-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }

    .hf-category-grid-item {
        min-width: 0;
        flex: initial;
    }

    .hf-cat-showcase {
        background: #ffffff;
        border: none;
        border-radius: 16px;
        padding: 0;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
        overflow: hidden;
    }
    .hf-cat-showcase:hover {
        transform: none;
        background: #ffffff;
        border-color: transparent;
        box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    }
    .hf-cat-showcase-media {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        background: #f9f9f9;
    }
    .hf-cat-showcase-body {
        padding: 12px 10px 6px;
        align-items: center;
    }
    .hf-cat-showcase-body h3 {
        font-size: 0.82rem;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 4px;
        line-height: 1.25;
        white-space: nowrap;
    }
    .hf-cat-showcase:hover .hf-cat-showcase-body h3 {
        color: #1a1a1a;
    }
    .hf-cat-showcase-body p {
        font-size: 0.72rem;
        color: #666;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
    .hf-cat-showcase:hover .hf-cat-showcase-body p {
        color: #666;
    }
    .hf-cat-showcase-foot {
        background: #ff5c00;
        border-radius: 50px;
        width: auto;
        margin: 10px auto 14px;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hf-cat-showcase:hover .hf-cat-showcase-foot {
        background: #e04e00;
    }
    .hf-cat-showcase-foot strong {
        font-size: 0.85rem;
        font-weight: 700;
    }
    .hf-cat-showcase-foot span {
        display: block;
    }
}

/* ==========================================================================
   Ultra-Premium Royal Theater Curtain Reveal Entrance Effect
   ========================================================================== */
.theater-curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
    perspective: 1200px;
    transition: visibility 0.25s ease 0.9s;
}

.theater-curtain-overlay.curtains-opened {
    pointer-events: none;
    visibility: hidden;
}

/* Warm Atmospheric Footlight & Stage Glow */
.theater-stage-glow {
    position: absolute;
    bottom: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 45vh;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 190, 80, 0.35) 0%, rgba(212, 175, 55, 0.12) 40%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: 12;
    transition: opacity 0.5s ease 0.1s;
}

/* Dramatic Overhead Spotlight */
.theater-spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 46%, rgba(255, 230, 160, 0.28) 0%, rgba(255, 200, 80, 0.12) 32%, rgba(10, 2, 4, 0.88) 85%);
    pointer-events: none;
    z-index: 11;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.theater-curtain-overlay.curtains-opened .theater-stage-glow,
.theater-curtain-overlay.curtains-opened .theater-spotlight {
    opacity: 0;
}

/* Top Valance / Pelmet with Scalloped Drapery */
.theater-curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 25;
    background: linear-gradient(180deg, #3d0305 0%, #680509 50%, #4a0305 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 -3px 8px rgba(0,0,0,0.5);
    border-bottom: 3px solid #e5c158;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.05s, opacity 0.3s ease 0.5s;
}

.theater-valance-swags {
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.valance-swag {
    flex: 1;
    height: 22px;
    background: radial-gradient(ellipse at 50% 10%, #7d080d 0%, #4a0305 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    border-bottom: 2.5px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin: 0 -2px;
}

.theater-valance-gold-braid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        45deg,
        #f6d365,
        #f6d365 6px,
        #b8860b 6px,
        #b8860b 12px
    );
}

.theater-curtain-overlay.curtains-opened .theater-curtain-valance {
    transform: translateY(-110%);
    opacity: 0;
}

/* Central Royal Logo */
.theater-center-badge {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 20;
    text-align: center;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease 0s, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.theater-badge-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 180, 0, 0.12) 45%, transparent 72%);
    filter: blur(14px);
    animation: badgePulse 2s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.theater-badge-logo {
    position: relative;
    z-index: 2;
    width: auto;
    height: 180px;
    max-width: 82vw;
    object-fit: contain;
    filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95))
        drop-shadow(0 0 25px rgba(255, 215, 0, 0.65))
        drop-shadow(0 0 50px rgba(255, 180, 0, 0.35));
    transition: transform 0.3s ease;
}

.theater-curtain-overlay.curtains-opened .theater-center-badge {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Theater Curtains Container */
.theater-curtains-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* Individual Curtain Panels */
.theater-curtain-panel {
    flex: 1;
    height: 100%;
    position: relative;
    will-change: transform;
    background-color: #660509;
    transition: transform 0.85s cubic-bezier(0.65, 0, 0.07, 1) 0.05s;
    overflow: hidden;
}

/* Deep Velvet Pleats using multi-stop textured gradients */
.curtain-pleats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            to right,
            #260103 0%,
            #420205 1.5%,
            #6e080d 3.5%,
            #941219 5%,
            #bd1c24 6.5%,
            #941219 8%,
            #6e080d 9.5%,
            #420205 11%,
            #260103 12%
        );
    box-shadow: inset 0 -30px 60px rgba(0,0,0,0.9);
}

/* Velvet Silk Shimmer & Shadows */
.curtain-fabric-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(0, 0, 0, 0.2) 75%,
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
}

/* Central Gold Braided Seam */
.theater-curtain-left .curtain-gold-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #ffe082, #b8860b, #d4af37);
    box-shadow: -2px 0 8px rgba(0,0,0,0.7), 0 0 10px rgba(212, 175, 55, 0.5);
}

.theater-curtain-right .curtain-gold-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #ffe082, #b8860b, #d4af37);
    box-shadow: 2px 0 8px rgba(0,0,0,0.7), 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Gold Bottom Fringe */
.theater-curtain-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background: repeating-linear-gradient(
        90deg,
        #b8860b 0px,
        #ffe277 3px,
        #8a5d12 6px
    );
    border-top: 3px solid #ffea8a;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 15;
}

/* Elegant Rope Tiebacks with Realistic Tassels */
.curtain-tieback {
    position: absolute;
    bottom: 22%;
    z-index: 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.85s cubic-bezier(0.65, 0, 0.07, 1) 0.05s, opacity 0.3s ease 0.35s;
}

.tieback-left {
    left: 18px;
}

.tieback-right {
    right: 18px;
}

/* Twisted Golden Cord Loop */
.tieback-cord {
    width: 65px;
    height: 70px;
    border: 4px solid transparent;
    border-top-color: #ffd54f;
    border-bottom-color: #b8860b;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.tieback-left .tieback-cord {
    border-left-color: #ffca28;
    transform: rotate(20deg);
}

.tieback-right .tieback-cord {
    border-right-color: #ffca28;
    transform: rotate(-20deg);
}

.tieback-knot {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #fff092 0%, #d4af37 60%, #8c6314 100%);
    border-radius: 50%;
    margin-top: -12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    border: 1px solid #ffe57f;
}

.tieback-tassel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.tassel-head {
    width: 12px;
    height: 14px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 4px 4px 6px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tassel-skirt {
    width: 20px;
    height: 38px;
    background: repeating-linear-gradient(
        90deg,
        #b8860b 0px,
        #ffe082 2px,
        #996515 4px
    );
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 6px 10px rgba(0,0,0,0.5);
}

/* Physics-based Curtain Sweep Animation */
.theater-curtain-left {
    transform-origin: left top;
}

.theater-curtain-right {
    transform-origin: right top;
}

.theater-curtain-overlay.curtains-opened .theater-curtain-left {
    transform: translateX(-102%) scaleX(0.78) skewY(-1deg);
}

.theater-curtain-overlay.curtains-opened .theater-curtain-right {
    transform: translateX(102%) scaleX(0.78) skewY(1deg);
}

.theater-curtain-overlay.curtains-opened .tieback-left {
    transform: translateX(-150%) scale(0.85);
    opacity: 0;
}

.theater-curtain-overlay.curtains-opened .tieback-right {
    transform: translateX(150%) scale(0.85);
    opacity: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .theater-curtain-valance {
        height: 60px;
    }
    .valance-swag {
        height: 16px;
    }
    .theater-badge-logo {
        height: 120px;
        max-width: 80vw;
    }
    .theater-badge-halo {
        width: 300px;
        height: 300px;
    }
    .curtain-tieback {
        bottom: 16%;
        transform: scale(0.75);
    }
    .tieback-left {
        left: 5px;
    }
    .tieback-right {
        right: 5px;
    }
}

/* ==========================================================================
   Modals & Order Details Modal (Responsive for Desktop & Mobile)
   ========================================================================== */
.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}

/* Order Details Modal */
#orderModal .modal-dialog {
    max-width: 680px;
    margin: 1.75rem auto;
}

#orderModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    max-height: calc(100vh - 4rem);
}

#orderModal .modal-header {
    background-color: #faf7f2;
    border-bottom: 1px solid #ebd9c8;
    position: sticky;
    top: 0;
    z-index: 2;
}

#orderModal .modal-footer {
    background-color: #faf7f2;
    border-top: 1px solid #ebd9c8;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

#orderModal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Mobile Fit */
@media (max-width: 767.98px) {
    #orderModal .modal-dialog {
        margin: 0.75rem auto;
        max-width: calc(100% - 1.25rem);
    }

    #orderModal .modal-content {
        max-height: calc(100vh - 1.5rem);
        border-radius: 10px;
    }

    #orderModal .modal-header {
        padding: 0.75rem 1rem;
    }

    #orderModal .modal-title {
        font-size: 1rem;
    }

    #orderModal .modal-body {
        padding: 0.85rem;
    }

    #orderModal .order-details h6 {
        font-size: 0.92rem;
    }

    #orderModal .table-responsive {
        margin-bottom: 1rem;
    }

    #orderModal .table th,
    #orderModal .table td {
        font-size: 0.8rem;
        padding: 6px 4px;
    }
}

