* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c2c2c;
    --accent: #8b6f4e;
    --light: #f7f5f2;
    --white: #ffffff;
    --gray: #666;
    --border: #e0dcd7;
    --radius: 6px;
    --danger: #c0392b;
    --success: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary);
    background: var(--white);
    line-height: 1.6;
}

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

/* Top Banner */
.top-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

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

.cart-btn {
    background: none;
    border: 1px solid var(--primary);
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, #f7f5f2 0%, #ede7df 50%, #e0d6ca 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(139,111,78,0.06);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(139,111,78,0.04);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 36px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

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

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

/* Products */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.products-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--light);
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: 13px;
    margin-left: 8px;
}

.product-sizes {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.size-btn:hover,
.size-btn.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.add-to-cart:hover {
    background: var(--accent);
}

/* About */
.about-section {
    background: var(--light);
    padding: 60px 24px;
    text-align: center;
}

.about-section h2 {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.about-section p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 48px 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-col h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-col p,
.footer-col a {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding: 24px;
    margin-top: 32px;
    border-top: 1px solid #444;
    font-size: 13px;
    color: #888;
}

/* Cart Sidebar */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
}

.cart-overlay.open {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

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

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

.cart-header h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
}

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

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

.cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--light);
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

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

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

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

.cart-item-price {
    font-size: 14px;
    color: var(--accent);
    margin-top: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
}

.cart-item-remove:hover {
    color: #c00;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cart-total {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: right;
}

/* Legal / Info pages */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.legal h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal p, .legal li {
    color: #555;
    font-size: 15px;
    margin-bottom: 10px;
}

.legal ul, .legal ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal .info-box {
    background: var(--light);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
}

.legal .info-box p {
    margin-bottom: 4px;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.legal table th,
.legal table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}

.legal table th {
    background: var(--light);
    font-weight: 600;
}

.legal .steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.legal .steps li {
    counter-increment: step;
    padding: 12px 0 12px 48px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.legal .steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Contact Page */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

.contact-section h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-info-item .text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-info-item .text span {
    font-size: 14px;
    color: var(--gray);
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    background: var(--white);
}

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

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

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

.form-success {
    display: none;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: #2e7d32;
    font-size: 14px;
}

/* Checkout Page */
.checkout-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

.checkout-section h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.checkout-form h2,
.checkout-summary h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.checkout-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.checkout-summary {
    background: var(--light);
    padding: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.summary-item-name small {
    display: block;
    color: var(--gray);
    font-size: 12px;
}

.summary-item-price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 12px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-line.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--primary);
}

.summary-line .free {
    color: var(--success);
    font-weight: 600;
}

.checkout-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.checkout-empty p {
    margin-bottom: 20px;
    font-size: 16px;
}

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

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

    .hero {
        padding: 50px 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 10px;
    }

    .product-sizes {
        gap: 4px;
    }

    .size-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .checkout-form .form-row,
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

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