:root {
    --color-primary: #e85d04;
    --color-primary-dark: #d00000;
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-border: #e8e6e3;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --font: 'DM Sans', system-ui, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}
.main-nav a:hover { color: var(--color-primary); }

.site-main { flex: 1; padding: 2rem 0; }

/* Hero */
.hero { text-align: center; margin-bottom: 2.5rem; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.hero p { color: var(--color-muted); font-size: 1.1rem; }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.product-card-image {
    aspect-ratio: 1;
    background: #f0eeeb;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-muted);
    font-size: .9rem;
}
.no-image.large { min-height: 300px; font-size: 1rem; }
.product-card-body { padding: 1.25rem; }
.product-card-body h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Product page */
.product-page { padding-bottom: 3rem; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .product-layout { grid-template-columns: 1fr; }
}
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: #f0eeeb;
    aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}
.gallery-thumbs .thumb {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--color-primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.product-price { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1.5rem; }
.product-description { color: var(--color-muted); white-space: pre-wrap; }

/* Order form */
.order-section {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.order-section h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .4rem; font-size: .9rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-surface);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232,93,4,.15);
}
.payment-options { display: flex; flex-direction: column; gap: .75rem; }
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s;
}
.payment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(232,93,4,.04);
}
.payment-option input { margin-top: .25rem; accent-color: var(--color-primary); }
.payment-label strong { display: block; }
.payment-label small { color: var(--color-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; width: 100%; }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin-top: .5rem; font-size: .9rem; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}
.footer-links a { color: #ccc; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .85rem; color: #888; text-align: center; }

/* Static pages */
.page-content { max-width: 800px; }
.page-content h1 { margin-bottom: 1.5rem; }
.content-body { line-height: 1.8; }
.content-body p { margin-bottom: 1rem; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--color-muted); }
