:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --primary: #10b981;
    /* Fresh Cannabis Green */
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --accent: #8b5cf6;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 0;
    line-height: 1.2;
}

/* --- Hero Section --- */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1603909223429-69bb7101f420?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: transparent;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}

.slide .container {
    max-width: 800px;
    margin: 0 auto;
}

.slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.25rem;
    margin: 0 auto 2rem;
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* --- Category Grid --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    border: 1px solid var(--border);
    cursor: pointer;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.category-img {
    height: 140px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.category-name {
    padding: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Features Section --- (Why Choose Us) */
.features-section {
    background: white;
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item img,
.feature-item span {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    font-size: 1.1rem;
    color: #cbd5e1;
    /* Default heart color - slate-300 */
}

.product-wishlist:hover {
    transform: scale(1.1);
    color: #ef4444;
    /* Hover red */
}

.product-wishlist.active {
    color: #ef4444;
    /* Active red */
}


.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add:hover {
    background: var(--primary-dark);
}

.btn-add:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* --- Cart & Tables --- */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cart-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.limit-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.limit-bar-fill {
    height: 100%;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .cart-table {
        min-width: 600px;
        /* Ensure it scrolls */
        margin-bottom: 0;
        border: none;
    }

    .cart-table th,
    .cart-table td {
        white-space: nowrap;
    }
}



.compliance-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Utilities */
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* --- Mega Menu & Navigation --- */
.main-nav-bar {
    border-top: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: white;
}

.browse-categories-wrapper {
    position: relative;
}

.browse-categories-btn,
.main-menu-btn {
    background: #83B735;
    /* Lime green from reference */
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 220px;
    justify-content: space-between;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
}

.browse-categories-wrapper:hover .mega-menu {
    display: block;
}

.menu-item {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.menu-item:hover>.menu-link {
    background: #f8fafc;
    color: #84cc16;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 240px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    min-height: 100%;
}

.menu-item:hover .submenu {
    display: block;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(-75px);
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #808080;
    padding: 1.5rem 0;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #84cc16;
}

.join-discord-btn {
    background: var(--text-muted);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px !important;
    padding-bottom: 0.5rem !important;
}

.join-discord-btn:hover {
    background: var(--text-main);
}

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #808080;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-user-actions a {
    color: #808080;
    /* Ensure links match */
    text-decoration: none;
    display: flex;
    /* Aligns icon and text */
    align-items: center;
    gap: 0.5rem;
}

.nav-user-actions a:hover {
    color: #84cc16;
    /* Standard hover color */
}

/* --- Missing Header Styles --- */

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
}

.top-bar-right a {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* Mid Header */
.mid-header {
    background: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.search-bar-container {
    flex-grow: 1;
    max-width: 700px;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    background: #f8fafc;
    font-family: inherit;
}

.search-btn {
    background: #84cc16;
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 1.2rem;
}

.search-btn:hover {
    background: #65a30d;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 220px;
}

.support-info strong {
    display: block;
    color: #84cc16;
    font-size: 1rem;
}

/* --- Contact Page Styles --- */
.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-title-large {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-body {
    display: none;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Info Panel */
.info-block {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.info-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .info-label::before rule removed to allow custom icons */

.info-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.info-link-wrapper {
    margin-top: 1rem;
}

.info-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title-large {
        font-size: 2rem;
    }

    .contact-page-container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .top-bar-right {
        display: none;
        /* Hide top bar links on very small screens to save space */
    }

    .mobile-login-link {
        display: inline !important;
        font-weight: 700;
        color: var(--primary);
    }

    .mid-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .support-info {
        display: none;
        /* Hide support info on mobile header to declutter */
    }

    .search-bar-container {
        width: 100%;
        max-width: 100%;
    }

    .main-nav-bar {
        padding: 0 1rem;
    }
}

/* Global Container Override - Increased Padding */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 900px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
}


/* Category Grid Refinements - Single Line & Compact */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Force single line for 6 items */
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-card {
    padding: 1rem;
    /* Reduced padding */
    background: white;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #84cc16;
}

.category-img {
    font-size: 2rem;
    /* Reduced icon size */
    height: auto;
    background: none;
}

.category-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 2 rows on tablet */
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 3 rows on mobile */
    }
}

/* Product Card Content Alignment Start */
.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Product Card Content Alignment End */

/* Contact Us Page Styles Start */
.contact-page-container {
    max-width: 1200px;
    /* Contact Us Page Styles End */

    /* Cart Icon Styles */
    .cart-link {
        color: var(--text-main);
        transition: color 0.2s;
    }

    .cart-link:hover {
        color: var(--primary);
    }

    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ef4444;
        color: white;
        font-size: 0.7rem;
        font-weight: 700;
        height: 18px;
        width: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    padding: 0 1.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title-large {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-main);
}

/* Accordion Styles */
.accordion {
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-body {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
    /* JS toggles this */
}

/* Contact Info Panel */
.contact-info-panel {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.info-block {
    margin-top: 2rem;
}

.info-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-link-wrapper {
    margin-top: 0.5rem;
}

.info-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.info-link:hover {
    border-bottom-color: var(--primary);
}

/* Contact Us Page Styles End */

/* Order Tracking Modal - Consolidated Improvements */
.tracking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.tracking-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-modal:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fee2e2;
    color: #dc2626;
}

.status-processing {
    background: #fef3c7;
    color: #d97706;
}

.status-shipped {
    background: #dbeafe;
    color: #2563eb;
}

.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

/* Stepper Component */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
    padding: 0 1rem;
}

/* Connecting Line */
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    /* Aligns with circle center */
    left: 2.5rem;
    /* Start after first circle */
    right: 2.5rem;
    /* End before last circle */
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    /* Muted text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.step-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Active & Completed States */
.stepper-item.completed .step-counter {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stepper-item.active .step-counter {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
    /* Light green tint */
}

.stepper-item.completed .step-name,
.stepper-item.active .step-name {
    color: var(--text-dark);
    font-weight: 700;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    width: 18px;
    align-items: center;
    justify-content: center;
}

/* Updated Footer Background */
.site-footer {
    background: url('../img/sale_banner.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0 1rem 0;
}

.site-footer h4 {
    color: white;
}

.site-footer p,
.site-footer a {
    color: #e2e8f0 !important;
}

.site-footer a:hover {
    color: var(--primary) !important;
}

/* Product Wishlist Icon */
.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
    color: #cbd5e1;
    /* Default gray heart */
}

.product-wishlist:hover {
    transform: scale(1.1);
    background: #f8fafc;
}

.product-wishlist.active {
    color: #ef4444;
    /* Red heart when active */
}

/* Mobile Menu Styles */
@media (max-width: 900px) {
    .main-nav-bar {
        padding: 1rem 2rem;
        flex-wrap: wrap;
    }

    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex !important;
        width: auto !important;
        /* Allow it to shrink */
        flex-grow: 1;
        /* Fill remaining space */
        margin-bottom: 0 !important;
        /* Managed by wrapper */
    }

    .browse-categories-wrapper {
        display: block !important;
        /* Always visible button/bar */
        width: 100%;
        margin-bottom: 1rem;
        order: 2;
    }

    /* .browse-categories-wrapper.active handled via default block display or JS class logic if needed */

    /* Start hidden */
    .mega-menu {
        display: none;
    }

    /* Show when wrapper is active */
    .browse-categories-wrapper.active .mega-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .browse-categories-btn {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
        /* Ensure padding doesn't overflow width */
    }

    .mobile-menu-toggle {
        /* Inherits flex from previous rule */
        box-sizing: border-box;
    }

    /* Adjust Mega Menu for Mobile */
    .browse-categories-wrapper:hover .mega-menu {
        display: none;
        /* Disable hover on mobile */
    }

    /* Create a click/focus based or just always show when wrapper is active? 
       For simplicity, let's make it show when the wrapper is active, but relative position.
    */
    .browse-categories-wrapper.active .mega-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .mega-menu {
        width: 100%;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        transform: none;
        margin-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        display: block;
    }

    .nav-user-actions {
        display: none;
        /* Hide default, maybe assume mobile header icons are sufficient or simple */
    }

    /* Keep cart accessible in top row or make user actions stack too */
    .nav-user-actions.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
        align-items: flex-start;
    }

    /* Stack Submenus Vertically on Mobile */
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        /* Slight bg change to distinguish */
        padding-left: 1rem;
        display: none;
        /* Keep generic hover/display logic or use JS? 
                          If desktop uses :hover, mobile constraints might require tap. 
                          Let's assume tap-to-hover works or just ensure layout is correct. */
    }

    /* Ensure submenu shows on interactions similar to desktop */
    .menu-item:hover .submenu,
    .menu-item:active .submenu,
    .menu-item:focus-within .submenu {
        display: block;
        position: static;
        /* Reinforce static flow */
    }

    /* .menu-item styles handled by default */

    .menu-link {
        justify-content: space-between;
        /* Keep arrow on right */
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer Responsive Adjustments */
    .site-footer {
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack strictly on mobile */
        gap: 2rem;
        text-align: center;
        /* Center align for better mobile look */
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col img {
        margin: 0 auto 1rem;
        /* Center logo */
    }
}