:root {
    --primary-color: #b98229;
    --secondary-color: #173c2e;
    --accent-color: #f8ecd4;
    --surface-color: #fffaf1;
    --home-background-color: #f7f0e4;
    --shadow: rgba(23, 60, 46, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--home-background-color, #f7f0e4);
    color: #26382d;
}

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

button, input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 4rem;
    background: rgba(255, 250, 241, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(23, 60, 46, 0.12);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    line-height: 0;
}

.brand img {
    display: block;
    width: 5rem;
    height: 5rem;
    max-height: none;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.header-user-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
    color: var(--secondary-color);
}

.user-menu > summary {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.user-menu > summary::-webkit-details-marker {
    display: none;
}

.user-menu > summary:hover,
.user-menu[open] > summary {
    background: rgba(23, 60, 46, 0.08);
}

.user-menu > summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.user-menu > summary svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 190px;
    padding: 0.4rem;
    border: 1px solid #e6d9c2;
    border-radius: 8px;
    background: var(--surface-color);
    box-shadow: 0 12px 28px rgba(23, 60, 46, 0.16);
}

.user-menu[open] .user-menu-panel {
    display: flex;
    flex-direction: column;
}

.user-menu-panel a {
    padding: 0.7rem 0.75rem;
    border-radius: 5px;
    color: #26382d;
    text-decoration: none;
    font-weight: 600;
}

.user-menu-panel a:hover,
.user-menu-panel a:focus-visible {
    outline: none;
    background: #f8ecd4;
    color: var(--primary-color);
}

.cart-icon-link {
    display: inline-flex;
    position: relative;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--secondary-color);
    border: 0;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
}

.cart-dropdown {
    position: relative;
}

.cart-dropdown > summary {
    cursor: pointer;
    list-style: none;
}

.cart-dropdown > summary::-webkit-details-marker {
    display: none;
}

.cart-count {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    display: grid;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.2rem;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--secondary-color);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}

.cart-icon-link svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-icon-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cart-icon-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a,
.auth-btn,
.logout-btn {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
}

.main-nav a:hover,
.auth-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.account-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.account-box .auth-btn {
    background: var(--secondary-color);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    width: min(1200px, calc(100% - 2rem));
    margin: 2.5rem auto 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f1e4ce, var(--accent-color));
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--shadow);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.1;
}

.hero-copy p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #596657;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.add-btn,
.update-btn,
.remove-btn,
.auth-btn,
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.primary-btn,
.add-btn,
.update-btn,
.auth-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.secondary-btn,
.logout-btn {
    background: #f0e2ca;
    color: var(--secondary-color);
    border: 1px solid rgba(23, 60, 46, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover,
.add-btn:hover,
.update-btn:hover,
.remove-btn:hover,
.auth-btn:hover,
.logout-btn:hover {
    transform: translateY(-1px);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.mini-card {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 180px;
    padding: 1.25rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.mini-card span,
.mini-card small {
    opacity: 0.9;
}

.card-one {
    background: linear-gradient(135deg, #173c2e, #315044);
}

.card-two {
    background: linear-gradient(135deg, #b98229, #d6aa59);
}

.flash-message {
    width: min(1200px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    font-weight: 600;
}

.store-layout {
    width: min(1200px, calc(100% - 2rem));
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.products-section,
.cart-panel {
    background: var(--surface-color);
    border-radius: 24px;
    box-shadow: 0 16px 32px var(--shadow);
    padding: 1.5rem;
}

.cart-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 20;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(70vh, 34rem);
    overflow-y: auto;
    padding: 1rem;
    border-radius: 12px;
    color: #26382d;
}

.cart-dropdown[open] .cart-panel {
    display: block;
}

.section-header,
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-header h2,
.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

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

.product-card {
    background: #fffaf1;
    border: 1px solid #eaddc4;
    border-radius: 20px;
    overflow: hidden;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
}

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

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem;
}

.product-info p {
    margin: 0 0 1rem;
    color: #727a6b;
    line-height: 1.6;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-bottom strong {
    font-size: 1.1rem;
}

.cart-panel form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    padding: 1rem;
    background: #fffaf1;
    border: 1px dashed #ddd0b8;
    border-radius: 14px;
    text-align: center;
    color: #596657;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eaddc4;
}

.cart-item h4 {
    margin: 0;
}

.cart-item p {
    margin: 0.2rem 0 0;
    color: #727a6b;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-controls input {
    width: 60px;
    padding: 0.55rem 0.5rem;
    border: 1px solid #ddd0b8;
    border-radius: 10px;
}

.remove-btn {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.55rem 0.8rem;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eaddc4;
}

.cart-summary div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-checkout-btn {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.checkout-page {
    width: min(1200px, calc(100% - 2rem));
    margin: 2rem auto 8rem;
}

.checkout-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.checkout-heading h1,
.checkout-confirmation h1 {
    margin: 0;
    font-size: 2rem;
}

.checkout-heading .eyebrow {
    margin: 0 0 0.35rem;
}

.checkout-progress {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #727a6b;
    font-size: 0.9rem;
}

.checkout-progress span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.checkout-progress b {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 1px solid #ddd0b8;
    border-radius: 50%;
    font-size: 0.8rem;
}

.checkout-progress .is-current {
    color: var(--secondary-color);
    font-weight: 700;
}

.checkout-progress .is-current b {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.checkout-errors {
    margin: 0 0 1.25rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
    gap: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-section {
    overflow: hidden;
    border: 1px solid #eaddc4;
    border-radius: 12px;
    background: var(--surface-color);
    box-shadow: 0 8px 20px var(--shadow);
}

.checkout-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eaddc4;
    background: #fffaf1;
    color: var(--secondary-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
}

.checkout-section-heading > span:first-child {
    color: var(--primary-color);
}

.checkout-section-body {
    padding: 1.1rem;
}

.purchases-page {
    width: min(900px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.purchases-list {
    display: grid;
    gap: 1rem;
}

.purchase-heading strong {
    color: var(--primary-color);
}

.purchase-items {
    display: grid;
    gap: 0.65rem;
}

.purchase-item,
.purchase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.purchase-item small,
.purchase-heading > span,
.purchase-meta {
    color: #727a6b;
}

.purchase-meta {
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid #eaddc4;
    border-bottom: 1px solid #eaddc4;
    font-size: 0.9rem;
}

.delivery-progress {
    margin-top: 1rem;
}

.delivery-progress h3 {
    margin: 0 0 0.85rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.delivery-progress ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.delivery-progress li {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: #727a6b;
    font-size: 0.78rem;
    text-align: center;
}

.delivery-progress-marker {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 2px solid #ddd0b8;
    border-radius: 50%;
    background: #fffaf1;
    font-weight: 700;
}

.delivery-progress li.is-complete,
.delivery-progress li.is-current {
    color: #166534;
}

.delivery-progress li.is-complete .delivery-progress-marker,
.delivery-progress li.is-current .delivery-progress-marker {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

.delivery-progress li.is-current {
    font-weight: 700;
}

.purchases-empty {
    padding: 2rem;
    border: 1px dashed #ddd0b8;
    border-radius: 12px;
    background: #fffaf1;
    text-align: center;
}

.purchases-empty h2 {
    margin-top: 0;
}

.purchases-empty p {
    margin-bottom: 1.25rem;
    color: #727a6b;
}

.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-section .form-group {
    margin-bottom: 0.85rem;
}

.checkout-section .form-group:last-child {
    margin-bottom: 0;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.delivery-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-height: 4.4rem;
    padding: 0.85rem;
    border: 1px solid #ddd0b8;
    border-radius: 8px;
    cursor: pointer;
}

.delivery-choice:has(input:checked) {
    border-color: var(--primary-color);
    background: #f8ecd4;
}

.delivery-choice input,
.terms-check input {
    accent-color: var(--primary-color);
}

.delivery-choice span,
.payment-choice > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.delivery-choice small,
.payment-choice small {
    color: #727a6b;
    line-height: 1.4;
}

.delivery-address-field {
    margin-top: 1rem;
}

.delivery-address-field[hidden] {
    display: none;
}

.delivery-ci-field[hidden] {
    display: none;
}

.checkout-section textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 8px;
    resize: vertical;
}

.payment-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaddc4;
}

.checkout-progress .is-complete {
    color: var(--primary-color);
    font-weight: 700;
}

.checkout-progress .is-complete b {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.payment-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: start;
    gap: 1.25rem;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 8px;
    cursor: pointer;
}

.payment-method-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #f8ecd4;
}

.payment-method-option input {
    flex: 0 0 auto;
    accent-color: var(--primary-color);
}

.payment-method-mark {
    display: grid;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 6px;
    background: #eaddc4;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.payment-method-logo {
    display: grid;
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
}

.payment-method-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.payment-method-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.payment-method-description {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    background: #fffaf1;
    color: #405246;
}

.payment-method-description p {
    margin: 0.35rem 0 0;
    color: #727a6b;
    line-height: 1.5;
    white-space: pre-line;
}

.admin-payment-descriptions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    max-width: 900px;
}

.admin-payment-descriptions h3,
.admin-payment-descriptions > .primary-btn {
    grid-column: 1 / -1;
}

.admin-payment-descriptions .form-group {
    margin: 0;
}

.admin-payment-descriptions textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
    font: inherit;
    resize: vertical;
}

.admin-payment-descriptions textarea:focus {
    outline: 3px solid rgba(37, 99, 235, 0.15);
    border-color: #d6aa59;
}

.payment-method-copy small {
    color: #727a6b;
    line-height: 1.4;
}

.payment-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.8rem;
    border-top: 1px solid #eaddc4;
    color: #596657;
    font-size: 0.9rem;
}

.payment-security-note span {
    color: #15803d;
    font-weight: 700;
}

.payment-review-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-order-summary {
    position: static;
}

.payment-delivery-summary p {
    margin: 0.55rem 0 0;
    color: #596657;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.payment-delivery-summary p:last-child {
    margin-bottom: 0;
}

.checkout-review-note {
    margin: 0 0 1rem;
    color: #727a6b;
    line-height: 1.5;
}

.payment-check,
.confirmation-mark {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #f8ecd4;
    color: var(--primary-color);
    font-weight: 700;
}

.checkout-notes {
    margin-top: 1rem;
}

.checkout-notes label span {
    color: #727a6b;
    font-weight: 400;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #596657;
    font-size: 0.9rem;
}

.terms-check input {
    margin-top: 0.2rem;
}

.order-summary {
    position: sticky;
    top: 6.5rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.checkout-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.checkout-item-art {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 8px;
    background: #eaddc4;
    color: #405246;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkout-item-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.checkout-item-copy strong {
    overflow-wrap: anywhere;
}

.checkout-item-copy span {
    color: #727a6b;
    font-size: 0.85rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #eaddc4;
}

.summary-total {
    margin-top: 0.25rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem max(1rem, calc((100vw - 1200px) / 2));
    border-top: 1px solid #eaddc4;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.checkout-back {
    color: #596657;
    text-decoration: none;
    font-weight: 600;
}

.checkout-bottom-total {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checkout-bottom-total span {
    color: #727a6b;
    font-size: 0.8rem;
}

.checkout-bottom-total strong {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.checkout-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 2.8rem;
    padding: 0.7rem 1.5rem;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.checkout-confirmation {
    width: min(620px, 100%);
    margin: 4rem auto;
    padding: 2.5rem;
    border: 1px solid #eaddc4;
    border-radius: 12px;
    background: #fffaf1;
    box-shadow: 0 16px 32px var(--shadow);
    text-align: center;
}

.checkout-confirmation .confirmation-mark {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    font-size: 1.3rem;
}

.checkout-confirmation p:not(.eyebrow) {
    margin: 1rem 0 1.5rem;
    color: #596657;
    line-height: 1.6;
}

.admin-page {
    width: min(1200px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.admin-page-heading,
.admin-section-heading,
.admin-queue-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.admin-page-heading {
    margin-bottom: 2rem;
}

.admin-page-heading h1,
.admin-section-heading h2 {
    margin: 0;
    color: var(--secondary-color);
}

.admin-page-heading .eyebrow,
.admin-section-heading .eyebrow {
    margin: 0 0 0.3rem;
}

.admin-page-heading > span,
.admin-section-heading > span {
    color: #727a6b;
    font-size: 0.9rem;
}

.admin-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 6rem;
}

.admin-section-heading {
    margin-bottom: 1rem;
}

.admin-product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 1.25rem;
}

.admin-add-product,
.admin-product-list,
.admin-order-queue {
    border: 1px solid #eaddc4;
    border-radius: 10px;
    background: #fffaf1;
    box-shadow: 0 8px 20px var(--shadow);
}

.admin-add-product {
    padding: 1.25rem;
}

.admin-delivery-fee-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem 1rem;
    max-width: 440px;
}

.admin-delivery-fee-form h3,
.admin-delivery-fee-form small {
    grid-column: 1 / -1;
}

.admin-delivery-fee-form h3 {
    margin: 0;
}

.admin-delivery-fee-form .form-group {
    margin: 0;
}

.admin-delivery-fee-form input[type="number"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
}

.admin-delivery-fee-form .primary-btn {
    border: 0;
    white-space: nowrap;
}

.admin-delivery-fee-form small {
    color: #727a6b;
}

.admin-add-product h3,
.admin-queue-heading h3 {
    margin: 0 0 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.admin-add-product .form-group {
    margin-bottom: 0.85rem;
}

.admin-add-product input:not([type="color"]) {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
}

.admin-add-product textarea,
.admin-edit-product-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd0b8;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.admin-product-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 3.5rem;
    gap: 0.75rem;
}

.admin-product-fields input[type="color"] {
    width: 100%;
    height: 2.55rem;
    padding: 0.2rem;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
    background: #fffaf1;
}

.admin-add-product .primary-btn {
    width: 100%;
    border: 0;
}

.admin-product-list {
    overflow: hidden;
}

.admin-product-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eaddc4;
}

.admin-product-row:last-child {
    border-bottom: 0;
}

.admin-product-edit {
    position: relative;
    flex: 0 0 2.25rem;
}

.admin-product-edit > summary {
    display: grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
    color: #596657;
    cursor: pointer;
    list-style: none;
}

.admin-product-edit > summary::-webkit-details-marker {
    display: none;
}

.admin-product-edit > summary:hover,
.admin-product-edit[open] > summary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-product-edit > summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.admin-product-edit > summary svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-edit-product-form {
    position: static;
    order: 1;
    flex: 1 0 100%;
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid #eaddc4;
    border-radius: 8px;
    background: #fffaf1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.admin-product-edit[open] {
    display: contents;
}

.admin-edit-product-form h4 {
    margin: 0 0 0.85rem;
    color: var(--secondary-color);
}

.admin-edit-product-form .form-group {
    margin-bottom: 0.65rem;
}

.admin-edit-product-form input:not([type="color"]) {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #ddd0b8;
    border-radius: 6px;
}

.admin-edit-product-form input[type="color"] {
    width: 100%;
    height: 2.25rem;
    padding: 0.15rem;
    border: 1px solid #ddd0b8;
    border-radius: 6px;
    background: #fffaf1;
}

.admin-edit-product-form .admin-product-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 3rem;
}

.admin-edit-product-form .primary-btn {
    width: 100%;
    border: 0;
    border-radius: 7px;
}

.admin-product-swatch {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 7px;
    background: var(--product-accent);
}

.admin-product-thumbnail,
.admin-edit-image-preview {
    display: block;
    object-fit: cover;
}

.admin-product-thumbnail {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 7px;
}

.admin-edit-image-preview {
    width: 100%;
    max-height: 150px;
    margin: 0.5rem 0 0.75rem;
    border-radius: 7px;
}

.admin-add-product input[type="file"],
.admin-edit-product-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem;
    border: 1px solid #ddd0b8;
    border-radius: 7px;
    background: #fffaf1;
    color: #405246;
    font-size: 0.85rem;
}

.admin-product-name {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-product-name strong {
    overflow-wrap: anywhere;
}

.admin-product-name small {
    color: #727a6b;
}

.admin-delete-btn {
    padding: 0.55rem 0.75rem;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fffaf1;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 600;
}

.admin-delete-btn:hover {
    background: #fef2f2;
}

.admin-order-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
}

.admin-order-queue {
    min-width: 0;
    padding: 1rem;
}

.admin-queue-heading {
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eaddc4;
}

.admin-queue-heading h3 {
    margin: 0;
}

.admin-queue-heading span {
    display: grid;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    place-items: center;
    border-radius: 999px;
    background: #f8ecd4;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-order {
    padding: 1rem 0;
    border-bottom: 1px solid #eaddc4;
}

.admin-order:last-child {
    border-bottom: 0;
}

.admin-order-heading,
.admin-order-items li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-order-heading > div,
.admin-order-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-order-title span {
    color: #727a6b;
    font-size: 0.82rem;
}

.admin-order-status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.admin-order-status {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-order-status.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-order-status.is-done {
    background: #dcfce7;
    color: #166534;
}

.admin-order-status-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.admin-order-status-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.admin-order-status-btn:hover {
    transform: translateY(-1px);
}

.admin-order-heading span,
.admin-order-contact a {
    color: #727a6b;
    font-size: 0.82rem;
}

.admin-order-contact {
    margin-top: 0.75rem;
    overflow-wrap: anywhere;
}

.admin-order-contact a {
    text-decoration: none;
}

.admin-order-address,
.admin-order-notes {
    margin: 0.75rem 0 0;
    color: #596657;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.admin-delivery-status-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.5rem 0.75rem;
    margin-top: 0.85rem;
}

.admin-delivery-status-form label {
    grid-column: 1 / -1;
    color: #596657;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-delivery-status-form select {
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ddd0b8;
    border-radius: 8px;
    background: #fffaf1;
    color: #26382d;
}

.admin-delivery-status-form .admin-order-status-btn {
    margin: 0;
}

.admin-order-items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.admin-order-items li {
    color: #405246;
    font-size: 0.9rem;
}

.admin-order-items small {
    color: #727a6b;
}

.admin-order-items li > strong {
    white-space: nowrap;
}

.admin-review-queue {
    margin-top: 1rem;
}

.admin-empty-state {
    margin: 0;
    padding: 1rem 0;
    color: #727a6b;
    text-align: center;
}

.admin-notice,
.admin-errors {
    margin: 0 0 1.25rem;
}

.register-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.register-card {
    width: min(500px, 100%);
    background: #fffaf1;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.settings-card {
    width: min(700px, 100%);
}

.register-card h1 {
    margin-top: 0;
    font-size: 2.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 700;
    color: #405246;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd0b8;
    border-radius: 12px;
}

.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd0b8;
    border-radius: 12px;
    font: inherit;
    resize: vertical;
}

.form-group input[type="color"] {
    min-height: 3.25rem;
    padding: 0.35rem;
    cursor: pointer;
}

.form-group input:focus {
    outline: 3px solid rgba(185, 130, 41, 0.2);
    border-color: #d6aa59;
}

.form-group textarea:focus {
    outline: 3px solid rgba(185, 130, 41, 0.2);
    border-color: #d6aa59;
}

.settings-intro {
    margin: 0 0 1.5rem;
    color: #727a6b;
}

.settings-notice {
    width: 100%;
    margin: 0 0 1rem;
}

.settings-section-title {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaddc4;
    font-size: 1.1rem;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    color: #727a6b;
}

.form-note a {
    color: #b98229;
    text-decoration: none;
    font-weight: 700;
}

.profile-card {
    width: min(620px, 100%);
}

.profile-card > .form-note {
    margin: -0.5rem 0 1.5rem;
    text-align: left;
}

.profile-fieldset {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid #eaddc4;
}

.profile-fieldset legend {
    padding: 0 0.6rem 0 0;
    color: #405246;
    font-weight: 700;
}

.profile-fieldset textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd0b8;
    border-radius: 12px;
    font: inherit;
}

.saved-address-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
    color: #596657;
    font-size: 0.9rem;
}

.saved-address-choice input {
    margin-top: 0.2rem;
}

.saved-address-choice a {
    color: var(--primary-color);
    font-weight: 700;
}

.profile-help {
    margin: 0 0 1rem;
    color: #727a6b;
    font-size: 0.9rem;
}

.profile-success {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: #727a6b;
}

@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .hero,
    .store-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .payment-review-layout {
        grid-template-columns: 1fr;
    }

    .admin-product-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 520px) {
    .main-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .account-box {
        width: 100%;
        justify-content: space-between;
    }

    .checkout-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .checkout-progress {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        font-size: 0.75rem;
    }

    .checkout-progress span {
        gap: 0.3rem;
    }

    .checkout-fields,
    .delivery-options {
        grid-template-columns: 1fr;
    }

    .admin-order-columns {
        grid-template-columns: 1fr;
    }

    .admin-payment-descriptions {
        grid-template-columns: 1fr;
    }

    .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-bottom-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.6rem 1rem;
        padding: 0.65rem 1rem;
    }

    .checkout-back {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.85rem;
    }

    .checkout-bottom-total {
        grid-column: 1;
        grid-row: 2;
    }

    .checkout-submit {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 0.65rem 1rem;
    }

    .checkout-confirmation {
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .product-bottom,
    .cart-item,
    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

.home-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.home-nav a {
    padding: 0.6rem 0.9rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color: var(--primary-color);
}

.home-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: 490px;
    margin-top: 1.5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid rgba(23, 60, 46, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(ellipse at 87% 14%, rgba(185, 130, 41, 0.14), transparent 34%),
        linear-gradient(120deg, #fffaf1 5%, var(--accent-color) 100%);
    box-shadow: 0 20px 50px rgba(23, 60, 46, 0.09);
}

.home-hero .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.home-hero .eyebrow {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}

.home-hero .hero-copy h1 {
    max-width: 12ch;
    color: var(--secondary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5.2vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.home-hero .hero-copy > p:not(.eyebrow):not(.hero-note) {
    max-width: 48ch;
    margin: 1.25rem 0 0;
    color: #536258;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.75;
}

.home-hero .hero-actions {
    margin-top: 1.75rem;
}

.home-hero .primary-btn {
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.4rem;
    background: var(--secondary-color);
    box-shadow: 0 10px 24px rgba(23, 60, 46, 0.18);
}

.home-hero .primary-btn:hover {
    background: #24533f;
}

.hero-note {
    margin: 1.5rem 0 0;
    color: #69766c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note span {
    padding: 0 0.35rem;
    color: var(--primary-color);
}

.hero-visual {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 8px solid rgba(255, 250, 241, 0.72);
    border-radius: 48% 48% 30px 30px;
    background: #e7d5b9;
    box-shadow: 0 24px 48px rgba(47, 41, 28, 0.17);
    text-decoration: none;
    transform: rotate(1.5deg);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-visual:hover,
.hero-visual:focus-visible {
    box-shadow: 0 28px 54px rgba(47, 41, 28, 0.22);
    transform: rotate(0) translateY(-3px);
}

.hero-visual:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.hero-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual-label {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: rgba(255, 250, 241, 0.93);
    color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(23, 60, 46, 0.1);
}

.hero-visual-label strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.products-section {
    padding: clamp(1.25rem, 3vw, 2rem);
    scroll-margin-top: 6rem;
}

.products-heading {
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding: 0.25rem 0 1.25rem;
    border-bottom: 1px solid #eaddc4;
}

.products-heading .eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
}

.products-heading h2 {
    margin: 0;
    color: var(--secondary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.products-heading > p {
    max-width: 28ch;
    margin: 0 0 0.2rem;
    color: #69766c;
    line-height: 1.6;
}

.product-card {
    border-color: #ede3d2;
    background: #fffdf8;
    box-shadow: 0 8px 24px rgba(23, 60, 46, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    box-shadow: 0 16px 30px rgba(23, 60, 46, 0.11);
    transform: translateY(-4px);
}

.product-image {
    height: auto;
    aspect-ratio: 1 / 1;
    background: #efe2ce !important;
}

.product-info {
    padding: 1.15rem;
}

.product-info h3 {
    color: var(--secondary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.product-info p {
    font-size: 0.9rem;
}

.product-bottom {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f0e8da;
}

.product-bottom strong {
    color: var(--secondary-color);
}

.product-bottom form {
    margin: 0;
}

.product-bottom .add-btn {
    padding: 0.7rem 1rem;
    background: var(--secondary-color);
    box-shadow: none;
    font-size: 0.82rem;
}

.product-stock {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-stock.is-available {
    background: #e8f3e8;
    color: #285d38;
}

.product-stock.is-low {
    background: #fff1d6;
    color: #805715;
}

.product-stock.is-out {
    background: #fbe9e6;
    color: #8b3328;
}

.product-bottom .add-btn:disabled {
    background: #d7d2c8;
    color: #6d6a64;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
}

.cart-stock-notice {
    border-color: #e5c889;
    background: #fff7e7;
    color: #755316;
}

.admin-product-name small:nth-of-type(2) {
    color: #596657;
    font-weight: 700;
}

.site-footer {
    padding-top: 2.5rem;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
        gap: 2rem;
        min-height: 0;
    }

    .home-hero .hero-copy h1 {
        font-size: clamp(2.6rem, 6vw, 4rem);
    }
}

@media (max-width: 650px) {
    .topbar {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
    }

    .brand img {
        width: 4rem;
        height: 4rem;
    }

    .home-nav {
        display: none;
    }

    .account-box {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .account-box .auth-btn,
    .account-box .logout-btn {
        padding: 0.5rem 0.55rem;
        font-size: 0.72rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        width: min(100% - 1.25rem, 560px);
        margin-top: 0.75rem;
        padding: 1.6rem;
        border-radius: 22px;
    }

    .home-hero .hero-copy h1 {
        max-width: 13ch;
        font-size: clamp(2.5rem, 11vw, 3.5rem);
    }

    .hero-visual {
        width: min(100%, 400px);
        margin: 0 auto;
        border-width: 6px;
        border-radius: 46% 46% 24px 24px;
    }

    .products-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-heading > p {
        max-width: 40ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual,
    .product-card {
        transition: none;
    }
}

.site-footer {
    margin-top: 3rem;
    padding: 0;
    background: var(--surface-color);
    color: #26382d;
    text-align: left;
}

.footer-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 2rem;
    padding: 1.6rem max(2rem, calc((100% - 1120px) / 2));
    background: var(--secondary-color);
    color: #fffaf1;
}

.footer-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: 0;
}

.footer-highlight-icon {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(255, 250, 241, 0.5);
    border-radius: 50%;
    color: #e4c384;
    font-size: 1.3rem;
}

.footer-highlight-icon-spark::before {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 0;
    content: "";
    transform: rotate(-45deg);
}

.footer-highlight p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    line-height: 1.45;
}

.footer-highlight strong {
    font-size: 0.88rem;
}

.footer-highlight p span {
    color: rgba(255, 250, 241, 0.75);
    font-size: 0.78rem;
}

.footer-main {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 3rem 0 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.9fr 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: 2.5rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--secondary-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand-link img {
    width: 8rem;
    height: 8rem;
}

.footer-brand > p,
.footer-payment > p {
    max-width: 30ch;
    margin: 0.85rem 0 0;
    color: #69766c;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-column h2 {
    margin: 0 0 0.25rem;
    color: var(--secondary-color);
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-column > a {
    color: #596657;
    font-size: 0.84rem;
    line-height: 1.4;
    text-decoration: none;
}

.footer-column > a:hover,
.footer-column > a:focus-visible,
.footer-back-top:hover,
.footer-back-top:focus-visible {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-payment > p {
    margin: 0;
}

.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e8e3da;
    border-radius: 8px;
    background: #fff;
    color: #33475b;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-payment-badge img {
    width: 2rem;
    height: 2rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e8e3da;
    color: #69766c;
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #596657;
    font-weight: 700;
    text-decoration: none;
}

.footer-back-top span {
    font-size: 1rem;
}

@media (max-width: 760px) {
    .footer-highlights {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .footer-highlight {
        justify-content: flex-start;
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        width: min(100% - 2rem, 420px);
        padding-top: 2.25rem;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column {
        gap: 0.65rem;
    }

    .footer-column h2 {
        font-size: 0.82rem;
    }

    .footer-column > a,
    .footer-brand > p,
    .footer-payment > p {
        font-size: 0.78rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 0.5rem;
    }
}