/* ============================================
   FELTTIST DENTAL STUDIO - PREMIUM DARK THEME
   ============================================ */

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-card: #161616;
    --bg-hover: #1f1f1f;

    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    /* Zinc-300 - Brighter than before */
    --text-muted: #a1a1aa;
    /* Zinc-400 */
    --text-dark: #000000;
    --text-gold: #FCD34D;

    --accent: #FCD34D;
    /* Yellow-400 */
    --accent-hover: #fbbf24;
    /* Yellow-500 */
    --accent-light: #fef3c7;
    --accent-glow: rgba(252, 211, 77, 0.15);

    --border-color: #27272a;
    /* Zinc-800 */
    --border-light: #3f3f46;
    /* Zinc-700 */

    /* Specific Colors from Design */
    --teal-bg: #14b8a6;
    --blue-bg: #3b82f6;

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Spacing */
    --container-width: 1400px;
    /* Wider container for premium feel */
    --container-padding: 32px;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========== FINAL RESPONSIVE OVERRIDES ========== */
/* Tablet: 3 Columns */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

    .product-image {
        height: 200px !important;
        padding: 20px;
    }
}

/* Mobile: 2 Columns (Requested) & Proportions Fix */
@media (max-width: 600px) {

    /* Hide messy top bar on mobile */
    .top-bar {
        display: none !important;
    }

    /* Force 2 Columns with minmax to prevent overflow */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Adjust Card Content */
    .product-image {
        height: 140px !important;
        padding: 10px;
    }

    .product-details {
        padding: 10px !important;
    }

    .product-name {
        font-size: 12px !important;
        /* Smaller title */
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 13px !important;
        /* Smaller price */
    }

    /* Shrink Badges */
    .product-badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }

    /* Logo Adjustment */
    .logo img {
        height: 36px !important;
        /* Smaller logo on mobile */
    }

    .header-top {
        margin-bottom: 10px !important;
    }
}

/* ========== HEADER ========== */
.top-bar {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.store-link:hover {
    color: var(--accent);
}

.main-header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: -4px;
    /* Slight visual adjustment */
}

/* NAV LINKS (Desktop) */
.main-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    /* Reset position */
    left: auto;
    transform: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* SEARCH BAR */
.search-bar {
    flex: 0 0 320px;
    /* Fixed width */
    position: relative;
    margin-left: auto;
    /* Push to right if nav is centered differently */
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    padding-right: 48px;
    /* space for button */
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    background: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.search-icon {
    display: none;
    /* Hide the left icon if using button on right */
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.currency-indicator,
.cart-btn,
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.currency-indicator {
    color: var(--accent);
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.action-link:hover {
    color: var(--accent);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.login-btn {
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

.login-btn:hover {
    border-color: var(--text-primary);
    background: var(--bg-hover);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 100px 0;
    /* More padding */
    background: var(--bg-primary);
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle grid pattern */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.08;
    /* Very subtle */
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    /* Fade out edges */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(252, 211, 77, 0.1);
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 4px;
}

.hero h1 {
    font-size: 64px;
    /* Larger font */
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--accent);
    /* Highlight "Perfection." */
    display: block;
    /* New line if needed, or keep inline */
}

.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 480px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    padding: 16px 32px;
    /* Bigger button */
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(252, 211, 77, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-hover);
}

.hero-image-wrapper {
    position: relative;
    padding-left: 20px;
}

.hero-image-card {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    /* overflow: hidden; Removed overflow hidden to allow badges strictly */
    /* But actual image should be clipped usually in design */
}

/* Specific styling for the hero image to match 3D look */
.hero-image-card .main-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    border-radius: 20px;
}

.floating-badge {
    position: absolute;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

/* Top left/right badge */
.floating-badge.top-badge {
    top: 40px;
    left: -40px;
    /* Overlap effect */
}

/* Bottom badge */
.floating-badge.bottom-badge {
    bottom: 40px;
    right: -40px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 18px;
}

.badge-icon.dark {
    background: #333;
    color: var(--accent);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.badge-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
}

.section-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-link:hover {
    gap: 12px;
    /* Animated arrow gap */
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 cols */
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: none;
    /* Removed border for clearer look */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); */
    /* Optional shadow */
}

.product-image {
    background: #ffffff;
    /* Default white bg for product images */
    height: 300px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Specific background variations via PHP if passed */
.product-card.bg-teal .product-image {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
}

.product-card.bg-gray .product-image {
    background: #f4f4f5;
}

.product-card.bg-blue .product-image {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: #000;
    color: #fff;
}

.product-badge.sale {
    background: var(--danger);
    color: white;
}

.product-badge.best-seller {
    background: var(--accent);
    color: var(--text-dark);
}

.product-badge.high-speed {
    background: #111;
    color: #fff;
}

.product-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg-card);
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.product-card:hover .btn-add {
    background: var(--accent);
    color: var(--text-dark);
}

/* ========== CATEGORIES ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Updated to 6 Cols */
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid transparent;
}

.category-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: rgba(252, 211, 77, 0.05);
    /* very light yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--accent);
    color: var(--text-dark);
}

.category-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    margin: 100px 0;
    /* Dark gradient background */
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 0;
    /* padding controlled by grid */
    position: relative;
    overflow: hidden;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.promo-content {
    padding: 80px;
    position: relative;
    z-index: 2;
}

.promo-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: block;
}

.promo-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #fff;
}

.promo-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 450px;
    line-height: 1.6;
}

/* Image side */
.promo-image {
    position: relative;
    height: 100%;
    background: radial-gradient(circle at center, #2dd4bf 0%, transparent 70%);
    /* Glow effect */
}


/* ========== FOOTER ========== */
footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 100px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-hover);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.store-badge:hover {
    border-color: var(--accent);
}

.store-badge i {
    font-size: 18px;
    color: var(--accent);
}

.store-badge span {
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 600px) {

    /* Grids */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Cols for large phones/small tablets */
        gap: 12px;
        /* Smaller gap for mobile */
    }

    .product-image {
        height: 160px;
        /* Adjusted height for 2-col mobile */
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        /* Smaller font */
    }

    .product-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 Columns even on small mobile as requested */
    }

    .product-image {
        height: 140px;
        /* Smaller height for small screens */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 Columns on Tablet */
        gap: 16px;
    }

    .product-image {
        height: 200px;
        /* Reduced height for tablet */
        padding: 20px;
    }

    .header-inner {
        gap: 16px;
    }

    .nav-links,
    .search-bar {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        z-index: 200;
        padding: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        overflow-y: auto;
    }

    .shop-sidebar.show {
        transform: translateX(0);
    }
}

/* ========== SHOP PAGE STYLES ========== */
.shop-header {
    background: var(--bg-secondary);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

/* ========== DROPDOWN MENU (Custom) ========== */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: none;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 5px;
    border-radius: 4px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* ========== RESPONSIVE MENU ========== */

/* Hide mobile menu on desktop by default */
@media (min-width: 901px) {

    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Menu Styles (Only for mobile) */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: var(--text-primary);
        font-size: 24px;
        cursor: pointer;
        border: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 24px;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        display: block;
        /* Ensure it's block so we can see it when active */
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 32px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .logo-main {
        font-weight: 900;
        font-size: 20px;
        color: var(--text-primary);
    }

    .close-menu {
        font-size: 24px;
        color: var(--text-muted);
        cursor: pointer;
        background: none;
        border: none;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links a {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        padding: 8px 0;
        display: block;
        text-decoration: none;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========== FINAL RESPONSIVE OVERRIDES (RE-ADDED) ========== */
/* Tablet: 3 Columns */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

    .product-image {
        height: 200px !important;
        padding: 20px;
    }
}

/* Mobile: 2 Columns & Proportions */
@media (max-width: 600px) {

    /* Hide messy top bar on mobile */
    .top-bar {
        display: none !important;
    }

    /* Force 2 Columns with minmax */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Adjust Card Content */
    .product-image {
        height: 140px !important;
        padding: 10px;
    }

    .product-details {
        padding: 10px !important;
    }

    .product-name {
        font-size: 12px !important;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 13px !important;
    }

    /* Shrink Badges */
    .product-badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }

    /* Logo Adjustment */
    .logo img {
        height: 36px !important;
    }

    .header-top {
        margin-bottom: 10px !important;
    }
}

/* ========== WOOCOMMERCE STYLE CHECKOUT ========== */
.woocommerce-checkout .form-control {
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    /* Classic slight radius */
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s;
    height: 48px;
    /* Taller inputs */
}

.woocommerce-checkout .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.1);
    background-color: var(--bg-primary);
}

.woocommerce-checkout .form-label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Order Review Box */
.wc-order-review-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    /* Boxy look */
    position: sticky;
    top: 100px;
}

.wc-table {
    width: 100%;
    margin-bottom: 20px;
}

.wc-table th,
.wc-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.wc-table th {
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    width: 60%;
}

.wc-table .total-row td {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

/* Payment Methods */
.wc-payment-methods {
    background: var(--bg-hover);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.wc-payment-method {
    margin-bottom: 12px;
}

.wc-payment-method:last-child {
    margin-bottom: 0;
}

.wc-payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.wc-payment-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-left: 28px;
    line-height: 1.4;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 4px;
    position: relative;
}

.wc-payment-desc::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-card);
}

/* Checkout Button */
.wc-checkout-btn {
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    width: 100%;
    padding: 18px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.wc-checkout-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Mobile Menu Toggle Button (Burger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    /* Hidden by default - using multiple methods for reliability */
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.close-menu:hover {
    color: var(--accent);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links>li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links>li>a {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-links>li>a:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

/* Mobile Dropdown Toggle */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    display: none;
    background: var(--bg-card);
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid var(--border-color);
}

.mobile-dropdown li a:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Only Elements */
.desktop-only {
    display: flex;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Large Tablet & Small Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .search-bar {
        flex: 0 0 250px;
    }
}

/* Tablet */
@media (max-width: 900px) {

    /* Show burger menu */
    .mobile-menu-toggle {
        display: block !important;
    }

    /* Hide desktop nav */
    .main-nav.desktop-only {
        display: none !important;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Header adjustments */
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100% !important;
        margin: 10px 0 0 0 !important;
    }

    /* Hero adjustments */
    .hero {
        min-height: 60vh;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    /* Product grid - 3 columns */
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    /* Categories grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    /* Base font size reduction - smaller */
    body {
        font-size: 13px;
    }

    /* Container padding - increased for breathing room */
    .container {
        padding: 0 16px;
    }

    /* Hide top bar completely */
    .top-bar {
        display: none !important;
    }

    /* Header - minimal padding */
    .main-header {
        padding: 10px 0;
    }

    .header-top {
        margin-bottom: 0 !important;
        flex-wrap: wrap;
    }

    /* Search bar - hide on mobile header, too cramped */
    .search-bar {
        display: none !important;
    }

    /* Logo smaller */
    .logo img {
        height: 28px !important;
    }

    .logo-main {
        font-size: 16px !important;
    }

    .logo-sub {
        font-size: 8px !important;
    }

    /* Hero section */
    .hero {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 20px !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 12px !important;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    /* Product grid - 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 130px !important;
        padding: 10px;
    }

    .product-details {
        padding: 10px !important;
    }

    .product-name {
        font-size: 12px !important;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 12px !important;
    }

    .product-badge {
        font-size: 8px !important;
        padding: 3px 6px !important;
        top: 6px !important;
        left: 6px !important;
    }

    /* Categories grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-item {
        padding: 12px 8px;
    }

    .category-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 9px;
    }

    /* Section titles - smaller */
    .section-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .section-header {
        margin-bottom: 15px;
    }

    /* Section padding - reduced */
    section {
        padding: 25px 0;
    }

    /* Promo/Banner section */
    .promo-title,
    .promo h2 {
        font-size: 18px !important;
    }

    .promo-text,
    .promo p {
        font-size: 11px !important;
    }

    /* Footer - smaller */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-col ul li a,
    .footer-col p {
        font-size: 11px;
    }

    /* Events page */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Shop page filter */
    .shop-sidebar {
        display: none;
    }

    /* Cart/Checkout */
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Forms */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        /* Prevents iOS zoom */
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .product-image {
        height: 100px !important;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}