* { box-sizing: border-box; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #FAFAF8;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
    background: #14161C;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-header .logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #F2EFE9;
    text-transform: uppercase;
}

.site-header .logo span { color: #C9A24B; }

.site-header .tagline {
    display: none;
    color: #8A8D96;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

@media (min-width: 700px) {
    .site-header .tagline { display: block; }
}

.header-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 420px;
    min-width: 160px;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #33363F;
    background: #1E2028;
    color: #F2EFE9;
    border-right: none;
    border-radius: 2px 0 0 2px;
    font-size: 13px;
}

.search-bar input::placeholder { color: #6B6E78; }

.search-bar button {
    background: #C9A24B;
    color: #14161C;
    border: none;
    padding: 0 18px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #F2EFE9;
    border: 1px solid #C9A24B;
    padding: 9px 20px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cart-link:hover { background: #C9A24B; color: #14161C; }

/* ===== Banner slider ===== */
.banner-slider {
    position: relative;
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    background: #14161C;
}

.banner-slide { display: none; position: relative; }
.banner-slide.active { display: block; }

.banner-slide img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.banner-caption {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
    background: linear-gradient(90deg, rgba(20,22,28,0.65) 0%, rgba(20,22,28,0.15) 55%, transparent 100%);
}

.banner-caption h2 {
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 480px;
    margin-bottom: 12px;
}

.banner-caption p {
    color: #C9A24B;
    font-size: 15px;
    letter-spacing: 0.5px;
    max-width: 400px;
    margin: 0;
}

.banner-dots {
    position: absolute;
    bottom: 22px;
    right: 30px;
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    padding: 0;
}

.banner-dot.active { background: #C9A24B; }

/* ===== Shop by Category tiles ===== */
.shop-category-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 32px;
    text-align: center;
}

.shop-category-section h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #14161C;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.shop-category-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #C9A24B;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-tile {
    background: #14161C;
    color: #F2EFE9;
    padding: 32px 20px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.category-tile:hover { background: #C9A24B; color: #14161C; }

.category-tile .cat-icon { font-size: 20px; }

/* ===== Category filter ===== */
.category-filter {
    display: flex;
    gap: 8px;
    padding: 28px 32px 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    background: transparent;
    color: #444;
    padding: 8px 22px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid #DDD8CC;
}

.filter-btn:hover { border-color: #C9A24B; color: #C9A24B; }

.filter-btn.active {
    background: #14161C;
    color: #C9A24B;
    border-color: #14161C;
}

/* ===== Product grid ===== */
.section-heading {
    max-width: 1200px;
    margin: 30px auto 4px;
    padding: 0 32px;
    text-align: center;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #14161C;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #C9A24B;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px;
    padding: 24px 32px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    display: block;
    transition: box-shadow 0.2s;
}

.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #F0EEE8;
}

.product-info { padding: 16px 6px; text-align: center; }

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #14161C;
    margin: 10px 0 6px;
    line-height: 1.3;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-new { color: #7A8E6B; border-color: #7A8E6B; background: #F3F6F1; }
.badge-uk_used { color: #5B7A99; border-color: #5B7A99; background: #F1F5F8; }
.badge-ng_used { color: #C9A24B; border-color: #C9A24B; background: #FBF6EA; }

.price {
    font-weight: 600;
    font-size: 16px;
    color: #14161C;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ===== Footer ===== */
.site-footer {
    background: #14161C;
    color: #9A9DA6;
    padding: 0;
    font-size: 13px;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 44px 32px 24px;
}

.footer-columns h4 {
    color: #C9A24B;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer-columns p, .footer-columns a {
    display: block;
    color: #9A9DA6;
    font-size: 13.5px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-columns a:hover { color: #C9A24B; }

.footer-bottom {
    border-top: 1px solid #2A2D36;
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #6B6E78;
}

/* ===== Product detail ===== */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 32px;
    max-width: 1050px;
    margin: 0 auto;
    background: #fff;
}

.product-detail-images { flex: 1; min-width: 300px; }

.product-detail-images img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 10px;
    background: #F0EEE8;
}

.product-detail-info { flex: 1; min-width: 300px; }

.product-detail-info h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 12px 0;
    color: #14161C;
    letter-spacing: 0.5px;
}

.spec-list { list-style: none; padding: 0; margin: 14px 0; }

.spec-list li {
    padding: 10px 0;
    border-bottom: 1px solid #EEEBE3;
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
}

.spec-list li strong { color: #8A8D96; font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }

.add-to-cart-btn {
    background: #14161C;
    color: #C9A24B;
    border: none;
    padding: 14px 32px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
}

.add-to-cart-btn:hover { background: #C9A24B; color: #14161C; }

/* ===== Cart / checkout / confirmation ===== */
.cart-page, .checkout-page, .confirmation-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: 2px;
    margin-bottom: 14px;
    border: 1px solid #EEEBE3;
}

.cart-item img { width: 90px; height: 90px; object-fit: cover; }
.cart-item-info { flex: 1; }

.cart-item-actions { margin-top: 8px; display: flex; gap: 8px; align-items: center; }

.cart-item-actions input {
    padding: 6px; border: 1px solid #DDD8CC; border-radius: 2px;
}

.cart-item-actions button {
    padding: 6px 14px; border: none; border-radius: 2px; cursor: pointer;
    background: #14161C; color: #C9A24B; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}

.cart-total { font-size: 19px; font-weight: 600; margin: 20px 0; text-align: right; letter-spacing: 0.5px; }

.order-summary {
    background: #fff;
    padding: 18px;
    border-radius: 2px;
    margin-bottom: 20px;
    border: 1px solid #EEEBE3;
}

.summary-line {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid #EEEBE3; font-size: 13.5px;
}

.summary-total {
    display: flex; justify-content: space-between; font-weight: 600;
    font-size: 17px; padding-top: 12px; letter-spacing: 0.5px;
}

.checkout-form {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #EEEBE3;
}

.checkout-form label {
    font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
    margin-top: 14px; color: #8A8D96;
}

.checkout-form input, .checkout-form textarea {
    padding: 11px; border: 1px solid #DDD8CC; border-radius: 2px; font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.checkout-form button { margin-top: 20px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.payment-option {
    display: flex; align-items: center; gap: 10px; background: #FAFAF8;
    padding: 13px; border-radius: 2px; border: 1px solid #EEEBE3;
    font-weight: 500; font-size: 13.5px;
}

.payment-option input { width: auto; }

.confirmation-page {
    background: #fff;
    padding: 40px;
    border-radius: 2px;
    border: 1px solid #EEEBE3;
    text-align: center;
}

/* ===== Admin ===== */
.admin-content { max-width: 900px; margin: 0 auto; padding: 24px; }

.admin-form-box {
    background: #fff; padding: 18px; border-radius: 2px;
    border: 1px solid #EEEBE3; margin-bottom: 18px;
}

.admin-form-box form { display: flex; gap: 10px; }

.admin-form-box input[type="text"], .admin-form-box input[type="number"],
.admin-form-box select, .admin-form-box textarea {
    padding: 9px; border: 1px solid #DDD8CC; border-radius: 2px; flex: 1;
}

.admin-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 2px; overflow: hidden; border: 1px solid #EEEBE3;
}

.admin-table th { background: #FAFAF8; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; color: #8A8D96; }
.admin-table th, .admin-table td { padding: 10px; text-align: left; border-bottom: 1px solid #EEEBE3; font-size: 13.5px; }
.admin-table input[type="text"] { width: 100%; padding: 6px; border: 1px solid #DDD8CC; border-radius: 2px; }

.small-btn {
    padding: 6px 13px; border: none; border-radius: 2px; background: #14161C;
    color: #C9A24B; cursor: pointer; text-decoration: none; font-size: 12px; display: inline-block; font-weight: 600;
}

.small-btn.danger { background: #B23B3B; color: #fff; }
.success-msg { color: #4B7A4B; background: #EAF3EA; padding: 10px; border-radius: 2px; }
.error-msg { color: #B23B3B; background: #FBEAEA; padding: 10px; border-radius: 2px; }

.admin-dashboard {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px; padding: 24px; max-width: 900px; margin: 0 auto;
}

.admin-card {
    background: #fff; padding: 28px 20px; border-radius: 2px;
    text-align: center; color: #14161C; font-size: 14px;
    font-weight: 600; border: 1px solid #EEEBE3; letter-spacing: 0.3px;
}

.admin-card:hover { border-color: #C9A24B; color: #C9A24B; }

.admin-login-page { display: flex; justify-content: center; align-items: center; min-height: 80vh; background: #14161C; }

.admin-login-box {
    background: #fff; padding: 32px; border-radius: 2px; width: 300px;
}

.admin-login-box h2 { text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }

.admin-login-box form { display: flex; flex-direction: column; gap: 6px; }
.admin-login-box input { padding: 10px; border: 1px solid #DDD8CC; border-radius: 2px; margin-bottom: 10px; }

.spec-row { display: flex; gap: 10px; margin-bottom: 8px; }
.spec-row input { flex: 1; padding: 8px; border: 1px solid #DDD8CC; border-radius: 2px; }

.variant-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.variant-row input {
    padding: 8px;
    border: 1px solid #DDD8CC;
    border-radius: 2px;
    flex: 1;
}

.current-images { margin: 10px 0; }

.image-thumb {
    display: inline-block; text-align: center; margin: 0 10px 10px 0;
    background: #FAFAF8; padding: 8px; border-radius: 2px;
}

.image-thumb img { width: 90px; height: 90px; object-fit: cover; display: block; margin-bottom: 6px; }

.primary-tag {
    background: #C9A24B; color: #14161C; font-size: 10px; padding: 3px 8px;
    border-radius: 10px; display: inline-block; margin-bottom: 4px; font-weight: 700;
}

.banner-admin-card {
    display: flex; gap: 18px; background: #fff; padding: 14px;
    border-radius: 2px; margin-bottom: 14px; border: 1px solid #EEEBE3;
    align-items: flex-start;
}

.banner-admin-card img { width: 200px; height: 100px; object-fit: cover; }
.banner-admin-card label { font-weight: 600; font-size: 12px; margin-top: 8px; display: block; text-transform: uppercase; letter-spacing: 0.4px; color: #8A8D96; }
.banner-admin-card input, .banner-admin-card select { padding: 6px; border: 1px solid #DDD8CC; border-radius: 2px; width: 100%; }

.order-status { padding: 4px 11px; border-radius: 10px; font-size: 10.5px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.4px; }
.status-pending { background: #C9A24B; color: #14161C; }
.status-paid { background: #5B7A99; }
.status-shipped { background: #7B4FA5; }
.status-completed { background: #4B7A4B; }
.status-cancelled { background: #B23B3B; }

.order-detail-box { background: #fff; padding: 18px; border-radius: 2px; border: 1px solid #EEEBE3; margin-bottom: 18px; }
.order-detail-box p { margin: 6px 0; }

/* ===== Order tracking page ===== */
.track-order-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.track-order-page h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 6px;
}

.track-subtitle {
    text-align: center;
    color: #8A8D96;
    font-size: 14px;
    margin-bottom: 24px;
}

.track-form {
    background: #fff;
    padding: 24px;
    border: 1px solid #EEEBE3;
    border-radius: 2px;
}

.track-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.track-form-row > div { flex: 1; min-width: 180px; }

.track-form label {
    font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
    color: #8A8D96; display: block; margin-bottom: 6px;
}

.track-form input {
    width: 100%;
    padding: 11px;
    border: 1px solid #DDD8CC;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.track-form button { margin-top: 18px; width: 100%; }

.track-result {
    background: #fff;
    border: 1px solid #EEEBE3;
    border-radius: 2px;
    padding: 28px;
    margin-top: 24px;
}

.track-result h3 { font-size: 18px; margin-bottom: 4px; }
.track-date { color: #8A8D96; font-size: 13px; margin-bottom: 24px; }

.track-cancelled {
    background: #FBEAEA;
    color: #B23B3B;
    padding: 12px;
    border-radius: 2px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 24px;
}

.track-timeline {
    display: flex;
    margin: 40px 0;
    padding: 0 10px;
}

.track-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.track-step-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.track-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #DDD8CC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #B5B0A3;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.2s;
}

.track-line {
    flex: 1;
    height: 4px;
    background: #DDD8CC;
    margin: 0 -2px;
}

.track-step.done .track-dot {
    background: #C9A24B;
    border-color: #C9A24B;
    color: #fff;
}

.track-step.done .track-line {
    background: #C9A24B;
}

.track-step.current .track-dot {
    background: #14161C;
    border-color: #14161C;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(20,22,28,0.15);
}

.track-label {
    font-size: 11.5px;
    text-align: center;
    margin-top: 10px;
    color: #B5B0A3;
    font-weight: 600;
    max-width: 90px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.track-step.done .track-label {
    color: #C9A24B;
}

.track-step.current .track-label {
    color: #14161C;
    font-weight: 700;
}

.track-details {
    background: #FAFAF8;
    padding: 16px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.track-details p { margin: 6px 0; font-size: 13.5px; }

/* ===== Mobile responsiveness ===== */
@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 18px;
    }

    .site-header .logo {
        text-align: center;
        font-size: 22px;
    }

    .search-bar {
        max-width: 100%;
        order: 3;
    }

    .header-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        order: 2;
    }

    .header-links a {
        font-size: 12px;
    }

    .cart-link {
        padding: 8px 16px;
        font-size: 11px;
    }

    .banner-slider {
        max-height: 260px;
    }

    .banner-slide img {
        max-height: 260px;
    }

    .banner-caption {
        padding: 0 6%;
    }

    .banner-caption h2 {
        font-size: 22px;
        max-width: 260px;
    }

    .banner-caption p {
        font-size: 12px;
        max-width: 220px;
    }

    .shop-category-section {
        padding: 0 18px;
        margin: 28px auto;
    }

    .category-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-tile {
        padding: 20px 12px;
        font-size: 12px;
    }

    .category-filter {
        padding: 20px 18px 8px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 7px 16px;
        font-size: 11px;
    }

    .section-heading {
        padding: 0 18px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 16px 18px 40px;
    }

    .product-card img {
        height: 150px;
    }

    .product-info h3 {
        font-size: 12.5px;
    }

    .price {
        font-size: 14px;
    }

    .product-detail {
        padding: 24px 18px;
        gap: 20px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        padding: 32px 18px 16px;
        text-align: center;
    }

    .checkout-page, .cart-page, .track-order-page {
        padding: 24px 16px 40px;
    }

    .track-form-row {
        flex-direction: column;
    }

    .track-timeline {
        padding: 0;
    }

    .track-label {
        font-size: 9.5px;
        max-width: 60px;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}