:root {
    --primary: #d86f2b;
    --primary-dark: #551807;
    --accent: #ffaf67;
    --accent-soft: #ffe0bd;
    --text: #3a2418;
    --muted: #8b6a56;
    --line: #efd6c2;
    --bg: #fff5ed;
    --white: #fffdfa;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff8f2 0%, var(--bg) 42%, #fffaf6 100%);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { background: #4a1406; color: #ffe7d1; font-size: 14px; }
.top-strip-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-strip a { color: #fff; font-weight: 700; }
.social-links { display: flex; gap: 10px; }
.social-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 175, 103, .24); transition: background .18s ease, transform .18s ease; }
.social-icon:hover { background: rgba(255, 175, 103, .42); transform: translateY(-1px); }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.site-header {
    background: rgba(255, 253, 250, .96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 28px rgba(85, 24, 7, .06);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-weight: 800; font-size: 22px; color: var(--primary-dark); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--text); font-weight: 600; }
.site-nav a:hover { color: var(--primary); }
.cart-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.cart-nav-link svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
    display: block;
}
.cart-nav-link span {
    position: absolute;
    right: -7px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.cart-notice {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    width: min(420px, calc(100% - 36px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(85, 24, 7, .18);
}
.cart-notice.show { display: grid; }
.cart-notice > div { font-weight: 800; color: var(--primary-dark); }
.cart-notice .btn { min-height: 34px; padding: 6px 12px; white-space: nowrap; }
.cart-notice button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.submenu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    min-width: 210px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(85, 24, 7, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: nowrap;
    color: var(--text);
}
.submenu a:hover { background: #fff1e5; color: var(--primary); }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); padding: 8px 12px; border-radius: 6px; }
.hero {
    background:
        linear-gradient(112deg, #4a1406 0%, #5f1c09 38%, #b85b21 68%, #ffaf67 100%);
    color: var(--white);
    padding: 88px 0;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 0 18px; max-width: 760px; }
.hero p { font-size: 20px; max-width: 720px; color: #ffe7d1; margin: 0 0 28px; }
.section { padding: 54px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: 30px; color: var(--primary-dark); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(85, 24, 7, 0.08);
}
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f7e7d8; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3, .card h3 { margin: 0; color: var(--primary-dark); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.price { color: var(--primary-dark); font-weight: 800; font-size: 18px; }
.product-gallery { display: grid; gap: 12px; }
.gallery-main { border-radius: 8px; border: 1px solid var(--line); background: var(--white); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #f7e7d8; }
.rich-text p:first-child { margin-top: 0; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.rich-text table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 24px 0;
    margin: 24px -24px;
}
.rich-text td,
.rich-text th {
    padding: 0;
    vertical-align: top;
    font-weight: inherit;
    text-align: left;
}
.rich-text td > :first-child,
.rich-text th > :first-child {
    margin-top: 0;
}
.rich-text td > :last-child,
.rich-text th > :last-child {
    margin-bottom: 0;
}
.rich-text td img,
.rich-text th img {
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 0 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { background: var(--primary-dark); color: var(--white); }
.btn.secondary { background: #fff6ef; color: var(--primary-dark); border-color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--primary-dark); }
.btn.danger { border-color: #b42318; background: #b42318; }
.form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
label { font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid #e4c3aa;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: var(--white);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(255, 175, 103, .38);
    border-color: var(--primary);
}
textarea { min-height: 140px; resize: vertical; }
.search-bar { display: grid; grid-template-columns: 1fr 220px auto auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0;
    background: #eaf8f1;
    border: 1px solid #9ad8b5;
    color: #12633d;
}
.alert.error { background: #fff1f0; border-color: #f3aaa4; color: #a12a22; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
.detail-image { border-radius: 8px; border: 1px solid var(--line); background: #f7e7d8; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content-block { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.cart-list { display: grid; gap: 12px; }
.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf6;
}
.cart-item img { width: 96px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #f7e7d8; }
.cart-quantity { margin-bottom: 0; }
.product-attribute-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 18px; margin: 0; }
.product-attribute-list dt { font-weight: 800; color: var(--muted); }
.product-attribute-list dd { margin: 0; color: var(--text); }
.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
    margin-bottom: 72px;
}
.about-profile-card {
    min-height: 340px;
    padding: 56px 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffdfa, #ffe0bd);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(85, 24, 7, .12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-profile-card h1, .about-text-panel h2, .about-angled-card h2 { margin: 0 0 16px; color: var(--primary-dark); line-height: 1.18; }
.about-profile-card h1 { font-size: clamp(30px, 4vw, 46px); }
.about-text-panel {
    min-height: 330px;
    padding: 52px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(85, 24, 7, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.about-feature-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, .8fr);
    gap: clamp(32px, 8vw, 112px);
    align-items: center;
    margin-bottom: 88px;
}
.about-image-panel, .about-photo-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(85, 24, 7, .1);
}
.about-image-panel img, .about-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.about-image-panel { aspect-ratio: 1.45 / 1; }
.about-angled-card {
    padding: 46px 42px;
    min-height: 260px;
    background: linear-gradient(135deg, #fffdfa, #ffe0bd);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(85, 24, 7, .12);
    transform: rotate(-8deg);
}
.about-angled-card > * { transform: rotate(8deg); }
.about-photo-grid {
    display: grid;
    grid-template-columns: .95fr 1fr .85fr;
    gap: clamp(22px, 6vw, 80px);
    align-items: end;
}
.about-photo-grid figure { aspect-ratio: 1 / .95; }
.about-photo-grid figure:nth-child(2) { aspect-ratio: 1 / 1.15; }
.about-photo-grid figure:nth-child(3) { aspect-ratio: .9 / 1; }
.site-footer { background: #4a1406; color: #ffe7d1; margin-top: 40px; padding-top: 42px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.copyright { border-top: 1px solid rgba(255, 231, 209, .18); text-align: center; padding: 18px; margin-top: 28px; color: #f0c9aa; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination a { padding: 8px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 8px; background: var(--white); color: var(--muted); }
.floating-contact {
    position: fixed;
    right: 18px;
    top: 168px;
    z-index: 20;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(85, 24, 7, .18);
    padding: 12px;
}
.floating-contact-head { font-weight: 800; color: var(--primary-dark); margin-bottom: 10px; }
.floating-contact form { display: grid; gap: 8px; }
.floating-contact input, .floating-contact textarea { padding: 8px 9px; font-size: 13px; }
.floating-contact textarea { min-height: 70px; }
.floating-contact .btn { width: 100%; min-height: 36px; }
.whatsapp-quick { display: flex; justify-content: center; align-items: center; min-height: 36px; margin-top: 8px; border-radius: 6px; background: #1fae64; color: #fff; font-weight: 800; }
.whatsapp-quick:hover { color: #fff; background: #168a4e; }

@media (max-width: 900px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-bar, .detail-layout, .footer-grid, .about-hero-grid, .about-feature-grid { grid-template-columns: 1fr; }
    .about-profile-card { border-radius: 8px; min-height: auto; }
    .about-angled-card, .about-angled-card > * { transform: none; }
    .about-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .floating-contact { position: static; width: min(100% - 32px, 520px); margin: 24px auto 0; }
    .rich-text table,
    .rich-text tbody,
    .rich-text tr,
    .rich-text td,
    .rich-text th {
        display: block;
        width: 100%;
    }
    .rich-text table {
        margin: 22px 0;
        border-spacing: 0;
    }
    .rich-text td,
    .rich-text th {
        margin-bottom: 22px;
    }
    .rich-text tr > :last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 34px rgba(85, 24, 7, .12);
    }
    .site-nav.open { display: flex; }
    .site-nav a { display: flex; width: 100%; padding: 14px 24px; border-top: 1px solid var(--line); }
    .site-nav .cart-nav-link {
        width: auto;
        height: auto;
        justify-content: flex-start;
        padding: 14px 24px;
    }
    .site-nav .cart-nav-link span {
        position: static;
        margin-left: 8px;
    }
    .nav-item { display: block; }
    .nav-link { justify-content: space-between; }
    .nav-link::after { transition: transform .18s ease; }
    .has-submenu.submenu-open .nav-link::after {
        transform: rotate(225deg) translate(-2px, -2px);
    }
    .submenu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #fff7f0;
    }
    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu,
    .has-submenu.submenu-open .submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .has-submenu.submenu-open .submenu { display: block; }
    .submenu::before { display: none; }
    .submenu a {
        min-height: 44px;
        padding: 11px 36px;
        border-top: 1px solid var(--line);
        border-radius: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .hero { padding: 58px 0; }
    .grid-4, .grid-3, .form-grid { grid-template-columns: 1fr; }
    .product-attribute-list { grid-template-columns: 1fr; gap: 4px 0; }
    .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
    .cart-quantity { grid-column: 1 / -1; }
    .cart-item img { width: 72px; }
    .about-hero-grid, .about-feature-grid { margin-bottom: 42px; }
    .about-profile-card, .about-text-panel, .about-angled-card { padding: 28px; }
    .about-photo-grid { grid-template-columns: 1fr; }
    .section { padding: 38px 0; }
}
