/* ─── Qamar Gift Cards - Luxury Arabian Theme ─── */

:root {
    --dark: #0a0a1a;
    --dark-navy: #0d1117;
    --dark-card: #111827;
    --gold: #d4a843;
    --gold-light: #f0d080;
    --gold-dark: #b8860b;
    --bronze: #cd7f32;
    --orange-warm: #ff6b35;
    --orange-glow: rgba(255, 107, 53, 0.15);
    --accent: var(--gold);
    --accent-soft: rgba(212, 168, 67, 0.12);
    --accent-gradient: linear-gradient(135deg, var(--gold), var(--orange-warm));
    --text: #f0e6d3;
    --text-secondary: #b8a88a;
    --text-muted: #7a6f58;
    --border: rgba(212, 168, 67, 0.15);
    --border-light: rgba(212, 168, 67, 0.08);
    --bg-white: #0d1117;
    --bg-elevated: rgba(212, 168, 67, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --font: 'Inter', sans-serif;
    --font-ar: 'Noto Kufi Arabic', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] {
    --font: var(--font-ar);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ─── Glassmorphism ─── */
.glass {
    background: var(--bg-elevated);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--orange-glow);
    color: #1a1a2e;
}

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

.btn-outline:hover {
    background: var(--accent-soft);
    color: var(--gold-light);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

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

/* ─── Announcement Bar ─── */
.announcement-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    color: #1a1a2e;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.logo-icon { font-size: 28px; }

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    position: relative;
    padding: 10px 22px;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(212,175,55,0.03));
    border: 1px solid rgba(212,175,55,0.1);
    overflow: hidden;
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    z-index: 1;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, transparent, var(--gold), transparent 60%, transparent);
    opacity: 0;
    transition: opacity .5s ease;
    z-index: -2;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background: var(--dark-card);
    z-index: -1;
    transition: all .5s ease;
}

.nav-menu a:hover {
    color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(212,175,55,0.3);
    box-shadow:
        0 8px 32px rgba(212,175,55,0.15),
        0 0 0 1px rgba(212,175,55,0.08),
        inset 0 1px 0 rgba(212,175,55,0.1);
}

.nav-menu a:hover::before {
    opacity: 1;
    animation: navBorderSpin 2s linear infinite;
}

.nav-menu a:hover::after {
    background: linear-gradient(135deg, rgba(212,175,55,0.07), rgba(212,175,55,0.02));
}

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

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

.header-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.header-action:hover { background: var(--accent-soft); color: var(--gold); }


.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--orange-warm);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle { display: none; }

/* ─── Hero ─── */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 600px;
    padding: 80px 0;
    align-items: center;
}

.hero-slide.active { display: flex; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-ornament {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.lantern {
    position: absolute;
    width: 120px;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.lantern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    border-radius: 2px;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: lanternGlow 3s ease-in-out infinite;
}

@keyframes lanternGlow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.lantern-1 { top: 10%; left: 60%; }
.lantern-2 { top: 20%; right: 10%; }
.lantern-3 { top: 60%; right: 20%; }

.islamic-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 25% 25%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.hero-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav button:hover {
    background: var(--accent-soft);
    border-color: var(--gold);
}

.hero-dots {
    position: absolute;
    bottom: 48px;
    left: 40px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ─── Search ─── */
.search-section {
    position: relative;
    z-index: 5;
    margin-top: -32px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 6px;
    max-width: 640px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

.search-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    padding: 12px 0;
}

.hero-search-input::placeholder { color: var(--text-muted); }

.hero-search-form .btn {
    border-radius: 40px;
    padding: 12px 32px;
}

/* ─── Sections ─── */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Stats ─── */
.stats-section { padding-bottom: 40px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
}

.stat-icon { font-size: 32px; color: var(--gold); margin-bottom: 12px; }

.stat-number {
    font-size: 36px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label { font-size: 14px; color: var(--text-secondary); }

/* ─── Categories ─── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    text-align: center;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    color: var(--gold);
}

.category-icon { font-size: 28px; color: var(--gold); }

.category-card h3 { font-size: 14px; font-weight: 600; }

.category-card span { font-size: 12px; color: var(--text-muted); }

/* ─── Products Grid ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .products-grid { grid-template-columns: repeat(1, 1fr); } }

/* ─── Brands ─── */
.brands-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.brand-card {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: var(--transition);
}

.brand-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.brand-card img { max-height: 40px; width: auto; }

/* ─── Testimonials ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.testimonial-card {
    padding: 28px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--gold);
}

.testimonial-card blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ─── Blog ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card {
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.blog-card-body { padding: 20px; }

.blog-date {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.blog-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card:hover .blog-read-more { gap: 8px; }

/* ─── Newsletter ─── */
.newsletter-section {
    padding-bottom: 40px;
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
    overflow: hidden;
    position: relative;
}

.newsletter-content { max-width: 520px; }

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--dark-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
}

.newsletter-input:focus { border-color: var(--gold); }

.newsletter-decoration { position: relative; width: 140px; }

.lantern-mini {
    width: 60px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.lantern-mini::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: lanternGlow 3s ease-in-out infinite;
}

/* ─── Footer ─── */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-soft);
    border-color: var(--gold);
    color: var(--gold);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.footer-payment-icons img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #1a1a2e;
    padding: 6px;
    transition: all .3s ease;
}

.footer-payment-icons img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ─── Search Overlay ─── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.open { display: flex; }

.search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay-content { width: 100%; max-width: 640px; padding: 0 20px; }

.search-form {
    display: flex;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.search-form .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 24px;
    color: var(--text);
    font-family: var(--font);
}

.search-form .search-input::placeholder { color: var(--text-muted); }

.search-submit {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

.search-results { scroll-margin-top: 8px; }

.sr-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.sr-empty i { font-size: 32px; display: block; margin-bottom: 12px; opacity: .4; }

.sr-loading {
    text-align: center;
    padding: 40px 20px;
}

.sr-loading .spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: sr-spin .7s linear infinite;
    display: inline-block;
}

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

/* ─── Empty State ─── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }

/* ─── Error Page ─── */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

/* ─── Cart Page ─── */
.cart-page { padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-details h3 { font-size: 15px; margin-bottom: 4px; }
.cart-item-price { font-weight: 700; color: var(--gold); }

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { background: var(--accent-soft); }

.cart-summary-card {
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary-card h3 { margin-bottom: 16px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* ─── Checkout ─── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--dark-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Auth Pages ─── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-card h1 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 32px; }

/* ─── Admin ─── */
.admin-body { background: #0d1117; }
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: #161b22;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-logo { font-size: 20px; font-weight: 800; color: var(--gold); }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--accent-soft);
    color: var(--gold);
    border-left-color: var(--gold);
}

.admin-nav a i { font-size: 16px; width: 20px; text-align: center; }

.admin-main {
    flex: 1;
    margin-left: 240px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}

.admin-topbar h1 { font-size: 18px; font-weight: 700; }

.admin-content { padding: 24px; }

.admin-sidebar-toggle { display: none; }

/* ─── Responsive ─── */

/* Tablet landscape & medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu a { padding: 8px 14px; font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        display: none;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 18px; font-size: 14px; width: 100%; }

    .menu-toggle { display: flex; }

    .header-actions .btn { display: none; }

    .hero-slider, .hero-slide { min-height: 400px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }

    .section { padding: 48px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }

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

    .newsletter-box { flex-direction: column; padding: 32px; text-align: center; }
    .newsletter-form { flex-direction: column; }

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

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main { margin-left: 0; }

    .container { padding: 0 16px; }
    .header-inner { gap: 12px; }
    .logo { font-size: 18px; }
    .logo img { height: 40px !important; }

    .cart-item { flex-wrap: wrap; gap: 12px; }
    .cart-item-details { min-width: 0; width: 100%; }
    .cart-quantity { flex-wrap: wrap; }
    .cart-summary-card { position: static; }

    .hero-title { font-size: 26px; }
    .hero-search { flex-direction: column; }
    .hero-search input { width: 100%; }
    .hero-search button { width: 100%; }

    .section-header h2 { font-size: 24px; }

    table.sm-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .flash-notification { top: 60px; max-width: 90%; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .brands-slider { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 22px; }
    .hero-slider, .hero-slide { min-height: 320px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .section { padding: 32px 0; }
    .container { padding: 0 12px; }
    .logo { font-size: 16px; }
    .logo img { height: 34px !important; }
    .header-inner { gap: 8px; height: 60px; }
    .nav-menu { top: 60px; max-height: calc(100vh - 60px); }
    .btn { padding: 10px 20px; font-size: 13px; white-space: normal; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .cart-item-image { width: 60px; }
    .cart-item-details { gap: 6px; }
}

@media (max-width: 360px) {
    .container { padding: 0 8px; }
    .hero-title { font-size: 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .products-grid { gap: 10px; }
    .header-inner { height: 54px; gap: 6px; }
    .logo { font-size: 14px; }
    .logo img { height: 28px !important; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .card, .glass { padding: 14px; }
    .footer-grid { gap: 20px; }
}


