@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors */
    --wd-primary-color: 26, 59, 115;
    /* Navy Blue */
    --wd-alternative-color: 238, 30, 62;
    /* Red */

    --brand-primary: rgb(var(--wd-primary-color));
    --brand-primary-dark: rgb(20, 45, 90);
    /* Darker Navy */
    --brand-secondary: rgb(var(--wd-alternative-color));
    --brand-gradient: linear-gradient(135deg, rgb(var(--wd-primary-color)) 0%, rgb(30, 70, 140) 100%);
    --brand-accent: rgb(var(--wd-alternative-color));

    /* UI Colors */
    --bg-body: #FFFFFF;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.95);

    /* Text Colors */
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --text-light: #FFFFFF;

    /* Functional */
    --success: #2ECC71;
    --warning: #F1C40F;
    --danger: rgb(var(--wd-alternative-color));
    --border: #E5E7EB;

    /* Effects - No Shadows */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-brand: none;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

/* --- Auth Wizard Styles --- */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: none;
}

.auth-step-container {
    position: relative;
    min-height: 200px;
    /* Adjust based on content */
}

.auth-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-step.prev {
    transform: translateX(-20px);
    opacity: 0;
}

/* Modern Floating Input */
.input-group-float {
    position: relative;
    margin-bottom: 20px;
}

.input-float {
    width: 100%;
    padding: 16px 16px 16px 50px;
    /* Space for icon */
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.input-float:focus {
    background: white;
    border-color: var(--brand-primary);
    box-shadow: none;
    outline: none;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-float:focus+.input-icon {
    color: var(--brand-primary);
}

.auth-btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 16px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.auth-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.auth-btn-large:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.user-welcome-badge {
    background: #f1f3f5;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--brand-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.mt-6 {
    margin-top: 4rem !important;
}

/* --- Desktop Product Gallery --- */
.desktop-gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

.desktop-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.desktop-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.desktop-gallery-thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0.6;
}

.desktop-gallery-thumb.active,
.desktop-gallery-thumb:hover {
    opacity: 1;
    border-color: var(--brand-primary);
    box-shadow: none;
}

.desktop-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    z-index: 10;
    box-shadow: none;
}

.desktop-gallery-nav:hover {
    background: var(--brand-primary);
    color: white;
}

.desktop-gallery-nav.prev {
    left: 10px;
}

.desktop-gallery-nav.next {
    right: 10px;
}

/* --- Layout --- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 80vh;
    padding-bottom: 60px;
}

.section {
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
}

/* --- Components: Header --- */

.site-header {
    position: sticky;
    top: 16px;
    z-index: 1030;
    margin: 0 16px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    height: 70px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 1.25rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brand-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    border: 2px solid white;
}

/* --- Components: Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.btn-ghost {
    background: rgba(255, 107, 107, 0.1);
    color: var(--brand-dark);
}

.btn-ghost:hover {
    background: rgba(255, 107, 107, 0.15);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: scale(1.1);
}

.btn-pulse {
    background: var(--brand-gradient);
    color: white;
    box-shadow: none;
    animation: pulse-orange 2s infinite;
    font-size: 1.1rem;
    padding: 16px 32px;
    width: 100%;
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: none;
    }

    70% {
        transform: scale(1);
        box-shadow: none;
    }

    100% {
        transform: scale(0.95);
        box-shadow: none;
    }
}

/* --- Components: Product Card --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    /* Space for shadows */
    padding-left: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.product-carousel .product-image-wrapper {
    height: 220px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: rgba(255, 107, 107, 0.1);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: #f1f3f5;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 2;
}

.product-card-pro .badge-icon-star {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #f59e0b;
    font-size: 1.2rem !important;
    /* Force size */
    z-index: 2;
    padding: 0;
    line-height: 1;
    box-shadow: none;
    width: auto;
    height: auto;
}

.badge-icon-star i {
    font-size: 1.2rem !important;
    /* Ensure icon inherits or forces size */
    filter: none;
}

.badge-featured i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.product-actions-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-details {
    padding: 16px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- Components: Hero --- */

.hero-section {
    margin-top: 24px;
    margin-bottom: 40px;
}

/* --- Components: Carousels --- */
.category-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    /* Firefox */
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

/* --- Components: Cart --- */

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.cart-items-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: none;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #f1f3f5;
}

.cart-info {
    flex: 1;
}

.cart-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-variant {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f3f5;
    padding: 4px;
    border-radius: var(--radius-full);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: var(--transition);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-value {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    color: var(--danger);
    text-decoration: underline;
}

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: none;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 2px dashed var(--border);
    margin-top: 16px;
    padding-top: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
}

/* --- Panel Styles (Preserved) --- */
.panel-sidebar {
    width: 260px;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.panel-link {
    color: #1b1b1b;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.panel-link:hover {
    background: #f4efe6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .nav {
        gap: 16px;
    }

    /* REMOVED: Site header override that was hiding/breaking the sticky header on mobile
    .site-header {
        top: 0;
        margin: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    */

    /* Ensure sticky header works on mobile too but simpler */
    .site-header {
        margin: 0;
        border-radius: 0;
        top: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* --- Product Detail Pro Layout --- */

.product-detail-layout {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 60px;
    align-items: start;
    padding-top: 20px;
}

.product-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.product-gallery-item {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-sticky {
    position: sticky;
    top: 110px;
    /* Below header */
    padding: 20px;
    /* Clean look, no background box if possible, or minimal */
}

.pro-price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.pro-old-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.product-info-sticky .btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: var(--radius-full);
}

@media (max-width: 991px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-info-sticky {
        position: static;
        padding: 0;
    }
}

/* --- Hero Product Mobile --- */
.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
}

.hero-slider::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: none;
}

@media (max-width: 768px) {
    .product-hero-mobile {
        position: relative;
        overflow: hidden;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        box-shadow: none;
        margin-bottom: 24px;
        background: #fff;
    }

    .product-hero-image-container {
        height: 60vh;
        /* Reduced height to show buttons below */
        max-height: 400px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        overflow: hidden;
    }

    .product-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Cover for immersive hero feel */
    }

    /* Overlay Icons */
    .hero-overlay-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 16px;
        display: flex;
        justify-content: space-between;
        z-index: 10;
        pointer-events: none;
    }

    .hero-btn-glass {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        box-shadow: none;
        color: #1a1a1a;
        font-size: 1.2rem;
        text-decoration: none;
    }

    .product-main-info {
        padding: 0 16px;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* --- Checkout Components --- */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.payment-option-input {
    display: none;
}

.payment-option-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 5px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: white;
    height: 100%;
}

.payment-option-input:checked+.payment-option-card {
    border-color: var(--brand-primary);
    background: rgba(255, 107, 107, 0.05);
    box-shadow: none;
}

.payment-icon {
    font-size: 1.5rem;
    margin-bottom: 0px;
    color: var(--text-muted);
}

.payment-option-input:checked+.payment-option-card .payment-icon {
    color: var(--brand-primary);
}

.payment-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ======================================== */
/* MODERN HEADER STYLES                     */
/* ======================================== */

.site-header-modern {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    /* border-bottom removed - borders are now controlled per-section */
    box-shadow: none;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 24px;
}

.header-logo img {
    max-height: 65px;
    /* Increased from 48px for better clarity */
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link-modern {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-link-modern:hover {
    color: var(--brand-primary);
}

.nav-link-modern:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cart {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
}

.header-cart:hover {
    background: var(--brand-primary);
    color: white;
}

.cart-badge-modern {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 18px;
    width: auto !important;
    min-height: 18px;
    height: auto !important;
    padding: 3px 6px !important;
    background: var(--brand-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    white-space: nowrap;
    line-height: 1;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-item:hover {
    background: var(--bg-body);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    color: var(--brand-primary);
}

/* ======================================== */
/* MODERN FOOTER STYLES                     */
/* ======================================== */

.site-footer-modern {
    background: rgb(var(--wd-primary-color));
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
    /* Removed gap */
}

/* Ensure main content touches footer */
.site-main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

@media (max-width: 768px) {
    .footer-tagline {
        max-width: 100%;
    }
}

.footer-links h6 {
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a i {
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: none;
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Modern Fallback Hero */
.modern-fallback-hero {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.modern-fallback-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 73, 206, 0.03) 0%, transparent 60%);
    animation: rotateBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
}

.hero-badge-modern {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 73, 206, 0.1);
    color: #0049CE;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title-modern {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-text-modern {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: #0049CE;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 73, 206, 0.2);
}

.btn-hero-primary:hover {
    background-color: #003db3;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 73, 206, 0.3);
    color: white;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: transparent;
    color: #1a1a1a;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background-color: #fff;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    color: #0049CE;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Navigation Arrows - Minimalist (Chevron Style) */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    /* White arrow */
    font-size: 4rem;
    /* Large icon */
    cursor: pointer;
    z-index: 10;
    padding: 0 15px;
    transition: transform 0.2s ease, opacity 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* Softer shadow */
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Hero Carousel Track */
.hero-carousel-track {
    position: relative;
    /* Default Desktop Height */
    height: 450px;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .carousel-button {
        font-size: 2.5rem;
        /* Smaller arrows on mobile */
        padding: 0 5px;
    }

    .hero-carousel-track {
        /* Mobile: Reduced height further ~20% (220px -> 180px) */
        height: 180px !important;
        aspect-ratio: unset;
        min-height: unset;
    }

    .hero-slide img {
        object-fit: contain !important;
        object-position: center;
        background: #ffffff;
    }
}

.carousel-button:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Carousel Indicators (Dots) */
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-dot.active {
    background: var(--brand-primary);
    opacity: 1;
    transform: scale(1.1);
}


/* Professional Header Profile Button */
/* Professional Header Profile Button - Modern & Compact */
.btn-profile-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    /* Compact padding */
    background: transparent;
    border: 1px solid #d0d7de;
    /* Subtle border */
    border-radius: 50px;
    color: #444;
    /* Dark gray text */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-profile-modern i {
    font-size: 1.1rem;
    color: var(--brand-primary);
    /* Icon always brand blue */
    transition: color 0.2s;
}

.btn-profile-modern:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(26, 59, 115, 0.04);
    /* Very subtle tint */
    transform: translateY(-1px);
    box-shadow: none;
}

/* Modern Header Cart - Clean Icon Style */
.header-cart {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Clean, no background */
    border-radius: 50%;
    color: #333;
    font-size: 1.35rem;
    /* Larger, clearer icon */
    transition: all 0.2s;
    text-decoration: none;
}

.header-cart:hover {
    color: var(--brand-primary);
    transform: translateY(-2px);
    background: transparent;
    /* Keep transparent */
}

/* ======================================== */
/* CATEGORY CARDS (GRID STYLE)              */
/* ======================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    border-color: var(--brand-primary);
    box-shadow: none;
    transform: translateY(-4px);
}

.category-card i {
    font-size: 2rem;
    color: var(--brand-primary);
}

.category-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Welcome Section */
.hero-welcome {
    background: linear-gradient(135deg, rgb(var(--wd-primary-color)) 0%, rgb(20, 45, 90) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.hero-welcome h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.hero-welcome p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-welcome .btn {
    background: rgb(var(--wd-alternative-color));
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
}

.hero-welcome .btn:hover {
    background: rgb(200, 20, 50);
}

/* Section Title with Accent */
.section-title-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title-modern::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.section-title-modern h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* Category Cards Full Page */
.category-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card-full {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-card-full:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    color: var(--brand-primary);
}

.category-card-full .category-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card-full:hover .category-icon {
    background: var(--brand-primary);
    color: white;
}

.category-card-full .category-icon i {
    font-size: 1.8rem;
    color: var(--brand-primary);
}

.category-card-full:hover .category-icon i {
    color: white;
}

.category-card-full h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* PRODUCT GALLERY STYLES */
.desktop-gallery-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}

.desktop-gallery-thumbs-vertical::-webkit-scrollbar {
    display: none;
}

.desktop-gallery-thumb-v {
    width: 80px;
    height: 80px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    transition: all 0.2s;
    box-sizing: border-box;
}

.desktop-gallery-thumb-v:hover {
    border-color: #ddd;
}

.desktop-gallery-thumb-v.active {
    border: 2px solid #555;
}

.desktop-gallery-thumb-v img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* GALLERY V2 (PROFESSIONAL RELAUNCH) */
.gallery-thumbs-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100px;
    max-height: 550px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
    padding-right: 5px;
}

.gallery-thumbs-v2::-webkit-scrollbar {
    display: none;
}

.gallery-thumb-item-v2 {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #fff;
}

.gallery-thumb-item-v2.active {
    opacity: 1;
    border-color: #555;
    transform: scale(0.98);
}

.gallery-thumb-item-v2:hover {
    opacity: 1;
}

.gallery-thumb-item-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

/* GALLERY V2 FINAL (GRID + BRAND) */
.gallery-grid-v2 {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    height: 550px;
    width: 100%;
    align-items: start;
}

.gallery-grid-v2.single-image {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 500px;
}

.gallery-thumbs-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 5px;
}

.gallery-thumbs-v2::-webkit-scrollbar {
    display: none;
}

.gallery-thumb-item-v2 {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 2px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.gallery-thumb-item-v2.active {
    opacity: 1;
    border-color: #666;
    box-shadow: none;
}

.gallery-thumb-item-v2:hover {
    opacity: 1;
    border-color: #ccc;
}

.gallery-thumb-item-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.desktop-gallery-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

#mainDesktopImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Thumbnail Scroll Arrows (Up/Down) - Minimal Style */
.thumb-scroll-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 30px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
    color: #888;
    font-size: 1.6rem;
    z-index: 10;
}

.thumb-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.thumb-scroll-arrow:hover {
    color: #333;
}

.thumb-scroll-up {
    top: -35px;
}

.thumb-scroll-down {
    bottom: -35px;
}

.thumb-scroll-arrow i {
    line-height: 1;
}

/* Legacy indicator - kept for backwards compatibility */
.thumb-scroll-indicator {
    display: none;
}

/* --- ELEGANT REDESIGN V4 (Bold & Contained) --- */

/* Typography Overrides - BOLDER */
.elegant-title-large {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* BOLD as requested */
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111;
    /* Stark black for impact */
    margin-bottom: 20px;
}

.elegant-title-medium {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 1.5rem;
}

.elegant-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    /* Regular weight, not thin */
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    max-width: 700px;
}

.elegant-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(26, 59, 115, 0.05);
    padding: 8px 16px;
    border-radius: 4px;
}

/* Container */
.elegant-container {
    max-width: 1200px;
    /* Standard contained width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.elegant-section {
    padding: 48px 0;
    background: #fff;
}

.elegant-section.alt {
    background: #f8f9fa;
}

/* Contained Hero Box */
.elegant-hero-box {
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fff;
}

/* Grids */
.elegant-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.elegant-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 992px) {

    .elegant-grid-2,
    .elegant-grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Content Blocks */
.elegant-text-block h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111;
}

.elegant-text-block p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Cards (Bold Border) */
.elegant-card {
    background: #fff;
    border: 2px solid #eee;
    padding: 40px 30px;
    transition: all 0.2s ease;
    height: 100%;
}

.elegant-card:hover {
    border-color: #111;
    background: #fff;
}

.elegant-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
    background: rgba(26, 59, 115, 0.05);
    border-radius: 8px;
}

.elegant-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #111;
}

/* Buttons (Solid) */
.btn-elegant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    color: #fff !important;
    background: #111;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid #111;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-elegant:hover {
    background: transparent;
    color: #111 !important;
}

/* Contact Specifics override */
.contact-hero {
    text-align: center;
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.contact-card {
    background: #F8F9FA;
    border: none;
    padding: 40px;
    text-align: center;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: #F1F3F5;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--brand-primary);
}

/* --- ELEGANT REDESIGN V5 (Home Compact & Clean) --- */

/* Home Section Overrides */
.home-section {
    padding: 50px 0;
    /* Reduced from 80/100px */
    background: #fff;
    border-bottom: 1px solid #f9f9f9;
}

.home-section.alt {
    background: #fbfbfb;
}

.home-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #111;
    margin-bottom: 25px;
    text-align: left;
    /* Left aligned as requested */
}

/* Product Cards (Clean, rounded, no heavy border) */
.product-card-clean {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    border: 1px solid transparent;
    /* Placeholder to prevent jump */
    border-radius: 12px;
    padding: 10px;
}

.product-card-clean:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #f0f0f0;
}

.product-card-clean .image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f4f4f4;
    margin-bottom: 15px;
}

.product-card-clean img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-clean:hover img {
    transform: scale(1.04);
}

.product-card-clean .badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card-clean h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.product-card-clean .price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
    text-align: left;
}

/* Category Grid (Compact) */
.category-grid-compact {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 per row for desktop */
    gap: 15px;
}

@media (max-width: 992px) {
    .category-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 10px;
    background: #fff;
    border: 1px solid #edf2f7;
    /* Very subtle border */
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    height: 100%;
}

.category-card-modern:hover {
    border-color: #000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card-modern i {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #111;
}

.category-card-modern span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Questions Box Compact */
.questions-box {
    background: #000;
    color: #fff !important;
    /* Force text white */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0 !important;
    /* Glue to footer */
    border-bottom: none !important;
}

.questions-box h2 {
    color: #fff !important;
    /* Specific white override for title */
}

.questions-box p {
    color: #ccc !important;
}

/* --- ELEGANT REDESIGN V7 (Flat, No Shadows, Tight Spacing) --- */

/* Tight Layout */
.home-section {
    padding: 25px 0 !important;
    /* Drastically reduced spacing */
    border-bottom: 1px solid #f5f5f5;
}

.home-section h2.home-title {
    margin-bottom: 20px;
    font-size: 1.8rem;
    /* Slightly smaller for tight feel */
}

/* NO SHADOWS - Flat Design */
.hero-carousel-container,
.product-card-pro,
.product-card-pro:hover,
.category-card-classic,
.category-card-classic:hover,
.questions-box,
.btn-elegant,
.badge-overlay {
    box-shadow: none !important;
    /* Strict no-shadow rule */
}

/* Product Card - Flat & Bordered */
.product-card-pro {
    border: 1px solid #eee;
}

.product-card-pro:hover {
    border-color: #000;
    /* High contrast black border on hover instead of shadow */
    transform: translateY(-2px);
    /* Reduced movement */
}

/* Category Icons - TEMPLATE BLUE */
.category-card-classic i {
    color: var(--brand-primary) !important;
    /* Force Template Blue */
}

.category-card-classic:hover {
    border-color: var(--brand-primary);
    background: #f8faff;
    /* Very subtle blue tint */
}

.category-card-classic span {
    color: #333;
}

.category-card-classic:hover span {
    color: var(--brand-primary);
}

/* Improved 'Ver Todo' Buttons - Clean Design */
.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-see-all:hover {
    color: var(--brand-secondary);
}

.btn-see-all i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-see-all:hover i {
    transform: translateX(3px);
}

/* Section Header with Line */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.section-header .home-title {
    margin-bottom: 0 !important;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}


/* --- ELEGANT REDESIGN V6 (Professional Brand & 5 Cols) --- */

/* 5 Column Grid */
.grid-5-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .grid-5-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-5-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-5-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Home Section Headers */
@media (max-width: 576px) {
    .home-section {
        padding: 18px 0 !important;
    }

    .home-section h2.home-title,
    .home-title {
        font-size: 0.8rem;
    }

    .btn-see-all i {
        font-size: 0.75rem;
    }

    .section-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .section-header .home-title {
        font-size: 1.1rem !important;
    }

    .elegant-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Professional Product Card (Brand Colors) */
.product-card-pro {
    background: #fff;
    border: 1px solid #e1e7ec;
    /* Clean subtle border */
    border-radius: 8px;
    /* Classic radius */
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.product-card-pro:hover {
    border-color: var(--brand-primary);
    /* Brand Blue Border */
    box-shadow: 0 5px 20px rgba(26, 59, 115, 0.15);
    /* Blue-ish shadow */
    transform: translateY(-5px);
}

.product-card-pro .image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px;
}

.product-card-pro img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure product is fully visible */
    transition: transform 0.4s;
}

.product-card-pro:hover img {
    transform: scale(1.05);
}

.product-card-pro .badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Unique Badges */
.badge-new {
    background: var(--brand-primary);
    color: #fff;
}

.badge-sale {
    background: var(--brand-secondary);
    color: #fff;
}



.product-card-pro .details {
    padding: 15px;
    text-align: left;
}

.product-card-pro h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-pro .price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-primary);
    /* Brand Blue Price */
}

.product-card-pro .price .old-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
    font-weight: 400;
}

/* Category Card (Restored Colors + Professional Grid) */
.category-card-classic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.category-card-classic:hover {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* IMPORTANT: We will rely on inline styles or helper classes for icon colors as requested */
.category-card-classic i {
    font-size: 2rem;
    margin-bottom: 12px;
    transition: transform 0.2s;
    /* Color handled by utility classes */
}

.category-card-classic:hover i {
    transform: scale(1.1);
}

.category-card-classic span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

.category-card-classic:hover span {
    color: var(--brand-primary);
}

/* ======================================== */
/* PROFESSIONAL DASHBOARD V3 - Clean & Premium */
/* ======================================== */

/* --- Page Layout --- */
.page-section {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 35px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* --- Cards V3: Ultra Clean --- */
.v3-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.v3-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v3-card-header h5,
.v3-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.v3-card-body {
    padding: 24px;
}

/* --- Profile Header V3 --- */
.profile-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-email {
    opacity: 0.85;
    font-size: 0.9rem;
}

/* --- Status Badges V3 --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-info {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #e0e7ff;
    color: #3730a3;
}

/* --- Order Card V3 --- */
.order-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.order-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.order-icon-primary {
    background: #eff6ff;
    color: #3b82f6;
}

.order-icon-success {
    background: #ecfdf5;
    color: #10b981;
}

.order-icon-warning {
    background: #fffbeb;
    color: #f59e0b;
}

/* --- Cart V3 --- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item-row {
        flex-wrap: wrap;
        position: relative;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-details {
        flex: 1 1 calc(100% - 90px);
        /* Fill rest of line next to image */
        min-width: 160px;
    }

    .qty-control {
        margin-top: 8px;
    }

    .cart-item-row .text-end {
        position: absolute;
        bottom: 16px;
        right: 50px;
        /* Space for delete button */
    }

    .cart-item-row .btn.text-danger,
    .cart-item-row button[title="Eliminar"] {
        position: absolute;
        top: 12px;
        right: 12px;
        background: transparent !important;
        border: none;
    }
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.cart-item-row:hover {
    background: #f8fafc;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #f1f5f9;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #64748b;
    font-size: 0.9rem;
}

.cart-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* --- Checkout V3 --- */
.checkout-section {
    margin-bottom: 28px;
}

.checkout-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .payment-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.payment-option-label {
    display: block;
    cursor: pointer;
}

.payment-option-label input {
    display: none;
}

.payment-option-box {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.2s;
}

.payment-option-box:hover {
    background: #f1f5f9;
}

.payment-option-label input:checked+.payment-option-box {
    background: #eff6ff;
    border-color: #3b82f6;
}

.payment-option-icon {
    font-size: 1.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s;
}

.payment-option-label input:checked+.payment-option-box .payment-option-icon {
    color: var(--brand-primary);
}

.payment-option-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

/* --- Buttons V3 (Brand Colors, No Shadows) --- */
.btn-v3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-v3-primary {
    background: var(--brand-primary);
    color: white;
}

.btn-v3-primary:hover {
    background: rgb(22, 50, 98);
    color: white;
}

.btn-v3-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-v3-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-v3-danger {
    background: var(--brand-secondary);
    color: white;
}

.btn-v3-danger:hover {
    background: rgb(200, 25, 52);
    color: white;
}

/* --- Custom Text Styles (No Bootstrap) --- */
.text-total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
}

.text-subtotal {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.text-free {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-muted-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Profile Hero (Brand Colors) --- */
.profile-hero {
    background: linear-gradient(135deg, rgb(var(--wd-primary-color)) 0%, rgb(30, 70, 140) 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.profile-name {
    color: white !important;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-email {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}


/* --- Professional Info Boxes (Subtle & Clean) --- */
.info-box {
    display: flex;
    align-items: center;
    /* Centered alignment for cleaner look */
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.info-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.info-box-content h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 0.95rem;
}

.info-box-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Security - Trust (Blue/Grey - Professional) */
.info-box-security {
    background: #f0f9ff;
    /* Slightly stronger blue */
    border: 1px solid #bae6fd;
    /* Full border instead of left border */
}

.info-box-security .info-box-icon {
    background: white;
    color: #0284c7;
    border: 1px solid #e0f2fe;
}

/* Success - Confirmed (Centered & Large) */
.info-box-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    flex-direction: column;
    /* Stack vertical */
    text-align: center;
    padding: 32px;
}

.info-box-success .info-box-icon {
    background: #dcfce7;
    color: #15803d;
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.info-box-success .info-box-content h6 {
    color: #14532d;
    font-size: 1.35rem;
    /* Larger title */
    margin-bottom: 8px;
}

.info-box-success .info-box-content p {
    color: #166534;
    font-size: 1rem;
}

/* Help - Support (Clean White) */
.info-box-help {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.info-box-help .info-box-icon {
    background: #f8fafc;
    color: var(--brand-primary);
}

/* Pending - Dashed Style (Restored & Colored) */
.status-box-dashed {
    text-align: center;
    padding: 30px;
    background: #fffbeb;
    border: 2px dashed #fcd34d;
    border-radius: 16px;
    margin-bottom: 20px;
}

.status-box-dashed i {
    font-size: 2.5rem;
    color: #d97706;
    display: block;
    margin-bottom: 12px;
}

.status-box-dashed h6 {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

.status-box-dashed p {
    color: #b45309;
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* --- Quantity Control V3 --- */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f1f5f9;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-value {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Address Selector --- */
.address-selector {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.address-option {
    display: block;
    cursor: pointer;
}

.address-option input {
    display: none;
}

.address-box {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s;
}

.address-box:hover {
    background: #f1f5f9;
}

.address-option input:checked+.address-box {
    border-color: var(--brand-primary);
    background: #eff6ff;
}

.address-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.address-text {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Qty Input */
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Checkout Modal & Button */
.btn-confirm-lg {
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.checkout-modal-overlay.active {
    opacity: 1;
}

.checkout-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.checkout-modal-overlay.active .checkout-modal-content {
    transform: scale(1);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4); REMOVED SHADOW */
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-checkmark i {
    font-size: 40px;
    color: white;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* WhatsApp Button */
.btn-v3-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-v3-whatsapp:hover {
    background: #128c7e;
    color: white;
}

/* --- Modern Navigation Links --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-modern {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
}

.nav-link-modern:hover {
    color: var(--brand-primary);
    background: #f1f5f9;
}

.nav-link-modern.active {
    color: #fff;
    background: var(--brand-primary);
}

/* --- Mobile Navigation Menu --- */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.1rem;
    color: var(--brand-primary);
    width: 24px;
    text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--brand-primary);
    background: #f1f5f9;
}

.mobile-nav-item.active {
    color: #fff;
    background: var(--brand-primary);
}

.mobile-nav-item.active i {
    color: #fff;
}

/* Mobile Menu Offcanvas Width */
.mobile-menu-offcanvas {
    max-width: 70%;
    width: 70%;
}

/* Mobile Menu Buttons */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-radius: 0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border: none;
}

.mobile-menu-btn-primary:hover {
    background: #0d3a7a;
    color: #fff;
}

.mobile-menu-btn-danger {
    background: #f1f5f9;
    color: #dc2626;
    border: none;
}

.mobile-menu-btn-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Mobile Profile Icon (Header) */
.header-profile-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.header-profile-mobile:hover {
    color: var(--brand-primary);
}

/* --- KASTAYM Login Page Styles (Option C) --- */
.auth-card-kastaym {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.auth-card-topline {
    display: none;
}

.auth-logo-img {
    text-align: center;
}

.auth-header {
    text-align: center;
}

/* Material Design Inputs */
.input-group-material {
    position: relative;
}

.input-material {
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-material:focus {
    border-color: var(--brand-primary);
    background: #fff;
}

.input-material::placeholder {
    color: #94a3b8;
}

.input-icon-material {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-material:focus+.input-icon-material,
.input-group-material:focus-within .input-icon-material {
    color: var(--brand-primary);
}

/* KASTAYM Button */
.auth-btn-kastaym {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--brand-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn-kastaym:hover {
    background: #0d3a7a;
    transform: translateY(-1px);
}

.auth-btn-kastaym:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Welcome Badge KASTAYM */
.user-welcome-badge-kastaym {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-avatar-kastaym {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
}

/* --- Catalogos Page Styles --- */
.catalog-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.catalog-img-wrapper {
    height: 320px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    display: block;
}

.catalog-img-wrapper img {
    object-fit: contain;
    transition: transform 0.5s;
    width: 100%;
    height: 100%;
}

/* --- Pagination Clean (Flat) --- */
.pagination-clean {
    display: inline-flex;
    gap: 4px;
    /* Tighter gap for text */
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.page-btn {
    padding: 8px 16px;
    /* Rectangular for text */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    /* Slight radius */
    font-size: 0.9rem;
    background: #fff;
}

.page-btn:hover {
    background-color: #f8f9fa;
    color: #000;
    border-color: #dae0e5;
    transform: none;
    /* No movement */
    box-shadow: none;
    /* No shadow */
}

.page-btn.active {
    background-color: #212529;
    /* Dark brand */
    color: white;
    border-color: #212529;
    box-shadow: none;
}

.page-btn.disabled {
    color: #adb5bd;
    pointer-events: none;
    background: #f8f9fa;
    border-color: #e9ecef;
}


/* --- Alpha Filter Bar --- */
.alpha-filter-container {
    padding: 6px;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrap on mobile, but tight enough for desktop line */
    align-items: center;
    justify-content: center;
    gap: 3px !important;
}

.alpha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #495057;
    /* Dark Grey */
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    /* Small font */
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 26px;
    /* Compact */
    border: 1px solid transparent;
    text-transform: uppercase;
}

.alpha-btn:hover {
    background: #6c757d;
    color: #fff;
    transform: none;
    /* No movement */
}

.alpha-btn.active {
    background: var(--brand-primary);
    /* Brand Navy */
    color: white;
    box-shadow: none;
    /* No Shadow */
    border-color: var(--brand-primary);
}


/* Hover Overlay for Cards */
.product-card-pro:hover .hover-overlay,
.catalog-card:hover .hover-overlay {
    opacity: 1 !important;
}

/* Catalog Page Card Styles */
.catalog-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.catalog-img-wrapper {
    height: 320px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Catalog Button Hover */
.catalog-card .btn-dark {
    transition: all 0.2s ease;
}

.catalog-card .btn-dark:hover {
    transform: translateY(-2px);
}

/* Brand Card Styles */
.brand-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.brand-logo {
    height: 100px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0.5rem 0;
}

.brand-count {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.25rem 0 0.75rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.brand-link:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

.alpha-btn:hover {
    background: #6c757d;
    color: #fff;
    transform: none;
    /* No movement */
}

.alpha-btn.active {
    background: var(--brand-primary);
    /* Brand Navy */
    color: white;
    box-shadow: none;
    /* No Shadow */
    border-color: var(--brand-primary);
}

/* --- Checkout Premium Styles (Checkout V2) --- */
.cp-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #adb5bd;
    margin-bottom: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.cp-input-container {
    position: relative;
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cp-input-container:focus-within {
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.cp-input-container .cp-input-icon {
    font-size: 1.4rem;
    color: #adb5bd;
    /* Neutral Gray */
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.cp-input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
    width: 100%;
    outline: none;
    letter-spacing: 0.5px;
    padding: 5px 0;
}

.cp-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.cp-action-btn {
    background: #000;
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.cp-action-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cp-action-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cp-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}

.cp-form-control {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    width: 100%;
}

.cp-form-control:focus {
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    outline: none;
}

.cp-helper-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
    padding-left: 4px;
}

/* --- Phone Input with Country Selector (Professional) --- */
.phone-input-group {
    position: relative;
    /* Needed for dropdown positioning */
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.phone-input-group:focus-within {
    border-color: #e2e8f0;
    /* Same as default - no color change */
    background: #fff;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.country-selector-btn:hover {
    background: #f1f5f9;
}

.country-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: block;
}

.country-code-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1;
}

.phone-input {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
    border: none;
    outline: none;
}

.phone-input::placeholder {
    color: #94a3b8;
}

/* Action button inside phone input group */
.phone-input-group .cp-action-btn {
    height: auto;
    width: 52px;
    margin: 0;
    border-radius: 0 8px 8px 0;
    border-left: 1px solid #e2e8f0;
    align-self: stretch;
}

/* Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    padding: 6px;
}

.country-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
    font-size: 0.95rem;
    color: #475569;
}

.country-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.country-item.selected {
    background: #eff6ff;
    color: var(--brand-primary);
    font-weight: 500;
}

.country-item-flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================== */
/* ===  FINAL MOBILE FIXES (RESTORING CONTRAST) === */
/* ============================================== */

/* --- 1. LOGIN PAGE - CLEAN WHITE DESIGN --- */
.auth-wrapper {
    background: #ffffff;
    /* Very subtle gray for contrast */
    min-height: 85vh;
    /* Reduced from 100vh as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Card with visible border and radius */
.auth-card,
.auth-card-kastaym {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
}

/* Mobile Login - Complete Redesign */
@media (max-width: 576px) {
    .auth-wrapper {
        align-items: flex-start;
        padding: 20px 16px;
        /* Reduced top padding */
        min-height: auto;
        /* Remove fixed height on mobile to delete bottom space */
        background: #ffffff;
    }

    .auth-card,
    .auth-card-kastaym {
        padding: 32px 24px !important;
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        width: 100%;
        max-width: 100%;
    }

    /* Center all text content */
    .auth-header {
        text-align: center !important;
        margin-bottom: 24px;
    }

    .auth-logo-img {
        display: flex !important;
        justify-content: center !important;
    }

    .auth-header h1,
    .auth-header .h4 {
        font-size: 1.25rem !important;
        color: #1e293b;
        text-align: center !important;
        margin-bottom: 8px;
    }

    .auth-header p {
        text-align: center !important;
        color: #64748b;
        font-size: 0.9rem;
    }

    /* Form label */
    .form-label,
    label {
        text-align: left !important;
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #475569;
        margin-bottom: 8px;
    }

    /* Phone input group - center it */
    .phone-input-group,
    .input-group-material {
        width: 100%;
        display: flex;
        align-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: visible;
        /* Changed from hidden to visible so dropdown can show */
        background: #ffffff;
    }

    .country-selector-btn {
        border: none !important;
        border-right: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        background: #f8fafc !important;
        padding: 14px 12px;
        min-width: 85px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        cursor: pointer;
    }

    /* Ensure flags are properly sized on mobile - but don't override display */
    .country-selector-btn .country-flag,
    .country-selector-btn svg.country-flag {
        width: 22px !important;
        height: 15px !important;
        min-width: 22px !important;
        min-height: 15px !important;
        flex-shrink: 0;
        /* display is controlled by inline style and JavaScript */
    }

    /* Flag visibility is handled by JavaScript and inline styles */
    /* No !important overrides needed - default state is set in HTML */

    .country-code-text {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1e293b;
    }

    /* FIX: Button visibility on mobile - Improved Logic */
    .phone-input-group .cp-action-btn {
        width: 50px !important;
        min-width: 50px !important;
        flex: 0 0 50px !important;
        /* Force fixed flex width */
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        border-radius: 0 10px 10px 0 !important;
        border-left: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Force input to shrink */
    .phone-input-group .phone-input {
        width: 10px !important;
        /* Hack to force flex shrink */
        min-width: 10px !important;
        flex: 1 1 auto !important;
    }

    .phone-input-group .cp-action-btn i {
        font-size: 1.2rem;
        color: #333;
    }

    color: #333;
}

/* Country dropdown menu on mobile */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
}

.country-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-item-flag {
    width: 22px;
    height: 15px;
}

.phone-input {
    border: none !important;
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
}

.phone-input:focus {
    outline: none;
    box-shadow: none;
}

/* Center the submit button */
.auth-btn-kastaym {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 16px;
}

/* Center the back link */
.auth-card .text-center {
    text-align: center !important;
}

.auth-card a.small {
    color: #64748b;
    font-size: 0.875rem;
}
}

/* --- 2. ABOUT / NOSOTROS PAGE FIXES --- */
@media (max-width: 768px) {

    /* Hero Text - Smaller to prevent text cutting */
    .elegant-title-large {
        font-size: 1.6rem !important;
        line-height: 1.3;
        letter-spacing: 0;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }

    .elegant-hero-box {
        padding: 60px 20px;
        text-align: center;
    }

    .elegant-subtitle {
        font-size: 1.1rem !important;
        opacity: 0.9;
        margin-top: 1.5rem;
    }

    /* Content Layout */
    .elegant-grid-2 {
        display: block !important;
        /* Force block layout */
    }

    .elegant-grid-2>div {
        width: 100% !important;
        margin-bottom: 40px;
    }

    /* Fix text block */
    .elegant-text-block h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    /* Stats Row */
    .elegant-text-block .mt-5 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
    }

    .elegant-text-block .mt-5>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Hide divider line on mobile */
    .elegant-text-block .mt-5>div[style*="width: 1px"] {
        display: none;
    }

    /* Decorative Box */
    div[style*="background: #111"] {
        padding: 40px 20px !important;
        border-radius: 16px;
    }

    /* Advantages Grid */
    .elegant-grid-3 {
        grid-template-columns: 1fr !important;
        /* Single column */
        gap: 20px;
    }
}

/* --- 3. BRAND & GENERAL FIXES --- */
@media (max-width: 576px) {

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        position: relative;
    }

    .container,
    .elegant-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 5 cols -> 2 cols on mobile */
    .grid-5-cols {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .brand-card {
        padding: 15px;
    }

    .brand-logo {
        height: 50px;
        object-fit: contain;
    }
}

/* ============================================== */
/* ===  KASTAYM LOGIN REDESIGN (CUSTOM CSS)   === */
/* ============================================== */

.kastaym-login-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
}

.kastaym-login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    overflow: visible;
}

.kastaym-header {
    text-align: center;
    margin-bottom: 32px;
}

.kastaym-logo-img {
    height: 48px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.kastaym-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.kastaym-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.kastaym-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-align: left;
}

.kastaym-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kastaym-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.kastaym-country-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    min-width: 95px;
    justify-content: center;
}

.kastaym-flag {
    width: 24px !important;
    height: 16px !important;
    display: inline-block !important;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
}

.kastaym-code {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.kastaym-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 1.1rem;
    color: #1e293b;
    background: transparent;
    width: 100%;
}

.kastaym-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 24px;
    letter-spacing: 0.5px;
}

.kastaym-btn:active {
    transform: scale(0.98);
}

.kastaym-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: underline;
}

/* Custom Dropdown */
.kastaym-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 8px;
    padding: 8px;
    display: none;
}

.kastaym-dropdown.show {
    display: block;
}

.kastaym-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.kastaym-option:hover {
    background: #f1f5f9;
}

.kastaym-option.selected {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .kastaym-login-wrapper {
        align-items: flex-start;
        padding-top: 40px;
        background: #ffffff;
    }

    .kastaym-login-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .kastaym-header {
        margin-bottom: 24px;
    }

    .kastaym-title {
        font-size: 1.4rem;
    }

    /* Ensure flags are visible */
    svg.kastaym-flag {
        display: inline-block !important;
        visibility: visible !important;
    }
}


/* SVG Flag Styles */
.kastaym-flag {
    width: 20px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   REFACTOR PHASE 2: PRODUCTS & LAYOUT
   ============================================ */

/* --- PRODUCT CARDS (from products/index.php) --- */
.product-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.product-details {
    padding: 1rem;
}

.product-image-wrapper {
    background: #fff;
    border-bottom: 1px solid #f1f3f5;
}

.btn-pagination {
    border: 1px solid #e9ecef;
    background: #fff;
    color: #1a1a1a;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-pagination:hover {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-search-form {
    max-width: 400px;
}

.btn-search-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.product-img-contain {
    object-fit: contain;
    padding: 10px;
    width: 100%;
    height: 100%;
}

/* --- PRODUCT DETAIL: RICH TEXT (from products/detail.php) --- */
.rich-text-content {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.55;
}

.rich-text-content p {
    margin-bottom: 0.4rem;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content p:empty,
.rich-text-content p br:only-child {
    display: block;
}

.rich-text-content p:has(> br:only-child) {
    margin-bottom: 0.15rem;
    line-height: 0.5;
}

.rich-text-content br {
    content: "";
    display: block;
    margin-top: 0.1rem;
}

.rich-text-content ul {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.rich-text-content ol {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    list-style-type: decimal;
}

.rich-text-content li {
    margin-bottom: 0.2rem;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.rich-text-content h1:first-child,
.rich-text-content h2:first-child {
    margin-top: 0;
}

.rich-text-content strong,
.rich-text-content b {
    font-weight: 600;
    color: #2d3748;
}

.rich-text-content a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.rich-text-content blockquote {
    border-left: 3px solid #e2e8f0;
    padding-left: 0.75rem;
    margin: 0.35rem 0;
    color: #64748b;
    font-style: normal;
}

.rich-text-content blockquote:empty {
    display: none;
}

/* --- PRODUCT DETAIL: TABS & LAYOUT --- */
@media (max-width: 768px) {
    .site-header {
        display: none !important;
    }

    .site-main {
        padding-top: 0 !important;
    }

    .whatsapp-bar-float {
        display: none !important;
    }
}

/* Mobile Tabs */
.product-details-section {
    margin-bottom: 1.5rem;
}

.product-details-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.product-details-tabs .tab-btn {
    padding: 0.75rem 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.product-details-tabs .tab-btn:hover {
    color: var(--text-main);
}

.product-details-tabs .tab-btn.active {
    color: var(--brand-primary);
}

.product-details-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
}

.product-details-content {
    padding: 0;
}

.product-details-pane {
    display: none;
}

.product-details-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Desktop Tabs */
.product-tabs-modern {
    margin-top: 3rem;
}

.modern-tabs-container {
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.modern-tabs-container .nav-link-tab {
    padding: 1rem 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
    position: relative;
    text-decoration: none;
}

.modern-tabs-container .nav-link-tab:hover {
    color: var(--text-main);
}

.modern-tabs-container .nav-link-tab.active {
    color: var(--brand-primary);
}

.modern-tabs-container .nav-link-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
}

/* Hero Slider (Mobile) */
.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero-slider::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.mobile-thumb {
    transition: border-color 0.2s;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    cursor: pointer;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
    background: #fff;
}

.product-hero-image-container {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 16px;
}

.product-hero-mobile-h {
    height: 350px !important;
    max-height: 350px !important;
}

/* Mobile Actions */
.btn-nav-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    padding: 0 !important;
}

.btn-cart-action {
    background: var(--brand-primary);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-cart-action:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-whatsapp-action {
    background: #25D366;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.btn-whatsapp-action:hover {
    background: #1da851;
    transform: translateY(-2px);
    color: white;
}

/* Trust Badges */
.trust-badge-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    font-size: 1.25rem;
    color: var(--brand-primary);
}

/* --- GLOBAL HEADER (from layout/main.php) --- */
.header-line-custom {
    border-bottom: 1px solid #e0e0e0 !important;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.nav-link-modern {
    font-size: 0.9rem !important;
    color: #1a1a1a;
    font-weight: 400 !important;
    position: relative;
    text-decoration: none;
    padding: 12px 0;
    line-height: 1;
    display: inline-block;
}

.nav-link-modern:hover {
    color: #000;
    background-color: transparent !important;
}

.logo-header-img {
    max-height: 60px;
    width: auto;
}

.header-search-form-desktop {
    max-width: 600px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #212529;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
}

/* --- LAYOUT UTILITIES (from layout/main.php) --- */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -18px;
    min-width: 18px;
    height: auto;
    padding: 2px 5px;
    background: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    white-space: nowrap;
    line-height: 1;
}

.mobile-menu-logo {
    max-height: 40px;
}

/* ============================================
   REFACTOR PHASE 1: AUTH & CHECKOUT (Restored)
   ============================================ */

/* --- AUTH STYLES (from login.php) --- */
.auth-logo-container {
    display: flex;
    justify-content: center;
}

.auth-logo-container img {
    max-height: 48px;
    width: auto;
}

.auth-alert {
    font-size: 0.9rem;
}

.auth-alert .btn-close {
    padding: 0.75rem;
}

.country-selector-btn-auto {
    min-width: auto;
}

/* --- CHECKOUT STYLES (from checkout.php) --- */
.badge-default-addr {
    font-size: 0.7rem;
    margin-left: 8px;
}

.checkout-summary-row-shipping {
    border: none;
    padding-top: 16px;
}

.account-completion-box {
    display: none;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ============================================
   REFACTOR PHASE 3: UPLOAD PROOF
   ============================================ */

.upload-proof-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Status variants for the icon container */
.upload-proof-icon-default {
    background: #eff6ff;
    color: #3b82f6;
}

.upload-proof-icon-success {
    background: #dcfce7;
    color: #166534;
}

.upload-proof-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.2s;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.upload-proof-dropzone:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.upload-proof-dropzone.dragover {
    background-color: #d1e7dd;
    border-color: #198754;
}

.upload-proof-dropzone.has-file {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: #198754;
}

.upload-proof-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-proof-text {
    color: #64748b;
    font-size: 0.9rem;
}

/* FIX: Circular Search Button on Products Page */
.btn-search-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    /* Crucial for centering icon */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50% !important;
}