/* ============================================
   RAHIK-I MAHTUM - E-TICARET TASARIM SİSTEMİ
   Innovative Blue Modern Design
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN SYSTEM - CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Modern Innovative Blue Palette */
    --primary: #0EA5E9;
    --primary-light: #38BDF8;
    --primary-dark: #0284C7;
    --secondary: #6366F1;
    --secondary-light: #818CF8;
    --accent: #F43F5E;
    --accent-light: #FB7185;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-overlay: rgba(15, 23, 42, 0.9);

    /* Text */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;
    --text-on-primary: #FFFFFF;

    /* Status */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Borders */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Shadows - Lightened for premium feel */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow: 0 4px 8px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-md: 0 10px 20px -3px rgb(0 0 0 / 0.07), 0 4px 8px -4px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 20px 30px -5px rgb(0 0 0 / 0.08), 0 8px 15px -6px rgb(0 0 0 / 0.08);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

    /* Typography */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizes */
    --header-height: 72px;
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    /* Premium Full-Screen Nature Background */
    background-image: url('../img/nature_bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Content wrapper overlay to ensure readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.74);
    /* Increased visibility for nature bg */
    backdrop-filter: blur(2px);
    /* Subtle soft focus */
    -webkit-backdrop-filter: blur(2px);
    z-index: -1;
    pointer-events: none;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 12px 20px;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb .separator {
    opacity: 0.4;
    font-size: 0.7rem;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 500;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

/* ============================================
   TABS SYSTEM
   ============================================ */
.tabs-container {
    margin-top: 24px;
}

.tabs-nav {
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f5f9;
    /* Lighter background */
    padding: 8px;
    /* More padding */
    border-radius: 50px;
    /* Full rounded */
    margin-bottom: 40px;
    gap: 0;
    border-bottom: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Inner subtle shadow */
}

.tabs-nav button.tab-btn {
    padding: 12px 40px;
    /* Larger click area */
    background: transparent !important;
    border: none !important;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.tabs-nav button.tab-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5) !important;
}

.tabs-nav button.tab-btn.active {
    background: #fff !important;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: scale(1.02);
    /* Subtle popup effect */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.5s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    /* Added shadow to make it pop */
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   TOP BAR
   ============================================ */
/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.top-bar-link:hover {
    color: #fff;
}

.top-bar-link i {
    width: 16px;
    height: 16px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-icon i {
    width: 16px;
    height: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    /* Lightened shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img,
.logo a img {
    max-height: 90px !important;
    /* Optimized height */
    width: auto !important;
    display: block;
    /* Removes weird spacing */
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 14px 24px;
    padding-right: 55px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.header-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.header-search button i {
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: var(--transition);
    text-decoration: none;
}

.header-btn:hover {
    color: var(--primary);
}

.header-btn i {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.header-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-btn-text small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.header-btn-text span {
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-weight: 700;
}

.cart-badge.bump {
    animation: badgeBump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

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

.btn-success-temporary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.menu-toggle {
    display: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    background: var(--primary);
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-list>li {
    position: relative;
}

.nav-list>li>a {
    padding: 14px 24px;
    color: #fff;
    font-weight: 500;
    display: block;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-list>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1000;
    border-top: 3px solid var(--accent);
    padding: 10px 0;
}

.nav-list>li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 24px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    padding-left: 28px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 480px;
    border-radius: var(--radius-lg);
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 480px;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.slide-content {
    max-width: 550px;
    color: #fff;
}

.slide-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-btn {
    display: inline-flex;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.slider-btn:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: #fff;
    color: var(--primary);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 30px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #fff;
    width: 50px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #fff;
    /* Ensure white background */
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Standardized shadow */
    position: relative;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fff;
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-sale {
    background: var(--danger);
    color: #fff;
}

.badge-new {
    background: var(--primary);
    color: #fff;
}

.product-quick-actions {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

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

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-old {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--danger);
    background: #FEE2E2;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.product-card-footer {
    padding: 0 20px 20px;
}

.btn-add-cart {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.23);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: #fff;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px;
    /* Added padding */
    margin: 40px 0;
    background: #fff;
    /* White background for boxed look */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.product-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #fff;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.category-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}

.product-price-box .price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ============================================
   PRODUCT META & QUANTITY
   ============================================ */
.product-meta {
    margin-bottom: 32px;
    padding: 16px 0;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.95rem;
}

.product-meta-label {
    color: var(--text-secondary);
    min-width: 110px;
}

.product-meta-value {
    font-weight: 600;
}

.stock-in {
    color: var(--success);
}

.stock-out {
    color: var(--danger);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 24px;
    background: #fff;
}

.quantity-selector button {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--primary);
    color: #fff;
}

.quantity-selector input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    outline: none;
    -moz-appearance: textfield;
    appearance: none;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   PRODUCT DESCRIPTION TABS
   ============================================ */
.product-description-tabs {
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.product-full-description {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

.product-full-description p {
    margin-bottom: 16px;
}

.product-full-description ul,
.product-full-description ol {
    padding-left: 20px;
    margin: 16px 0;
    list-style: initial;
}

.product-full-description li {
    margin-bottom: 8px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.cart-product-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.cart-item-price-each {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    min-width: 120px;
    text-align: right;
}

.btn-remove {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    background: var(--danger);
    color: #fff;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.cart-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Shipping Progress Bar */
.shipping-progress {
    margin: 20px 0;
}

.shipping-progress-text {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

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

.progress-bar-container {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.free-shipping-success {
    background: #ecfdf5;
    color: #059669;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid #10b981;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.checkout-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.checkout-section h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
}

.checkout-section h3 span {
    font-size: 1.1rem;
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-card {
    position: relative;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.address-card:hover {
    border-color: var(--primary-light);
    background: #fff;
}

.address-card input[type="radio"] {
    position: absolute;
    right: 20px;
    top: 22px;
    width: 18px;
    height: 18px;
}

.address-card.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.bank-info {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.bank-info:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.bank-info h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.bank-info .iban {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: block;
    margin-top: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.summary-item-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.summary-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    line-height: 1.3;
}

.summary-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkout-summary-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-light);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.auth-content {
    padding: 40px;
}

.auth-card h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25);
    border: 4px solid #fff;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-fullname {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.account-nav {
    padding: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-item i {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-item.active {
    background: #E0F2FE;
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary);
}

.nav-logout {
    margin-top: 12px;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    color: var(--danger);
}

.nav-logout:hover {
    background: #FEF2F2;
    color: var(--danger);
}

/* Account Content Card */
.account-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    padding: 32px;
    animation: fadeInUp 0.5s ease;
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Order Table */
.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.order-table th {
    padding: 0 16px 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
}

.order-table td {
    background: #fff;
    padding: 20px 16px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.order-table tr td:first-child {
    border-left: 1px solid var(--border-light);
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.order-table tr td:last-child {
    border-right: 1px solid var(--border-light);
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    text-align: right;
}

.order-table tr {
    transition: var(--transition);
}

.order-table tr:hover td {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
}

/* Address Box */
.address-box {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.address-box:hover {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.badge-default {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.address-header {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.address-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.address-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.fade-in {
    animation: fadeInUp 0.5s ease both;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    margin-top: 80px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    /* Lightened upward shadow */
    position: relative;
    z-index: 10;
}

.footer h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin: 20px 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact .icon {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .top-bar {
        display: none;
    }

    /* Header & Mobile Nav */
    .header-inner {
        padding: 10px 0;
    }

    .header-search {
        display: none;
        /* Hide desktop search */
    }

    .header-search.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 15px 20px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .header-search.active input {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        color: var(--text-primary);
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-light);
        padding-bottom: 40px;
        /* Safe area for bottom scrolling */
    }

    .nav.active {
        transform: translateX(0);
        height: calc(100vh - var(--header-height));
        visibility: visible;
        opacity: 1;
        padding: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-list>li>a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-light);
    }

    .nav-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        background: var(--bg-secondary);
    }

    .nav-list>li:hover .nav-dropdown,
    .nav-dropdown.open {
        display: block;
        padding: 0;
        background: rgba(0, 0, 0, 0.02);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .burger-toggle.active {
        background: var(--primary-light);
        color: var(--primary);
        border-color: var(--primary);
    }

    /* Hero Slider */
    .hero-slider {
        height: 320px;
        margin-top: 15px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    /* Grids */
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Sections */
    section {
        padding: 40px 15px !important;
        background: rgba(255, 255, 255, 0.9);
        /* Subtle background for sections */
        margin-bottom: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .features-section {
        padding: 40px 15px !important;
    }

    /* Account Layout */
    .account-layout {
        grid-template-columns: 1fr;
    }

    /* Product Detail */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .product-info-column {
        padding: 10px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .header-actions span {
        display: none;
        /* Hide text, keep icons */
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 240px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 1.4rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .tabs-nav {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-nav button.tab-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    /* Auth pages fix */
    .auth-content {
        padding: 20px 0;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Mobile Nav Enhancements */
    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        display: block !important;
        padding-top: 20px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-list>li>a {
        display: flex;
        padding: 16px 24px;
        width: 100%;
        font-weight: 600;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        background: #f8fafc;
    }

    .nav-list li:hover .nav-dropdown {
        display: block;
    }

    .nav-dropdown a {
        padding: 12px 24px 12px 40px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
}

/* --- Order Details --- */
.order-detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.order-title-group h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-meta {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.order-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-items-sec {
    margin-bottom: 32px;
}

.order-item-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
}

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

.order-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: #f8f8f8;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Force hide menu toggle on desktop */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}

.order-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.order-item-total {
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.order-footer-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border-light);
}

.order-address-box h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.order-address-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.order-summary-box {
    background: #f9fafb;
    padding: 24px;
    border-radius: var(--radius);
}

/* Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-bg-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-bg-confirmed {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-bg-preparing {
    background: #E0E7FF;
    color: #4338CA;
}

.status-bg-shipped {
    background: #F5F3FF;
    color: #6D28D9;
}

.status-bg-delivered {
    background: #D1FAE5;
    color: #065F46;
}

.status-bg-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
    }

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

    .order-item-img {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   DISCOUNT COUNTDOWN TIMER (Refined Premium UI)
   ============================================ */
.discount-timer-wrapper {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(212, 165, 116, 0.08) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(239, 68, 68, 0.15);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1);
    display: inline-block;
    min-width: 340px;
    position: relative;
    overflow: hidden;
}

.discount-timer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--danger);
}

.timer-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.discount-countdown {
    display: flex;
    gap: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-width: 68px;
    padding: 12px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--danger-light);
}

.timer-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .discount-timer-wrapper {
        display: block;
        min-width: auto;
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .discount-countdown {
        gap: 10px;
    }

    .timer-item {
        min-width: 60px;
        padding: 10px 8px;
    }

    .timer-val {
        font-size: 1.4rem;
    }
}

/* ============================================
   RESPONSIVE CART & CHECKOUT
   ============================================ */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .cart-product-image {
        width: 100%;
        max-width: 120px;
        height: 120px;
        margin-bottom: 8px;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
    }

    .cart-item-total {
        min-width: unset;
        text-align: left;
        order: 1;
        font-size: 1.25rem;
    }

    .quantity-selector {
        order: 2;
        margin-bottom: 0;
    }

    .btn-remove {
        order: 3;
    }

    .cart-item-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-actions-footer {
        flex-direction: column;
        gap: 12px;
    }

    .cart-actions-footer .btn {
        width: 100%;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-total {
        width: 100%;
        margin-bottom: 8px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
}

/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.cart-actions-footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Account Page Mobile Optimization --- */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }

    .account-sidebar {
        position: static;
        top: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .sidebar-header {
        display: none;
    }

    .account-nav {
        display: flex;
        overflow-x: auto;
        padding: 4px 16px;
        background: #fff;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        border-bottom: 1px solid var(--border-light);
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 10px 16px;
        font-size: 0.85rem;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
    }

    .nav-item.active {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .nav-item.active i {
        color: #fff;
    }

    .nav-logout {
        margin-top: 0;
        border-top: none;
        color: var(--danger);
        background: rgba(239, 68, 68, 0.05);
    }

    .account-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .card-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .order-detail-card {
        padding: 16px;
    }

    .order-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-item-total {
        width: 100%;
        text-align: right;
        padding-top: 8px;
        border-top: 1px dashed var(--border-light);
    }

    .order-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .order-address-box {
        padding: 0;
    }

    .order-summary-box {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .order-table {
        border-collapse: collapse;
    }

    .order-table thead {
        display: none;
    }

    .order-table tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border-light);
        margin-bottom: 16px;
        border-radius: var(--radius-lg);
        padding: 8px;
        box-shadow: var(--shadow-sm);
    }

    .order-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 8px !important;
        border: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        text-align: right;
        border-radius: 0 !important;
    }

    .order-table td:last-child {
        border-bottom: none !important;
        justify-content: center;
        padding-top: 16px !important;
    }

    .order-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .order-table td:empty::before {
        content: none;
    }
}

@media (max-width: 480px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .order-title-group h3 {
        font-size: 1.2rem;
    }

    .cargo-tracking-box {
        width: 100%;
    }

    .order-meta {
        gap: 12px;
        font-size: 0.85rem;
    }

    .table-responsive td {
        white-space: nowrap;
        font-size: 0.9rem;
    }
}

/* ============================================
   ADIN SHOES - MODERN FOOTWEAR BRAND UPGRADE
   ============================================ */

/* Top Bar Announcement */
.top-bar {
    background: #0F172A !important;
    color: #E2E8F0 !important;
    font-size: 0.82rem !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.top-bar-promo {
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E2E8F0;
}
.top-bar-promo strong {
    color: #FBBF24;
}

/* Navigation - Modern Shoe Store Style */
.nav {
    background: #FFFFFF !important;
    border-bottom: 2px solid #0F172A !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-list > li > a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    letter-spacing: 1px !important;
    color: #0F172A !important;
    padding: 16px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
}
.nav-list > li:hover > a,
.nav-list > li.active > a {
    color: #E11D48 !important;
    background: rgba(225, 29, 72, 0.05) !important;
}
.nav-dropdown {
    border-radius: 10px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.14) !important;
    border: 1px solid #E2E8F0 !important;
    padding: 10px 0 !important;
    background: #FFFFFF !important;
}
.nav-dropdown a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    color: #1E293B !important;
}
.nav-dropdown a:hover {
    background: #F8FAFC !important;
    color: #E11D48 !important;
    padding-left: 24px !important;
}

/* Visual Category Showcase Grid (3 Large Banners) */
.category-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.cat-banner-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-decoration: none;
}
.cat-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #FFFFFF;
}
.cat-banner-sub {
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #FBBF24;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cat-banner-overlay h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    margin-bottom: 8px;
    line-height: 1.2;
}
.cat-banner-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.cat-banner-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(15,23,42,0.18);
}
.cat-banner-item:hover img {
    transform: scale(1.08);
}
.cat-banner-item:hover .cat-banner-link {
    transform: translateX(6px);
    color: #FBBF24;
}
@media (max-width: 900px) {
    .category-banner-grid {
        grid-template-columns: 1fr;
    }
    .cat-banner-item {
        height: 220px;
    }
}

/* Product Cards - Premium Footwear Look */
.product-card {
    border-radius: 14px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}
.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(15,23,42,0.1) !important;
    border-color: #CBD5E1 !important;
}
.product-card-image {
    background: #F8FAFC !important;
    padding-top: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}
.product-card-image img {
    padding: 0 !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}
.product-card:hover .product-card-image img {
    transform: scale(1.07) !important;
}
.product-badge.badge-sale {
    background: #E11D48 !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    box-shadow: 0 4px 8px rgba(225,29,72,0.3) !important;
}
.product-badge.badge-new {
    background: #0F172A !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
}
.product-card-body {
    padding: 16px 18px 10px !important;
}
.product-card-category {
    font-size: 0.72rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
}
.product-card-title {
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}
.price-current {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
}
.price-old {
    color: #94A3B8 !important;
    font-size: 0.95rem !important;
}
.price-discount {
    background: #FFE4E6 !important;
    color: #E11D48 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}
.product-card-footer {
    padding: 0 18px 18px !important;
}
.btn-add-cart {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
}
.btn-add-cart:hover {
    background: #E11D48 !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 18px rgba(225,29,72,0.3) !important;
}

/* Features Section (Trust Badges) */
.features-section {
    background: #0F172A !important;
    color: #FFFFFF !important;
    padding: 60px 0 !important;
    margin-top: 40px;
}
.feature-card {
    text-align: center !important;
    padding: 20px 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.feature-card .feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08) !important;
    color: #FBBF24 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}
.feature-card h4 {
    color: #FFFFFF !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}
.feature-card p {
    color: #94A3B8 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}

/* Tabs Navigation - High Contrast */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.tab-btn {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    border: 1.5px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}
.tab-btn:hover {
    border-color: #0F172A !important;
    color: #0F172A !important;
}
.tab-btn.active {
    background: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 16px rgba(15,23,42,0.2) !important;
}
