/* IXIRMARKET v3 - MediaMarkt-inspired Retail Design */
:root {
    --primary: #4367b5;
    --primary-dark: #2f4f94;
    --primary-light: #5b7fd4;
    --primary-glow: rgba(67, 103, 181, 0.15);
    --primary-gradient: linear-gradient(135deg, #4367b5 0%, #2d4a8a 50%, #1a3266 100%);
    --deal: #e30613;
    --deal-dark: #b8050f;
    --deal-bg: #fff5f5;
    --deal-gradient: linear-gradient(135deg, #e30613 0%, #ff4d4d 100%);
    --nav-dark: #141414;
    --nav-dark-hover: #222;
    --accent: #00d4aa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 72px;
    --page-px: clamp(16px, 3vw, 64px);
}

[data-theme="light"] {
    --bg: #f0f4fa;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --header-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: #0c1222;
    --footer-text: #94a3b8;
    --input-bg: #f8fafc;
    --hero-overlay: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.05) 100%);
}

[data-theme="dark"] {
    --bg: #0a0f1a;
    --bg-alt: #111827;
    --bg-card: #151d2e;
    --bg-elevated: #1a2438;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(17, 24, 39, 0.9);
    --footer-bg: #060a12;
    --footer-text: #64748b;
    --input-bg: #1e293b;
    --hero-overlay: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}

*, *::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);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
img:not(.allow-image-save) {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.protected-media,
.slide,
.product-card-image,
.product-gallery-pro,
.gallery-stage,
.gallery-lightbox,
.blog-image,
.promo-banner,
.category-tile-img,
.cart-item-image,
.blog-detail-cover {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

/* Full-width layout - NO boxed max-width */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.site-main { flex: 1; width: 100%; }

/* Announcement */
.announcement-bar {
    background: var(--deal-gradient);
    color: #fff;
    text-align: center;
    padding: 10px var(--page-px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ===== HEADER ===== */
.site-header {
    width: 100%;
    position: relative;
}
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--page-px);
}
.header-main.scrolled { box-shadow: var(--shadow-md); }
.header-nav {
    background: var(--nav-dark);
    padding: 0 var(--page-px);
    width: 100%;
    height: 48px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.header-main-inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 560px) 1fr;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    min-width: 0;
}
.header-center {
    justify-self: center;
    width: 100%;
    min-width: 0;
}
.header-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.5vw, 14px);
    justify-self: end;
    min-width: 0;
    flex-shrink: 0;
}
.header-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.header-phone:hover {
    border-color: rgba(67, 103, 181, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: var(--primary);
}
.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.04));
    color: var(--deal);
    flex-shrink: 0;
}
.header-phone-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
    min-width: 0;
}
.header-phone-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.header-phone-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.header-user-panel {
    display: inline-flex;
    align-items: stretch;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-user-panel:hover {
    border-color: rgba(67, 103, 181, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.header-user-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    border: none;
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.header-user-theme:hover {
    background: var(--primary-glow);
    color: var(--primary);
}
.header-user-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 14px 0 10px;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
}
.header-user-link:hover {
    background: var(--primary-glow);
    color: var(--primary);
}
.header-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
}
.header-user-avatar--guest {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.header-user-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
    min-width: 0;
    max-width: 180px;
}
.header-user-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.header-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.header-user-link:hover .header-user-name,
.header-user-link:hover .header-user-label {
    color: var(--primary);
}
.header-cart {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 52px;
    height: 44px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.header-cart:hover {
    border-color: rgba(67, 103, 181, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: var(--primary);
}
.header-cart-icon { display: flex; line-height: 0; }
.header-cart-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.header-cart:hover .header-cart-label { color: var(--primary); }
.header-cart .cart-badge {
    top: 2px;
    right: 8px;
}
[data-theme="dark"] .header-phone,
[data-theme="dark"] .header-user-panel,
[data-theme="dark"] .header-cart {
    background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .header-user-avatar--guest {
    background: rgba(255, 255, 255, 0.06);
}
.header-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 48px;
    padding: 8px 10px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    font-family: var(--font);
    text-decoration: none;
    transition: all var(--transition);
}
.header-tool--icon {
    min-width: 44px;
    padding: 7px 8px;
}
.header-tool--compact {
    min-width: auto;
    padding: 8px;
}
.header-tool:hover {
    background: var(--primary-glow);
    border-color: transparent;
    color: var(--primary);
}
.header-tool .icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}
.header-tool-text {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    transition: color var(--transition);
}
.header-tool:hover .header-tool-text { color: var(--primary); }
.header-tool-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.header-tool:hover .header-tool-label { color: var(--primary); }
.header-tool--icon .header-tool-label {
    max-width: 56px;
    font-size: 0.625rem;
}
.header-fx {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px 0 10px;
    margin-right: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-fx:hover {
    border-color: rgba(67, 103, 181, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.header-fx-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(67, 103, 181, 0.12), rgba(67, 103, 181, 0.06));
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.header-fx-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
    min-width: 0;
}
.header-fx-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.header-fx-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.header-fx-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 2px;
}
[data-theme="dark"] .header-fx {
    background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .header-fx-icon {
    background: linear-gradient(135deg, rgba(67, 103, 181, 0.28), rgba(67, 103, 181, 0.12));
}
.header-tool.theme-toggle {
    appearance: none;
    -webkit-appearance: none;
}
.cart-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

.logo { flex-shrink: 0; }
.logo-text {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}
.logo-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form {
    position: relative;
    width: 100%;
}
.search-form input {
    width: 100%;
    padding: 14px 52px 14px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: var(--font);
    transition: all var(--transition);
}
.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-card);
}
.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: transform var(--transition);
}
.search-form button:hover { transform: translateY(-50%) scale(1.05); }

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}
.search-suggestions.active { display: block; }
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background var(--transition);
}
.search-suggestion-item:hover { background: var(--bg); }
.search-suggestion-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }

/* Tek satir navigasyon */
.header-nav-inner {
    display: flex;
    align-items: stretch;
    flex: 1;
    width: 100%;
    min-height: 0;
    gap: 0;
}
.header-nav-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: var(--deal);
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    transition: background var(--transition);
    letter-spacing: 0.01em;
}
.header-nav-all:hover { background: var(--deal-dark); color: #fff; }
.header-nav-scroll {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-nav-scroll::-webkit-scrollbar { display: none; }
.header-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
    align-self: stretch;
    transition: all var(--transition);
    flex-shrink: 0;
}
.header-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}
.header-nav-link:first-child { margin-left: 4px; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Modern SVG Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}
.icon-sm svg,
svg.icon-sm {
    width: 16px;
    height: 16px;
}
.icon-success { color: var(--success); }
.icon-danger { color: var(--danger); }
.search-form button .icon svg { width: 18px; height: 18px; }
.trust-icon .icon svg { color: var(--primary); }
.trust-strip-item .icon svg { color: var(--primary); }
.favorite-btn.active { color: var(--deal); }
.favorite-btn.active svg { fill: currentColor; stroke: none; }
.btn .icon svg { width: 1em; height: 1em; }
.product-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-trust-item .icon svg { color: var(--primary); flex-shrink: 0; }

/* Alerts */
.alert {
    padding: 14px var(--page-px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #10b981; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.alert-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; opacity: 0.6; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(67, 103, 181, 0.35);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 103, 181, 0.45);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-deal {
    background: var(--deal-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.4);
}
.btn-deal:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(227, 6, 19, 0.5); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }

/* Hero Slider - Full Width */
.hero-slider { position: relative; overflow: hidden; width: 100%; }
.slider-wrapper { position: relative; height: clamp(380px, 50vh, 560px); }
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
    position: relative;
    color: #fff;
    max-width: 640px;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
    width: 100%;
    margin: 0;
}
.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.slide-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 32px;
    opacity: 0.92;
    line-height: 1.6;
    max-width: 520px;
}
.slider-controls {
    position: absolute;
    bottom: 32px;
    left: var(--page-px);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}
.slider-prev, .slider-next {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.25); }
.slider-dots { display: flex; gap: 8px; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.dot.active { width: 28px; background: #fff; }

/* Sections - Full Width */
.section {
    padding: clamp(20px, 3vw, 36px) 0;
    width: 100%;
}
.section + .section {
    padding-top: clamp(12px, 2vw, 20px);
}
.section.bg-alt { background: var(--bg-alt); }
.section.bg-gradient {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.section-inner { padding-left: var(--page-px); padding-right: var(--page-px); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    flex-wrap: wrap;
    gap: 16px;
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.section-title {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 6px;
}
.section-tag--new { color: var(--accent); }
.deal-tag {
    display: inline-block;
    background: var(--deal);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.section-deals {
    background: linear-gradient(180deg, var(--deal-bg) 0%, var(--bg-alt) 100%);
    border-top: 3px solid var(--deal);
    border-bottom: 3px solid var(--deal);
}
.section-header--deals .section-title { color: var(--text); }
.section-link--deal {
    border-color: var(--deal);
    color: var(--deal);
}
.section-link--deal:hover {
    background: var(--deal);
    border-color: var(--deal);
    color: #fff;
}
.section-subtitle { color: var(--text-muted); margin-top: 6px; font-size: 1rem; }
.section-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    transition: var(--transition);
}
.section-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Category scroll tiles */
.category-scroll {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    overflow-x: auto;
    padding: 8px var(--page-px) 16px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-tile {
    flex-shrink: 0;
    width: clamp(96px, 10vw, 120px);
    text-align: center;
    color: var(--text);
    transition: transform var(--transition);
}
.category-tile:hover { transform: translateY(-4px); color: var(--primary); }
.category-tile-img {
    width: clamp(80px, 9vw, 100px);
    height: clamp(80px, 9vw, 100px);
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.category-tile:hover .category-tile-img {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.category-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tile-letter {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}
.category-tile-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Legacy category grid (fallback) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 36px) 24px;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: #fff;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover .category-icon { background: rgba(255,255,255,0.2); color: #fff; }
.category-card:hover .category-link { color: rgba(255,255,255,0.9); }
.category-card > * { position: relative; z-index: 1; }
.category-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
    transition: var(--transition);
}
.category-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.category-link { font-size: 0.8125rem; font-weight: 600; opacity: 0.8; }

/* Products Grid - Full Width */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.products-grid.list-view { grid-template-columns: 1fr !important; gap: 12px; }
.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    max-width: none;
    min-height: clamp(120px, 14vw, 160px);
}
.products-grid.list-view .product-card:hover {
    transform: none;
}
.products-grid.list-view .product-card-image {
    width: clamp(140px, 22vw, 220px);
    min-width: clamp(140px, 22vw, 220px);
    aspect-ratio: auto;
    height: auto;
    align-self: stretch;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 0;
}
.products-grid.list-view .product-card:hover .product-card-image img { transform: none; }
.products-grid.list-view .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.products-grid.list-view .product-card-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "category category"
        "title title"
        "price action";
    align-items: center;
    gap: 8px 20px;
    padding: 18px clamp(16px, 3vw, 28px);
    min-width: 0;
}
.products-grid.list-view .product-category { grid-area: category; margin: 0; }
.products-grid.list-view .product-title {
    grid-area: title;
    font-size: 1.0625rem;
    margin: 0;
}
.products-grid.list-view .product-price {
    grid-area: price;
    align-self: end;
}
.products-grid.list-view .btn-add-cart {
    grid-area: action;
    align-self: end;
    justify-self: end;
    width: auto;
    min-width: 160px;
    margin: 0;
}
.products-grid.list-view .favorite-btn {
    top: 12px;
    right: 12px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(67, 103, 181, 0.25);
}
.product-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}
.badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}
.badge-sale { background: var(--deal); }
.badge-new { background: linear-gradient(135deg, #00d4aa, #059669); }
.badge-campaign { background: linear-gradient(135deg, #f59e0b, #d97706); }

.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
[data-theme="dark"] .favorite-btn { background: rgba(21,29,46,0.95); }
.favorite-btn:hover, .favorite-btn.active {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.product-card-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--input-bg) 100%);
    padding: 24px;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.08); }

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.product-category {
    font-size: 0.6875rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.product-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title a { color: var(--text); transition: color var(--transition); }
.product-title a:hover { color: var(--primary); }

.product-price {
    margin: 8px 0 4px;
}
.product-price-dual {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}
.product-price-dual .price-old,
.product-price-dual .price-old-usd {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}
.product-price-dual .price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    flex: 0 0 100%;
}
.product-price-dual .price-alt-usd {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
}
.product-price-dual--detail {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.product-price-dual--detail .price-old,
.product-price-dual--detail .price-old-usd {
    flex: 0 0 100%;
    font-size: 1rem;
}
.product-price-dual--detail .price-current {
    flex: none;
    font-size: clamp(2rem, 4vw, 2.625rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.product-price-dual--detail .price-alt-usd {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-left: 18px;
    border-left: 1px solid var(--border-strong);
    line-height: 1.2;
}
.product-price-dual--cart {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.product-price-dual--cart .price-current {
    font-size: 0.9375rem;
    font-weight: 700;
}
.product-price-dual--cart .price-alt-usd {
    font-size: 0.75rem;
}
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.8125rem; }
.price-current {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.price-deal { color: var(--deal); }
.products-grid--retail .product-card {
    border-radius: var(--radius-sm);
}
.products-grid--retail .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.products-grid--retail .btn-add-cart {
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-stock { font-size: 0.75rem; font-weight: 600; }
.product-stock.in-stock { color: var(--success); }
.product-stock.out-of-stock { color: var(--danger); }

.btn-add-cart {
    width: 100%;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    padding: 12px;
}

/* ===== CATEGORY / CATALOG PAGE ===== */
.breadcrumb-bar {
    width: 100%;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--page-px);
}
.breadcrumb { padding: 0; }
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.8125rem;
}
.breadcrumb-item a { color: var(--text-muted); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); font-weight: 600; }
.breadcrumb-item:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--text-muted); }

.page-hero {
    width: 100%;
    background: var(--primary-gradient);
    padding: clamp(18px, 2.5vw, 28px) var(--page-px);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.page-hero-text { flex: 1; min-width: 0; }
.page-hero .page-title {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.page-hero .page-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.page-hero-meta {
    display: flex;
    gap: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}
.page-hero-stat {
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
    font-weight: 600;
}
.page-hero-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.categories-directory {
    padding: clamp(24px, 4vw, 40px) var(--page-px) clamp(32px, 5vw, 48px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.category-directory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.category-directory-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.category-directory-main {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
}
.category-directory-main:hover { color: var(--primary); }
.category-directory-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.category-directory-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-directory-icon span {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
}
.category-directory-card:has(.category-directory-subs) .category-directory-main {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.category-directory-subs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.category-directory-subs a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 0;
}
.category-directory-subs a:hover { color: var(--primary); }

/* Catalog layout - full width split */
.catalog-page { width: 100%; }
.catalog-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr;
    min-height: 60vh;
    width: 100%;
    align-items: stretch;
}
.filters-sidebar {
    padding: 0;
    align-self: start;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
}
.filters-panel {
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.filters-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.filters-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filters-panel-title h3 {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}
.filters-panel-title .icon { color: var(--primary); }
.filters-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}
.filters-form { padding: 0; }

.filter-section {
    border-bottom: 1px solid var(--border);
}
.filter-section:last-of-type { border-bottom: none; }
.filter-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}
.filter-section-head::-webkit-details-marker { display: none; }
.filter-section-head:hover { background: var(--bg-alt); }
.filter-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.filter-section-icon {
    color: var(--primary);
    opacity: 0.9;
    flex-shrink: 0;
}
.filter-section-icon svg,
svg.filter-section-icon {
    width: 16px;
    height: 16px;
    display: block;
}
.filter-section-active {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 3px 8px;
    border-radius: 999px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-section-chevron {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.filter-section[open] .filter-section-chevron { transform: rotate(180deg); }
.filter-section-body {
    padding: 0 20px 18px;
}

.filter-price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}
.filter-price-row input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}
.filter-price-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-price-sep {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
}

.filter-option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filter-option-list--scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
}
.filter-option:hover { background: var(--bg-alt); }
.filter-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.filter-option-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.filter-option input:checked + .filter-option-box {
    border-color: var(--primary);
    background: var(--primary);
}
.filter-option input:checked + .filter-option-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    background: none;
    border-radius: 0;
}
.filter-option input:checked ~ .filter-option-text {
    color: var(--text);
    font-weight: 700;
}
.filter-option-text {
    color: var(--text-muted);
    line-height: 1.35;
    word-break: break-word;
}

.filter-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}
.filter-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.filter-toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--border-strong);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.filter-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.filter-toggle input:checked + .filter-toggle-track {
    background: var(--primary);
}
.filter-toggle input:checked + .filter-toggle-track .filter-toggle-thumb {
    transform: translateX(18px);
}
.filter-toggle-text { color: var(--text-muted); flex: 1; }
.filter-toggle input:checked ~ .filter-toggle-text {
    color: var(--text);
    font-weight: 700;
}

.filter-subcategory-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filter-subcategory {
    display: block;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}
.filter-subcategory:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb, 220, 38, 38), 0.15);
}

.filter-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.filter-submit,
.filter-clear {
    flex: 1;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

/* Legacy filter classes (arama vb.) */
.filter-group { margin-bottom: 24px; }
.filter-group > label:first-child {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.filter-group input, .filter-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    transition: var(--transition);
}
.filter-group input:focus, .filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.filter-check:hover { background: var(--primary-glow); }
.filter-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters-sidebar > h3 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.catalog-main {
    padding: clamp(24px, 3vw, 40px);
    background: var(--bg);
    min-width: 0;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vw, 32px);
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.listing-count {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}
.listing-count strong { color: var(--text); font-weight: 800; }
.listing-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.listing-sort-form { margin: 0; }
.listing-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.listing-sort-icon { color: var(--text-muted); flex-shrink: 0; }
.listing-sort-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}
.listing-sort-select {
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 4px 24px 4px 0;
    cursor: pointer;
    min-width: 140px;
    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='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
.listing-sort-select:focus { outline: none; }
.listing-sort:has(.listing-sort-select:focus) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.view-toggle {
    display: flex;
    gap: 0;
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border);
}
.view-toggle button {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.view-toggle button .icon {
    pointer-events: none;
}
.view-toggle button.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.catalog-main .empty-state {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.catalog-main .products-grid {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.catalog-main .products-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

/* Page layouts - tam genislik */
.page-header {
    width: 100%;
    padding: clamp(32px, 4vw, 48px) var(--page-px) 24px;
}
.page-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.page-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    min-height: 60vh;
    width: 100%;
}
.page-layout-main {
    padding: clamp(24px, 3vw, 40px);
    min-width: 0;
}
.page-layout-main .products-grid {
    padding-left: 0;
    padding-right: 0;
}
.page-layout-main .empty-state {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-layout-full {
    width: 100%;
    padding: clamp(24px, 4vw, 48px) var(--page-px) 80px;
}
.content-narrow {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}
.page-center {
    width: 100%;
    padding: clamp(40px, 6vw, 72px) var(--page-px) 80px;
    text-align: center;
}
.page-center .page-title { margin-bottom: 8px; }
.page-center .empty-state { padding-top: 24px; }
.page-section {
    width: 100%;
    padding-bottom: 80px;
}
.auth-page {
    width: 100%;
    padding: clamp(40px, 8vw, 80px) var(--page-px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
}

/* Trust Section */
.trust-section {
    width: 100%;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: clamp(40px, 5vw, 64px) var(--page-px);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 3vw, 32px);
}
.trust-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.trust-icon { font-size: 2.25rem; margin-bottom: 12px; }
.trust-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 0.8125rem; color: var(--text-muted); }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(20px, 2vw, 28px);
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-body { padding: 24px; }
.blog-body time { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-body h3 { font-size: 1.125rem; font-weight: 700; margin: 10px 0; line-height: 1.4; }
.blog-body h3 a { color: var(--text); }
.blog-body p { font-size: 0.9rem; color: var(--text-muted); }

.blog-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
}
.blog-grid--home .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-grid--home .blog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 2vw, 22px);
}
.blog-grid--home .blog-body h3 {
    font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
}
.blog-grid--home .blog-body p {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Blog detail */
.blog-detail {
    width: 100%;
    padding: clamp(28px, 4vw, 48px) var(--page-px) clamp(48px, 6vw, 80px);
}
.blog-detail-wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}
.blog-detail-header {
    margin-bottom: clamp(20px, 3vw, 28px);
    text-align: center;
}
.blog-detail-cover {
    margin: 0 0 clamp(24px, 3vw, 36px);
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.blog-detail-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 14px;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-glow);
    border-radius: 999px;
}
.blog-detail-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 14px;
}
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}
.blog-detail-meta time { color: var(--primary); }
.blog-detail-meta-sep { opacity: 0.5; }
.blog-detail-excerpt {
    margin: 0 0 clamp(24px, 3vw, 32px);
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 500;
}
.blog-detail-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
}
.blog-detail-content > *:first-child { margin-top: 0; }
.blog-detail-footer {
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid var(--border);
}

/* Brands */
.brands-section { padding-left: var(--page-px); padding-right: var(--page-px); }
.brands-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-item {
    flex-shrink: 0;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}
.brand-item:hover { border-color: var(--primary); color: var(--primary); }

/* Promo / Reklam banner alanlari */
.promo-strip {
    width: 100%;
    padding: clamp(8px, 1.25vw, 14px) 0;
}
.promo-strip-inner {
    display: grid;
    gap: clamp(12px, 2vw, 20px);
}
.promo-strip--full .promo-strip-inner,
.promo-strip--duo .promo-strip-inner,
.promo-strip--trio .promo-strip-inner {
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.promo-strip--full .promo-strip-inner { grid-template-columns: 1fr; }
.promo-strip--duo .promo-strip-inner { grid-template-columns: repeat(2, 1fr); }
.promo-strip--trio .promo-strip-inner { grid-template-columns: repeat(3, 1fr); }
.promo-strip--wide {
    padding-left: 0;
    padding-right: 0;
}
.promo-strip--wide .promo-strip-inner {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
}
.promo-banner {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--bg-card);
}
.promo-strip--wide .promo-banner { border-radius: 0; }
.promo-banner:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}
.promo-banner img {
    width: 100%;
    height: clamp(120px, 18vw, 240px);
    object-fit: cover;
    display: block;
}
.promo-strip--wide .promo-banner img {
    height: clamp(140px, 22vw, 320px);
}
.promo-strip--duo .promo-banner img,
.promo-strip--trio .promo-banner img {
    height: clamp(100px, 14vw, 180px);
}
.filters-sidebar .promo-strip {
    padding: 0;
    border-top: 1px solid var(--border);
}
.filters-sidebar .promo-strip-inner {
    grid-template-columns: 1fr;
    padding: 0;
}
.filters-sidebar .promo-banner img {
    height: auto;
    min-height: 120px;
}

/* Trust strip under hero */
.trust-strip {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px var(--page-px);
}
.trust-strip-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 4vw, 48px);
}
.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
}
.trust-strip-icon { font-size: 1.125rem; }

/* Legacy banners (fallback) */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    padding-left: var(--page-px);
    padding-right: var(--page-px);
}
.banner-card { border-radius: var(--radius-lg); overflow: hidden; display: block; box-shadow: var(--shadow); }
.banner-card img { width: 100%; height: clamp(180px, 20vw, 260px); object-fit: cover; transition: transform 0.5s; }
.banner-card:hover img { transform: scale(1.04); }

/* Footer - Full Width */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    padding: clamp(48px, 6vw, 80px) var(--page-px) clamp(32px, 4vw, 48px);
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.footer-logo span { color: var(--primary-light); }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--footer-text); font-size: 0.9375rem; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-links a {
    color: var(--footer-text);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    transition: var(--transition);
}
.social-links a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px var(--page-px);
    text-align: center;
    font-size: 0.8125rem;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(32px, 4vw, 56px) var(--page-px) 80px;
    width: 100%;
}

/* Professional Product Gallery */
.product-gallery-pro {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
}
.product-gallery-pro:not(:has(.gallery-thumbs-col)) {
    grid-template-columns: minmax(0, 1fr);
}
.gallery-thumbs-col {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: 96px;
    height: 100%;
    min-height: 0;
}
.gallery-thumb-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.gallery-thumb-nav:hover { border-color: var(--primary); color: var(--primary); }
.gallery-thumbs-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    align-self: stretch;
    justify-self: center;
}
.gallery-thumbs-scroll::-webkit-scrollbar {
    display: none;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    padding: 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    flex: 0 0 80px;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.gallery-main-col {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gallery-stage {
    position: relative;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.product-gallery-pro:not(:has(.gallery-thumbs-col)) .gallery-stage {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 320px;
}
[data-theme="dark"] .gallery-stage {
    background: linear-gradient(145deg, #151d2e 0%, #1a2438 100%);
}
.gallery-zoom-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    position: relative;
    cursor: zoom-in;
    background: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .gallery-zoom-wrap {
    background: rgba(255, 255, 255, 0.04);
}
.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.15s ease-out;
    will-change: transform;
}
.gallery-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 2;
}
.gallery-zoom-btn:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .gallery-zoom-btn { background: rgba(21, 29, 46, 0.95); }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 3;
}
.gallery-nav:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .gallery-nav { background: rgba(21, 29, 46, 0.95); }
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }
.gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 40px;
}
.gallery-lightbox.open { opacity: 1; }
.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.gallery-lightbox-close:hover { opacity: 1; }
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.gallery-lightbox-prev { left: 24px; }
.gallery-lightbox-next { right: 24px; }

.product-trust-list {
    margin-top: 0;
    padding: 16px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Legacy gallery fallback */
.product-gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.product-gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    background: var(--bg-card);
}
.product-gallery-thumbs img.active, .product-gallery-thumbs img:hover { border-color: var(--primary); }
.product-info {
    position: sticky;
    top: 88px;
    align-self: start;
}
.product-info-header { margin-bottom: 20px; }
.product-info-brand {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.product-info h1 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 14px;
}
.product-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-info-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.product-buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.product-buy-price {
    padding: 20px 22px 16px;
    position: relative;
}
.product-buy-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--deal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.product-buy-note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.product-buy-divider {
    height: 1px;
    background: var(--border);
}
.product-buy-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 22px 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.product-buy-stock.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.product-buy-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.product-buy-stock .icon svg { stroke: currentColor; }
.product-buy-actions {
    padding: 16px 22px 20px;
}
.product-buy-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: end;
}
.qty-input--detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: transparent;
    overflow: visible;
}
.qty-input-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.qty-input-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}
.qty-input--detail button {
    background: transparent;
    border: none;
    padding: 14px 14px;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}
.qty-input--detail button:hover {
    background: var(--primary-glow);
    color: var(--primary);
}
.qty-input--detail input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 0;
}
.btn-add-cart--detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(67, 103, 181, 0.25);
}
.btn-add-cart--detail:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67, 103, 181, 0.32);
}
.favorite-btn--detail {
    position: static;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    box-shadow: none;
    font-size: 1rem;
    flex-shrink: 0;
}
.favorite-btn--detail:hover {
    transform: none;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.product-driver-download {
    padding: 0 22px 18px;
}
.btn-driver-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.product-info-summary {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
}
.qty-input button { background: var(--bg); border: none; padding: 12px 16px; cursor: pointer; color: var(--text); font-size: 1.125rem; transition: var(--transition); }
.qty-input button:hover { background: var(--primary-glow); color: var(--primary); }
.qty-input input { width: 56px; text-align: center; border: none; background: transparent; color: var(--text); font-size: 1rem; font-weight: 700; padding: 12px 0; }
.product-tabs {
    padding: clamp(32px, 5vw, 48px) var(--page-px) 80px;
    width: 100%;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.product-tabs-card {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.tab-nav {
    display: flex;
    gap: 8px;
    padding: 0 0 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.tab-nav button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-family: var(--font);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}
.tab-nav button::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    transition: background 0.2s ease;
}
.tab-nav button:hover {
    color: var(--text);
    background: var(--bg-card);
}
.tab-nav button.active {
    color: var(--primary);
    background: var(--bg-card);
}
.tab-nav button.active::after {
    background: var(--primary);
}
.tab-nav button .icon { opacity: 0.75; flex-shrink: 0; }
.tab-nav button.active .icon { opacity: 1; color: var(--primary); }

.product-tab-panels { padding: 0; }
.tab-content {
    padding: clamp(24px, 4vw, 32px) 0 clamp(28px, 4vw, 36px);
    display: none;
    line-height: 1.8;
}
.tab-content.active { display: block; }

.product-tab-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.product-tab-head h2 {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 6px;
}
.product-tab-head p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-desc-body {
    padding: 4px 0 0;
}
.product-rich-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
    max-width: none;
}
.product-rich-content > *:first-child { margin-top: 0; }
.product-rich-content > *:last-child { margin-bottom: 0; }
.product-rich-content p { margin: 0 0 1.1em; }
.product-rich-content h1,
.product-rich-content h2,
.product-rich-content h3,
.product-rich-content h4 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.6em 0 0.65em;
    letter-spacing: -0.02em;
}
.product-rich-content h1 { font-size: 1.75rem; }
.product-rich-content h2 { font-size: 1.5rem; }
.product-rich-content h3 { font-size: 1.25rem; }
.product-rich-content h4 { font-size: 1.0625rem; }
.product-rich-content ul,
.product-rich-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}
.product-rich-content li { margin-bottom: 0.45em; }
.product-rich-content strong,
.product-rich-content b { font-weight: 800; }
.product-rich-content em,
.product-rich-content i { font-style: italic; }
.product-rich-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-rich-content blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.product-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
.product-rich-content th,
.product-rich-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}
.product-rich-content th {
    background: var(--bg-alt);
    font-weight: 700;
}
.product-rich-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5em 0;
}
.specs-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.specs-item {
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr;
    align-items: center;
    gap: 16px 32px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.specs-item:last-child { border-bottom: none; }
.specs-item:nth-child(even) { background: var(--bg-alt); }
.specs-item dt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.specs-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    flex-shrink: 0;
}
.specs-item:nth-child(even) .specs-item-icon { background: var(--bg); }
.specs-item-label { line-height: 1.3; }
.specs-item dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
}

/* Legacy specs table (fallback) */
.specs-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 14px 20px; font-size: 0.9375rem; }
.specs-table td:first-child { font-weight: 700; color: var(--text-muted); width: 40%; background: var(--bg); }

/* Cart & Checkout */
.cart-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 8px;
}
.cart-page-subtitle {
    margin-top: 6px;
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}
.cart-layout, .checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: clamp(24px, 4vw, 40px);
    padding: 0 var(--page-px) 80px;
    width: 100%;
}
.cart-layout.is-empty {
    grid-template-columns: 1fr;
    padding-top: 0;
    justify-items: center;
}
.cart-items-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    align-self: start;
}
.cart-items-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.cart-items-label {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.cart-items-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}
.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 120px 130px 120px 36px;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s ease;
}
.cart-item:last-child { border-bottom: none; }
.cart-item.is-updating { opacity: 0.55; pointer-events: none; }
.cart-item-image {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cart-item-brand {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}
.cart-item-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    text-decoration: none;
    transition: var(--transition);
}
.cart-item-name:hover { color: var(--primary); }
.cart-item-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.cart-item-unit-mobile { display: none; }
.cart-item-unit { text-align: right; }
.cart-item-qty { display: flex; justify-content: center; }
.qty-input--cart {
    border-radius: var(--radius-sm);
}
.qty-input--cart button {
    padding: 10px 12px;
}
.qty-input--cart input {
    width: 44px;
    padding: 10px 0;
    font-size: 0.9375rem;
}
.cart-item-total {
    text-align: right;
}
.cart-item-total-label {
    display: none;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.cart-item-total strong {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}
.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.cart-item-remove:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 28px);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    box-shadow: var(--shadow-md);
}
.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.summary-rows {
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    padding-bottom: 4px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9375rem;
    gap: 16px;
}
.summary-row--discount { color: var(--success); }
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 18px;
    font-size: 1.125rem;
    font-weight: 800;
}
.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.coupon-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
}
.cart-checkout-btn { margin-bottom: 10px; }
.cart-continue-btn { margin-top: 0; }

/* Legacy cart table (checkout) */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.cart-table th, .cart-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { background: var(--bg); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); font-family: var(--font); }

/* Forms */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-lg);
}
.auth-card h1 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; font-weight: 800; }
.auth-card p.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }
.auth-links { text-align: center; margin-top: 24px; font-size: 0.9375rem; }

.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 var(--page-px);
    width: 100%;
}
.checkout-step {
    flex: 1;
    text-align: center;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.checkout-step.active { background: var(--primary-gradient); color: #fff; border-color: transparent; }
.checkout-step.completed { background: var(--success); color: #fff; border-color: transparent; }

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.checkout-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow);
}
.checkout-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.checkout-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
}
.checkout-panel-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.checkout-panel-link {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.checkout-panel-link:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}
.checkout-guest-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}
.checkout-guest-note a { color: var(--primary); font-weight: 700; }
.checkout-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 4px;
}
.checkout-select-grid--invoice { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.checkout-select-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    min-height: 100%;
}
.checkout-select-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.checkout-select-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-glow);
    box-shadow: 0 0 0 1px var(--primary);
}
.checkout-select-card--alt {
    border-style: dashed;
    align-items: center;
}
.checkout-select-card--compact { align-items: center; }
.checkout-select-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.checkout-select-card-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    transition: var(--transition);
}
.checkout-select-card:has(input:checked) .checkout-select-card-box {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--bg-card);
}
.checkout-select-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.checkout-select-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.checkout-select-card-top strong { font-size: 0.9375rem; font-weight: 800; }
.checkout-select-card-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}
.checkout-select-card-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.checkout-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: var(--primary-glow);
    color: var(--primary);
}
.checkout-badge--muted {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.checkout-manual-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.checkout-manual-block[hidden] { display: none !important; }
.checkout-manual-title {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-muted);
}
.checkout-summary {
    position: sticky;
    top: calc(var(--header-height, 72px) + 20px);
    align-self: start;
    height: fit-content;
}

.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}
.payment-method:has(input:checked) { border-color: var(--primary); background: var(--primary-glow); }
.payment-method input { width: auto; accent-color: var(--primary); }
.order-success {
    width: 100%;
    text-align: center;
    padding: clamp(60px, 10vw, 120px) var(--page-px);
}
.order-success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 520px;
    margin: 24px auto;
    text-align: left;
}
.order-success-icon { font-size: 4rem; margin-bottom: 24px; }
.order-success h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.order-number { font-size: 1.25rem; color: var(--primary); font-weight: 800; margin: 24px 0; }

/* Pagination */
.pagination { margin-top: 40px; padding: 0 var(--page-px); }
.catalog-main .pagination { padding: 0; }
.pagination-list { display: flex; justify-content: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-card);
}
.pagination-link.active, .pagination-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* User Panel */
.user-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 0;
    width: 100%;
    min-height: 60vh;
}
.user-sidebar {
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: clamp(24px, 3vw, 40px);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.user-sidebar h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.user-menu { list-style: none; }
.user-menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    transition: var(--transition);
}
.user-menu li a:hover, .user-menu li a.active { background: var(--primary-gradient); color: #fff; }
.user-content {
    padding: clamp(24px, 4vw, 48px);
    background: var(--bg);
}
.user-content h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.user-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.user-panel-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}
.user-panel-form {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.user-panel-form-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text);
}
.user-panel-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.user-data-table-wrap {
    overflow-x: auto;
}
.user-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.user-inline-form {
    display: inline;
}
.user-empty-state {
    padding: 40px 24px;
    text-align: center;
}
.user-empty-state p {
    margin-bottom: 16px;
    color: var(--text-muted);
}
.status-badge { display: inline-block; padding: 5px 14px; border-radius: 100px; font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-processing { background: #fef3c7; color: #d97706; }
.status-shipped { background: #e0e7ff; color: #4338ca; }
.status-delivered { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }
.status-returned { background: #fce7f3; color: #be185d; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.data-table th { background: var(--bg); font-weight: 800; color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(32px, 4vw, 56px) var(--page-px) 80px;
}
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon { font-size: 1.5rem; }

.error-page {
    width: 100%;
    text-align: center;
    padding: clamp(80px, 15vw, 160px) var(--page-px);
}
.error-page h1 { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--primary); line-height: 1; opacity: 0.3; }
.error-page h2 { font-size: 1.5rem; font-weight: 800; margin: 16px 0; }

.empty-state {
    text-align: center;
    padding: clamp(48px, 8vw, 80px) 24px;
    color: var(--text-muted);
    width: 100%;
}
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.user-content .empty-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 20px; opacity: 0.6; }
.empty-state-icon .icon svg { width: 56px; height: 56px; color: var(--text-muted); opacity: 0.45; }

.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9375rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

.scroll-top-btn {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-card);
}
.scroll-top-btn .icon svg { stroke: currentColor; }

/* Responsive */
@media (max-width: 1200px) {
    .catalog-layout { grid-template-columns: 260px 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .blog-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .product-info { position: static; }
    .product-buy-row {
        grid-template-columns: 1fr auto;
    }
    .qty-input--detail { grid-column: 1 / -1; }
    .product-trust-list { grid-template-columns: 1fr; }
    .product-gallery-pro {
        grid-template-columns: 1fr;
    }
    .gallery-main-col { order: -1; }
    .gallery-thumbs-col {
        display: flex;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        min-height: auto;
    }
    .gallery-thumbs-scroll {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        min-height: auto;
        align-self: auto;
    }
    .gallery-thumb-nav { transform: rotate(-90deg); }
    .gallery-stage {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 280px;
    }
    .gallery-nav { width: 36px; height: 36px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .catalog-layout, .page-layout, .user-layout { grid-template-columns: 1fr; }
    .filters-sidebar {
        position: static;
        max-height: none;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .user-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 1100px) {
    .header-main-inner {
        grid-template-columns: auto 1fr auto;
    }
    .header-phone { display: none; }
    .header-toolbar-actions { gap: 6px; }
    .header-user-body { max-width: 120px; }
    .header-user-label { display: none; }
    .header-user-name { font-size: 0.75rem; }
    .header-user-link { padding: 0 10px 0 8px; }
    .header-user-theme { width: 38px; }
    .header-cart-label { display: none; }
    .header-cart { min-width: 42px; padding: 6px 8px; }
}

@media (max-width: 768px) {
    .blog-grid--home { grid-template-columns: 1fr; }
    .blog-detail-cover { max-height: 260px; }
    .mobile-menu-btn { display: flex; }
    .header-main-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .header-brand { grid-column: 1; grid-row: 1; }
    .header-toolbar {
        grid-column: 2;
        grid-row: 1;
        gap: 4px;
    }
    .header-toolbar-contact { display: none; }
    .header-toolbar-actions {
        gap: 0;
    }
    .header-center {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
    .header-fx {
        height: 38px;
        padding: 0 8px 0 6px;
        gap: 6px;
    }
    .header-fx-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .header-fx-label { display: none; }
    .header-fx-value { font-size: 0.8125rem; }
    .header-tool-label { display: none; }
    .header-tool--icon { min-width: 38px; padding: 6px; }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        max-height: none;
        background: var(--nav-dark);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: var(--shadow-lg);
        padding: 12px var(--page-px) 20px;
        z-index: 999;
    }
    .header-nav.open { display: block; opacity: 1; pointer-events: auto; }
    .header-nav-inner { flex-direction: column; min-height: 0; }
    .header-nav-all { padding: 14px 16px; justify-content: center; }
    .header-nav-scroll {
        flex-direction: column;
        overflow: visible;
        margin-top: 8px;
    }
    .header-nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-left: none;
    }
    .header-nav-link:first-child { margin-left: 0; }
    .product-tabs { padding-top: 24px; }
    .tab-nav {
        flex-wrap: wrap;
        padding: 8px 8px 0;
        gap: 4px;
    }
    .tab-nav button {
        flex: 1 1 auto;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    .tab-content { padding: 20px 0 24px; }
    .product-tab-head { margin-bottom: 18px; padding-bottom: 14px; }
    .product-tab-head h2 { font-size: 1rem; }
    .specs-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 16px;
    }
    .specs-item dd { font-size: 0.875rem; }
    .promo-strip--duo .promo-strip-inner,
    .promo-strip--trio .promo-strip-inner { grid-template-columns: 1fr; }
    .slider-wrapper { height: clamp(300px, 55vw, 420px); }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 12px 16px;
        padding: 18px 16px;
    }
    .cart-item-image { width: 72px; height: 72px; grid-row: 1 / 3; }
    .cart-item-body { grid-column: 2 / 4; }
    .cart-item-unit { display: none; }
    .cart-item-unit-mobile { display: block; font-weight: 700; font-size: 0.9375rem; margin-top: 4px; }
    .cart-item-qty { grid-column: 2; justify-content: flex-start; }
    .cart-item-total {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
        align-self: center;
    }
    .cart-item-total-label { display: block; }
    .cart-item-remove {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }
    .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
    .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-hero-meta {
        width: 100%;
        justify-content: flex-end;
        gap: 16px;
    }
    .products-grid.list-view .product-card-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "category"
            "title"
            "price"
            "action";
        padding: 14px 16px;
    }
    .products-grid.list-view .product-card-image {
        width: clamp(110px, 28vw, 160px);
        min-width: clamp(110px, 28vw, 160px);
    }
    .products-grid.list-view .btn-add-cart {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .catalog-main .products-grid:not(.list-view),
    .products-grid:not(.list-view) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 14px; }
    .product-title { font-size: 0.8125rem; }
    .price-current { font-size: 1rem; }
    .btn-add-cart { font-size: 0.75rem; padding: 10px 8px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-grid { grid-template-columns: 1fr; }
}
