/* =========================================
   CSS VARIABLES & THEME
   ========================================= */
:root {
    --primary-color: #FF8C00;
    /* Dark Orange */
    --primary-hover: #FF7300;
    --secondary-color: #FFA500;
    /* Vibrant Orange */
    --dark-bg: #1A1A1A;
    --light-bg: #FAFAFA;
    --text-main: #000000;
    /* Black for Light Mode */
    --text-muted: #333333;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --primary-color: #FFA500;
    --primary-hover: #FFB732;
    --secondary-color: #FF8C00;
    --light-bg: #1A120B;
    /* Deep Orangish Black */
    --text-main: #FFFFFF;
    /* White for Dark Mode */
    --text-muted: #CBD5E1;
    --white: #FFFFFF;
    --card-bg: #241A12;
    /* Dark Brownish Orange */
    --nav-bg: rgba(26, 18, 11, 0.98);
    --input-bg: #2D241E;
    --input-border: #4A3C31;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Force overrides for templates with inline styles */
[data-theme="dark"] body {
    background-color: var(--light-bg) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .navbar.scrolled,
[data-theme="dark"] .navbar-solid {
    background: var(--nav-bg) !important;
}

[data-theme="dark"] .auth-container,
[data-theme="dark"] .cart-container,
[data-theme="dark"] .checkout-container,
[data-theme="dark"] .card {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] input {
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--input-border) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] small,
[data-theme="dark"] label,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .text-muted,
[data-theme="dark"] .label {
    color: #FFFFFF !important;
}

/* Force all button text to be white in dark mode */
[data-theme="dark"] .btn,
[data-theme="dark"] button,
[data-theme="dark"] input[type="submit"],
[data-theme="dark"] input[type="button"],
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-outline {
    color: #FFFFFF !important;
}

/* Ensure outline buttons have readable text on hover in dark mode */
[data-theme="dark"] .btn-outline:hover {
    color: var(--light-bg) !important;
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

p,
span,
li,
td,
th,
small,
label,
input,
textarea,
select {
    color: var(--text-main);
}

.text-muted,
small,
.label {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

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

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 75, 99, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 99, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--dark-bg);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 36px;
    /* Below the 36px top announcement bar */
    height: 72px;
    width: 100%;
    z-index: 1000;
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled,
.navbar-solid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 72px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--input-border);
}

[data-theme="dark"] .navbar.scrolled,
[data-theme="dark"] .navbar-solid {
    background: rgba(26, 18, 11, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    /* Always white at start */
    font-weight: 600;
    position: relative;
}

.navbar.scrolled .nav-links a,
.navbar-solid .nav-links a {
    color: var(--text-main);
    /* Theme-aware on scroll */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-icon,
.navbar-solid .mobile-menu-icon {
    color: var(--text-main);
}

/* =========================================
   TOAST / FLASH NOTIFICATIONS
   ========================================= */
#toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 260px;
    max-width: 380px;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards,
        toastOut 0.4s ease 9.6s forwards;
    backdrop-filter: blur(6px);
}

.toast-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.toast-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.toast-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.toast-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.toast .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast .toast-msg {
    flex: 1;
}

.toast .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

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

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    background: url('/static/images/hero_background.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.hero-text {
    max-width: 600px;
    animation: fadeInUp 1s ease-out forwards;
}

.badge {
    display: inline-block;
    background: rgba(255, 75, 99, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
    padding: 5rem 0;
    background-color: var(--card-bg);
    margin-top: -50px;
    position: relative;
    z-index: 20;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    background: rgba(46, 139, 87, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* =========================================
   MENU SECTION
   ========================================= */
.menu-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--input-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-image-container,
.product-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-container img,
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img,
.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-tags-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 10;
}

.product-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    height: 1.5rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.45;
    height: 2.9rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.product-actions-row,
.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--input-border);
    padding-top: 1rem;
    margin-top: auto;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* =========================================
   PROCESS / ABOUT SECTION
   ========================================= */
.process-section {
    padding: 6rem 0;
    background: var(--card-bg);
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.process-list {
    margin-top: 2rem;
}

.process-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-image img {
    width: 100%;
    border-radius: 20px;
}

.shadow-large {
    box-shadow: var(--shadow-lg);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg), #f0fdf4);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: var(--dark-bg);
    margin-bottom: 0;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 6rem 0;
    background: var(--primary-color);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn-animate {
    background: var(--white);
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.cta-btn-animate:hover {
    background: var(--dark-bg);
    color: var(--white);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #aaa;
    margin: 1.5rem 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #aaa;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1200px) {
    .container {
        padding: 0 4%;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .process-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        text-align: left;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-main);
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar .btn {
        display: none;
    }

    .nav-links .btn,
    .nav-links .nav-order-btn {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-icon {
        display: block;
        z-index: 1002;
    }

    .logo img {
        height: 50px;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .product-card {
        border-radius: 16px !important;
    }
    .product-card .product-info {
        padding: 0.8rem !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
    }
    .product-card .product-image-container,
    .product-card .product-img-wrapper {
        height: 140px !important;
    }
    .product-card .product-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        height: 2.6rem !important;
        line-height: 1.3rem !important;
        margin-bottom: 0.3rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: left !important;
    }
    .product-card .product-desc {
        display: none !important;
    }
    .product-card .product-meta-row,
    .product-card .product-rating-row {
        height: 1.2rem !important;
        min-height: 1.2rem !important;
        margin-bottom: 0.4rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .product-card .sku-badge {
        font-size: 0.6rem !important;
    }
    .product-card .product-rating-stars {
        font-size: 0.65rem !important;
    }
    .product-card .product-rating-value,
    .product-card .product-rating-count {
        font-size: 0.68rem !important;
    }
    .product-card .product-actions-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 0.6rem !important;
        margin-top: auto !important;
        border-top: 1px solid var(--input-border) !important;
        gap: 0.3rem !important;
    }
    .product-card .price {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
    }
    .product-card .btn-add-cart,
    .product-card .btn-primary {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        border-radius: 20px !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        background-color: var(--primary-color) !important;
        color: white !important;
        border: none !important;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    #toast-container {
        width: 90%;
        right: 5%;
        left: 5%;
        top: 20px;
    }

    .toast {
        min-width: unset;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 0.6rem !important;
    }

    .logo img {
        height: 45px;
    }

    .nav-order-btn {
        display: none !important;
    }

    .features {
        padding: 3rem 0;
        border-radius: 20px 20px 0 0;
        margin-top: -30px;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .auth-container {
        margin-top: 80px;
        padding: 1.5rem;
        border-radius: 0;
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .footer-brand {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .footer-grid {
        gap: 1.5rem !important;
    }

    footer {
        padding: 3rem 0 !important;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FLOATING CHECKOUT BUTTON
   ========================================= */
.floating-checkout {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-checkout:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 140, 0, 0.4);
    color: white;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .floating-checkout {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Cart Icon scrolled state */
/* Navbar actions and user icon colors based on scrolled/solid state */
/* Universal Rule: Icons in Navbar must always follow the theme main text color (Black in Light, White in Dark) */
.navbar #theme-icon,
.navbar .fa-shopping-cart,
.navbar #mobile-menu-icon i,
.navbar .user-dropdown-btn,
.navbar .user-dropdown-btn i,
.navbar .user-dropdown-btn span,
.navbar .action-btn,
.navbar .action-btn i,
.navbar .action-btn:hover,
.navbar .user-dropdown-btn:hover {
    color: var(--text-main) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: color 0.3s ease;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.2);
    z-index: 5;
}

.navbar.scrolled .cart-badge {
    box-shadow: 0 0 0 2px var(--nav-bg);
}

/* =========================================
   TOP UTILITY BAR
   ========================================= */
.top-bar {
    background-color: #111;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 0;
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.top-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.2s;
}

.top-link:hover,
.top-link.active {
    color: var(--primary-color);
}

.top-bar-left .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Infinite Marquee announcement ticker styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 650px;
    margin-left: 2rem;
}

.marquee-content {
    display: inline-flex;
    animation: topbar-marquee 30s linear infinite;
    gap: 4rem;
}

.marquee-content span {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
}

@keyframes topbar-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hide links on mobile/tablets to avoid crowding and overlap */
@media (max-width: 768px) {
    .top-bar-left {
        display: none !important;
    }

    .marquee-container {
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

/* =========================================
   SEARCH BAR IN NAVBAR
   ========================================= */
.nav-search-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 1.5rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-form input {
    width: 100%;
    padding: 0.6rem 2.8rem 0.6rem 2.5rem !important;
    border-radius: 50px !important;
    border: 1px solid var(--input-border) !important;
    background-color: var(--input-bg) !important;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

#clear-search {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
}

#clear-search:hover {
    color: var(--primary-color);
}

/* Autocomplete results dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    padding: 0.5rem 0;
}

.search-results-dropdown.show {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: rgba(255, 140, 0, 0.05);
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.search-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   USER DROPDOWN
   ========================================= */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2rem;
    color: inherit;
}

.user-name-hint {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-btn .caret {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.user-dropdown-btn:focus .caret {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 220px;
    display: none;
    flex-direction: column;
    padding: 0.6rem 0;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-direction: column;
}

.user-email {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.user-role {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--input-border);
    margin: 0.5rem 0;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.user-dropdown-menu a:hover {
    background-color: rgba(255, 140, 0, 0.05);
    color: var(--primary-color);
}

.user-dropdown-menu i {
    font-size: 1rem;
    width: 16px;
    color: var(--text-muted);
}

.user-dropdown-menu a:hover i {
    color: var(--primary-color);
}

.user-dropdown-menu .admin-link {
    color: var(--primary-color);
}

.user-dropdown-menu .logout-link {
    color: #e53e3e;
}

.user-dropdown-menu .logout-link i {
    color: #e53e3e;
}

/* =========================================
   CATEGORY NAV BAR (SUB NAV)
   ========================================= */
.category-bar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--input-border);
    position: fixed;
    top: 108px;
    /* Below the 36px topbar + 72px main navbar */
    height: 48px;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.category-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 1rem;
}

.category-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.8rem;
    overflow-x: auto !important;
    width: 100%;
    padding: 0.2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for clean app view */
}

.category-link {
    white-space: nowrap;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.category-link:hover {
    background-color: rgba(255, 140, 0, 0.08);
    color: var(--primary-color);
}

.category-link.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

[data-theme="dark"] .category-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

[data-theme="dark"] .category-link:hover {
    background-color: rgba(255, 223, 186, 0.1);
    color: var(--primary-color);
}

/* =========================================
   MOBILE DRAWER NAVIGATION
   ========================================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.drawer-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

#mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-drawer-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.drawer-divider {
    height: 1px;
    background-color: var(--input-border);
    margin: 0.5rem 0;
}

/* =========================================
   HERO CAROUSEL / SLIDER
   ========================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background-color: #0c0806;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 5%;
    color: var(--white);
}

.carousel-content h1 {
    font-size: 3.5rem;
    color: var(--white) !important;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-control:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Video specific slide */
.video-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 420px;
    }

    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-control {
        display: none;
    }

    .carousel-indicators {
        display: none;
    }
}

/* =========================================
   DYNAMIC CARD CATEGORY WRAPPERS
   ========================================= */
.category-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--input-border);
}

.category-section:last-child {
    border-bottom: none;
}

.category-section h2 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category-section h2::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(0, 0, 0, 0.05) 100%);
    margin-left: 1.5rem;
}

[data-theme="dark"] .category-section h2::after {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Adjust top bar and sticky header height offset in template layouts */
body {
    padding-top: 156px;
    /* Accommodates Topbar (36px) + Navbar (72px) + Categorybar (48px) */
}

.navbar {
    top: 36px;
    /* Positioned right below the 36px top announcement bar */
}

@media (max-width: 991px) {
    .nav-search-container {
        display: none;
        /* Hide main search bar on tablets/phones to preserve space */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 156px;
    }

    .navbar {
        top: 36px;
    }

    .category-bar {
        top: 108px;
    }
}

/* =========================================
   HOMEPAGE VISUAL CATEGORY CIRCLES GRID
   ========================================= */
.visual-category-section {
    padding: 3rem 0 1.5rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--input-border);
}

.category-circle-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-circle-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
}

.category-circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-circle-card span {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Hover State */
.category-circle-card:hover .category-circle-img-wrap {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-circle-card:hover .category-circle-img-wrap img {
    transform: scale(1.1);
}

.category-circle-card:hover span {
    color: var(--text-main);
}

/* Active State */
.category-circle-card.active .category-circle-img-wrap {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.category-circle-card.active span {
    color: var(--primary-color);
    font-weight: 800;
}

/* =========================================
   PROFESSIONAL PRODUCT RATING ROW
   ========================================= */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
}

.product-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.75rem;
    color: #FFD700;
}

.product-rating-stars.empty {
    color: #D1D5DB;
}

.product-rating-value {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-rating-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   LATEST ADDITIONS - HORIZONTAL SCROLL
   ========================================= */
.latest-additions-section {
    padding: 3rem 0 2rem;
    background: var(--bg-main);
}

.latest-additions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.latest-additions-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.view-all-link:hover {
    gap: 0.7rem;
    color: var(--primary-dark);
}

.latest-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.latest-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.latest-product-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--input-border);
}

.latest-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Media area with video/image */
.latest-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #111;
}

.latest-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.latest-card-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.5s ease;
}

.latest-card-img.has-video {
    opacity: 0.85;
    mix-blend-mode: luminosity;
}

.latest-product-card:hover .latest-card-img {
    transform: scale(1.08);
}

.latest-product-card:hover .latest-card-img.has-video {
    opacity: 1;
    mix-blend-mode: normal;
}

.latest-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Card body */
.latest-card-body {
    padding: 1rem 1.2rem 1.2rem;
}

.latest-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.latest-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--input-border);
    padding-top: 0.8rem;
}

.latest-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Responsive: Latest Additions */
@media (max-width: 768px) {
    .latest-product-card {
        flex: 0 0 230px;
        min-width: 230px;
    }

    .latest-card-media {
        height: 150px;
    }

    .latest-additions-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .latest-product-card {
        flex: 0 0 200px;
        min-width: 200px;
    }

    .latest-card-media {
        height: 130px;
    }
}

/* =========================================
   RESPONSIVE FORM ALERTS AND HELPERS
   ========================================= */
.form-help-box {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.6rem;
    background-color: rgba(229, 62, 62, 0.05);
    border-left: 3px solid #e53e3e;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}
.form-help-icon {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.form-help-desc {
    color: #e53e3e;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 !important;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

[data-theme="dark"] .form-help-box {
    background-color: rgba(229, 62, 62, 0.12);
}

/* =========================================
   PAGINATION CONTROLS
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    width: 100%;
}
.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1.5px solid var(--input-border);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.95rem;
}
.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}
.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================================================================
   MOBILE DESIGN & ACCESSIBILITY LAWS (FITTS'S LAW, TOUCH TARGETS, READABILITY)
   ============================================================================= */
@media (max-width: 768px) {
    /* 1. Touch Target Minimum Size Law (WCAG 2.5.5 / Apple touch guidelines: min 44x44px) */
    .btn, 
    button, 
    .action-btn, 
    .qty-btn,
    .remove-btn,
    .pagination-btn,
    .user-dropdown-btn,
    select,
    .size-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"] {
        min-height: 44px !important;
        box-sizing: border-box;
    }

    /* Prevent accidental zoom on input focus for iOS Safari */
    input[type="text"], 
    input[type="email"], 
    input[type="password"], 
    input[type="tel"], 
    select {
        font-size: 16px !important; 
    }

    /* 2. Touch Target Spacing Law (WCAG 2.5.8: Minimum 8px gap between targets to prevent accidental mis-clicks) */
    .qty-controls {
        gap: 8px !important;
        padding: 4px !important;
        align-items: center !important;
    }

    .qty-btn {
        min-width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .qty-display {
        min-width: 32px !important;
        font-size: 1rem !important;
        display: inline-block !important;
    }

    /* 3. Readability & Line-wrap Laws (No text or layout clipping / no overlap) */
    h1, h2, h3, h4, h5, h6, p, span, label, small, select, option, td, th {
        line-height: 1.4 !important; /* Perfect vertical space between lines */
        overflow-wrap: break-word !important; /* Wrap long words to avoid horizontal overflow */
        word-break: break-word !important;
    }

    /* Cart item card layout fixes for mobile */
    .cart-page {
        padding: 85px 0.8rem 3rem !important;
    }

    .cart-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        padding: 1rem !important;
        align-items: center !important;
        border: 1px solid var(--input-border) !important;
        border-radius: 16px !important;
    }

    .cart-item-info {
        flex: 1 1 calc(100% - 90px) !important; /* Take remaining width next to image */
        min-width: 140px !important;
    }

    .cart-item-info h4 {
        font-size: 1rem !important;
        white-space: normal !important; /* Prevent text clipping via nowrap */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem !important;
    }

    .cart-item .qty-controls {
        flex-grow: 0 !important;
        margin-top: 0.2rem !important;
    }

    .cart-item .item-total {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        min-width: 80px !important;
        text-align: right !important;
        margin-left: auto !important;
    }

    .cart-item .remove-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0.5rem !important;
    }

    /* 4. Checkout and Confirm Layout Tuning (Ensure perfect centering and fitting) */
    .checkout-container {
        margin: 80px auto 20px !important;
        padding: 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkout-container h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .checkout-container p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* 5. Mobile Drawer Navigation accessibility improvements */
    .mobile-drawer {
        width: 285px !important;
        padding: 1.2rem !important;
    }

    .mobile-drawer-links {
        gap: 1.4rem !important; /* Increase gap for tap target comfort */
    }

    .mobile-drawer-links a {
        padding: 0.8rem 0 !important; /* Expands clickable area of link targets */
        font-size: 1.15rem !important;
        display: block !important;
    }

    #mobile-drawer-close {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.04) !important;
    }

    /* 6. Mobile header autocomplete search box target updates */
    .search-item {
        padding: 0.8rem !important;
        min-height: 52px !important;
    }
}

@media (max-width: 480px) {
    /* Responsive Grid Reflow Law (Stack to single column when under 480px viewport width) */
    .product-grid,
    .products-grid {
        grid-template-columns: 1fr !important; /* No text squeezing or buttons squished */
        gap: 1.25rem !important;
    }

    .product-card {
        border-radius: 20px !important;
    }

    .product-card .product-image-container,
    .product-card .product-img-wrapper {
        height: 190px !important; /* Restore normal height when card is full width */
    }

    .product-card .product-title {
        font-size: 1.1rem !important;
        height: auto !important; /* Grow naturally to fit long functional shot descriptions */
        min-height: unset !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        -webkit-line-clamp: unset !important; /* Remove constraints for absolute visibility */
    }

    .product-card .product-info {
        padding: 1rem !important;
    }

    /* Form columns stacking law */
    .grid-2,
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    /* Stack quantity controls to full width for absolute ergonomic thumb reach */
    .cart-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .cart-item-info {
        flex: 1 1 100% !important;
    }

    .cart-item .qty-controls {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .cart-item .item-total {
        text-align: left !important;
        margin-left: 0 !important;
        padding: 0.5rem 0 !important;
        font-size: 1.15rem !important;
    }

    .cart-item .remove-btn {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        background: rgba(0, 0, 0, 0.03) !important;
        border-radius: 50% !important;
    }
}