/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Blog enhancements */
.article-subtitle {
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
    opacity: 0.9;
    margin-top: 6px;
}

.article-utility {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
    color: #cfd6e6;
}

.article-meta-bar {
    background: #0f162c;
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    font-size: 14px;
    color: #cfd6e6;
}

.toc-card {
    background: #0b1020;
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 90px;
}

.toc-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cfd6e6;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item a {
    color: #d9e2f2;
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.toc-item a:hover {
    color: #44d29d;
}

.toc-depth-2 {
    padding-left: 12px;
    border-left: 2px solid #1f2a44;
}

.related-section {
    background: #0f162c;
    border: 1px solid #1f2a44;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    margin-top: 30px;
    color: #d9e2f2;
}

.related-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #f5f7ff;
}

.related-header p {
    margin: 0 0 16px 0;
    color: #b8c4dd;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.related-card {
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 16px;
    background: #0b1020;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.related-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00b46a 0%, #0ea35d 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.related-card h3 {
    margin: 4px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #f5f7ff;
}

.related-card p {
    margin: 0;
    color: #cdd4e6;
    line-height: 1.5;
}

.related-meta {
    font-size: 13px;
    color: #8ea0c0;
}

.related-link {
    margin-top: auto;
    color: #44d29d;
    font-weight: 750;
    text-decoration: none;
}

.related-link:hover {
    text-decoration: underline;
}

.product-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-chip {
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #d9e2f2;
    background: #0b1020;
    flex: 1;
    min-width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    border-color: rgba(0, 180, 106, 0.45);
}

.chip-title {
    font-weight: 750;
    margin-bottom: 4px;
    color: #f5f7ff;
}

.chip-desc {
    font-size: 14px;
    color: #cdd4e6;
    line-height: 1.4;
}

.related-products-section {
    border-style: dashed;
}

@media (max-width: 960px) {
    .article-utility {
        grid-template-columns: 1fr;
    }

    .toc-card {
        position: static;
    }
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --red: #ff0000;
    --blue: #0066ff;
    --green: #00cc66;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #0a0f1e 0%, #1a2332 100%);
    border-bottom: 2px solid #4caf50;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.qc-available-badge {
    position: absolute;
    top: 40px;
    left: 10px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00cc66 0%, #00aa55 100%);
    color: var(--white);
    border-radius: 3px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qc-available-badge::before {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
}


.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo span {
    background: linear-gradient(135deg, #D4AF37 0%, #FFB81C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(76, 175, 80, 0.2);
    border-bottom: 2px solid #4caf50;
}

.nav-cta {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 750;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta.solid {
    background: linear-gradient(135deg, #00b46a 0%, #0ea35d 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 128, 96, 0.35);
}

.nav-cta.ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-link {
    font-size: 20px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.admin-link:hover {
    opacity: 1;
}

/* Service Banner */
.service-banner {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: none;
}

.service-banner-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-bottom-color: #ff9800;
}

.service-banner-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-bottom-color: #2196f3;
}

.service-banner-error {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border-bottom-color: #f44336;
}

.service-banner-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-bottom-color: #4caf50;
}

.service-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-banner-icon {
    font-size: 20px;
    line-height: 1;
}

.service-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.service-banner-text strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.service-banner-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0,0,0,0.5);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.service-banner-close:hover {
    background: rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.8);
}

/* Discount Banner (Promotional) */
.discount-banner {
    background: linear-gradient(135deg, #00b46a 0%, #0ea35d 100%);
    padding: 16px 0;
    border-bottom: 2px solid #008f53;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.discount-banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
}

.discount-banner-icon {
    font-size: 28px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.discount-banner-text {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.discount-banner-text strong {
    font-weight: 800;
    color: #ffffff;
    font-size: 17px;
}

.discount-banner-cta {
    padding: 10px 28px;
    background: #ffffff;
    color: #00b46a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.discount-banner-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: #f8f8f8;
}

.discount-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.discount-banner-close:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.15);
}

/* Search and Filter Bar */
.search-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 60px;
    z-index: 90;
}

.search-filter-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 0;
}

.search-box svg {
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.filter-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--gray-800);
}

.filter-tip {
    margin-top: 12px;
    padding: 10px 12px;
    background: #eef7ff;
    border: 1px solid #cce4ff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0a1a2f;
}

.filter-tip-dismiss {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

.cart-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-radius: 8px;
}

.cart-btn:hover {
    background: var(--gray-800);
}

.cart-count {
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.user-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
}

.user-btn:hover {
    background: var(--black);
    color: var(--white);
}

.user-btn svg {
    width: 16px;
    height: 16px;
}

/* User Dropdown Menu */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 150;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--gray-100);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-dropdown-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--gray-500);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    transition: background 0.2s;
    position: relative;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item svg {
    flex-shrink: 0;
}

.dropdown-item .badge {
    margin-left: auto;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.filter-sidebar.active {
    right: 0;
}

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 150;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 180;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-header h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: var(--black);
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-search {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    margin-bottom: 10px;
}

.filter-search:focus {
    outline: none;
    border-color: var(--black);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
}

.price-input:focus {
    outline: none;
    border-color: var(--black);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.btn-clear {
    flex: 1;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--black);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: var(--black);
    color: var(--white);
}

.btn-apply {
    flex: 2;
    padding: 12px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: var(--gray-800);
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    background: var(--gray-100);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.cart-item-brand {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0 0 0;
}

.cart-item-shops {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.shop-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--black);
    color: var(--white);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.shop-link-mini:hover {
    background: var(--gray-800);
}

.shop-link-mini .shop-name {
    color: var(--white);
}

.shop-link-mini svg {
    flex-shrink: 0;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-300);
}

.quantity-controls button {
    background: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.quantity-controls button:hover {
    background: var(--gray-100);
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: var(--red);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
    flex: 1;
}

.cart-empty p {
    font-size: 16px;
    color: var(--gray-500);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--gray-300);
    background: var(--white);
    position: sticky;
    bottom: 0;
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid var(--gray-300);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.btn-checkout:hover {
    background: var(--gray-800);
}

.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--black);
    color: var(--white);
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Login/Register Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    z-index: 1;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--black);
    border-bottom-color: var(--black);
}

.tab-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--gray-800);
}

.form-note {
    margin-top: 15px;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

/* Review Form & Section */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-header h2 {
    margin: 0;
}

.btn-write-review {
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-write-review:hover {
    background: var(--gray-800);
}

.review-form {
    background: var(--gray-100);
    padding: 30px;
    margin-bottom: 30px;
}

.review-form h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.review-photo-preview {
    margin-top: 10px;
    min-height: 10px;
}

.review-photo img {
    margin-top: 10px;
    width: 160px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 32px;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--black);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--black);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: var(--gray-100);
}

.form-actions .btn-submit {
    flex: 2;
    margin: 0;
}

/* Product Detail Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 2px solid var(--black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--black);
    color: var(--white);
}

.modal-body {
    padding: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.modal-image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.modal-brand {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin: 0;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.modal-rating .stars {
    color: var(--black);
    font-size: 20px;
}

.modal-rating .rating-text {
    font-weight: 700;
}

.modal-rating .review-count {
    color: var(--gray-500);
}

.modal-price {
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.modal-price .price-amount {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.modal-price .price-note {
    font-size: 12px;
    color: var(--gray-500);
}

.modal-description,
.modal-details {
    padding: 20px 0;
}

.modal-description h3,
.modal-details h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.modal-description p {
    line-height: 1.8;
    color: var(--gray-700);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.detail-row span:first-child {
    color: var(--gray-500);
}

.detail-row span:last-child {
    font-weight: 600;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.btn-add-to-cart-large {
    width: 100%;
    padding: 18px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart-large:hover {
    background: var(--gray-800);
}

.shop-button {
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.shop-button:hover {
    background: var(--black);
    color: var(--white);
}

.shop-button.cnfans {
    border-color: var(--blue);
    color: var(--blue);
}

.shop-button.cnfans:hover {
    background: var(--blue);
    color: var(--white);
}

.shop-button.acbuy {
    border-color: var(--green);
    color: var(--green);
}

.shop-button.acbuy:hover {
    background: var(--green);
    color: var(--white);
}

/* QC Photos Section */
.modal-qc-section {
    border-top: 2px solid var(--gray-300);
    padding: 40px 0;
    margin-bottom: 20px;
}

.qc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.qc-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.qc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00cc66 0%, #00aa55 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.qc-description {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.qc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.qc-photo-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qc-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.qc-photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.qc-photo-card:hover img {
    transform: scale(1.05);
}

.qc-photo-img {
    cursor: pointer;
}

.qc-photo-caption {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    background: white;
    border-top: 1px solid var(--gray-200);
}

/* QC Lightbox */
.qc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.qc-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.qc-lightbox-backdrop {
    position: absolute;
    inset: 0;
}

.qc-lightbox-inner {
    position: relative;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.qc-lightbox-main {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.qc-lightbox-meta {
    color: #4caf50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.qc-lightbox-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    line-height: 1;
}

.qc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: rotate(90deg);
}

.qc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.qc-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-50%) scale(1.05);
}

.qc-prev { left: 30px; }
.qc-next { right: 30px; }

/* QC Section in Modal */
.modal-qc-section {
    border-top: 2px solid var(--gray-300);
    padding: 40px 0;
    margin-bottom: 40px;
}

.qc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qc-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.qc-badge {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.qc-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.qc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.qc-photo-card {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.qc-photo-card:hover {
    border-color: rgba(76, 175, 80, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
}

.qc-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qc-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    cursor: pointer;
}

.qc-photo-card:hover .qc-photo-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.qc-photo-card:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Reviews Section */
.modal-reviews {
    border-top: 2px solid var(--gray-300);
    padding-top: 40px;
}

.modal-reviews h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--gray-100);
}

.summary-score {
    text-align: center;
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.score-stars {
    font-size: 24px;
    margin: 10px 0;
}

.score-text {
    font-size: 12px;
    color: var(--gray-500);
}

.summary-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.bar-row > span:first-child {
    width: 40px;
    font-weight: 600;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--black);
    transition: width 0.3s;
}

.bar-row > span:last-child {
    width: 30px;
    text-align: right;
    color: var(--gray-500);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid var(--gray-200);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.review-stars {
    color: var(--black);
    font-size: 14px;
}

.review-date {
    color: var(--gray-500);
    font-size: 12px;
}

.review-text {
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-verified {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.search-bar {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--black);
}

.sort-bar {
    min-width: 200px;
}

.sort-select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--black);
}

/* Active Filters */
.active-filters {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    border-radius: 2px;
}

.filter-tag button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

@media (max-width: 960px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-link {
    text-decoration: none;
    color: var(--black);
    display: block;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 aspect ratio */
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.slideshow-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* avoid over-zooming product images */
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.draft-badge,
.ai-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--red);
    color: var(--white);
}

.ai-badge {
    background: var(--blue);
    top: 40px;
}

.product-info {
    padding: 15px;
}

.product-shops {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

/* Shop Badges - Overlay on Product Image */
.shop-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 10;
    max-width: calc(100% - 20px);
}

.shop-badge {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 4px;
    opacity: 0.95;
    transition: opacity 0.3s;
}

.product-image:hover .shop-badge {
    opacity: 1;
}

.shop-badge.cnfans {
    background: #2196F3;
    color: #fff;
}

.shop-badge.acbuy {
    background: #4caf50;
    color: #fff;
}

.colors-badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.variants-badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    background: #0f172a;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
}

.product-rating {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.add-to-cart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.8);
}

.add-to-cart-btn svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-btn:hover {
    background: var(--black);
    color: var(--white);
}

.favorite-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    opacity: 1;
    transform: scale(1);
}

.favorite-btn svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.product-card:hover .add-to-cart-btn,
.product-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.add-to-cart-btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .header .container {
        padding: 10px 15px;
    }

    .nav {
        gap: 12px;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        justify-content: flex-start;
    }

    .nav-link {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo-text {
        display: none !important;
    }

    .logo img {
        width: 35px !important;
        height: 35px !important;
        margin-right: 0 !important;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .controls {
        flex-direction: column;
    }

    .sort-bar {
        width: 100%;
    }

    .add-to-cart-btn {
        opacity: 1;
        transform: scale(1);
    }

    .favorite-btn {
        opacity: 1;
        transform: scale(1);
    }

    /* Discount Banner Mobile */
    .discount-banner {
        padding: 14px 0;
    }

    .discount-banner-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
        position: relative;
        padding: 0 40px;
    }

    .discount-banner-icon {
        font-size: 32px;
    }

    .discount-banner-text {
        font-size: 14px;
        flex-direction: column;
        gap: 6px;
    }

    .discount-banner-text strong {
        font-size: 16px;
    }

    .discount-banner-cta {
        padding: 12px 28px;
        font-size: 14px;
        font-weight: 800;
    }

    .discount-banner-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 28px;
        height: 24px;
        font-size: 18px;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header .container {
        min-height: 52px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        align-items: center;
    }
    
    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 4px;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none;    /* Firefox */
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
    }
    .nav::-webkit-scrollbar { display: none; }
    
    .nav-link {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 4px 10px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .user-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .cart-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-filter-bar {
        top: 56px;
        position: sticky;
        z-index: 99;
    }

    .search-filter-content {
        gap: 10px;
    }

    .filter-btn span {
        display: none;
    }

    .filter-btn {
        padding: 12px;
    }

    .filter-sidebar {
        width: 100%;
        right: -100%;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .controls {
        flex-direction: column;
    }

    .sort-bar {
        width: 100%;
    }

    .user-btn span {
        display: none;
    }

    .user-btn {
        padding: 8px 12px;
    }

    .header-right {
        gap: 10px;
    }

    /* QC Photos Mobile */
    .qc-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .qc-photo-card img {
        height: 140px;
    }

    .qc-photo-caption {
        font-size: 11px;
        padding: 8px 10px;
    }

    .qc-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .qc-prev {
        left: 10px;
    }

    .qc-next {
        right: 10px;
    }

    .qc-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }

    .modal-qc-section {
        padding: 30px 0;
    }

    .qc-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header .container {
        height: 52px;
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .user-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .cart-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .service-banner {
        padding: 10px 0;
    }
    
    .service-banner-text {
        font-size: 13px;
    }
    
    .service-banner-icon {
        font-size: 18px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .search-box {
        padding: 10px 15px;
    }

    .search-box input {
        font-size: 12px;
    }

    .promo-banner {
        padding: 15px 0;
    }

    .promo-text {
        font-size: 12px;
    }

    .promo-btn {
        padding: 6px 16px;
        font-size: 11px;
    }

    /* QC Photos Small Mobile */
    .qc-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .qc-lightbox-content {
        padding: 40px 10px;
    }

    .qc-lightbox-caption {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    max-width: 460px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: var(--white);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--blue);
}

.newsletter-input::placeholder {
    color: var(--gray-500);
}

.newsletter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.newsletter-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 5px;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.footer-badge {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 13px;
    color: var(--gray-500);
    flex: 1;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}
