/* ============================================
   BICERS CONSTRUCTION — Design System
   Építőanyag Webáruház
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);

    --accent: #ff6b35;
    --accent-hover: #ff8855;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --accent-light: rgba(255, 107, 53, 0.1);

    --success: #00c853;
    --warning: #ffd600;
    --danger: #ff1744;
    --info: #40c4ff;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Header */
    --header-height: 72px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-hover);
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
}

input,
select,
textarea {
    font-family: var(--font-body);
}

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(15, 15, 26, 0.98);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-primary);
}

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

.logo span {
    color: var(--accent);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Currency Selector */
.currency-selector {
    position: relative;
}

.currency-selector select {
    appearance: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.currency-selector select:hover {
    border-color: var(--accent);
}

.currency-selector::after {
    content: '▾';
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.75rem;
}

/* Header Icons */
.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.header-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.header-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, var(--accent-glow), transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(64, 196, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-light);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    margin-bottom: var(--space-lg);
    font-weight: 800;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Product Card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-favorite {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.product-card-favorite:hover,
.product-card-favorite.active {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
}

.product-card-favorite.active::after {
    content: '♥';
    position: absolute;
}

.product-card-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-card-body {
    padding: var(--space-lg);
}

.product-card-category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

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

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-card-price .price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card-price .unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-card-discount {
    display: inline-block;
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

.product-card-actions .btn {
    flex: 1;
}

/* ---------- Category Cards ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
    background: var(--bg-card-hover);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Trust Badges ---------- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.trust-badge {
    text-align: center;
    padding: var(--space-lg);
}

.trust-badge-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.trust-badge h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.trust-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Section Spacing ---------- */
.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

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

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

.footer-bottom-badges {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.footer-bottom-badges span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ---------- Filters Sidebar ---------- */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    padding-top: calc(var(--header-height) + var(--space-2xl));
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    align-self: start;
}

.filter-group {
    margin-bottom: var(--space-xl);
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: var(--text-primary);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    accent-color: var(--accent);
}

.filter-option .count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- Search Bar ---------- */
.search-bar {
    position: relative;
    margin-bottom: var(--space-xl);
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

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

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ---------- Sort Bar ---------- */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.sort-bar .results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-bar select {
    appearance: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ---------- Cart Table ---------- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-secondary);
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quantity Input */
.qty-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-input button {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.qty-input button:hover {
    background: var(--accent);
}

.qty-input input {
    width: 50px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.qty-input input:focus {
    outline: none;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    border-top: 2px solid var(--border-glass);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-summary-row.total .value {
    color: var(--accent);
}

.cart-summary-row.discount {
    color: var(--success);
}

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.tab {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--accent);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

.breadcrumb .separator {
    color: var(--text-muted);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: var(--space-lg) var(--space-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ---------- Page Header ---------- */
.page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    opacity: 0.3;
}

.page-header .container {
    position: relative;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ---------- Discount Table ---------- */
.discount-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
}

.discount-table th,
.discount-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.discount-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.discount-table .active-tier {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ---------- Shipping Info ---------- */
.shipping-zones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

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

.info-table th,
.info-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.info-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ---------- Legal Page ---------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--accent);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--space-xl);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-in:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-in:nth-child(6) {
    animation-delay: 0.6s;
}

.animate-in:nth-child(7) {
    animation-delay: 0.7s;
}

.animate-in:nth-child(8) {
    animation-delay: 0.8s;
}

/* ---------- Cart Layout ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    align-items: start;
}

/* ---------- Checkout Layout ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: start;
}

/* ---------- Product Detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

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

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.product-detail-category {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
}

.product-detail-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.product-detail-price .unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.product-detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.product-detail-meta {
    display: grid;
    gap: var(--space-sm);
}

.product-detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Order Success ---------- */
.order-success {
    text-align: center;
    padding: var(--space-4xl);
    max-width: 600px;
    margin: 0 auto;
}

.order-success-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
}

.order-success h2 {
    margin-bottom: var(--space-md);
}

.order-success .order-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: var(--space-md) 0;
}


/* ---------- Contact Grid ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* ---------- About Stats Grid ---------- */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

/* ---------- About Values Grid ---------- */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

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

    .page-with-sidebar {
        grid-template-columns: 1fr;
        padding-top: calc(var(--header-height) + var(--space-lg));
    }

    .sidebar {
        position: static;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --header-height: 60px;
    }

    /* === HEADER MOBILE === */
    .header .container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1rem;
        gap: 0.25rem;
    }

    .logo .logo-icon {
        font-size: 1.3rem;
    }

    /* Hide currency selector on mobile — put it in menu instead */
    .currency-selector {
        display: none;
    }

    .header-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .header-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -4px;
        right: -4px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    /* Mobile Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Add currency switcher in mobile nav */
    .nav-links.open::after {
        content: '';
        display: block;
        margin-top: var(--space-md);
    }

    .menu-toggle {
        display: flex;
    }

    /* === HERO MOBILE === */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-2xl);
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: var(--space-md);
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: var(--space-lg);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: var(--space-md);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }

    .hero-stat .label {
        font-size: 0.8rem;
    }

    /* === PAGE HEADER MOBILE === */
    .page-header {
        padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* === SECTIONS MOBILE === */
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-title {
        margin-bottom: var(--space-xl);
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    /* === CATEGORIES MOBILE === */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .category-card {
        padding: var(--space-md);
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }

    .category-card h3 {
        font-size: 0.9rem;
    }

    .category-card p {
        font-size: 0.75rem;
        display: none;
    }

    /* === PRODUCT GRID MOBILE === */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }

    .product-card-image {
        height: 160px;
    }

    .product-card-body {
        padding: var(--space-md);
    }

    .product-card-title {
        font-size: 0.9rem;
    }

    .product-card-price .price {
        font-size: 1.1rem;
    }

    .product-card-price .unit {
        font-size: 0.75rem;
    }

    .product-card-discount {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    .product-card-actions {
        flex-direction: column;
        gap: 0.4rem;
    }

    .product-card-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* === TRUST BADGES MOBILE === */
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .trust-badge {
        padding: var(--space-md);
    }

    .trust-badge-icon {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
    }

    .trust-badge h4 {
        font-size: 0.85rem;
    }

    .trust-badge p {
        font-size: 0.7rem;
    }

    /* === PRODUCT DETAIL MOBILE === */
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .product-detail-image {
        aspect-ratio: 4/3;
        max-height: 280px;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }

    .product-detail-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .product-detail-actions .btn {
        width: 100%;
    }

    .product-detail-actions .btn-icon {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }

    /* === SIDEBAR / FILTERS MOBILE === */
    .page-with-sidebar {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-top: 0;
    }

    .sidebar {
        position: static;
    }

    .sidebar .glass-card {
        padding: var(--space-md);
    }

    .filter-group {
        margin-bottom: var(--space-md);
    }

    /* === CART MOBILE === */
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border-glass);
        align-items: center;
    }

    .cart-table td {
        padding: var(--space-xs) 0;
        border: none;
    }

    .cart-table td:first-child {
        grid-column: 1 / -1;
    }

    .cart-item-info {
        gap: var(--space-sm);
    }

    .cart-item-img {
        width: 56px;
        height: 56px;
    }

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

    .cart-summary {
        padding: var(--space-lg);
    }

    /* === CHECKOUT MOBILE === */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    .glass-card {
        padding: var(--space-md);
    }

    /* === DISCOUNT TABLE MOBILE === */
    .discount-table th,
    .discount-table td {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    /* === FOOTER MOBILE === */
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer h4 {
        margin-bottom: var(--space-md);
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer-bottom-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* === COOKIE BANNER MOBILE === */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .cookie-banner p {
        font-size: 0.8rem;
    }

    /* === BREADCRUMB MOBILE === */
    .breadcrumb {
        font-size: 0.75rem;
        padding: var(--space-sm) 0;
    }

    /* === SHIPPING ZONES MOBILE === */
    .shipping-zones {
        grid-template-columns: 1fr;
    }

    /* === TABS MOBILE === */
    .tabs {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }

    /* === CONTACT PAGE MOBILE === */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* === ABOUT PAGE MOBILE === */
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        margin: var(--space-lg) 0;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Override the inline grid-template-columns: 1fr 1fr */
}

/* === EXTRA SMALL (phones in portrait) === */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo .logo-icon {
        font-size: 1.1rem;
    }

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

    .page-header h1 {
        font-size: 1.3rem;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .category-card {
        padding: var(--space-sm);
    }

    .category-icon {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .hero-stat .number {
        font-size: 1.3rem;
    }

    .product-detail-image {
        max-height: 220px;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    .order-success {
        padding: var(--space-xl);
    }

    .order-success-icon {
        font-size: 3.5rem;
    }

    .order-success h2 {
        font-size: 1.3rem;
    }
}

/* ---------- Utility ---------- */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: var(--space-md);
}

.mt-2 {
    margin-top: var(--space-xl);
}

.mt-3 {
    margin-top: var(--space-2xl);
}

.mb-1 {
    margin-bottom: var(--space-md);
}

.mb-2 {
    margin-bottom: var(--space-xl);
}

.mb-3 {
    margin-bottom: var(--space-2xl);
}

.hidden {
    display: none !important;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: var(--space-xs);
    transition: opacity var(--transition-fast);
}

.remove-btn:hover {
    opacity: 0.7;
}