:root {
    --red: #D00000;
    --red-dark: #a00000;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --success: #157347;
    --warning: #F1C40F;
    --danger: #E74C3C;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-900);
    width: 100%;
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(208,0,0,0.1);
}
input::placeholder { color: var(--gray-500); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; text-align: left; }
th { font-weight: 600; color: var(--gray-700); background: var(--gray-100); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.025em; }
tr { border-bottom: 1px solid var(--gray-200); }
tr:hover { background: var(--gray-50); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 1.5rem;
}
.logo { display: flex; align-items: center; position: relative; z-index: 1001; }
.logo img { height: 80px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.25rem;
    padding: 0.5rem;
}

.nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-link {
    color: var(--gray-300);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: var(--transition);
    z-index: 100;
}
.dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--red); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-right { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.cart-count {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--red);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--gray-400); max-width: 600px; margin: 0 auto 2rem; }

/* Search bar */
.search-bar {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 0.375rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}
.search-bar input:focus { box-shadow: none; }
.search-bar button {
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--red-dark); }

/* Section */
.section { padding: 3rem 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.section-link { color: var(--red); font-weight: 600; font-size: 0.9375rem; display: flex; align-items: center; gap: 0.35rem; }
.section-link:hover { text-decoration: underline; }

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.category-card i { font-size: 2rem; color: var(--red); margin-bottom: 0.75rem; }
.category-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-800); }
.category-card p { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.375rem; line-height: 1.4; }
.product-code { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-price { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }
.product-price .currency { font-size: 0.8125rem; font-weight: 500; color: var(--gray-500); }
.btn-add-cart {
    background: var(--black);
    color: var(--white);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--red); transform: scale(1.1); }

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
    align-items: start;
}
.product-detail-image {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.product-detail-image img { width: 100%; max-height: 500px; object-fit: contain; }
.product-detail-info h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; color: var(--gray-600); font-size: 0.9375rem; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--red); margin-bottom: 1.25rem; }
.product-detail-desc { color: var(--gray-700); margin-bottom: 1.5rem; line-height: 1.7; }
.product-detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.product-stock { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.stock-in { color: var(--success); }
.stock-out { color: var(--danger); }

/* Compatibility */
.compat-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.compat-section h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.compat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.compat-item { background: var(--gray-100); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.compat-item strong { color: var(--gray-700); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: var(--gray-800); }
.btn-outline { background: transparent; color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: rgba(208,0,0,0.04); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Cart */
.cart-page { padding: 2rem 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-items { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 1rem; padding: 1.25rem; align-items: center; border-bottom: 1px solid var(--gray-200); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 100px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-info p { font-size: 0.8125rem; color: var(--gray-500); }
.cart-item-price { font-weight: 700; font-size: 1rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--gray-200); }
.qty-value { font-weight: 600; min-width: 24px; text-align: center; }
.cart-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); padding: 1.5rem; }
.cart-summary h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.625rem 0; font-size: 0.9375rem; }
.summary-row.total { border-top: 2px solid var(--gray-200); margin-top: 0.5rem; padding-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty i { font-size: 4rem; color: var(--gray-300); margin-bottom: 1rem; }

/* Checkout */
.checkout-page { padding: 2rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); padding: 1.5rem; }
.checkout-form h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin: 0; font-weight: 400; }

/* Auth */
.auth-page { min-height: calc(100vh - 84px - 300px); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.auth-box p { color: var(--gray-500); text-align: center; margin-bottom: 1.5rem; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 48px; display: inline-block; }
.auth-links { text-align: center; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--gray-600); }
.auth-links a { color: var(--red); font-weight: 600; }
.error-message { background: #fdeaea; color: var(--danger); padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9375rem; }

/* Search page */
.search-page { padding: 2rem 0; }
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.search-filters { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); padding: 1.25rem; }
.search-filters h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }

/* Contact */
.contact-page { padding: 2rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item i { width: 40px; height: 40px; background: var(--gray-100); color: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.9375rem; color: var(--gray-600); margin: 0; }

/* Privacy */
.privacy-page { padding: 3rem 0; max-width: 800px; margin: 0 auto; }
.privacy-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.privacy-page h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.privacy-page p { color: var(--gray-700); margin-bottom: 1rem; line-height: 1.7; }

/* Payment result */
.payment-result { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.payment-result-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 3rem; text-align: center; max-width: 480px; width: 100%; }
.payment-result-box .icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }
.result-approved .icon { background: rgba(21,115,71,0.1); color: var(--success); }
.result-declined .icon, .result-error .icon { background: rgba(231,76,60,0.1); color: var(--danger); }
.result-cancelled .icon { background: rgba(241,196,15,0.1); color: var(--warning); }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 84px); }
.dashboard-sidebar { background: var(--black); color: var(--white); padding: 1.5rem 0; position: sticky; top: 84px; height: calc(100vh - 84px); overflow-y: auto; }
.dashboard-sidebar a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { color: var(--white); background: rgba(255,255,255,0.05); }
.dashboard-sidebar a i { width: 20px; text-align: center; }
.dashboard-main { padding: 2rem; background: var(--gray-50); }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-header h1 { font-size: 1.5rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.stat-card h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); }
.data-table-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); overflow: hidden; }
.data-table-wrapper .table-header { padding: 1.25rem; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.data-table-wrapper .table-header h3 { font-size: 1.125rem; font-weight: 700; }
.table-responsive { overflow-x: auto; }
.table-actions { display: flex; gap: 0.5rem; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); color: var(--white); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 1.25rem; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.125rem; font-weight: 700; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1.25rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Payment popup */
.payment-popup { position: fixed; inset: 0; z-index: 3000; display: none; align-items: flex-start; justify-content: center; padding: 2vh 1rem; overflow-y: auto; }
.payment-popup.active { display: flex; }
.payment-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
.payment-popup-content { position: relative; background: var(--white); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 560px; margin-top: 2vh; margin-bottom: 2vh; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.payment-popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.payment-popup-header h3 { font-size: 1.125rem; font-weight: 700; }
.popup-close { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.popup-close:hover { background: var(--gray-200); }
#pp-button { min-height: 720px; }

/* Shipping */
.shipping-page { padding: 2rem 0; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.address-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); padding: 1.25rem; position: relative; }
.address-card.default { border-color: var(--red); }
.address-badge { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--red); color: var(--white); font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 50px; }
.address-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.address-card p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 0.25rem; }

/* Footer */
.footer { background: var(--black); color: var(--white); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--white); }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col p { color: var(--gray-400); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a { color: var(--gray-400); font-size: 0.9375rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); }
.social-links a:hover { background: var(--red); }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.contact-list li i { color: var(--red); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; color: var(--gray-500); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
    .search-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .logo img { height: 52px; }
    .menu-toggle { display: flex; }
    .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--black); flex-direction: column; padding: 1rem; gap: 0; }
    .nav.active { display: flex; }
    .nav-link { padding: 0.75rem 1rem; width: 100%; }
    .nav-dropdown { width: 100%; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a { color: var(--gray-300); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3rem 0; }
    .section { padding: 2rem 0; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item-price { text-align: right; grid-column: 2; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-popup-content { width: 100%; max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; border-radius: var(--radius); }
    .search-bar button { border-radius: var(--radius-sm); }
    .product-detail-price { font-size: 1.5rem; }
    .auth-box { padding: 1.5rem; }
    .stat-card .value { font-size: 1.375rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
