:root {
    --text: #25221f;
    --muted: #726b64;
    --line: #e8e1da;
    --soft: #f7f2ed;
    --soft-2: #efe7df;
    --accent: #7b4f38;
    --accent-dark: #5f3b29;
    --white: #fff;
    --success: #edf8ef;
    --danger: #fff0ef;
    --shadow: 0 14px 40px rgba(49, 38, 30, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fffdfa;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 250, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar {
    min-height: 74px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: .94rem;
}

.nav a:hover,
.product-card a:hover,
.breadcrumb a:hover {
    color: var(--accent);
}

.cart-link {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    background: var(--accent);
    font-size: .77rem;
    font-weight: 700;
}

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 30%, rgba(123,79,56,.10), transparent 25%),
        linear-gradient(135deg, #faf2ea 0%, #fffdfa 60%);
}

.hero-content {
    padding: 90px 0;
    max-width: 770px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .76rem;
    font-weight: 700;
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.1;
    margin-top: 0;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -.04em;
}

.hero p:not(.eyebrow) {
    max-width: 630px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.1rem;
}

.button {
    border: 0;
    border-radius: 5px;
    padding: 13px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
}

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

.button.secondary {
    background: var(--soft-2);
    color: var(--text);
}

.button.small {
    padding: 9px 12px;
    font-size: .86rem;
}

.button.wide {
    width: 100%;
}

.section {
    padding: 75px 0;
}

.section-heading,
.page-intro {
    margin-bottom: 34px;
}

.section-heading h2,
.page-intro h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
}

.page-intro p:last-child {
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    min-width: 0;
}

.product-picture {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-picture:hover img {
    transform: scale(1.025);
}

.product-picture span,
.product-main-image span,
.cart-item-image span {
    color: #a48f80;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
}

.product-card-body {
    padding: 15px 2px 0;
}

.category-label {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.product-card h3 {
    margin: 6px 0 16px;
    font-size: 1.2rem;
}

.product-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.product-card-bottom a {
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
}

.atelier-strip {
    padding: 30px 0;
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-grid div {
    display: flex;
    flex-direction: column;
}

.feature-grid span {
    color: var(--muted);
    font-size: .9rem;
}

.breadcrumb {
    margin-bottom: 28px;
    display: flex;
    gap: 9px;
    color: var(--muted);
    font-size: .88rem;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 65px;
    align-items: start;
}

.product-main-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-grid img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
}

.product-info {
    position: sticky;
    top: 105px;
}

.product-info h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 500;
}

.price {
    margin-bottom: 25px;
    font-size: 1.45rem;
    font-weight: 700;
}

.description {
    margin-bottom: 28px;
    color: var(--muted);
}

.production-delay {
    margin-bottom: 28px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: var(--soft);
    border-left: 3px solid var(--accent);
}

.product-form,
.checkout-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-size: .88rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d9d0c8;
    border-radius: 4px;
    padding: 12px 13px;
    color: var(--text);
    background: var(--white);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(123, 79, 56, .15);
    border-color: var(--accent);
}

.alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 4px;
}

.alert.success {
    background: var(--success);
}

.alert.error {
    background: var(--danger);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 45px;
    align-items: start;
}

.cart-items {
    border-top: 1px solid var(--line);
}

.cart-item {
    padding: 24px 0;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 170px;
    gap: 22px;
    border-bottom: 1px solid var(--line);
}

.cart-item-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-item-info h3 {
    margin-bottom: 9px;
}

.cart-item-info p {
    margin: 3px 0;
    color: var(--muted);
    font-size: .88rem;
}

.cart-item-info strong {
    display: inline-block;
    margin-top: 10px;
}

.cart-item-actions {
    display: grid;
    align-content: start;
    gap: 10px;
}

.text-button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--accent);
    text-decoration: underline;
}

.order-summary {
    position: sticky;
    top: 105px;
    padding: 24px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.order-summary h2 {
    font-size: 1.45rem;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.summary-line.muted {
    color: var(--muted);
}

.summary-total {
    margin-top: 10px;
    padding: 18px 0;
    border-top: 1px solid #d7cbc0;
    font-size: 1.08rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #ded5cd;
}

.checkout-item div {
    display: grid;
}

.checkout-item small {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.empty-card,
.confirmation-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 35px;
    text-align: center;
    background: var(--soft);
    border: 1px solid var(--line);
}

.confirmation-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-size: 1.5rem;
}

.empty {
    color: var(--muted);
}

.site-footer {
    margin-top: 60px;
    padding: 35px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .9rem;
}

.site-footer strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-bottom: 14px;
        overflow-x: auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .product-info,
    .order-summary {
        position: static;
    }

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

@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 440px;
    }

    .hero-content {
        padding: 65px 0;
    }

    .product-grid {
        gap: 16px;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
    }

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

    .form-grid .full {
        grid-column: auto;
    }

    .site-footer .container {
        flex-direction: column;
    }
}
