/* ===== VARIABLES ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

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

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

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.btn-light:hover {
    background: var(--light);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    transition: var(--transition);
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

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

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

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

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

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

.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
}

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

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 48px;
}

/* ===== SEARCH BOX ===== */
.search-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--light);
}

.search-tab {
    flex: 1;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: transparent;
    border: none;
    transition: var(--transition);
}

.search-tab.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.search-tab:hover {
    background: var(--light);
}

.search-form {
    padding: 24px;
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-select, .search-input {
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.search-select:focus, .search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-select:disabled {
    background: var(--light);
    color: var(--gray-light);
}

.btn-search {
    min-width: 140px;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--dark);
    padding: 32px 0;
    margin-top: -20px;
    position: relative;
}

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

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ===== SECTIONS ===== */
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--dark);
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 80px 0;
    background: var(--light);
}

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

.category-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== BRANDS ===== */
.brands {
    padding: 80px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.brand-card:hover {
    background: var(--dark);
    color: var(--white);
}

.brand-name {
    font-weight: 600;
    font-size: 14px;
}

.brands-more {
    text-align: center;
    margin-top: 32px;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 80px 0;
    background: var(--light);
}

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

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    background: var(--danger);
    color: var(--white);
    border-radius: 20px;
    z-index: 1;
}

.product-badge.sale {
    background: var(--success);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light);
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--dark);
}

.product-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-old {
    font-size: 14px;
    color: var(--gray-light);
    text-decoration: line-through;
}

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

.btn-add-cart {
    width: 100%;
}

/* ===== WHY US ===== */
.why-us {
    padding: 80px 0;
}

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

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 28px;
    background: var(--light);
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
    background: var(--gradient);
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 64px 0 32px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--gray-light);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--gray-light);
    transition: var(--transition);
}

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

.contact-info li {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-light);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-light);
}

.payment-icon {
    font-size: 24px;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--light);
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--light);
    border: none;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--danger);
    color: var(--white);
}

.cart-items {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: var(--gray);
    padding: 48px 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--light);
}

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

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.cart-item-remove {
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-checkout {
    width: 100%;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-select,
    .search-input {
        min-width: 100%;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

/* ===== HERO UPDATES ===== */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-top: -32px;
    margin-bottom: 40px;
}

/* ===== MODELS GRID ===== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.model-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.model-image {
    height: 180px;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.model-info {
    padding: 20px;
    text-align: center;
}

.model-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.model-info span {
    font-size: 13px;
    color: var(--gray);
}

.models-more {
    text-align: center;
    margin-top: 32px;
}

/* ===== CART PAGE ===== */
.cart-page {
    padding: 120px 0 80px;
    min-height: 70vh;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cart-items-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-empty-message {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.cart-empty-message h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cart-empty-message p {
    color: var(--gray);
    margin-bottom: 24px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--light);
}

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

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

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

.item-details {
    flex: 1;
}

.item-brand {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

.item-name {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
}

.item-meta {
    font-size: 13px;
    color: var(--gray);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

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

.qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.item-price {
    text-align: right;
    min-width: 120px;
}

.item-price .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.item-price .price-per {
    font-size: 12px;
    color: var(--gray);
}

.item-remove {
    background: none;
    border: none;
    color: var(--gray);
    padding: 8px;
    transition: var(--transition);
}

.item-remove:hover {
    color: var(--danger);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--light);
}

.summary-row.total span:last-child {
    color: var(--primary);
}

.shipping-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin: 24px 0;
}

.btn-continue {
    width: 100%;
    margin-top: 12px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-progress {
    background: var(--light);
    padding: 24px 0;
    margin-top: 72px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
}

.step.active,
.step.completed {
    color: var(--dark);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step.active .step-number {
    background: var(--primary);
}

.step.completed .step-number {
    background: var(--success);
}

.step-label {
    font-weight: 600;
}

.checkout-page {
    padding: 40px 0 80px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.form-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--gray);
}

.form-checkbox label a {
    color: var(--primary);
}

.company-fields,
.shipping-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.shipping-options,
.payment-options {
    margin-top: 20px;
}

.shipping-options h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.option-card {
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.option-card.selected,
.option-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.option-card label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.option-card input[type="radio"] {
    display: none;
}

.option-icon {
    flex-shrink: 0;
    width: 56px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}
.option-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.option-info {
    flex: 1;
}

.option-info strong {
    display: block;
    font-weight: 600;
}

.option-info span {
    font-size: 13px;
    color: var(--gray);
}

.option-price {
    font-weight: 700;
    color: var(--primary);
}

.bank-details {
    margin-top: 24px;
}

.bank-info {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.bank-info h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.bank-info > p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.bank-data {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--light);
}

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

.data-row .label {
    color: var(--gray);
    font-size: 14px;
}

.data-row .value {
    font-weight: 600;
}

.data-row .value.copyable {
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-row .value.highlight {
    color: var(--secondary);
}

.bank-info .note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--secondary);
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.summary-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.summary-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.summary-item .item-info {
    flex: 1;
}

.summary-item .item-name {
    font-weight: 600;
    font-size: 14px;
}

.summary-item .item-qty {
    font-size: 12px;
    color: var(--gray);
}

.summary-item .item-total {
    font-weight: 700;
}

.summary-totals {
    margin-bottom: 24px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.total-row.grand-total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--light);
}

.total-row.grand-total span:last-child {
    color: var(--primary);
}

.terms {
    margin-bottom: 20px;
}

.btn-order {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray);
}

/* Success Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 500px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-content > p {
    color: var(--gray);
    margin-bottom: 24px;
}

.order-number {
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    margin-bottom: 24px;
}

.order-number strong {
    color: var(--primary);
}

.next-steps {
    text-align: left;
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.next-steps h4 {
    margin-bottom: 12px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray);
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cart-summary,
    .checkout-summary {
        position: static;
    }
}

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

    .cart-item-row {
        flex-wrap: wrap;
    }

    .item-details {
        order: 1;
        width: calc(100% - 140px);
    }

    .item-image {
        order: 0;
    }

    .item-quantity {
        order: 2;
    }

    .item-price {
        order: 3;
        text-align: left;
    }

    .item-remove {
        order: 4;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .progress-steps {
        gap: 20px;
    }

    .step-label {
        display: none;
    }
}


/* ============ KosĂˇr oldal ============ */
.cart-page { padding: 130px 0 60px; min-height: 70vh; background: #f8fafc; }
.cart-page .page-header { margin-bottom: 28px; text-align: center; }
.cart-page .page-header h1 { font-size: 32px; margin: 0 0 6px; color: #0f172a; }
.cart-page .page-header p { color: #64748b; margin: 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item-row {
    background: #fff; border-radius: 12px; padding: 16px; display: grid;
    grid-template-columns: 120px 1fr auto auto auto; gap: 16px; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 700px) {
    .cart-item-row { grid-template-columns: 80px 1fr auto; grid-template-areas: "img name remove" "img qty price"; }
    .cart-item-row .item-image { grid-area: img; }
    .cart-item-row .item-image img { width: 80px !important; height: 80px !important; }
    .cart-item-row .item-details { grid-area: name; }
    .cart-item-row .item-quantity { grid-area: qty; }
    .cart-item-row .item-price { grid-area: price; }
    .cart-item-row .item-remove { grid-area: remove; }
}

.cart-item-row .item-name { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 4px; line-height: 1.35; }

.item-quantity { display: inline-flex; align-items: center; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.qty-btn {
    width: 36px; height: 36px; background: #f1f5f9; border: none; cursor: pointer;
    font-size: 18px; font-weight: 600; color: #0f172a; line-height: 1; padding: 0;
    transition: background .15s;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-value { display: inline-block; min-width: 40px; text-align: center; font-weight: 600; font-size: 15px; color: #0f172a; padding: 0 6px; }

.item-price { text-align: right; }
.item-price .price { display: block; font-size: 16px; font-weight: 700; color: #3b82f6; }
.item-price .price-per { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

.item-remove {
    width: 36px; height: 36px; background: transparent; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer; color: #ef4444; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.item-remove:hover { background: #fef2f2; border-color: #fecaca; }

.cart-summary {
    background: #fff; border-radius: 12px; padding: 24px; position: sticky; top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cart-summary h3 { margin: 0 0 16px; font-size: 18px; color: #0f172a; }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: #64748b; font-size: 14px; }
.cart-summary .summary-row.total { border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; color: #0f172a; }
.cart-summary .btn-checkout, .cart-summary .btn-continue { display: block; width: 100%; text-align: center; margin-top: 12px; }

.cart-empty-message { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; }
.cart-empty-message .empty-icon { font-size: 48px; margin-bottom: 16px; }
.cart-empty-message h3 { margin: 0 0 8px; color: #0f172a; }
.cart-empty-message p { color: #64748b; margin: 0 0 20px; }

\

/* ============ Kosár oldal ============ */
.cart-page { padding: 130px 0 60px; min-height: 70vh; background: #f8fafc; }
.cart-page .page-header { margin-bottom: 28px; text-align: center; }
.cart-page .page-header h1 { font-size: 32px; margin: 0 0 6px; color: #0f172a; }
.cart-page .page-header p { color: #64748b; margin: 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item-row {
    background: #fff; border-radius: 12px; padding: 16px; display: grid;
    grid-template-columns: 120px 1fr auto auto auto; gap: 16px; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 700px) {
    .cart-item-row { grid-template-columns: 80px 1fr auto; grid-template-areas: "img name remove" "img qty price"; }
    .cart-item-row .item-image { grid-area: img; }
    .cart-item-row .item-image img { width: 80px !important; height: 80px !important; }
    .cart-item-row .item-details { grid-area: name; }
    .cart-item-row .item-quantity { grid-area: qty; }
    .cart-item-row .item-price { grid-area: price; }
    .cart-item-row .item-remove { grid-area: remove; }
}

.cart-item-row .item-name { font-size: 15px; font-weight: 600; color: #0f172a; margin: 0 0 4px; line-height: 1.35; }

.item-quantity { display: inline-flex; align-items: center; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.qty-btn {
    width: 36px; height: 36px; background: #f1f5f9; border: none; cursor: pointer;
    font-size: 18px; font-weight: 600; color: #0f172a; line-height: 1; padding: 0;
    transition: background .15s;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-value { display: inline-block; min-width: 40px; text-align: center; font-weight: 600; font-size: 15px; color: #0f172a; padding: 0 6px; }

.item-price { text-align: right; }
.item-price .price { display: block; font-size: 16px; font-weight: 700; color: #3b82f6; }
.item-price .price-per { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

.item-remove {
    width: 36px; height: 36px; background: transparent; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer; color: #ef4444; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.item-remove:hover { background: #fef2f2; border-color: #fecaca; }

.cart-summary {
    background: #fff; border-radius: 12px; padding: 24px; position: sticky; top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cart-summary h3 { margin: 0 0 16px; font-size: 18px; color: #0f172a; }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: #64748b; font-size: 14px; }
.cart-summary .summary-row.total { border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; color: #0f172a; }
.cart-summary .btn-checkout, .cart-summary .btn-continue { display: block; width: 100%; text-align: center; margin-top: 12px; }

.cart-empty-message { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; }
.cart-empty-message .empty-icon { font-size: 48px; margin-bottom: 16px; }
.cart-empty-message h3 { margin: 0 0 8px; color: #0f172a; }
.cart-empty-message p { color: #64748b; margin: 0 0 20px; }


/* ============ Kosár sidebar (overlay) ============ */
#cart-sidebar .cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: flex-start;
}
#cart-sidebar .cart-item:last-child { border-bottom: none; }
#cart-sidebar .cart-item-image { width: 72px; height: 72px; flex-shrink: 0; }
#cart-sidebar .cart-item-image img {
    width: 72px !important; height: 72px !important;
    object-fit: cover; border-radius: 8px; display: block;
}
#cart-sidebar .cart-item-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#cart-sidebar .cart-item-title {
    font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.3;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
#cart-sidebar .cart-item-price { font-size: 14px; font-weight: 700; color: #3b82f6; }
#cart-sidebar .cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
#cart-sidebar .item-quantity { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
#cart-sidebar .qty-btn { width: 28px; height: 28px; font-size: 16px; }
#cart-sidebar .qty-value { min-width: 28px; font-size: 13px; }
#cart-sidebar .cart-item-remove { font-size: 12px; }
.cart-empty { text-align: center; color: #94a3b8; padding: 30px 10px; }


/* Üres kosár — teljes szélességű, középre */
.cart-layout.is-empty { grid-template-columns: 1fr; }
.cart-layout.is-empty .cart-items-list { display: flex; justify-content: center; }
.cart-page #cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
}
.cart-page #cart-empty .empty-icon { font-size: 72px; line-height: 1; margin-bottom: 18px; opacity: .7; }
.cart-page #cart-empty h3 { font-size: 22px; margin: 0 0 8px; color: #0f172a; }
.cart-page #cart-empty p { color: #64748b; margin: 0 0 24px; font-size: 15px; }
.cart-page #cart-empty .btn { display: inline-block; padding: 12px 28px; }


/* Üres kosár — teljes magasság + vízszintes és függőleges centrálás */
.cart-page { min-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.cart-page > .container { flex: 1; display: flex; flex-direction: column; width: 100%; }
.cart-layout.is-empty { flex: 1; display: flex; align-items: center; justify-content: center; grid-template-columns: 1fr; }
.cart-layout.is-empty .cart-items-list { display: flex; justify-content: center; align-items: center; width: 100%; }
.cart-page #cart-empty {
    text-align: center;
    padding: 80px 30px;
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.cart-page #cart-empty .empty-icon { font-size: 72px; line-height: 1; margin-bottom: 18px; opacity: .7; }
.cart-page #cart-empty h3 { font-size: 24px; margin: 0 0 8px; color: #0f172a; font-weight: 700; }
.cart-page #cart-empty p { color: #64748b; margin: 0 0 24px; font-size: 15px; }
.cart-page #cart-empty .btn { display: inline-block; padding: 14px 32px; }


/* Üres kosár — háttér nélkül, középen, scroll nélkül */
.cart-page { min-height: 0; padding: 130px 0 40px; display: flex; flex-direction: column; }
.cart-page > .container { width: 100%; }
.cart-layout.is-empty { grid-template-columns: 1fr; min-height: calc(100vh - 320px); display: flex; align-items: center; justify-content: center; }
.cart-layout.is-empty .cart-items-list { display: flex; justify-content: center; align-items: center; width: 100%; background: transparent !important; }
.cart-page #cart-empty {
    text-align: center;
    padding: 30px 20px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}
.cart-page #cart-empty .empty-icon { font-size: 64px; line-height: 1; margin-bottom: 14px; opacity: .7; }
.cart-page #cart-empty h3 { font-size: 22px; margin: 0 0 6px; color: #0f172a; font-weight: 700; }
.cart-page #cart-empty p { color: #64748b; margin: 0 0 18px; font-size: 15px; }
.cart-page #cart-empty .btn { display: inline-block; padding: 12px 28px; }


/* ============ Üres kosár — végleges megoldás ============ */
/* A teljes oldal viewport magasságú (header fix overlap-pel, főtartalom kitölti, footer alul) */
html, body { min-height: 100vh; }
body:has(.cart-page) { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
body:has(.cart-page) .cart-page { flex: 1; min-height: 0; padding: 100px 0 30px; display: flex; flex-direction: column; background: transparent !important; }
body:has(.cart-page) .cart-page > .container { flex: 1; display: flex; flex-direction: column; width: 100%; }

/* Üres állapot: NINCS háttér semmin */
.cart-page .cart-empty-message,
.cart-page #cart-empty {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 20px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}
.cart-page .cart-items-list { background: transparent !important; }
.cart-layout.is-empty {
    flex: 1;
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-layout.is-empty .cart-items-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: transparent !important;
}

.cart-page #cart-empty .empty-icon { font-size: 64px; line-height: 1; margin-bottom: 14px; opacity: .7; }
.cart-page #cart-empty h3 { font-size: 22px; margin: 0 0 6px; color: #0f172a; font-weight: 700; }
.cart-page #cart-empty p { color: #64748b; margin: 0 0 18px; font-size: 15px; }
.cart-page #cart-empty .btn { display: inline-block; padding: 12px 28px; }


/* ===== MOBIL: hamburger dropdown + modal mobile fix ===== */
@media (max-width: 768px) {
    .header { position: relative !important; }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 8px 20px 16px;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,.08);
        border-top: 1px solid #e2e8f0;
        z-index: 999;
    }
    .main-nav.active a {
        padding: 14px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 16px;
    }
    .main-nav.active a:last-child { border-bottom: none; }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .modal-content {
        padding: 28px 20px !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        margin: 0 12px;
        box-sizing: border-box;
    }
}

/* Termék-részletező rács (termek.php) — mobilon 1 oszlopra vált, hogy ne csússzon el. 2026-06-28 */
.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 460px) 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; }
}

/* ===== FEJLÉC KERESŐ (nagyító + kinyíló mező) ===== */
.header-search {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-search .btn-icon {
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.header-search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: var(--light);
    color: var(--dark);
    font-family: inherit;
    font-size: 14px;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.header-search.open .header-search-input {
    width: 220px;
    opacity: 1;
    padding: 0 14px;
    border-color: #e2e8f0;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.header-search-input::-webkit-search-cancel-button { cursor: pointer; }

@media (max-width: 768px) {
    .header-search.open .header-search-input { width: 160px; }
}

@media (max-width: 480px) {
    .header-search.open .header-search-input { width: 130px; font-size: 13px; }
}

/* ===== MORZSAMENÜ + KATEGÓRIA/MODELL BEVEZETŐ ===== */
.morzsa {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.morzsa a {
    color: #93c5fd;
    text-decoration: none;
}

.morzsa a:hover { text-decoration: underline; }

.bevezeto-sav {
    background: var(--light);
    padding: 26px 0;
    border-bottom: 1px solid #e2e8f0;
}

.bevezeto-sav p {
    max-width: 860px;
    color: var(--dark-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
