* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f4f1;
    color: #222;
}

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

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e0d8;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    background: #f2efea;
    border: 1px solid #ddd6cd;
    padding: 6px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #2f312d;
}

.brand-subtitle {
    font-size: 13px;
    color: #7a7a72;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    color: #2f312d;
    background: transparent;
    font-weight: 600;
}

.main-nav a.nav-cart {
    background: #2f312d;
    color: #fff;
}

.hero {
    padding: 28px 0 20px;
}

.hero-card {
    background: linear-gradient(135deg, #ebe7e1 0%, #f8f6f2 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    align-items: center;
}

.hero-content {
    padding: 34px 24px;
}

.hero-content h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.05;
    color: #2f312d;
}

.hero-content p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.6;
    color: #56564f;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.button-danger {
    display: inline-block;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.button-primary {
    background: #2f312d;
    color: #fff;
}

.button-secondary {
    background: #d8d1c7;
    color: #2f312d;
}

.button-danger {
    background: #8a1f1f;
    color: #fff;
}

.hero-image-wrap {
    min-height: 340px;
    background: #efebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-image-wrap img {
    max-height: 340px;
    width: auto;
    object-fit: contain;
}

.section {
    padding: 22px 0 32px;
}

.section h2,
.page-title {
    margin: 0 0 18px;
    font-size: 30px;
    color: #2f312d;
}

.muted {
    color: #6d6d66;
}

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

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #ece7df;
}

/* EFTER */
.product-card-media {
    aspect-ratio: 4 / 5;
    background: #efebe4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-card-body {
    padding: 16px;
}

.product-card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #2f312d;
}

.product-card-actions {
    margin-top: 14px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.panel {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #ece7df;
}

.product-image-panel {
    padding: 0;
    overflow: hidden;
}

.product-image-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #efebe4;
}

.form-label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 13px 14px;
    font-size: 16px;
    border: 1px solid #d8d1c7;
    border-radius: 12px;
    background: #fff;
}

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

.error-box,
.success-box,
.info-box {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.error-box {
    background: #ffe1e1;
    color: #8a1f1f;
}

.success-box {
    background: #e5f6e8;
    color: #1f6b2a;
}

.info-box {
    background: #f1eee8;
    color: #4f5048;
}

.stock-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ece7df;
}

.stock-list div {
    margin-bottom: 6px;
    color: #5f6057;
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #ece7df;
    vertical-align: middle;
}

.summary-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ece7df;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.order-line {
    padding: 12px 0;
    border-bottom: 1px solid #ece7df;
}

.footer-space {
    height: 36px;
}

@media (max-width: 980px) {
    .hero-grid,
    .product-layout,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
    }

    .brand {
        justify-content: center;
    }

    .main-nav {
        justify-content: center;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-content {
        padding: 24px 18px;
    }

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

    .hero-content p {
        font-size: 15px;
    }

    .hero-image-wrap {
        min-height: 220px;
    }

    .section h2,
    .page-title {
        font-size: 24px;
    }

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

    .panel {
        padding: 18px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 12px;
    }
}