/* 
 * Modern Store - Main Stylesheet
 * Light Colors & Modern Design
 */

/* Import Arabic + Latin Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@400;500;700&family=Almarai:wght@400;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Color Palette - Modern & Professional */
    --primary-color: #4f46e5;      /* Indigo - More Professional */
    --secondary-color: #0ea5e9;    /* Sky Blue - Modern */
    --success-color: #10b981;      /* Emerald */
    --warning-color: #f59e0b;      /* Amber */
    --danger-color: #ef4444;       /* Red */
    
    /* Light Background Colors - More Refined */
    --bg-primary: #ffffff;         /* White */
    --bg-secondary: #f8fafc;       /* Slate-50 */
    --bg-tertiary: #f1f5f9;        /* Slate-100 */
    
    /* Text Colors - Better Contrast */
    --text-primary: #0f172a;       /* Slate-900 */
    --text-secondary: #475569;     /* Slate-600 */
    --text-light: #94a3b8;         /* Slate-400 */
    
    /* Border Colors - More Subtle */
    --border-color: #e2e8f0;       /* Slate-200 */
    --border-light: #f1f5f9;       /* Slate-100 */
    
    /* Shadows - More Refined */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    /* Spacing - More Consistent */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius - More Modern */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Premium Effects */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --gradient-premium: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* Dark Mode Palette */
.dark-mode {
    --bg-primary: #0f172a;       /* Slate-900 */
    --bg-secondary: #020617;     /* Slate-950 */
    --bg-tertiary: #1e293b;      /* Slate-800 */
    
    --text-primary: #f8fafc;     /* Slate-50 */
    --text-secondary: #94a3b8;   /* Slate-400 */
    --text-light: #64748b;       /* Slate-500 */
    
    --border-color: #1e293b;     /* Slate-800 */
    --border-light: #0f172a;     /* Slate-900 */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

    /* Premium Effects Dark */
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', 'Cairo', 'Tajawal', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% { background-color: var(--bg-tertiary); }
    100% { background-color: var(--border-color); }
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

/* LTR (English / French) font override */
[dir="ltr"] body,
[dir="ltr"] {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0;
}
[dir="ltr"] h1,[dir="ltr"] h2,[dir="ltr"] h3,[dir="ltr"] h4,[dir="ltr"] h5,[dir="ltr"] h6 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}
[dir="ltr"] input,[dir="ltr"] textarea,[dir="ltr"] select,[dir="ltr"] button {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography - More Professional */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', 'Almarai', sans-serif;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

h1 { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.35rem; font-weight: 600; }
h5 { font-size: 1.15rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Arabic Typography Enhancement */
input, textarea, select, button {
    font-family: 'Cairo', 'Tajawal', 'Almarai', 'Segoe UI', sans-serif;
    font-weight: 500;
}

label, .label {
    font-family: 'Cairo', 'Tajawal', 'Almarai', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

small, .small {
    font-family: 'Cairo', 'Tajawal', 'Almarai', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0;
}

strong, .strong {
    font-family: 'Cairo', 'Tajawal', 'Almarai', sans-serif;
    font-weight: 700;
}

/* Navbar - More Professional */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Cairo', 'Tajawal', 'Almarai', 'Segoe UI', sans-serif;
    backdrop-filter: blur(10px);
    background: var(--bg-primary);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px) minmax(0, 1fr) auto;
    grid-template-areas:
        "logo search user theme"
        "nav nav nav nav";
    align-items: center;
    gap: 0.75rem 1rem;
}

.logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 800;
}

.logo i {
    font-size: 1.8rem;
}

/* Search Bar - More Modern */
.search-bar {
    grid-area: search;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 360px;
}

.search-bar form {
    margin: 0;
    padding: 0;
}

.search-bar .search-field {
    position: relative;
    display: block;
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.search-bar .search-field:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar .search-field input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-inline-start: 2.75rem;
    outline: none;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.search-bar .search-field input:focus {
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-bar .search-field .search-submit {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.35rem;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.search-bar .search-field .search-submit:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
}

/* Navigation Menu - More Professional */
.nav-menu {
    grid-area: nav;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* User Menu - More Professional */
.user-menu {
    grid-area: user;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
    white-space: nowrap;
}

.user-logged-in {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.dropdown-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: var(--spacing-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-content hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Buttons - More Professional */
.btn-login, .btn-register {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

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

.btn-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-register {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.btn-register:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-register:visited,
.btn-register:focus,
.btn-register:hover {
    color: white;
}

.btn {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: var(--success-color);
    color: white;
    font-weight: 700;
}

.btn-success:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    font-weight: 700;
}

.btn-danger:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

#darkModeToggle {
    grid-area: theme;
    justify-self: end;
}

/* Breadcrumb */
.breadcrumb-container {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.breadcrumb span::before {
    content: ' / ';
    margin: 0 var(--spacing-sm);
}

/* Hero Section */
.hero {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-2xl) 0;
    border-radius: 0;
    text-align: initial;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Product Grid - More Modern */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    background: var(--bg-tertiary);
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex: 1;
    line-height: 1.6;
}

.product-rating {
    color: var(--warning-color);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

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

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

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.product-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: var(--primary-color);
    color: white;
}

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

.btn-add-cart:disabled,
.btn-add-cart:disabled:hover {
    background: #9ca3af;
    color: #fff;
    cursor: not-allowed;
}

.btn-in-cart {
    background: var(--danger-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-in-cart:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wishlist {
    background: var(--bg-tertiary);
    color: var(--danger-color);
    border: 1px solid var(--border-color);
}

.btn-wishlist:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-compare {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-compare:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-compare.added {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Modern storefront */
.home-hero {
    min-height: min(760px, calc(100vh - 84px));
    display: flex;
    align-items: center;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-hero__copy {
    max-width: 620px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--secondary-color);
    background: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.home-hero__copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.home-hero__copy p {
    max-width: 55ch;
}

.home-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-hero__stats div,
.home-category-tile,
.home-trust-strip__grid div {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.home-hero__stats div {
    padding: 1rem;
}

.home-hero__stats strong {
    display: block;
    font-size: 1.35rem;
    color: var(--primary-color);
}

.home-hero__stats span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.home-hero__media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 1rem;
    align-items: stretch;
}

.home-hero__primary-product,
.home-hero__mini-products a {
    color: inherit;
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.home-hero__primary-product {
    display: grid;
    min-height: 480px;
    align-content: end;
    position: relative;
}

.home-hero__primary-product img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__primary-product::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: rgba(2, 6, 23, 0.72);
}

.home-hero__primary-product span,
.home-hero__primary-product strong {
    position: relative;
    z-index: 1;
    color: white;
    margin-inline: 1.25rem;
}

.home-hero__primary-product span {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    opacity: 0.86;
}

.home-hero__primary-product strong {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.home-hero__mini-products {
    display: grid;
    gap: 1rem;
}

.home-hero__mini-products a {
    display: grid;
    min-height: 140px;
    position: relative;
}

.home-hero__mini-products img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__mini-products span {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.home-trust-strip {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.home-trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem var(--spacing-md);
}

.home-trust-strip__grid div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.home-trust-strip__grid i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.home-section {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-section-head h2 {
    margin-bottom: 0;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.home-category-tile {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-category-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.home-category-tile__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(15, 118, 110, 0.1);
    color: var(--secondary-color);
}

.home-category-tile strong {
    color: var(--text-primary);
}

.home-category-tile small {
    color: var(--text-secondary);
}

.home-products-grid {
    margin-top: 0;
}

/* Form Styles - More Professional */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: var(--bg-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    cursor: pointer;
}

.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Cart Styles - More Modern */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table thead {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.cart-table th,
.cart-table td {
    padding: var(--spacing-lg);
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-table td {
    font-size: 0.95rem;
}

.cart-table tr:hover td {
    background: rgba(79, 70, 229, 0.03);
}

.cart-summary {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    max-width: 400px;
    margin-left: auto;
    margin-top: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.35rem;
    border-bottom: none;
    color: var(--primary-color);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

/* Shared page shells */
.page-shell {
    margin: 2.5rem 0;
    padding-top: 1rem;
}

.page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.section-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.filter-sidebar {
    position: sticky;
    top: 96px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.products-toolbar h2 {
    margin: 0;
    font-size: 1.4rem;
}

.products-toolbar__count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.sort-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.sort-form select {
    min-width: 180px;
}

.badge-stack {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pill-badge {
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pill-badge--muted { background: #64748b; }
.pill-badge--danger { background: var(--danger-color); }
.pill-badge--success { background: var(--success-color); }

.empty-collection {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
}

.empty-collection i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.pagination-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.checkout-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.product-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.product-gallery-main,
.product-purchase-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.product-gallery-main {
    padding: 1rem;
    margin-bottom: 0.85rem;
}

.product-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.86;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

.product-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--bg-tertiary);
}

.product-thumbnail.is-active {
    border-color: var(--primary-color);
}

.product-purchase-card {
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.product-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.product-quantity-row label {
    font-weight: 700;
}

.quantity-selector {
    width: 88px;
    padding: 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-shell {
    max-width: 470px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 980px) {
    .page-grid,
    .cart-layout,
    .checkout-layout,
    .product-detail-layout,
    .product-content-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .product-purchase-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-gallery-main,
    .product-purchase-card {
        padding: 1rem;
    }

    .product-gallery-image {
        aspect-ratio: 1 / 0.9;
    }
}

/* Alert Messages - More Professional */
.alert {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(79, 70, 229, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.payment-methods {
    display: flex;
    gap: var(--spacing-md);
}

.payment-methods img {
    height: 30px;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary:    #0f172a;
    --bg-secondary:  #1e293b;
    --bg-tertiary:   #334155;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --text-light:    #475569;
    --border-color:  #334155;
    --border-light:  #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}
body.dark-mode .navbar      { background: var(--bg-secondary); }
body.dark-mode .product-card{ background: var(--bg-secondary); border-color: var(--border-color); }
body.dark-mode .cart-summary{ background: var(--bg-secondary); }
body.dark-mode input, body.dark-mode textarea, body.dark-mode select { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border-color); }
body.dark-mode .footer      { background: #020817; }
body.dark-mode table,
body.dark-mode .table,
body.dark-mode .products-table,
body.dark-mode .cart-table,
body.dark-mode .notes-table {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
body.dark-mode td,
body.dark-mode th {
    border-color: var(--border-color);
}
body.dark-mode .category-modal-content,
body.dark-mode .form-modal-content,
body.dark-mode .admin-bell-panel {
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    border-color: var(--border-color);
}
body.dark-mode .admin-bell-head,
body.dark-mode .admin-bell-sub {
    background: var(--bg-secondary);
}
body.dark-mode .home-eyebrow,
body.dark-mode .home-hero__stats div,
body.dark-mode .home-category-tile,
body.dark-mode .home-trust-strip__grid div,
body.dark-mode .home-hero__primary-product,
body.dark-mode .home-hero__mini-products a {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
body.dark-mode .home-trust-strip {
    background: var(--bg-primary);
}

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.375rem; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* —— حساب المستخدم: قائمة الطلبات —— */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.account-sidebar {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.account-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.account-sidebar a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-sidebar a:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.account-sidebar a.is-active {
    background: var(--primary-color);
    color: #fff;
}

.account-sidebar a.is-active:hover {
    color: #fff;
    filter: brightness(1.05);
}

.account-sidebar a.is-danger {
    color: var(--danger-color);
}

.account-sidebar a.is-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
}

.orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.orders-toolbar__summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.orders-toolbar__per-page {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.orders-toolbar__per-page select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.order-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-inline-end: 4px solid var(--primary-color);
}

.order-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.order-card__number {
    font-weight: 700;
    font-size: 1.05rem;
}

.order-card__number a {
    color: var(--primary-color);
    text-decoration: none;
}

.order-card__number a:hover {
    text-decoration: underline;
}

.order-card__number small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-badge--pending {
    background: #fef3c7;
    color: #b45309;
}

.order-badge--processing {
    background: #e0e7ff;
    color: #4338ca;
}

.order-badge--shipped {
    background: #dbeafe;
    color: #1d4ed8;
}

.order-badge--delivered {
    background: #d1fae5;
    color: #047857;
}

.order-badge--cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.order-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.order-card__actions {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    display: flex;
    justify-content: flex-end;
}

.order-card__field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.order-card__field p {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.orders-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.orders-pagination__link,
.orders-pagination__ellipsis {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.orders-pagination__link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.orders-pagination__link.is-current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
    pointer-events: none;
}

.orders-pagination__ellipsis {
    border: none;
    background: transparent;
    pointer-events: none;
    min-width: 1.5rem;
}

.orders-pagination__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-mode .order-card__top {
    background: var(--bg-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .account-sidebar a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .orders-toolbar__per-page {
        justify-content: space-between;
    }

    .nav-wrapper {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "logo theme menu"
            "search search search"
            "user user user"
            "nav nav nav";
        gap: 0.75rem;
        align-items: center;
    }

    .search-bar {
        grid-area: search;
        max-width: 100%;
    }

    .nav-menu {
        grid-area: nav;
        display: none;
        width: 100%;
        border-top: 1px solid var(--border-color);
        padding-top: 0.5rem;
    }

    .nav-menu.active {
        display: block;
    }

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

    .nav-menu a {
        width: 100%;
        padding: var(--spacing-lg);
        border: none;
        border-bottom: 1px solid var(--border-color);
        justify-content: flex-start;
    }

    .menu-toggle {
        grid-area: menu;
        display: inline-flex;
        justify-self: end;
        align-items: center;
        justify-content: center;
    }

    .user-menu {
        flex-wrap: wrap;
        width: 100%;
        justify-content: stretch;
    }

    .user-menu .btn-login,
    .user-menu .btn-register {
        flex: 1;
        justify-content: center;
    }

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

    .home-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .home-hero__grid,
    .home-hero__media {
        grid-template-columns: 1fr;
    }

    .home-hero__primary-product {
        min-height: 360px;
    }

    .home-hero__mini-products,
    .home-trust-strip__grid,
    .home-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cart-summary {
        max-width: 100%;
        margin-left: 0;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

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

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

    .hero {
        padding: var(--spacing-lg) 0;
    }

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

    .home-hero__stats,
    .home-hero__mini-products,
    .home-trust-strip__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__primary-product {
        min-height: 300px;
    }

    .home-hero__copy h1 {
        font-size: 2rem;
    }
}

/* ── Modern Homepage Redesign ───────────────────────────────── */

.modern-hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.modern-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.modern-hero__title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-hero__desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.modern-hero__img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.modern-hero__main-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.modern-hero__main-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.modern-hero__floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modern-section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.home-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cta-banner .home-eyebrow {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    margin: 0 auto 2rem !important;
    display: inline-block !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    border: none !important;
    width: auto !important;
}

.modern-section-head h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.modern-category-circles {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.modern-category-circle {
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.modern-category-circle:hover {
    transform: translateY(-10px);
}

.modern-category-circle__icon {
    width: 100px;
    height: 100px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.modern-category-circle:hover .modern-category-circle__icon {
    border-color: var(--primary-color);
}

.benefit-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cta-banner {
    background: #4f46e5; /* Solid fallback */
    background: var(--gradient-primary);
    padding: 100px 40px; /* Reduced from 160px, but enough for impact */
    border-radius: var(--radius-2xl);
    color: #ffffff !important;
    text-align: center;
    margin: 100px 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.cta-banner .home-eyebrow {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 800;
}

/* ── Global Modern Components ───────────────────────────────── */

.modern-product-card {
    background: var(--bg-primary);
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.modern-product-img-wrap {
    position: relative;
    overflow: hidden;
}
/* ── Admin Dashboard Modern Redesign ────────────────────────── */

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.admin-stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.admin-stat-info .value {
    font-size: 1.75rem;
    font-weight: 800;
}

.admin-table-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-table-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    text-align: inherit;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.admin-badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.admin-badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.admin-badge-info { background: rgba(14, 165, 233, 0.1); color: var(--secondary-color); }

@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}
.modern-product-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-product-card:hover .modern-product-img {
    transform: scale(1.1);
}

.modern-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 2;
}

.modern-product-content {
    padding: 1.5rem;
}

.modern-page-head {
    background: var(--bg-secondary);
    padding: 60px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modern-page-head h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.btn-premium {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-premium-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-premium-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-premium-secondary:hover {
    background: var(--border-color);
}


@media (max-width: 992px) {
    .modern-hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .modern-hero__desc {
        margin: 0 auto 2.5rem;
    }
    .modern-hero__title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table th,
    .cart-table td {
        padding: var(--spacing-sm);
    }
}

/* ══════════════════════════════════════════════════════════════
   DESIGN OVERHAUL — Clean, Modern, World-Class E-Commerce
   ══════════════════════════════════════════════════════════════ */

/* ── Refined Color System ─────────────────────────────────── */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.08);
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Global Polish ────────────────────────────────────────── */
body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--primary-color);
    color: white;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

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

/* ── Improved Navbar ──────────────────────────────────────── */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
}

.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.logo a {
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    transition: opacity var(--transition-base);
}

.logo a:hover { opacity: 0.8; }

.nav-menu a {
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.nav-menu a i { font-size: 0.85rem; }

/* ── Improved Search ──────────────────────────────────────── */
.search-bar .search-field {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.search-bar .search-field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--bg-primary);
}

.search-bar .search-field input {
    padding: 0.65rem 1rem;
    padding-inline-start: 2.5rem;
    font-size: 0.9rem;
}

/* ── Improved Buttons ─────────────────────────────────────── */
.btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Premium button style */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-premium-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-premium-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

.btn-premium-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-premium-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* ── Improved Product Cards ───────────────────────────────── */
.modern-product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modern-product-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.modern-product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
}

.modern-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-product-card:hover .modern-product-img {
    transform: scale(1.06);
}

.modern-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: var(--danger-color);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.modern-product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Category Circles ─────────────────────────────────────── */
.modern-category-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.modern-category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    padding: 1.5rem 0.5rem;
    border-radius: var(--radius-xl);
}

.modern-category-circle:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.modern-category-circle__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all var(--transition-spring);
}

.modern-category-circle:hover .modern-category-circle__icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.modern-category-circle strong {
    font-size: 0.85rem;
    text-align: center;
}

/* ── Benefit Cards ────────────────────────────────────────── */
.benefit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
    transform: translateY(-3px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

/* ── Improved Alerts ──────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.dark-mode .alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.dark-mode .alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.dark-mode .alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.dark-mode .alert-info { background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.3); color: #a5b4fc; }

/* ── Improved Forms ───────────────────────────────────────── */
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* ── Improved Footer ──────────────────────────────────────── */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
}

.dark-mode .footer {
    background: #020617;
}

.footer-section a {
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-inline-start: 4px;
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Notification Toast ───────────────────────────────────── */
.notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    max-width: 380px;
    backdrop-filter: blur(10px);
}

.notification.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.notification.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notification .close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-base);
    color: inherit;
    margin-inline-start: auto;
}

.notification .close-btn:hover { opacity: 1; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Admin Panel Improvements ─────────────────────────────── */
.admin-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

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

/* Admin Stat Cards */
.admin-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.admin-stat-info h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-stat-info .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Admin Table Cards */
.admin-table-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Admin Badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-badge-success { background: #ecfdf5; color: #065f46; }
.admin-badge-warning { background: #fffbeb; color: #92400e; }
.admin-badge-danger { background: #fef2f2; color: #991b1b; }
.admin-badge-info { background: #eef2ff; color: #3730a3; }
.admin-badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }

.dark-mode .admin-badge-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.dark-mode .admin-badge-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.dark-mode .admin-badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.dark-mode .admin-badge-info { background: rgba(79, 70, 229, 0.15); color: #a5b4fc; }

/* ── Dropdown Improvements ────────────────────────────────── */
.dropdown-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 0.5rem;
    animation: dropdownFadeIn 0.15s ease-out;
}

.dropdown-content a {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dropdown-content a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Notification Dropdown ────────────────────────────────── */
.notification-dropdown .dropdown-content {
    padding: 0;
    min-width: 320px;
}

.notifications-list a {
    border-radius: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.notifications-list a:last-child { border-bottom: none; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

/* ── Improved Breadcrumb ──────────────────────────────────── */
.breadcrumb-container {
    background: var(--bg-primary);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.85rem;
    gap: 0.5rem;
}

.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { color: var(--text-primary); font-weight: 600; }
.breadcrumb span::before { content: '/'; margin: 0 0.4rem; color: var(--text-light); }
.breadcrumb span:first-child::before { content: none; margin: 0; }
.breadcrumb a + span::before,
.breadcrumb a + a::before { content: '/'; margin: 0 0.4rem; color: var(--text-light); }

/* ── Improved Pagination ──────────────────────────────────── */
.pagination-row a,
.pagination-row span {
    min-width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-base);
    text-decoration: none;
}

.pagination-row a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.pagination-row .btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ── Responsive Hero Fix ──────────────────────────────────── */
@media (max-width: 768px) {
    .modern-hero { padding: 60px 0; }
    .modern-hero__content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .modern-hero__title { font-size: 2.5rem; }
    .modern-hero__desc { margin: 0 auto 2rem; }
    .home-hero__actions { justify-content: center; }
    .modern-hero__img-wrap { order: -1; }
    .modern-hero__main-img { max-width: 320px; transform: none; }
    .modern-hero__floating-card { display: none; }
    .modern-category-circles { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1rem; }
    .modern-category-circle__icon { width: 52px; height: 52px; font-size: 1.2rem; }
}

/* ── Smooth Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
    .navbar, .footer, .admin-sidebar, .breadcrumb-container { display: none !important; }
    body { background: white !important; color: black !important; }
}

/* ══════════════════════════════════════════════════════════════
   CART PAGE — Clean & Responsive Design
   ══════════════════════════════════════════════════════════════ */

.cart-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.cart-empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.5;
}

.cart-empty-state h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cart-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Cart Page Header */
.cart-page-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cart-page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.cart-page-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Cart Layout */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 0.6rem 1.25rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cart-item:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-md);
}

.cart-item__name {
    grid-column: 1 / -1;
    grid-row: 1;
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    word-break: break-word;
}

.cart-item__name:hover {
    color: var(--primary-color);
}

.cart-item__img {
    grid-row: 2;
    grid-column: 1;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    align-self: center;
}

.cart-item__info {
    grid-row: 2;
    grid-column: 2;
    min-width: 0;
    align-self: center;
}

.cart-item__subtotal {
    grid-row: 2;
    grid-column: 3;
    align-self: center;
}

.cart-item__remove {
    grid-row: 2;
    grid-column: 4;
    align-self: center;
}

.cart-item__qty {
    grid-row: 3;
    grid-column: 1 / -1;
    align-self: center;
    justify-self: start;
}

.cart-item__price {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Quantity Controls */
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: all var(--transition-base);
}

.cart-qty-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.cart-qty-value {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cart-item__subtotal {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 90px;
    text-align: center;
}

.cart-item__remove {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.85rem;
}

.cart-item__remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Cart Summary Card */
.cart-summary-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: sticky;
    top: 5rem;
}

.cart-summary-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cart-summary-card__rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cart-checkout-btn {
    width: 100%;
    height: 52px;
    font-size: 1.05rem;
    text-decoration: none;
}

.cart-trust-badges {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-trust-badges div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-trust-badges i {
    font-size: 1rem;
    color: var(--success-color);
    width: 20px;
    text-align: center;
}

.cart-continue-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.cart-continue-link:hover {
    color: var(--primary-color);
}

/* Cart Responsive */
@media (max-width: 1024px) {
    .cart-page-layout {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }

    .cart-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0.6rem 1rem;
        padding: 1rem;
        position: relative;
    }

    .cart-item__name {
        grid-column: 1 / -1;
        grid-row: 1;
        padding-inline-end: 2rem;
    }

    .cart-item__img {
        width: 64px;
        height: 64px;
        grid-row: 2;
        grid-column: 1;
    }

    .cart-item__info {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .cart-item__qty {
        grid-column: 1 / 3;
        grid-row: 3;
        justify-self: start;
    }

    .cart-item__subtotal {
        grid-column: 3;
        grid-row: 3;
        min-width: auto;
        font-size: 0.9rem;
        align-self: center;
    }

    .cart-item__remove {
        position: absolute;
        top: 0.75rem;
        inset-inline-end: 0.75rem;
        grid-row: unset;
        grid-column: unset;
    }

    .cart-item {
        position: relative;
    }
}

@media (max-width: 480px) {
    .cart-page-header h1 {
        font-size: 1.4rem;
    }

    .cart-empty-state {
        padding: 3rem 1.5rem;
    }

    .cart-empty-state i {
        font-size: 3rem;
    }
}

/* ── Modern Page Head (reusable) ──────────────────────────── */
.modern-page-head {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.modern-page-head h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT PAGE — Clean Multi-Step Design
   ══════════════════════════════════════════════════════════════ */

.checkout-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.checkout-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

/* Step Indicator */
.checkout-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.checkout-step-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.checkout-step-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checkout-step-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.checkout-step-btn.is-done {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checkout-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkout-step-btn.is-active .checkout-step-num {
    background: rgba(255,255,255,0.25);
}

.checkout-step-btn.is-done .checkout-step-num {
    background: var(--primary-color);
    color: white;
}

/* Section Title */
.checkout-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Form Rows */
.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.checkout-form-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

.checkout-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

/* Shipping Options */
.checkout-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkout-option-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    color: inherit;
}

.checkout-option-card:hover,
.checkout-option-card.is-selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.checkout-option-card__body {
    flex: 1;
    min-width: 0;
}

.checkout-option-card__body strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.checkout-option-card__body small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.checkout-option-card__price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.checkout-option-card input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* Navigation Buttons */
.checkout-nav-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.checkout-nav-btn {
    flex: 1;
    height: 48px;
}

/* Summary Card */
.checkout-summary-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    position: sticky;
    top: 5rem;
}

.checkout-summary-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    max-height: 240px;
    overflow-y: auto;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-summary-item__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.checkout-summary-item__info {
    flex: 1;
    min-width: 0;
}

.checkout-summary-item__name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-summary-item__qty {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkout-summary-item__price {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Summary Rows */
.checkout-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-summary-row--discount {
    color: var(--success-color);
    font-weight: 600;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

.checkout-summary-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Coupon Box */
.checkout-coupon-box {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    overflow: hidden;
}

.checkout-coupon-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkout-coupon-form input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg-primary);
}

.checkout-coupon-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkout-coupon-form button {
    white-space: nowrap;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.checkout-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.checkout-coupon-applied span {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-coupon-applied button {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Checkout Responsive */
@media (max-width: 1024px) {
    .checkout-page-layout {
        grid-template-columns: 1fr 340px;
    }
}

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

    .checkout-summary-card {
        position: static;
        order: -1;
    }

    .checkout-form-card {
        padding: 1.25rem;
    }

    .checkout-form-row,
    .checkout-form-row--3 {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        gap: 0.35rem;
    }

    .checkout-step-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
   ══════════════════════════════════════════════════════════════ */

.order-confirm-banner {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.order-confirm-banner__icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.order-confirm-banner h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.order-confirm-banner p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.order-confirm-banner__number {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
}

.order-confirm-banner__number:hover {
    text-decoration: underline;
}

.order-confirm-banner__hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-confirm-notices {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.order-confirm-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.order-confirm-products {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
}

.order-confirm-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-confirm-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-confirm-item__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.order-confirm-item__info {
    flex: 1;
    min-width: 0;
}

.order-confirm-item__info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.order-confirm-item__info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-confirm-item__price {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.order-confirm-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    position: sticky;
    top: 5rem;
}

.order-confirm-summary__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-confirm-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.order-confirm-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-confirm-summary__row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.order-confirm-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 1.25rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.order-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-confirm-action-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none;
    height: 44px;
}

@media (max-width: 768px) {
    .order-confirm-layout {
        grid-template-columns: 1fr;
    }

    .order-confirm-summary {
        position: static;
    }

    .order-confirm-banner {
        padding: 2rem 1.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   TRACK ORDER PAGE
   ══════════════════════════════════════════════════════════════ */

.track-search-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.track-search-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.track-search-card__desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.track-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.track-search-btn {
    height: 46px;
    white-space: nowrap;
}

.track-order-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.track-order-header__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.track-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.track-value {
    font-size: 1rem;
    font-weight: 600;
}

.track-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.track-section__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

/* Timeline */
.track-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 0.5rem;
}

.track-timeline__line {
    position: absolute;
    top: 24px;
    right: calc(100% / 12);
    left: calc(100% / 12);
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    z-index: 0;
}

.track-timeline__progress {
    height: 100%;
    border-radius: 2px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.track-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.track-timeline__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.track-timeline__label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 80px;
}

.track-timeline__step.is-done .track-timeline__label {
    color: var(--text-primary);
    font-weight: 600;
}

.track-timeline__step.is-active .track-timeline__label {
    font-weight: 700;
}

.track-timeline__date {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
}

/* History */
.track-history {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-inline-start: 3px solid var(--border-color);
    margin-inline-start: 0.5rem;
    padding-inline-start: 1.25rem;
}

.track-history__item {
    position: relative;
    padding-bottom: 1.25rem;
}

.track-history__item:last-child {
    padding-bottom: 0;
}

.track-history__dot {
    position: absolute;
    inset-inline-start: -1.6rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-primary);
}

.track-history__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.track-history__content strong {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.track-history__content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Items (legacy) */
.track-items {
    display: flex;
    flex-direction: column;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.track-item__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.track-item__info {
    flex: 1;
    min-width: 0;
}

.track-item__info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.track-item__info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.track-item__price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.track-items-total {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Products Table (redesigned) */
.track-products-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.track-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.track-products-table thead {
    background: var(--bg-tertiary);
}

.track-products-table th {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    text-align: start;
    white-space: nowrap;
}

.track-products-table th.track-products-th-qty,
.track-products-table th.track-products-th-price,
.track-products-table th.track-products-th-subtotal {
    text-align: center;
}

.track-products-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.track-products-row:last-child {
    border-bottom: none;
}

.track-products-row:hover {
    background: rgba(99, 102, 241, 0.03);
}

.track-products-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.track-products-cell-qty,
.track-products-cell-price,
.track-products-cell-subtotal {
    text-align: center;
    white-space: nowrap;
}

.track-product-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.track-product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.track-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.track-product-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s;
}

a.track-product-name:hover {
    color: var(--primary-color);
}

.track-product-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.2rem;
}

.track-product-field {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.track-product-field strong {
    color: var(--text-primary);
    font-weight: 600;
}

.track-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.track-products-cell-price {
    font-weight: 600;
    color: var(--text-secondary);
}

.track-products-cell-subtotal {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.track-products-total-row {
    background: var(--bg-tertiary);
    border-top: 2px solid var(--border-color);
}

.track-products-total-label {
    padding: 1rem;
    text-align: end;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.track-products-total-value {
    padding: 1rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

@media (max-width: 600px) {
    .track-products-table th.track-products-th-price,
    .track-products-table td.track-products-cell-price {
        display: none;
    }

    .track-products-table th,
    .track-products-table td {
        padding: 0.7rem 0.6rem;
    }

    .track-product-thumb {
        width: 44px;
        height: 44px;
    }

    .track-product-name {
        font-size: 0.82rem;
    }

    .track-products-total-label {
        font-size: 0.9rem;
    }

    .track-products-total-value {
        font-size: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .track-search-form {
        grid-template-columns: 1fr;
    }

    .track-order-header__grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-timeline {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .track-timeline__line {
        display: none;
    }

    .track-timeline__step {
        flex-direction: row;
        gap: 1rem;
    }

    .track-timeline__icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .track-timeline__label {
        text-align: start;
        max-width: none;
        font-size: 0.85rem;
    }

    .track-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTS PAGE — Clean Grid Layout
   ══════════════════════════════════════════════════════════════ */

.products-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Filter Sidebar */
.products-filter {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.products-filter .profile-sidebar {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: static;
    top: auto;
}

.products-filter .profile-sidebar__nav {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.products-filter .profile-sidebar__avatar {
    margin-bottom: 0.75rem;
}

.products-filter .profile-sidebar__email {
    margin-bottom: 1rem;
}

.products-filter__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.products-filter__section {
    margin-bottom: 1.5rem;
}

.products-filter__heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.products-filter__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.products-filter__list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.products-filter__list a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.products-filter__list a.is-active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

/* Category toggle */
.cat-parent-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cat-parent-row a {
    flex: 1;
}

.cat-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    flex-shrink: 0;
}

.cat-toggle-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.cat-toggle-btn.is-open {
    color: var(--primary-color);
}

.cat-subcategories {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.25rem 0;
    padding-inline-start: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    animation: catSubSlide 0.2s ease;
}

@keyframes catSubSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-subcategories a {
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.cat-subcategories a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.cat-subcategories a.is-active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.products-filter__price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.products-filter__price-row input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

.products-filter__price-row input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.products-filter__select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
}

.products-filter__btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    text-decoration: none;
}

/* Products Main */
.products-main {
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.products-toolbar h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

.products-toolbar__count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.products-live-search {
    margin-bottom: 1rem;
}

.products-live-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.products-live-search__field > i {
    color: var(--text-secondary);
    padding-inline-start: 1rem;
    padding-inline-end: 0.75rem;
    flex: 0 0 auto;
}

.products-live-search__field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 0.85rem;
}

.products-live-search__field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.products-live-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-inline-end: 0.45rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    flex: 0 0 auto;
}

.products-live-search__clear:hover {
    background: var(--bg-tertiary);
    color: var(--danger-color);
}

/* Product Card Footer */
.products-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.products-card-footer .product-price {
    margin: 0;
}

.products-card-footer .product-rating {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--warning-color);
}

.products-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.products-card-actions .btn-add-cart {
    width: 42px;
    height: 42px;
    min-height: auto;
    padding: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.products-card-actions .btn-wishlist {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.products-card-actions .btn-wishlist:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.products-card-actions .btn-compare {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.products-card-actions .btn-affiliate-share {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--success-color);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.products-card-actions .btn-affiliate-share:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}

.products-card-actions .btn-in-cart {
    width: 42px;
    height: 42px;
    min-height: auto;
    padding: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.products-card-actions .btn-in-cart:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.products-card-actions .btn-share-product {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.products-card-actions .btn-share-product:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Share Popup */
.share-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.share-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.share-popup {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.2s;
}
.share-popup-overlay.is-active .share-popup {
    transform: scale(1);
}
.share-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.share-popup__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}
.share-popup__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
}
.share-popup__buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.share-popup__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}
.share-popup__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.share-popup__btn i, .share-popup__btn svg {
    font-size: 1.2rem;
}
.share-popup__btn--facebook { color: #1877f2; border-color: #1877f2; }
.share-popup__btn--facebook:hover { background: #1877f2; color: white; }
.share-popup__btn--x { color: #000; border-color: #000; }
.share-popup__btn--x:hover { background: #000; color: white; }
.share-popup__btn--whatsapp { color: #25d366; border-color: #25d366; }
.share-popup__btn--whatsapp:hover { background: #25d366; color: white; }
.share-popup__btn--telegram { color: #0088cc; border-color: #0088cc; }
.share-popup__btn--telegram:hover { background: #0088cc; color: white; }
.share-popup__btn--copy { color: var(--primary-color); border-color: var(--primary-color); }
.share-popup__btn--copy:hover { background: var(--primary-color); color: white; }

/* Empty State */
.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
}

.products-empty i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.products-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.products-pagination__btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.products-pagination__btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.products-pagination__btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .products-page-layout {
        grid-template-columns: 1fr;
    }

    .products-filter {
        position: static;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .products-card-actions .btn-add-cart {
        font-size: 0.78rem;
        padding: 0.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* Form Card */
.contact-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.contact-form-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-submit-btn {
    margin-top: 0.5rem;
}

/* Info Sidebar */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.contact-info-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-info-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-info-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.contact-info-item strong {
    font-size: 0.9rem;
}

/* WhatsApp Card */
.contact-whatsapp-card {
    background: #f0fdf4;
    border-color: #bbf7d0;
    text-align: center;
}

.dark-mode .contact-whatsapp-card {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
}

.contact-whatsapp-card__icon {
    font-size: 2.5rem;
    color: #16a34a;
    margin-bottom: 0.75rem;
}

.contact-whatsapp-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-whatsapp-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-whatsapp-btn {
    background: #16a34a;
    color: white;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.contact-whatsapp-btn:hover {
    background: #15803d;
}

.contact-login-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAILS PAGE
   ══════════════════════════════════════════════════════════════ */

/* Override old conflicting styles */
.pd-layout .product-actions,
.pd-layout .product-price {
    all: unset;
}

.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Gallery */
.pd-gallery__main {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: zoom-in;
}

.pd-gallery__img {
    width: 100%;
    height: 480px;
    object-fit: contain;
    display: block;
    background: #f8f8f8;
}

.pd-gallery__badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    background: var(--danger-color);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.pd-gallery__thumbs {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 0.55rem;
}

.pd-gallery__thumb {
    border: 1.5px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-primary);
    padding: 0.15rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pd-gallery__thumb img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 0.6rem;
}

.pd-gallery__thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pd-gallery__thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Info Panel */
.pd-info {
    display: flex;
    flex-direction: column;
}

.pd-info__category {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pd-info__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.pd-info__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pd-stars { color: var(--warning-color); }
.pd-stars i { margin-inline-end: 2px; }

.pd-info__review-count {
    color: var(--text-secondary);
}

.pd-info__price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

.pd-info__old-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--text-light);
}

.pd-info__discount {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.pd-info__desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.pd-info__stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.pd-info__stock.is-in {
    background: #ecfdf5;
    color: #065f46;
}

.pd-info__stock.is-out {
    background: #fef2f2;
    color: #991b1b;
}

.dark-mode .pd-info__stock.is-in { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; }
.dark-mode .pd-info__stock.is-out { background: rgba(239, 68, 68, 0.1); color: #fca5a5; }

/* Actions */
.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pd-actions__custom-fields {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pd-actions__custom-fields-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.pd-custom-field {
    margin: 0;
}

.pd-custom-field__label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.pd-custom-field__required {
    color: #dc2626;
}

.pd-custom-field__input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-custom-field__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.pd-custom-field__input.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.pd-custom-field__help {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.pd-field-error {
    display: none;
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 600;
}

.pd-field-error.is-visible {
    display: block;
}

.pd-actions__qty {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-actions__qty label {
    font-weight: 700;
    font-size: 0.9rem;
}

.pd-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pd-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: background var(--transition-base);
}

.pd-qty-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.pd-qty-control .quantity-selector {
    width: 50px;
    border: none;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    padding: 0.5rem 0;
    background: var(--bg-primary);
}

.pd-actions__btns {
    display: flex;
    gap: 0.75rem;
}

.pd-btn-cart {
    flex: 1;
    height: 52px;
    font-size: 1rem;
    justify-content: center;
}

.pd-btn-wish {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.pd-btn-wish:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.pd-btn-compare {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.pd-btn-compare:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.08);
}

.pd-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background var(--transition-base);
}

.pd-btn-whatsapp:hover { background: #1da851; }

/* Trust Badges */
.pd-trust {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pd-trust div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pd-trust i {
    color: var(--success-color);
    width: 18px;
    text-align: center;
}

/* Share */
.pd-share {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.pd-share__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pd-share__buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.pd-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pd-share-btn--facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.pd-share-btn--x:hover { background: #000; color: white; border-color: #000; }
.pd-share-btn--whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }
.pd-share-btn--telegram:hover { background: #0088cc; color: white; border-color: #0088cc; }
.pd-share-btn--pinterest:hover { background: #e60023; color: white; border-color: #e60023; }
.pd-share-btn--copy:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Tabs */
.pd-tabs {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3rem;
}

.pd-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.pd-tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    font-family: inherit;
}

.pd-tab-btn:hover { color: var(--primary-color); }
.pd-tab-btn.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.pd-tab-panel { display: none; padding: 2rem; }
.pd-tab-panel.is-active { display: block; }

.pd-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Reviews */
.pd-reviews { display: flex; flex-direction: column; gap: 1rem; }

.pd-review {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.pd-review__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pd-review__stars { color: var(--warning-color); letter-spacing: 2px; }
.pd-review__text { color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.5rem; }
.pd-review__date { font-size: 0.8rem; color: var(--text-light); }

/* Related */
.pd-related {
    margin-top: 2rem;
}

.pd-related__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-info__title { font-size: 1.5rem; }
    .pd-info__current-price { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .pd-gallery__img {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .pd-actions__btns { flex-direction: column; }
    .pd-btn-wish, .pd-btn-compare { width: 100%; }
    .pd-tabs__nav { gap: 0; }
    .pd-tab-btn { padding: 0.85rem 1rem; font-size: 0.8rem; }
}

/* ── Review Form & Star Rating ────────────────────────────── */
.pd-write-review h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.pd-review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-star-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-star-rating label {
    font-weight: 700;
    font-size: 0.9rem;
}

.pd-star-select {
    display: flex;
    gap: 0.25rem;
}

.pd-star-select i {
    font-size: 1.5rem;
    color: var(--warning-color);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pd-star-select i:hover {
    transform: scale(1.2);
}

.pd-review-login {
    text-align: center;
    padding: 2.5rem;
}

.pd-review-login i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.pd-review-login p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Product Gallery Lightbox */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pd-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(3px);
}

.pd-lightbox__inner {
    position: relative;
    z-index: 2;
    width: min(92vw, 1100px);
    max-height: 92vh;
    display: grid;
    place-items: center;
    gap: 0.6rem;
}

.pd-lightbox__img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 0.8rem;
    background: #000;
}

.pd-lightbox__counter {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.pd-lightbox__close,
.pd-lightbox__prev,
.pd-lightbox__next {
    position: absolute;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(15, 23, 42, 0.56);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pd-lightbox__close:hover,
.pd-lightbox__prev:hover,
.pd-lightbox__next:hover {
    background: rgba(15, 23, 42, 0.75);
}

.pd-lightbox__close:hover {
    transform: scale(1.06);
}

.pd-lightbox__close {
    top: 0.5rem;
    inset-inline-end: 0.5rem;
}

.pd-lightbox__prev {
    top: 50%;
    inset-inline-start: 0.5rem;
    transform: translateY(-50%);
}

.pd-lightbox__next {
    top: 50%;
    inset-inline-end: 0.5rem;
    transform: translateY(-50%);
}

.pd-lightbox__prev:hover,
.pd-lightbox__next:hover {
    transform: translateY(-50%) scale(1.06);
}

@media (max-width: 640px) {
    .pd-lightbox__prev,
    .pd-lightbox__next {
        width: 38px;
        height: 38px;
    }

    .pd-lightbox__close {
        top: 0.25rem;
        inset-inline-end: 0.25rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ══════════════════════════════════════════════════════════════ */

.search-page-box {
    margin-bottom: 2rem;
}

.search-page-form {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-page-input-wrap {
    flex: 1;
    position: relative;
}

.search-page-input-wrap i {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-page-input-wrap input {
    width: 100%;
    padding: 0.85rem 1rem;
    padding-inline-start: 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-page-input-wrap input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.search-results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-results-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.search-results-header h1 span {
    color: var(--primary-color);
}

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

.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
}

.search-empty-state i {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    display: block;
    opacity: 0.4;
}

.search-empty-state h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.search-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .search-page-form {
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════════════ */

.profile-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.profile-sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 5rem;
}

.profile-sidebar__avatar {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.profile-sidebar__name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.profile-sidebar__email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.profile-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: start;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.profile-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.profile-sidebar__nav a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.profile-sidebar__nav a.is-active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
}

.profile-sidebar__nav a.is-danger {
    color: var(--danger-color);
}

.profile-sidebar__nav a.is-danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Main */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.profile-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-disabled-input {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
}

.profile-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.profile-save-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.form-actions .btn-premium {
    flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-page-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

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

    .profile-form__row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   ORDERS PAGE
   ══════════════════════════════════════════════════════════════ */

.orders-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.orders-list-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
}

.orders-list-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ══════════════════════════════════════════════════════════════
   MESSAGES & SUPPORT PAGES
   ══════════════════════════════════════════════════════════════ */

.messages-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: block;
}

.message-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.message-card.is-unread {
    border-inline-start: 3px solid var(--primary-color);
    background: var(--primary-light);
}

.message-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.message-card__title {
    font-weight: 700;
    font-size: 0.95rem;
}

.message-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.message-card__preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ticket Detail */
.ticket-detail-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.ticket-detail-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ticket-message {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.ticket-message.is-customer {
    background: var(--bg-secondary);
    border-inline-start: 3px solid var(--primary-color);
}

.ticket-message.is-admin {
    background: #f0fdf4;
    border-inline-start: 3px solid var(--success-color);
}

.dark-mode .ticket-message.is-admin {
    background: rgba(16, 185, 129, 0.05);
}

.ticket-message__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.ticket-message__sender {
    font-weight: 700;
}

.ticket-message__date {
    color: var(--text-light);
}

.ticket-message__body {
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.ticket-reply-form {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ══════════════════════════════════════════════════════════════
   WISHLIST PAGE
   ══════════════════════════════════════════════════════════════ */

.wishlist-page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
}

.wishlist-empty i {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.wishlist-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES (Login, Register, Forgot Password)
   ══════════════════════════════════════════════════════════════ */

.auth-shell {
    max-width: 460px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-title i {
    color: var(--primary-color);
    margin-inline-end: 0.5rem;
}

.auth-divider {
    margin: 1.75rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card .btn-primary {
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 700;
    color: var(--primary-color);
}

/* ══════════════════════════════════════════════════════════════
   STATIC PAGES (About, Terms, Privacy, FAQ, Shipping)
   ══════════════════════════════════════════════════════════════ */

.static-page-shell {
    max-width: 800px;
    margin: 0 auto;
}

.static-page-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.static-page-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.static-page-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
}

.static-page-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.static-page-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.static-page-content p {
    margin-bottom: 1rem;
}

.static-page-content ul, .static-page-content ol {
    padding-inline-start: 1.5rem;
    margin-bottom: 1rem;
}

.static-page-content li {
    margin-bottom: 0.5rem;
}

.static-page-content a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES FOR ALL ACCOUNT PAGES
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .orders-page-layout,
    .messages-page-layout,
    .wishlist-page-layout {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.75rem;
    }

    .static-page-card {
        padding: 1.5rem;
    }

    .ticket-detail-card {
        padding: 1.25rem;
    }

    .ticket-detail-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Fix: Space between navbar and content ────────────────── */
.navbar + .breadcrumb-container { margin-top: 0; }
.navbar + .container,
.navbar + .page-shell,
.navbar + main,
.navbar + section,
.breadcrumb-container + .container,
.breadcrumb-container + .page-shell {
    margin-top: 0;
}

/* Ensure page-shell always has top spacing */
.page-shell { margin-top: 2.5rem; }
.auth-shell { margin-top: 3.5rem; }
.static-page-shell { margin-top: 2.5rem; }

/* Add spacing after breadcrumb */
.breadcrumb-container {
    margin-bottom: 1.5rem;
}

/* Modern page head spacing */
.modern-page-head {
    margin-top: 0;
    margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES v2 — Login, Register, Forgot Password
   ══════════════════════════════════════════════════════════════ */

.auth-page-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-box__header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-box__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.auth-box__header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.auth-box__header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-remember input {
    width: auto;
    accent-color: var(--primary-color);
}

.auth-forgot {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Captcha */
.captcha-group { margin-top: 0.5rem; }
.captcha-row { display: flex; align-items: center; gap: 0.75rem; }
.captcha-question { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); background: var(--bg-secondary); padding: 0.6rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); letter-spacing: 2px; white-space: nowrap; user-select: none; }
.captcha-input { width: 100px; padding: 0.65rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.95rem; background: var(--bg-primary); color: var(--text-primary); text-align: center; font-weight: 700; }
.captcha-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }

.auth-submit-btn {
    width: 100%;
    height: 48px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.auth-box__footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-box__footer a:not(.btn-premium):not(.btn-login):not(.btn-register) {
    font-weight: 700;
    color: var(--primary-color);
}

.auth-box__footer .btn-premium-primary,
.auth-box__footer .btn-premium-primary:hover,
.auth-box__footer .btn-premium-primary:focus,
.auth-box__footer .btn-premium-primary:visited {
    color: #fff;
}

.auth-box__footer .btn-premium-secondary,
.auth-box__footer .btn-premium-secondary:hover,
.auth-box__footer .btn-premium-secondary:focus,
.auth-box__footer .btn-premium-secondary:visited {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.75rem;
    }

    .auth-page-wrap {
        padding: 1.5rem 0.75rem;
    }
}

/* Auth form row (2 columns) */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

.auth-social {
    margin-top: 1rem;
}

.auth-social__divider {
    position: relative;
    text-align: center;
    margin: 0.25rem 0 0.95rem;
}

.auth-social__divider::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    border-top: 1px solid var(--border-color);
}

.auth-social__divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.6rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-social__buttons {
    display: grid;
    gap: 0.55rem;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.auth-social-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.auth-social-btn--google i { color: #db4437; }
.auth-social-btn--facebook i { color: #1877f2; }
.auth-social-btn--telegram i { color: #229ed9; }

.social-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.65rem;
    background: var(--bg-secondary);
}

.social-account-row:last-child {
    margin-bottom: 0;
}

.social-account-row__info {
    min-width: 0;
}

.social-account-row__info strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
}

.social-account-row__meta {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.social-account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
}

.social-account-badge.is-linked {
    background: color-mix(in srgb, #22c55e 16%, var(--bg-primary));
    color: #15803d;
}

.social-account-row__actions .btn-premium {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
}

/* ── Footer Improvements ──────────────────────────────────── */
.footer-payment-strip {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-payment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-payment-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    right: 1.25rem;
    left: auto;
    bottom: 1.25rem;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    font-size: 1.6rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[dir="rtl"] .whatsapp-float-btn,
body[dir="rtl"] .whatsapp-float-btn,
:dir(rtl) .whatsapp-float-btn {
    right: auto;
    left: 1.25rem;
}

html[dir="ltr"] .whatsapp-float-btn,
body[dir="ltr"] .whatsapp-float-btn,
:dir(ltr) .whatsapp-float-btn {
    right: 1.25rem;
    left: auto;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(22, 163, 74, 0.5);
}

@media (max-width: 768px) {
    .footer-payment-strip {
        justify-content: center;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* ── Scroll to Top Button ─────────────────────────────────── */
.scroll-to-top-btn {
    position: fixed;
    inset-inline-end: 1.25rem;
    bottom: 5.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 999;
}

.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 5rem;
        inset-inline-end: 1rem;
    }
}

/* ── Mobile & Tablet Enhancements ─────────────────────────── */

/* Improve touch targets */
@media (max-width: 1024px) {
    /* Tablet: better spacing */
    .profile-page-layout {
        gap: 1.5rem;
    }

    .products-page-layout {
        grid-template-columns: 1fr;
    }

    .products-filter {
        position: static;
    }

    .pd-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile: stack layouts */
    .profile-page-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        width: 100%;
    }

    /* Better touch targets for buttons and links */
    .btn, .btn-premium, button, a.btn {
        min-height: 44px;
    }

    /* Product cards: 2 columns on tablet, 1 on small mobile */
    .modern-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Footer: single column */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Checkout: full width */
    .checkout-page-layout {
        grid-template-columns: 1fr;
    }

    /* Track order: full width timeline */
    .track-timeline {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    /* Better form inputs on mobile */
    input, select, textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Breadcrumb scroll */
    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.25rem;
    }

    /* Product details: share buttons wrap */
    .pd-share__buttons {
        gap: 0.4rem;
    }

    .pd-share-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    /* Small phones */
    .modern-products-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions button,
    .nav-actions .dropdown-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    /* Compact header */
    .logo img {
        max-height: 36px;
    }

    .user-name {
        display: none;
    }

    /* Product card: compact */
    .modern-product-content {
        padding: 0.75rem;
    }

    .product-name a {
        font-size: 0.85rem;
    }
}

/* ── Smooth scrolling & selection ─────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal overflow on mobile */
body {
    overflow-x: hidden;
}

/* Better image handling on all screens */
img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL — Global Design Fix
   ══════════════════════════════════════════════════════════════ */

.admin-page {
    background: var(--bg-secondary);
}

.admin-page main {
    padding: 2rem;
    overflow-y: auto;
    height: 100vh;
}

.admin-page h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-page table th {
    background: var(--bg-tertiary);
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    text-align: inherit;
    border-bottom: 1px solid var(--border-color);
}

.admin-page table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-page table tr:last-child td {
    border-bottom: none;
}

.admin-page table tr:hover td {
    background: var(--primary-light);
}

.admin-page table img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Admin forms */
.admin-page input[type="text"],
.admin-page input[type="email"],
.admin-page input[type="number"],
.admin-page input[type="tel"],
.admin-page input[type="url"],
.admin-page input[type="password"],
.admin-page input[type="date"],
.admin-page textarea,
.admin-page select {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-page input:focus,
.admin-page textarea:focus,
.admin-page select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

/* Admin buttons */
.admin-page .btn,
.admin-page button[type="submit"] {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Admin cards/panels */
.admin-page .admin-table-card,
.admin-page .admin-stat-card,
.admin-page section,
.admin-page .card {
    border-radius: var(--radius-xl);
}

/* Fix admin page spacing */
.admin-page header {
    margin-bottom: 2rem;
}

/* Admin responsive table */
@media (max-width: 768px) {
    .admin-page table {
        font-size: 0.8rem;
    }

    .admin-page table th,
    .admin-page table td {
        padding: 0.6rem 0.5rem;
    }

    .admin-page main {
        padding: 1rem;
    }
}

/* ── Admin Modal ──────────────────────────────────────────── */
.category-modal,
.form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.category-modal.active,
.form-modal.active {
    display: flex;
}

.category-modal-content,
.form-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Table improvements */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-tertiary);
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: inherit;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--primary-light);
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-muted { color: var(--text-secondary); font-size: 0.9rem; }
.text-center { text-align: center; }

/* ── Admin Orders Page ────────────────────────────────────── */
.order-edit-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cn-list {
    display: grid;
    gap: 0.75rem;
}

.admin-page .quick-status-form select {
    min-width: 90px;
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
}

.admin-page .order-edit-form {
    max-width: 100%;
}

.admin-page .order-edit-form textarea {
    min-height: 60px;
    resize: vertical;
}

/* ── Return Request Page ──────────────────────────────────── */
.return-items-list {
    display: grid;
    gap: 0.75rem;
}

.return-item-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.return-item-card:hover {
    border-color: var(--primary-color);
}

.return-item-card.is-selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.03);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.return-item-card input[type="checkbox"] {
    margin-top: 0.35rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.return-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.return-item-info {
    flex: 1;
    min-width: 0;
}

.return-item-info strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.return-item-info .text-muted {
    font-size: 0.85rem;
}

.return-item-qty {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light);
}

.return-item-qty label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.return-item-qty input {
    width: 70px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
}

.return-reasons-list {
    display: grid;
    gap: 0.5rem;
}

.return-reason-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.92rem;
}

.return-reason-option:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.02);
}

.return-reason-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ── Return Upload Area ───────────────────────────────────── */
.return-upload-area {
    position: relative;
}

.return-upload-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.return-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.return-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.03);
}

.return-upload-label i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.return-upload-label span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.return-upload-label small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.return-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.return-preview-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.return-preview-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.return-preview-item span {
    display: block;
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Notifications Page ───────────────────────────────────── */
.notif-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.notif-page-header .profile-card__title {
    margin-bottom: 0;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.notif-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.notif-item.is-unread {
    background: rgba(79, 70, 229, 0.03);
    border-inline-start: 3px solid var(--primary-color);
}

.notif-item__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    flex-shrink: 0;
    font-size: 0.95rem;
}

.notif-item.is-unread .notif-item__icon {
    background: rgba(79, 70, 229, 0.1);
}

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.notif-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-inline-end: 0.4rem;
    vertical-align: middle;
}

.notif-item__msg {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.88rem;
}

.notif-item__time {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .notif-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .notif-item__time {
        align-self: flex-end;
    }
}

/* ── Note Attachments (compact) ───────────────────────────── */
.note-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.note-attachment-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    transition: border-color 0.2s, background 0.2s;
    max-width: 180px;
}

.note-attachment-link:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
}

.note-attachment-thumb {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.note-attachment-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.note-attachment-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ── Image Lightbox ───────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease;
}

.lightbox-overlay.is-active {
    display: flex;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: lightboxZoomIn 0.25s ease;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Fix: Select dropdown options visibility ──────────────── */
.admin-page select {
    color-scheme: light;
    cursor: pointer;
}

.dark-mode .admin-page select {
    color-scheme: dark;
}

.admin-page select option {
    background-color: #fff;
    color: #1a1a2e;
}

.dark-mode .admin-page select option {
    background-color: #1e293b;
    color: #f8fafc;
}

select {
    -webkit-appearance: menulist;
    appearance: menulist;
}

/* ── AJAX Smooth Transitions ──────────────────────────────── */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.cart-qty-value {
    transition: transform 0.2s ease;
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    font-weight: 800;
}

.cart-qty-btn {
    transition: all 0.2s ease;
}

.cart-qty-btn:active {
    transform: scale(0.85);
}

.cart-item__remove {
    transition: all 0.2s ease;
}

.cart-item__remove:hover {
    transform: scale(1.15);
    color: var(--danger-color);
}

.btn-add-cart,
.btn-in-cart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-wishlist {
    transition: all 0.3s ease;
}

.btn-wishlist:active {
    transform: scale(0.9);
}

.btn-wishlist.added {
    animation: heartPulse 0.4s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Smooth page transitions */
.page-shell {
    animation: pageIn 0.3s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product card hover lift */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cart summary update flash */
.cart-summary-total span:last-child {
    transition: color 0.3s ease;
}

/* ── Checkout Review (Step 3) ─────────────────────────────── */
.checkout-review-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.checkout-review-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.checkout-review-title i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.checkout-review-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkout-review-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.checkout-review-item__img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.checkout-review-item__info {
    flex: 1;
    min-width: 0;
}

.checkout-review-item__info strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
}

.checkout-review-item__info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.checkout-review-item__total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Custom fields in checkout review */
.checkout-review-custom-fields {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin: -0.25rem 0 0.75rem 0;
    margin-inline-start: 56px;
}

.checkout-review-custom-fields__title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkout-review-custom-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.84rem;
    gap: 0.75rem;
}

.checkout-review-custom-field:last-child {
    border-bottom: none;
}

.checkout-review-custom-field__label {
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.checkout-review-custom-field__req {
    color: var(--danger-color);
    font-weight: 700;
}

.checkout-review-custom-field__value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: end;
    word-break: break-word;
}

.checkout-review-custom-field__empty {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.8rem;
}

.checkout-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.checkout-review-value {
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0.2rem 0 0;
    color: var(--text-primary);
}

.checkout-review-totals {
    background: var(--bg-tertiary);
}

.checkout-review-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.checkout-review-total-row:last-child {
    border-bottom: none;
}

.checkout-review-grand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 2px solid var(--border-color);
    border-bottom: none;
}
