:root {
    --bg: #fffaf5;
    --surface: #ffffff;
    --surface-alt: #fff3ea;
    --text: #2d221c;
    --muted: #6f6259;
    --line: #ead8ca;
    --accent: #e8743b;
    --accent-dark: #c75c2a;
    --success: #edf8ef;
    --error: #fff0eb;
    --shadow: 0 18px 40px rgba(95, 67, 45, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 14px;
    top: -48px;
    z-index: 20;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.site-shell {
    min-height: 100vh;
}

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

.topbar {
    background: #fff0df;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.topbar-inner,
.header-inner,
.results-bar,
.cart-actions,
.summary-line,
.footer-bottom,
.section-heading,
.hero-actions,
.hero-stats,
.product-meta,
.product-footer,
.filter-row,
.detail-highlights,
.summary-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-inner {
    padding: 8px 0;
    flex-wrap: wrap;
}

.topbar p,
.site-footer p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 245, 0.94);
    border-bottom: 1px solid rgba(234, 216, 202, 0.8);
    backdrop-filter: blur(12px);
}

.header-inner {
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand strong,
.hero-copy h1,
.page-header h1,
.section h2,
.success-panel h1,
.detail-copy h1 {
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
    background: #fff;
    color: var(--text);
}

.cart-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0 6px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.86rem;
}

.hero-band {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
}

.hero-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 248, 241, 0.95) 0%, rgba(255, 248, 241, 0.75) 45%, rgba(255, 248, 241, 0.15) 100%);
}

.hero-content,
.page-header .container,
.section .container {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    padding: 10px 0 0;
}

.breadcrumbs .container,
.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: min(1080px, calc(100% - 28px));
    color: #7a6b61;
    font-size: 0.84rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #b59e8e;
}

.breadcrumbs a {
    color: #7a6b61;
}

.breadcrumbs span[aria-current="page"] {
    color: #3a2d26;
    font-weight: 700;
}

.page-header .container {
    display: grid;
    gap: 8px;
}

.hero-content {
    padding: 56px 0 36px;
}

.hero-copy {
    max-width: 520px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0;
}

.hero-copy h1,
.detail-copy h1,
.success-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 3.3rem);
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.65rem, 2.7vw, 2.55rem);
}

.hero-copy p,
.page-header p,
.detail-text,
.section p,
.summary-note {
    color: var(--muted);
    margin: 0;
}

.hero-actions,
.hero-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 20px;
}

.hero-stats div,
.detail-highlights div {
    display: grid;
    gap: 4px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(234, 216, 202, 0.9);
    border-radius: 8px;
    min-width: 124px;
}

.hero-stats strong,
.detail-highlights strong {
    font-size: 1rem;
}

.hero-stats span,
.detail-highlights span {
    font-size: 0.86rem;
    color: var(--muted);
}

.section,
.page-header {
    padding: 44px 0;
}

.page-header {
    padding: 22px 0 16px;
}

.surface {
    background: var(--surface-alt);
}

.section-heading {
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-heading h2,
.faq-item h2,
.summary-card h2,
.info-card h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}

.category-grid,
.product-grid,
.feature-list,
.contact-grid,
.faq-list {
    display: grid;
    gap: 16px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card,
.product-card,
.info-card,
.faq-item,
.summary-card,
.form-panel,
.success-panel,
.notice-box,
.cart-table-wrap,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-card,
.info-card,
.faq-item,
.notice-box,
.empty-state {
    padding: 18px;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-image {
    display: block;
    aspect-ratio: 4 / 4.3;
    overflow: hidden;
}

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

.product-copy {
    padding: 14px;
}

.product-meta,
.results-bar,
.filter-row,
.detail-highlights,
.summary-product {
    flex-wrap: wrap;
}

.filter-row {
    justify-content: flex-start;
    gap: 10px;
}

.results-bar {
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.pill {
    background: #fff4e8;
    color: var(--accent-dark);
    font-weight: 700;
}

.product-copy h3 {
    margin: 8px 0 6px;
    font-size: 1.02rem;
}

.product-copy p,
.faq-item p,
.info-card p {
    margin: 0;
}

.product-footer {
    margin-top: 12px;
}

.inline-cart-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.split-band,
.product-layout,
.cart-layout,
.checkout-layout {
    display: grid;
    gap: 20px;
}

.split-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
}

.feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-list article {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.page-header {
    background: linear-gradient(180deg, #fff3ea 0%, rgba(255, 250, 245, 0) 100%);
}

.cart-header {
    padding: 24px 0 18px;
}

.filter-chip {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}

.filter-chip.active,
.filter-chip:hover {
    background: #ffe4d4;
    border-color: #ffd1b6;
    color: var(--text);
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.94rem;
}

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

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
}

.full-width {
    width: 100%;
}

.product-layout,
.checkout-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
}

.product-detail-section {
    padding-top: 18px;
}

.product-layout-compact {
    grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.82fr);
    gap: 14px;
    align-items: start;
}

.detail-image-wrap {
    max-width: 760px;
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.detail-copy {
    padding: 8px 0;
}

.detail-copy-card {
    padding: 8px 0;
}

.detail-copy-card .product-meta {
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 6px;
}

.detail-copy-card h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.detail-price {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #5f625f;
}

.detail-text {
    max-width: 520px;
    font-size: 0.92rem;
    line-height: 1.42;
}

.purchase-panel,
.checkout-form,
.field-grid {
    display: grid;
    gap: 12px;
}

.purchase-panel {
    max-width: 390px;
    margin-top: 12px;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.detail-copy-card .detail-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.detail-copy-card .detail-highlights div {
    min-width: 0;
    padding: 9px 10px;
}

.detail-copy-card .detail-highlights strong {
    font-size: 0.88rem;
}

.detail-copy-card .detail-highlights span {
    font-size: 0.78rem;
}

.related-section {
    padding-top: 18px;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-card .product-image {
    aspect-ratio: 4 / 2.9;
}

.related-card .product-copy {
    padding: 12px;
}

.related-card .product-copy h3 {
    font-size: 0.96rem;
}

.related-card .product-copy p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success);
    border-color: #cbe9d0;
}

.alert-error {
    background: var(--error);
    border-color: #f2c3b6;
}

.cart-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    align-items: start;
    gap: 14px;
}

.cart-table-wrap,
.summary-card,
.form-panel {
    padding: 18px;
}

.cart-section {
    padding-top: 26px;
}

.cart-section .container {
    gap: 0;
}

.cart-table-wrap {
    padding: 14px;
}

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

.cart-table th,
.cart-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    text-align: left;
    font-size: 0.95rem;
}

.cart-table th {
    font-size: 0.84rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

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

.summary-card,
.success-panel {
    position: sticky;
    top: 112px;
}

.summary-card {
    padding: 14px;
}

.summary-card h2 {
    margin-bottom: 6px;
}

.summary-line,
.summary-product {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.summary-line.total {
    font-size: 1.05rem;
}

.summary-note {
    margin-top: 14px;
}

.cart-actions {
    margin-top: 12px;
    gap: 10px;
}

.storage-note {
    margin-top: 14px;
    color: var(--muted);
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.94rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdfb;
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-header {
    padding: 18px 0 12px;
}

.contact-header .container {
    gap: 6px;
    max-width: 900px;
}

.contact-header h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    margin-bottom: 4px;
}

.contact-header p {
    max-width: 760px;
    font-size: 0.98rem;
    color: #75675f;
}

.contact-section {
    padding-top: 18px;
}

.contact-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-card {
    padding: 16px;
}

.contact-card h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    margin-bottom: 12px;
}

.contact-card p {
    color: #5f564f;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-card-accent {
    background: #fff9f4;
}

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-list p {
    display: grid;
    gap: 3px;
}

.contact-list strong {
    color: #3e3028;
    font-size: 0.84rem;
    text-transform: uppercase;
    font-weight: 700;
}

.contact-list span {
    color: #6d6058;
    font-size: 0.97rem;
}

.faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-header {
    padding: 18px 0 12px;
}

.faq-header .container {
    gap: 6px;
    max-width: 920px;
}

.faq-header h1 {
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    margin-bottom: 4px;
}

.faq-header p {
    max-width: 760px;
    font-size: 0.98rem;
    color: #75675f;
}

.faq-section {
    padding-top: 18px;
}

.faq-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.faq-summary,
.faq-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.faq-summary {
    padding: 16px;
    position: sticky;
    top: 112px;
}

.faq-summary h2,
.faq-group h2 {
    margin: 0;
    font-size: 1.25rem;
}

.faq-summary-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 14px;
}

.faq-summary-list p {
    display: grid;
    gap: 3px;
}

.faq-summary-list strong {
    color: #3f3129;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.faq-summary-list span {
    color: #6f6259;
    font-size: 0.93rem;
}

.faq-groups {
    display: grid;
    gap: 14px;
}

.faq-group {
    padding: 16px;
}

.faq-group-heading {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.faq-stack {
    display: grid;
    gap: 10px;
}

.faq-entry {
    border: 1px solid #efdfd2;
    border-radius: 8px;
    background: #fffdfa;
    padding: 0 14px;
}

.faq-entry summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 24px 14px 0;
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    color: #2f241e;
}

.faq-entry summary::-webkit-details-marker {
    display: none;
}

.faq-entry summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-entry[open] summary::after {
    content: "-";
}

.faq-entry p {
    padding: 0 0 14px;
    color: #665a52;
    font-size: 0.95rem;
    line-height: 1.5;
}

.success-panel {
    max-width: 980px;
    padding: 18px 20px;
    text-align: left;
}

.success-panel h1 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.success-panel p {
    max-width: 920px;
    line-height: 1.5;
}

.success-panel .detail-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}

.success-panel .detail-highlights div {
    min-width: 0;
    padding: 12px 14px;
}

.success-panel .hero-actions {
    gap: 10px;
    margin-top: 12px;
}

.site-footer {
    margin-top: 24px;
    padding: 36px 0 20px;
    background: #fff1e6;
    border-top: 1px solid var(--line);
}

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

.site-footer h3 {
    margin-top: 0;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    flex-wrap: wrap;
}

@media (max-width: 920px) {
    .split-band,
    .product-layout,
    .cart-layout,
    .checkout-layout,
    .contact-grid,
    .footer-grid,
    .field-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .summary-card,
    .success-panel,
    .faq-summary {
        position: static;
    }

    .contact-grid-compact {
        grid-template-columns: 1fr;
    }

    .faq-shell {
        grid-template-columns: 1fr;
    }

    .product-layout-compact,
    .detail-copy-card .detail-highlights,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner,
    .site-nav,
    .results-bar,
    .product-footer,
    .cart-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-band {
        min-height: 54vh;
    }

    .section,
    .page-header {
        padding: 34px 0;
    }

    .page-header {
        padding: 26px 0 20px;
    }

    .breadcrumbs {
        padding-top: 8px;
    }

    .cart-header {
        padding: 20px 0 14px;
    }

    .success-panel {
        padding: 16px;
    }

    .success-panel .detail-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .cart-table td {
        padding: 6px 0;
        border: none;
    }

    .success-panel .hero-actions {
        width: 100%;
    }
}
