
/* =========================================================
   Haku Store
   Main stylesheet
   ========================================================= */


/* =========================
   Variables
   ========================= */

:root {
    --background: #f8f5f0;
    --surface: #ffffff;
    --surface-soft: #f1ebe4;

    --text: #2e2925;
    --text-soft: #746c65;

    --primary: #846b58;
    --primary-dark: #5f4a3c;
    --primary-light: #d8c8bb;

    --accent: #c7a98f;
    --danger: #a64545;
    --success: #557a58;

    --border: #e4dbd3;

    --shadow-small:
        0 4px 14px rgba(46, 41, 37, 0.08);

    --shadow-medium:
        0 12px 30px rgba(46, 41, 37, 0.12);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;

    --container-width: 1180px;
}


/* =========================
   Reset
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Arial,
        Tahoma,
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.container {
    width: min(
        calc(100% - 32px),
        var(--container-width)
    );

    margin-inline: auto;
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


/* =========================
   Common buttons
   ========================= */

.primary-button,
.view-product-button,
.product-add-button,
.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 11px 24px;

    border: 1px solid var(--primary);
    border-radius: var(--radius-small);

    background: var(--primary);
    color: #ffffff;

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.primary-button:hover,
.view-product-button:hover,
.product-add-button:hover,
.checkout-button:not(:disabled):hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);

    transform: translateY(-2px);
}


/* =========================
   Header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: #ffffff;

    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    min-height: 78px;
}

.home-logo-link {
    justify-content: center;
    line-height: 0;
}

.home-header-logo {
    display: block;
    width: 168px;
    height: 62px;
    object-fit: contain;
    background: #ffffff;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: var(--primary);
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.store-name {
    display: flex;
    flex-direction: column;

    line-height: 1.35;
}

.store-name strong {
    font-size: 20px;
}

.store-name span {
    color: var(--text-soft);
    font-size: 13px;
}

.cart-link,
.back-store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 15px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    font-weight: 700;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.cart-link:hover,
.back-store-link:hover {
    border-color: var(--primary);
    color: var(--primary-dark);

    transform: translateY(-1px);
}

.cart-icon {
    font-size: 20px;
}

.floating-cart-link {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 250;
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    border-color: rgba(126, 94, 70, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(45, 35, 29, 0.2);
    backdrop-filter: blur(10px);
}

.floating-cart-link .cart-icon {
    font-size: 24px;
}

.floating-cart-link .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    border: 2px solid #ffffff;
}


/* =========================
   Hero section
   ========================= */

.hero-section {
    padding: 76px 0 62px;

    background:
        linear-gradient(
            135deg,
            #f6eee7 0%,
            #eee1d5 100%
        );
}

.hero-container {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);

    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 650px;
}

.hero-label,
.section-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.hero-content h1 {
    max-width: 620px;

    margin-bottom: 18px;

    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.2;
}

.hero-content p {
    max-width: 600px;

    margin-bottom: 28px;

    color: var(--text-soft);
    font-size: 18px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 380px;

    padding: 30px;

    border-radius: var(--radius-large);

    background: rgba(255, 255, 255, 0.52);

    box-shadow: var(--shadow-medium);
}

.hero-image img {
    width: min(100%, 380px);
}


/* =========================
   Search
   ========================= */

.search-section {
    margin-top: -28px;
}

.search-form {
    display: flex;
    gap: 10px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.search-form input {
    flex: 1;

    min-width: 0;
    min-height: 48px;

    padding: 10px 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: #fcfbfa;
    color: var(--text);

    outline: none;
}

.search-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(132, 107, 88, 0.14);
}

.search-form button {
    min-width: 100px;

    border: 0;
    border-radius: var(--radius-small);

    background: var(--primary);
    color: #ffffff;

    font-weight: 700;

    transition: background-color 0.2s ease;
}

.search-form button:hover {
    background: var(--primary-dark);
}


/* =========================
   Categories
   ========================= */

.categories-section {
    padding: 26px 0 10px;
}

.categories-list {
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;

    padding-bottom: 8px;
}

.category-link {
    flex-shrink: 0;

    padding: 9px 17px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);
    color: var(--text-soft);

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.category-link:hover,
.category-link.active {
    border-color: var(--primary);

    background: var(--primary);
    color: #ffffff;
}


/* =========================
   Products section
   ========================= */

.products-section {
    padding: 40px 0 78px;
}

.section-heading,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.section-heading h2,
.page-heading h1 {
    margin-bottom: 0;

    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-heading p {
    margin-bottom: 5px;

    color: var(--text-soft);
}

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

    gap: 24px;
}

.product-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    box-shadow: var(--shadow-small);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-medium);
}

.product-image-wrapper {
    position: relative;

    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--surface-soft);
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--danger);
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.product-card-content {
    padding: 20px;
}

.product-category {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;
}

.product-name {
    margin-bottom: 8px;

    font-size: 21px;
    line-height: 1.4;
}

.product-name a:hover {
    color: var(--primary);
}

.product-description {
    min-height: 54px;

    margin-bottom: 16px;

    color: var(--text-soft);
    font-size: 14px;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 18px;
}

.price-prefix {
    color: var(--text-soft);
    font-size: 13px;
}

.product-price {
    color: var(--primary-dark);
    font-size: 20px;
}

.original-price {
    color: #99918b;
    font-size: 14px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.view-product-button {
    width: 100%;
}

.quick-add-form {
    display: flex;
}

.add-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid var(--primary);
    border-radius: var(--radius-small);

    background: transparent;
    color: var(--primary);

    font-size: 24px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.add-cart-button:hover {
    background: var(--primary);
    color: #ffffff;
}

.add-cart-button:disabled { cursor: wait; opacity: 0.8; }
.add-cart-button.is-added { border-color: #2f7a46; background: #eaf4ec; color: #2f7a46; }

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.cart-count[hidden] { display: none; }

.cart-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: min(calc(100% - 32px), 440px);
    padding: 14px 16px;
    border: 1px solid #cde2d2;
    border-radius: var(--radius-medium);
    background: #fff;
    color: var(--text);
    box-shadow: 0 16px 40px rgba(46, 41, 37, 0.18);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast[hidden] { display: none; }
.cart-toast.is-visible { opacity: 1; transform: translateY(0); }
.cart-toast-error { border-color: #e5bcbc; background: #fff8f8; }

.cart-toast-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eaf4ec;
    color: #2f7a46;
    font-weight: 900;
}

.cart-toast-error .cart-toast-icon { background: #fcecec; color: #a23d3d; }
.cart-toast a { color: var(--primary-dark); font-size: 12px; font-weight: 900; white-space: nowrap; }

@media (max-width: 520px) {
    .cart-toast {
        right: 16px;
        bottom: 16px;
        grid-template-columns: auto 1fr;
    }

    .cart-toast a { grid-column: 2; }
}


/* =========================
   Empty states
   ========================= */

.empty-products,
.empty-cart {
    padding: 65px 24px;

    border: 1px dashed var(--primary-light);
    border-radius: var(--radius-large);

    background: var(--surface);

    text-align: center;
}

.empty-products-icon,
.empty-cart-icon {
    margin-bottom: 16px;

    font-size: 54px;
}

.empty-products h3,
.empty-cart h2 {
    margin-bottom: 10px;

    font-size: 28px;
}

.empty-products p,
.empty-cart p {
    max-width: 540px;

    margin: 0 auto 24px;

    color: var(--text-soft);
}


/* =========================
   Product page
   ========================= */

.product-page {
    padding: 36px 0 80px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 28px;

    color: var(--text-soft);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.product-details {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 52px;
    align-items: start;
}

.product-main-image {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface-soft);

    box-shadow: var(--shadow-small);
}

.product-main-image img {
    width: 100%;

    aspect-ratio: 1 / 1;

	object-fit: cover;
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(39, 31, 26, 0.7);
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-gallery-arrow:hover {
    background: rgba(39, 31, 26, 0.92);
    transform: translateY(-50%) scale(1.05);
}
.product-gallery-arrow {
    position: absolute;
}

.product-gallery-prev {
    right: 15px;
    left: auto;
}

.product-gallery-next {
    left: 15px;
    right: auto;
}
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.product-thumbnail {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
    opacity: 0.72;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
}

.product-page-badge {
    top: 18px;
    right: 18px;
}

.product-information {
    padding-top: 10px;
}

.product-title {
    margin-bottom: 12px;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.25;
}

.product-short-description {
    margin-bottom: 20px;

    color: var(--text-soft);
    font-size: 17px;
}

.product-page-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 28px;
}

.product-page-price strong {
    color: var(--primary-dark);
    font-size: 28px;
}

.product-page-price del {
    color: #978e87;
}

.product-information .product-description {
    min-height: unset;

    margin-bottom: 28px;
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);
}

.product-information .product-description h2 {
    margin-bottom: 8px;

    font-size: 20px;
}

.product-information .product-description p {
    margin-bottom: 0;
}

.add-to-cart-form {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.product-addons {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: #fbf8f5;
}

.product-addons legend { padding: 0 8px; color: var(--text); font-size: 17px; font-weight: 800; }
.product-addons > p { margin: 0 0 12px; color: var(--text-soft); font-size: 13px; }
.product-addon-list { display: grid; gap: 10px; }

.product-addon-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.product-addon-option:has(input:checked) { border-color: var(--primary); background: #f5ede7; }
.product-addon-option input { width: 18px; height: 18px; accent-color: var(--primary); }
.product-addon-option span { font-weight: 700; }
.product-addon-option strong { color: var(--primary-dark); direction: ltr; white-space: nowrap; }

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: #fcfbfa;
    color: var(--text);

    outline: none;
}

.form-group input {
    max-width: 130px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(132, 107, 88, 0.14);
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);
    font-size: 12px;
}

.product-add-button {
    width: 100%;
}

.product-notes {
    display: grid;
    gap: 12px;

    margin-top: 22px;
}

.product-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.65);
}

.product-note-icon {
    font-size: 24px;
}

.product-note strong {
    display: block;

    margin-bottom: 2px;
}

.product-note p {
    margin-bottom: 0;

    color: var(--text-soft);
    font-size: 13px;
}

.product-back-section {
    margin-top: 34px;

    text-align: center;
}

.back-category-link,
.continue-shopping-link {
    color: var(--primary);
    font-weight: 700;
}

.back-category-link:hover,
.continue-shopping-link:hover {
    text-decoration: underline;
}


/* =========================
   Cart page
   ========================= */

.cart-page {
    padding: 48px 0 80px;
}

.cart-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.7fr);

    gap: 28px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 170px 1fr;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.cart-item-image {
    min-height: 190px;

    background: var(--surface-soft);
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-item-content {
    padding: 20px;
}

.cart-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 14px;
}

.cart-item-heading h2 {
    margin-bottom: 5px;

    font-size: 22px;
}

.cart-item-heading h2 a:hover {
    color: var(--primary);
}

.cart-item-price {
    margin-bottom: 0;

    color: var(--text-soft);
    font-size: 14px;
}

.remove-cart-button {
    padding: 7px 12px;

    border: 1px solid #e0b8b8;
    border-radius: var(--radius-small);

    background: #fff6f6;
    color: var(--danger);

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.remove-cart-button:hover {
    background: var(--danger);
    color: #ffffff;
}

.cart-customization {
    margin-bottom: 18px;
    padding: 12px 14px;

    border-right: 4px solid var(--primary-light);
    border-radius: var(--radius-small);

    background: #faf7f4;
}

.cart-customization span {
    color: var(--text-soft);
    font-size: 13px;
}

.cart-customization p {
    margin-bottom: 0;
}

.cart-item-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.quantity-form label {
    display: block;

    margin-bottom: 6px;

    font-weight: 700;
}

.quantity-controls {
    display: flex;
    gap: 8px;
}

.quantity-controls input {
    width: 90px;

    padding: 9px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    outline: none;
}

.quantity-controls input:focus {
    border-color: var(--primary);
}

.quantity-controls button {
    padding: 9px 15px;

    border: 1px solid var(--primary);
    border-radius: var(--radius-small);

    background: transparent;
    color: var(--primary);

    font-weight: 700;
}

.quantity-controls button:hover {
    background: var(--primary);
    color: #ffffff;
}

.quantity-form small {
    display: block;

    margin-top: 5px;

    color: var(--text-soft);
    font-size: 11px;
}

.cart-item-total {
    text-align: left;
}

.cart-item-total span {
    display: block;

    color: var(--text-soft);
    font-size: 13px;
}

.cart-item-total strong {
    color: var(--primary-dark);
    font-size: 21px;
}

.cart-summary {
    position: sticky;
    top: 104px;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.cart-summary h2 {
    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

    font-size: 24px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 0;
}

.summary-row {
    color: var(--text-soft);
}

.summary-total {
    margin-top: 4px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--text);
    font-size: 18px;
}

.summary-total strong {
    color: var(--primary-dark);
}

.checkout-button {
    width: 100%;

    margin-top: 18px;
}

.continue-shopping-link {
    display: block;

    margin-top: 15px;

    text-align: center;
}

.cart-update-status {
    min-height: 21px;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 12px;
    text-align: center;
}

.auto-update-quantity[aria-busy="true"] {
    opacity: 0.7;
}

@media (max-width: 920px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

@media (max-width: 620px) {
    .checkout-fields,
    .payment-options { grid-template-columns: 1fr; }
    .checkout-field-full { grid-column: auto; }
    .checkout-card,
    .order-success-card { padding: 22px; }
    .checkout-step { top: 19px; left: 19px; }
}


/* =========================
   Checkout
   ========================= */

.checkout-page { padding: 48px 0 72px; }

.checkout-alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid #e3aaaa;
    border-radius: var(--radius-small);
    background: #fff1f1;
    color: #8c2929;
    font-weight: 700;
}

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

.checkout-main { display: grid; gap: 22px; }

.checkout-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.checkout-step {
    position: absolute;
    top: 25px;
    left: 25px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.checkout-section-heading { padding-left: 50px; margin-bottom: 22px; }
.checkout-section-heading h2 { margin-bottom: 5px; }
.checkout-section-heading p { margin-bottom: 0; color: var(--text-soft); }

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

.checkout-field-full { grid-column: 1 / -1; }
.checkout-field label { display: block; margin-bottom: 7px; font-weight: 700; }

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: #fcfbfa;
    color: var(--text);
    outline: none;
}

.checkout-field textarea { resize: vertical; }

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(132, 107, 88, 0.14);
}

.checkout-field small { display: block; margin-top: 6px; color: var(--text-soft); }

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-medium);
    background: #fcfbfa;
    cursor: pointer;
}

.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(132, 107, 88, 0.08); }
.payment-option-disabled { cursor: not-allowed; opacity: 0.62; }
.payment-option input { margin-top: 5px; }
.payment-option-content { display: grid; gap: 7px; min-width: 0; }
.payment-option-content > span,
.payment-option-content small { color: var(--text-soft); }

.benefit-qr {
    width: 180px;
    max-height: 180px;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    object-fit: contain;
    background: #fff;
}

.iban-value {
    display: block;
    padding: 10px;
    border-radius: var(--radius-small);
    background: #fff;
    overflow-wrap: anywhere;
    text-align: left;
}

.checkout-summary {
    position: sticky;
    top: 104px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.checkout-summary h2 { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.checkout-products { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.checkout-product { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }

.payment-config-warning,
.checkout-disclaimer { margin: 12px 0 0; color: var(--text-soft); font-size: 12px; text-align: center; }
.payment-config-warning { color: #8c2929; font-weight: 700; }

.order-success-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--background);
}

.order-success-card {
    width: min(100%, 620px);
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    text-align: center;
}

.order-success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 36px;
    font-weight: 900;
}

.order-number {
    display: grid;
    gap: 5px;
    margin: 24px 0;
    padding: 17px;
    border-radius: var(--radius-small);
    background: rgba(132, 107, 88, 0.1);
}

.order-number span { color: var(--text-soft); font-size: 13px; }
.order-number strong { color: var(--primary-dark); font-size: 20px; }


/* =========================
   Checkout experience v2
   ========================= */

.checkout-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 4%, rgba(199, 169, 143, 0.18), transparent 28%),
        linear-gradient(180deg, #fbfaf8 0%, #f6f1ec 100%);
}

.checkout-header {
    border-bottom: 1px solid rgba(132, 107, 88, 0.14);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.checkout-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
}

.checkout-header-note {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--primary-dark);
}

.checkout-header-note > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #efe8e1;
    font-size: 20px;
}

.checkout-header-note div { display: grid; }
.checkout-header-note strong { font-size: 13px; }
.checkout-header-note small { color: var(--text-soft); font-size: 11px; }

.checkout-page { padding: 48px 0 70px; }
.checkout-container { max-width: 1220px; }

.checkout-intro {
    position: relative;
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.checkout-intro h1 {
    margin: 8px 0 10px;
    color: #29231f;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.checkout-intro p {
    max-width: 610px;
    margin: 0 auto;
    color: var(--text-soft);
}

.checkout-back-link {
    position: absolute;
    top: 4px;
    right: 0;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.checkout-back-link:hover { text-decoration: underline; }

.checkout-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 15px 18px;
    border: 1px solid #efc1c1;
    border-radius: 12px;
    background: #fff6f5;
    color: #8c2929;
    box-shadow: 0 8px 22px rgba(140, 41, 41, 0.06);
}

.checkout-alert > span {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8c2929;
    color: #fff;
    font-weight: 900;
}

.checkout-alert strong { display: block; margin-bottom: 2px; }
.checkout-alert p { margin: 0; font-size: 14px; }

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

.checkout-flow {
    min-width: 0;
    border: 1px solid rgba(132, 107, 88, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(70, 55, 44, 0.09);
    overflow: hidden;
}

.checkout-progress {
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    align-items: center;
    padding: 22px 30px;
    border-bottom: 1px solid var(--border);
    background: #fcfaf8;
}

.checkout-progress-step {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9b9189;
    text-align: right;
}

.checkout-progress-step:last-child { justify-self: end; }

.checkout-progress-number {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 2px solid #dcd3cc;
    border-radius: 50%;
    background: #fff;
    color: #9b9189;
    font-weight: 900;
    transition: 0.25s ease;
}

.checkout-progress-step > span:last-child { display: grid; }
.checkout-progress-step strong { color: inherit; font-size: 14px; }
.checkout-progress-step small { font-size: 11px; }

.checkout-progress-step.active { color: var(--primary-dark); }
.checkout-progress-step.active .checkout-progress-number {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(132, 107, 88, 0.1);
}

.checkout-progress-line {
    position: relative;
    height: 2px;
    background: #ded6cf;
    overflow: hidden;
}

.checkout-progress-line::after {
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--primary);
    content: "";
    transition: width 0.35s ease;
}

.checkout-progress-line.complete::after { width: 100%; }

.checkout-step-panel { padding: 34px 36px 36px; }
.checkout-enhanced .checkout-step-panel:not(.active) { display: none; }

.checkout-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
}

.checkout-panel-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #efe7df, #e2d4c8);
    color: var(--primary-dark);
    font-size: 22px;
}

.checkout-panel-heading span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.checkout-panel-heading h2 {
    margin-bottom: 5px;
    color: #2f2823;
    font-size: 25px;
}

.checkout-panel-heading p { margin: 0; color: var(--text-soft); font-size: 14px; }

.checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.checkout-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #443a33;
    font-size: 13px;
    font-weight: 800;
}

.checkout-field label em { color: #b24b4b; font-style: normal; }
.checkout-field label small { color: #a09790; font-size: 10px; font-weight: 600; }

.checkout-input-wrap { position: relative; }

.checkout-input-wrap > span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #9b8a7e;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    border: 1px solid #ded6cf;
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-field input { min-height: 50px; padding: 11px 42px 11px 14px; }
.checkout-field textarea { padding: 13px 14px; resize: vertical; }

.checkout-field input::placeholder,
.checkout-field textarea::placeholder { color: #b5ada6; }

.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--primary);
    background: #fffefc;
    box-shadow: 0 0 0 4px rgba(132, 107, 88, 0.1);
}

.checkout-field > small { display: block; margin-top: 6px; color: #9c938c; font-size: 11px; }

.checkout-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee8e3;
}

.checkout-panel-actions-end { justify-content: flex-end; }

.checkout-next-button,
.checkout-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 225px;
    min-height: 52px;
    padding: 12px 23px;
    border: 1px solid var(--primary-dark);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(95, 74, 60, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-next-button:hover,
.checkout-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(95, 74, 60, 0.25);
}

.checkout-previous-button {
    min-height: 46px;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-weight: 800;
}

.checkout-previous-button:hover { color: var(--primary-dark); }

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 132px;
    padding: 18px;
    border: 2px solid #e4ddd7;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-option:hover:not(.payment-option-disabled) {
    border-color: #baa796;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(70, 55, 44, 0.08);
}

.payment-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.payment-radio-mark {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 2px solid #cfc5bd;
    border-radius: 50%;
    background: #fff;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #fcf9f6;
    box-shadow: 0 10px 28px rgba(95, 74, 60, 0.1);
}

.payment-option:has(input:checked) .payment-radio-mark {
    border: 6px solid var(--primary);
}

.payment-option-disabled { cursor: not-allowed; opacity: 0.56; }
.payment-option-content { display: grid; gap: 15px; width: 100%; min-width: 0; }

.payment-option-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 28px;
}

.payment-option-heading > span:last-child { display: grid; }
.payment-option-heading strong { color: #332c27; font-size: 15px; }
.payment-option-heading small { color: var(--text-soft); font-size: 11px; }

.payment-logo {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
}

.benefit-logo { background: linear-gradient(135deg, #ee4057, #be223a); }
.bank-logo { background: linear-gradient(135deg, #637b6b, #314c3a); }

.payment-option-details {
    display: none;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e9e1da;
    color: var(--text-soft);
    font-size: 12px;
}

.payment-option:has(input:checked) .payment-option-details { display: grid; }

.benefit-qr {
    width: 190px;
    max-height: 190px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #e2dad3;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.payment-unavailable { margin-top: auto; color: #9b5d5d !important; font-size: 11px; }
.iban-label { color: #8d837b; font-size: 10px; font-weight: 900; text-transform: uppercase; }

.iban-value {
    display: block;
    padding: 11px;
    border: 1px dashed #cfc2b7;
    border-radius: 9px;
    background: #fff;
    color: #3f352f;
    overflow-wrap: anywhere;
    text-align: center;
    letter-spacing: 0.5px;
}

.payment-proof-section {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #e5ddd6;
    border-radius: 16px;
    background: #fcfaf8;
}

.payment-proof-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.payment-proof-heading span:first-child { color: var(--primary); font-size: 10px; font-weight: 900; }
.payment-proof-heading h3 { margin: 2px 0 0; font-size: 17px; }

.required-badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3e8e4;
    color: #9b4b3e;
    font-size: 10px;
    font-weight: 900;
}

.payment-proof-dropzone {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 22px;
    border: 2px dashed #d6cbc2;
    border-radius: 13px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.payment-proof-dropzone:hover,
.payment-proof-dropzone.has-file {
    border-color: var(--primary);
    background: #faf6f2;
}

.payment-proof-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #eee5de;
    color: var(--primary-dark);
    font-size: 22px;
}

.payment-proof-dropzone strong { color: #40362f; font-size: 14px; }
.payment-proof-dropzone > span:last-of-type { color: #988f88; font-size: 11px; }
.payment-proof-dropzone.has-file > span:last-of-type { color: var(--primary-dark); font-weight: 800; }
.payment-proof-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.checkout-review-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #eef4ef;
    color: #405b45;
}

.checkout-review-note > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #58765e;
    color: #fff;
    font-size: 12px;
}

.checkout-review-note p { margin: 0; font-size: 12px; }

.checkout-summary {
    position: sticky;
    top: 24px;
    padding: 24px;
    border: 1px solid rgba(132, 107, 88, 0.17);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(70, 55, 44, 0.09);
}

.checkout-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 17px;
    border-bottom: 1px solid #ece5df;
}

.checkout-summary-header span { color: var(--primary); font-size: 10px; font-weight: 900; }
.checkout-summary-header h2 { margin: 2px 0 0; padding: 0; border: 0; font-size: 21px; }
.checkout-summary-header a { color: var(--primary); font-size: 12px; font-weight: 800; }
.checkout-summary-header a:hover { text-decoration: underline; }

.checkout-products {
    display: grid;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #ece5df;
}

.checkout-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.checkout-product-image { position: relative; }
.checkout-product-image img {
    width: 54px;
    height: 54px;
    border: 1px solid #e3dbd4;
    border-radius: 12px;
    background: #f4f0ec;
    object-fit: cover;
}

.checkout-product-image span {
    position: absolute;
    top: -7px;
    left: -7px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.checkout-product-info { display: grid; min-width: 0; }
.checkout-product-info strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-product-info small { overflow: hidden; color: var(--text-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-product > b { color: #40362f; font-size: 12px; white-space: nowrap; }

.checkout-price-lines { display: grid; gap: 11px; padding: 18px 0; border-bottom: 1px solid #ece5df; }
.checkout-price-lines > div { display: flex; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: 13px; }
.checkout-price-lines strong { color: #443a33; }
.checkout-price-lines .free-delivery { color: #4f7657; }

.checkout-total-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 0;
}

.checkout-total-line div { display: grid; }
.checkout-total-line span { color: #332b26; font-size: 15px; font-weight: 900; }
.checkout-total-line small { color: var(--text-soft); font-size: 10px; }
.checkout-total-line > strong { color: var(--primary-dark); font-size: 22px; }

.checkout-summary-assurance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 12px;
    background: #f6f0eb;
    color: var(--primary-dark);
}

.checkout-summary-assurance > span { font-size: 22px; }
.checkout-summary-assurance p { display: grid; margin: 0; }
.checkout-summary-assurance strong { font-size: 11px; }
.checkout-summary-assurance small { color: var(--text-soft); font-size: 9px; }

.checkout-footer {
    border-top: 1px solid rgba(132, 107, 88, 0.14);
    background: #fff;
    color: var(--text-soft);
    font-size: 12px;
}

.checkout-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.checkout-footer a { color: var(--primary-dark); font-weight: 800; }

@media (max-width: 980px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
    .checkout-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .checkout-header-inner { min-height: 74px; }
    .checkout-header-note div { display: none; }
    .checkout-page { padding: 30px 0 48px; }
    .checkout-intro { padding-top: 28px; }
    .checkout-back-link { top: 0; }
    .checkout-intro h1 { font-size: 31px; }
    .checkout-progress { grid-template-columns: 1fr 34px 1fr; padding: 18px; }
    .checkout-progress-step { gap: 7px; }
    .checkout-progress-number { flex-basis: 32px; width: 32px; height: 32px; }
    .checkout-progress-step small { display: none; }
    .checkout-progress-step strong { font-size: 11px; }
    .checkout-step-panel { padding: 25px 19px; }
    .checkout-panel-heading { gap: 11px; }
    .checkout-panel-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
    .checkout-panel-heading h2 { font-size: 21px; }
    .checkout-fields,
    .payment-options { grid-template-columns: 1fr; }
    .checkout-field-full { grid-column: auto; }
    .checkout-products { grid-template-columns: 1fr; }
    .checkout-panel-actions { align-items: stretch; flex-direction: column-reverse; }
    .checkout-next-button,
    .checkout-submit-button,
    .checkout-previous-button { width: 100%; }
    .checkout-footer .container { align-items: center; flex-direction: column; }
}


/* =========================
   Footer
   ========================= */

.site-footer {
    margin-top: auto;

    border-top: 1px solid var(--border);

    background: #14291e;
    color: #ffffff;
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 42px;

    padding-top: 52px;
    padding-bottom: 42px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    max-width: 460px;
}

.footer-logo-image {
    display: block;
    flex-shrink: 0;
    width: 150px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
}

.footer-brand strong {
    font-size: 21px;
}

.footer-brand p {
    margin: 4px 0 0;

    color: #cbc2bb;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
    min-width: min(100%, 520px);
}

.footer-links h3 {
    margin: 0;
    font-size: 17px;
}

.footer-links a {
    color: #cbc2bb;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    padding: 17px 0;

    color: #b8afa8;

    font-size: 13px;
    text-align: center;
}


/* =========================
   Responsive design
   ========================= */

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

    .hero-content {
        max-width: 720px;
    }

    .hero-image {
        min-height: 300px;
    }

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

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

    .product-main-image {
        max-width: 680px;
        margin-inline: auto;
    }

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

    .cart-summary {
        position: static;
    }
}


@media (max-width: 700px) {
    .header-container {
        min-height: 70px;
    }

    .home-header-logo {
        width: 140px;
        height: 54px;
    }

    .floating-cart-link {
        left: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }

    .store-logo {
        width: 48px;
        height: 48px;

        font-size: 12px;
    }

    .store-name span {
        display: none;
    }

    .hero-section {
        padding: 54px 0 50px;
    }

    .hero-container {
        gap: 34px;
    }

    .hero-image {
        min-height: 240px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        min-height: 46px;
    }

    .section-heading,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-details {
        gap: 30px;
    }

    .product-gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
.product-gallery-prev {
    left: 15px;
    right: auto;
}

.product-gallery-next {
    right: 15px;
    left: auto;
}

    .product-thumbnails {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .product-thumbnail {
        flex: 0 0 68px;
    }

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

    .cart-item-image {
        min-height: unset;
        aspect-ratio: 16 / 10;
    }

    .cart-item-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-item-total {
        text-align: right;
    }

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


@media (max-width: 480px) {
    .container {
        width: min(
            calc(100% - 22px),
            var(--container-width)
        );
    }

    .store-name strong {
        font-size: 17px;
    }

    .cart-link,
    .back-store-link {
        padding: 8px 11px;

        font-size: 13px;
    }

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

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

    .product-card-content,
    .cart-item-content {
        padding: 16px;
    }

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

    .add-cart-button {
        width: 100%;
    }

    .cart-item-heading {
        flex-direction: column;
    }

    .remove-cart-form,
    .remove-cart-button {
        width: 100%;
    }

    .quantity-controls {
        flex-direction: column;
    }

    .quantity-controls input,
    .quantity-controls button {
        width: 100%;
    }
}


/* Compact two-column product cards on phones. */
@media (max-width: 700px) {
    .product-card {
        border-radius: 14px;
    }

    .product-card-content {
        padding: 11px;
    }

    .product-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .discount-badge {
        top: 8px;
        right: 8px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .product-category {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .product-name {
        margin-bottom: 5px;
        font-size: 15px;
        line-height: 1.35;
    }

    .product-description {
        display: -webkit-box;
        min-height: 38px;
        margin-bottom: 9px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.65;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-price-container {
        gap: 4px;
        margin-bottom: 10px;
    }

    .price-prefix {
        font-size: 9px;
    }

    .product-price {
        font-size: 15px;
    }

    .original-price {
        font-size: 10px;
    }

    .product-actions {
        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 6px;
    }

    .view-product-button {
        min-height: 36px;
        padding: 6px 7px;
        font-size: 11px;
    }

    .quick-add-form {
        min-width: 0;
    }

    .add-cart-button {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        gap: 8px;
    }

    .product-card-content {
        padding: 9px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 13px;
    }
}

