/* DropShip Pro — Ana CSS Tasarım Sistemi */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────
   CSS Değişkenleri
───────────────────────────────────────── */
:root {
    /* Renkler */
    --primary:       #6c63ff;
    --primary-dark:  #5a52e0;
    --primary-light: #8b83ff;
    --secondary:     #ff6584;
    --accent:        #43e97b;

    --bg:            #0f0f1a;
    --bg-2:          #1a1a2e;
    --bg-3:          #16213e;
    --bg-card:       #1e1e35;
    --bg-card-hover: #252545;

    --text:          #e8e8f0;
    --text-muted:    #9090b0;
    --text-light:    #c0c0d8;

    --border:        rgba(255,255,255,0.08);
    --border-light:  rgba(255,255,255,0.12);

    --success:       #43e97b;
    --warning:       #ffd43b;
    --danger:        #ff4d4d;
    --info:          #74c0fc;

    /* Tipografi */
    --font:          'Inter', -apple-system, sans-serif;
    --text-xs:       0.75rem;
    --text-sm:       0.875rem;
    --text-base:     1rem;
    --text-lg:       1.125rem;
    --text-xl:       1.25rem;
    --text-2xl:      1.5rem;
    --text-3xl:      1.875rem;
    --text-4xl:      2.25rem;
    --text-5xl:      3rem;

    /* Spacing */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* Radii */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
    --shadow:     0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(108,99,255,0.3);

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.35s ease;

    /* Layout */
    --container: 1280px;
    --header-h:  70px;
}

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

@media (min-width: 640px)  { .container { padding: 0 var(--sp-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--sp-8); } }

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ─────────────────────────────────────────
   Header / Navbar
───────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    width: 100%;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: var(--sp-1); }

.nav__link {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
    color: var(--text);
    background: var(--border);
}

/* Arama */
.header__search {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.header__search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-10);
    color: var(--text);
    font-size: var(--text-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header__search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.header__search input::placeholder { color: var(--text-muted); }

.header__search .search-icon {
    position: absolute;
    left: var(--sp-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.header__actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }

.header__btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.header__btn:hover { color: var(--text); border-color: var(--primary); background: var(--bg-card-hover); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.btn-user:hover { color: var(--text); border-color: var(--primary); }

/* Mobile menu toggle */
.hamburger { display: none; }
@media (max-width: 768px) {
    .nav, .header__search { display: none; }
    .hamburger { display: flex; }
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,99,255,0.5);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn--danger {
    background: rgba(255,77,77,0.1);
    color: var(--danger);
    border: 1px solid rgba(255,77,77,0.3);
}
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn--full { width: 100%; }
.btn--icon { padding: var(--sp-2); width: 36px; height: 36px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─────────────────────────────────────────
   Forms
───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light);
}

.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    color: var(--text);
    font-size: var(--text-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 100px; resize: vertical; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-error { font-size: var(--text-xs); color: var(--danger); margin-top: var(--sp-1); }
.form-hint  { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-1); }

/* Checkbox */
.form-check { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.form-check label { font-size: var(--text-sm); color: var(--text-light); cursor: pointer; }

/* ─────────────────────────────────────────
   Cards
───────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }

.card__header { margin-bottom: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.card__title  { font-size: var(--text-lg); font-weight: 700; }

/* ─────────────────────────────────────────
   Product Cards
───────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--sp-6);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-3);
    display: block;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: var(--sp-2);
    left: var(--sp-2);
    background: var(--secondary);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    z-index: 1;
}

.product-actions {
    position: absolute;
    top: var(--sp-2);
    right: var(--sp-2);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.product-action-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-content { padding: var(--sp-4); flex: 1; }

.product-category {
    font-size: var(--text-xs);
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-2);
}

.product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a:hover { color: var(--primary-light); }

.product-price {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.product-price .current { font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.product-price .old { font-size: var(--text-sm); color: var(--text-muted); text-decoration: line-through; }

.product-footer { padding: var(--sp-4); padding-top: 0; }

.add-to-cart {
    width: 100%;
    padding: var(--sp-3);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(108,99,255,0.3);
}
.add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(108,99,255,0.45);
}
.add-to-cart:active { transform: translateY(0); }

/* ─────────────────────────────────────────
   Hero Section
───────────────────────────────────────── */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108,99,255,0.25) 0%, transparent 60%),
                linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero__content { position: relative; max-width: 640px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: var(--radius-full);
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--text-sm);
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: var(--sp-6);
    animation: fadeInDown 0.6s ease;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--sp-6);
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero__title .highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero__actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero__stats {
    display: flex;
    gap: var(--sp-8);
    margin-top: var(--sp-12);
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero__stat { }
.hero__stat strong { display: block; font-size: var(--text-2xl); font-weight: 800; color: var(--text); }
.hero__stat span { font-size: var(--text-sm); color: var(--text-muted); }

/* ─────────────────────────────────────────
   Section
───────────────────────────────────────── */
.section { padding: var(--sp-16) 0; }
.section--sm { padding: var(--sp-10) 0; }

.section__header { margin-bottom: var(--sp-10); }
.section__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--sp-2);
}
.section__title { font-size: var(--text-3xl); font-weight: 800; }
.section__desc { color: var(--text-muted); margin-top: var(--sp-2); }

/* ─────────────────────────────────────────
   Category Cards
───────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-4);
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: var(--sp-3);
    display: block;
}
.category-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.category-count { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-1); }

/* ─────────────────────────────────────────
   Badge / Status
───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}
.badge--primary { background: rgba(108,99,255,0.15); color: var(--primary-light); }
.badge--success { background: rgba(67,233,123,0.15); color: var(--success); }
.badge--warning { background: rgba(255,212,59,0.15); color: var(--warning); }
.badge--danger  { background: rgba(255,77,77,0.15); color: var(--danger); }
.badge--muted   { background: var(--bg-3); color: var(--text-muted); }

/* ─────────────────────────────────────────
   Status Labels (Sipariş)
───────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--pending    { background: rgba(255,212,59,0.1); color: var(--warning); }
.status--processing { background: rgba(116,192,252,0.1); color: var(--info); }
.status--shipped    { background: rgba(108,99,255,0.1); color: var(--primary-light); }
.status--success    { background: rgba(67,233,123,0.1); color: var(--success); }
.status--danger     { background: rgba(255,77,77,0.1); color: var(--danger); }
.status--refunded   { background: rgba(144,144,176,0.1); color: var(--text-muted); }

/* ─────────────────────────────────────────
   Alerts / Flash
───────────────────────────────────────── */
.alert {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    border-left: 3px solid;
    margin-bottom: var(--sp-4);
    animation: slideIn 0.3s ease;
}
.alert--success { background: rgba(67,233,123,0.08); border-color: var(--success); color: var(--success); }
.alert--error   { background: rgba(255,77,77,0.08); border-color: var(--danger); color: var(--danger); }
.alert--warning { background: rgba(255,212,59,0.08); border-color: var(--warning); color: var(--warning); }
.alert--info    { background: rgba(116,192,252,0.08); border-color: var(--info); color: var(--info); }

/* ─────────────────────────────────────────
   Table
───────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.table th {
    background: var(--bg-3);
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table td {
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--border);
    vertical-align: middle;
}
.table tr:hover td { background: var(--bg-card-hover); }

/* ─────────────────────────────────────────
   Pagination
───────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-8); flex-wrap: wrap; }

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ─────────────────────────────────────────
   Cart / Checkout
───────────────────────────────────────── */
.cart-item {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item__img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-3);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--sp-1); }
.cart-item__price { color: var(--primary-light); font-weight: 700; }

.qty-control { display: flex; align-items: center; gap: var(--sp-2); }
.qty-btn {
    width: 28px; height: 28px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    font-size: var(--text-lg);
    transition: all var(--transition);
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); }
.qty-input {
    width: 44px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    padding: var(--sp-1);
}

.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-2) 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total {
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--text);
    padding-top: var(--sp-4);
}

/* Kupon */
.coupon-input { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0; }
.coupon-input input { flex: 1; }

/* ─────────────────────────────────────────
   Breadcrumb
───────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-light); }

/* ─────────────────────────────────────────
   Product Detail
───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }

.product-gallery__main {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.product-gallery__thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover { border-color: var(--primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info__title { font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--sp-4); }
.product-info__price { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.product-info__price .current { font-size: var(--text-4xl); font-weight: 900; }
.product-info__price .old { font-size: var(--text-xl); color: var(--text-muted); text-decoration: line-through; }
.product-info__price .discount { background: var(--secondary); color: #fff; font-size: var(--text-sm); font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); }

.product-info__desc { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--sp-6); }

.product-info__stock { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); margin-bottom: var(--sp-6); }
.in-stock  { color: var(--success); }
.out-stock { color: var(--danger); }

.product-info__actions { display: flex; gap: var(--sp-3); }

/* ─────────────────────────────────────────
   Toast Notifications
───────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4) var(--sp-5);
    min-width: 260px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    font-size: var(--text-sm);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}
.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }

.toast__icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast__close { margin-left: auto; opacity: 0.5; cursor: pointer; flex-shrink: 0; }
.toast__close:hover { opacity: 1; }

/* ─────────────────────────────────────────
   Page Header
───────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-12) 0;
}
.page-header__title { font-size: var(--text-4xl); font-weight: 900; margin-bottom: var(--sp-2); }
.page-header__desc { color: var(--text-muted); font-size: var(--text-lg); }

/* ─────────────────────────────────────────
   Filter Sidebar
───────────────────────────────────────── */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 768px) { .products-layout { grid-template-columns: 1fr; } }

.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
}

.filter-section { margin-bottom: var(--sp-6); }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--sp-3); color: var(--text); }

.filter-option { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; cursor: pointer; }
.filter-option input { accent-color: var(--primary); }
.filter-option label { font-size: var(--text-sm); color: var(--text-light); cursor: pointer; flex: 1; }
.filter-option .count { font-size: var(--text-xs); color: var(--text-muted); }

/* ─────────────────────────────────────────
   Empty State
───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--sp-20) var(--sp-8);
}
.empty-state__icon { font-size: 4rem; margin-bottom: var(--sp-4); opacity: 0.5; }
.empty-state__title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state__desc { color: var(--text-muted); margin-bottom: var(--sp-6); }

/* ─────────────────────────────────────────
   Account Pages
───────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.account-nav__link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    border-left: 2px solid transparent;
}
.account-nav__link:hover { color: var(--text); background: var(--bg-card-hover); }
.account-nav__link.active { color: var(--primary-light); background: rgba(108,99,255,0.08); border-left-color: var(--primary); }

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: var(--sp-16) 0 var(--sp-8);
    margin-top: var(--sp-20);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    margin-bottom: var(--sp-12);
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .logo { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
.footer__brand p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; }

.footer__title { font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--sp-4); color: var(--text); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__links a { color: var(--text-muted); font-size: var(--text-sm); transition: color var(--transition); }
.footer__links a:hover { color: var(--primary-light); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-pulse  { animation: pulse 2s infinite; }
.animate-spin   { animation: spin 1s linear infinite; }
.fade-in        { animation: fadeInUp 0.5s ease both; }

/* ─────────────────────────────────────────
   Utility
───────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
