:root {
    --clr-primary: #1a1a1a;
    --clr-accent: #d4a017;
    --clr-bg: #ffffff;
    --clr-border: #e5e5e5;
    --clr-text-muted: #666;
}

* { box-sizing: border-box; }

body.clearance-body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--clr-primary);
    background: var(--clr-bg);
}

.clearance-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--clr-border);
}

.clearance-logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--clr-primary);
}

/* Slider */
.clearance-slider {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2b2b2b, #4a4a4a);
    color: #fff;
    text-align: center;
}

.slide-2 { background: linear-gradient(135deg, #3a2b1a, #6b4a17); }
.slide-3 { background: linear-gradient(135deg, #1a2b3a, #17456b); }

.slide-content h1 { font-size: 34px; margin: 0 0 8px; }
.slide-content p { font-size: 16px; opacity: 0.85; margin: 0; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

/* Sections */
.clearance-section {
    padding: 32px 24px;
}

.clearance-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* Horizontal scroll list */
.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.product-card-h {
    flex: 0 0 200px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
}

.product-card-h img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-card-h-body {
    padding: 10px;
}

.product-card-h-body h3 {
    font-size: 14px;
    margin: 0 0 4px;
}

.product-card-h .price,
.featured-card .price {
    color: var(--clr-accent);
    font-weight: 700;
    margin: 0;
}

/* Featured: 2 columns, 1 row */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
}

.featured-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.featured-card-body {
    padding: 14px;
}

@media (max-width: 640px) {
    .featured-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .featured-card img { height: 140px; }
}

/* Product page */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 24px;
}

.product-gallery .main-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.product-gallery .thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.product-gallery .thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-gallery .thumbs img:hover {
    border-color: var(--clr-accent);
}

.product-info .price {
    font-size: 26px;
    font-weight: 700;
    color: var(--clr-accent);
}

.option-group {
    margin-bottom: 14px;
}

.option-group label {
    display: block;
    font-size: 13px;
    color: var(--clr-text-muted);
    margin-bottom: 4px;
}

.option-group select,
.option-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
}

.price-tiers ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--clr-text-muted);
}

.line-total {
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0;
}

.btn-buy {
    display: inline-block;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* Reviews */
.product-reviews {
    grid-column: 1 / -1;
    border-top: 1px solid var(--clr-border);
    padding-top: 24px;
}

.review {
    margin-bottom: 16px;
}

.review .stars {
    color: var(--clr-accent);
    margin-left: 8px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin-top: 16px;
}

.review-form input,
.review-form select,
.review-form textarea {
    padding: 8px;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
}

/* Checkout */
.checkout-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 24px;
}

.order-summary {
    background: #f7f7f7;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.delivery-note {
    color: var(--clr-accent);
    font-weight: 600;
}

.checkout-page form,
.order-success {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-page input {
    padding: 10px;
    border: 1px solid var(--clr-border);
    border-radius: 6px;
}

.errors { color: #c0392b; }

.order-success {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

/* Footer */
.clearance-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--clr-border);
    text-align: center;
    font-size: 13px;
    color: var(--clr-text-muted);
}

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