/* Nyttig Pet — main.css */

:root {
    --bg: #f7f8f6;
    --surface: #ffffff;
    --text: #1f2925;
    --muted: #66716b;
    --line: #e4e8e5;
    --brand: #2f6f58;
    --brand-dark: #245944;
    --brand-soft: #eaf2ee;
    --shadow: 0 8px 24px rgba(31, 41, 37, 0.08);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 24px), var(--container));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Text logo */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.045em;
}

.brand-nyttig {
    color: var(--text);
    font-size: 1.42rem;
    font-weight: 850;
}

.brand-pet {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 9px 5px;
    border-radius: 10px 10px 10px 4px;
    background: var(--brand);
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    box-shadow: 0 5px 14px rgba(47, 111, 88, 0.18);
    transform: rotate(-1.5deg);
}

.brand-logo:hover .brand-pet {
    background: var(--brand-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav a,
.header-actions a {
    font-size: 0.94rem;
    font-weight: 650;
    color: #34423b;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.header-actions a:hover {
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions a:last-child {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

/* Hero */

.hero {
    padding: 10px 0 12px;
}

.hero-inner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(17, 29, 23, 0.72) 0%, rgba(17, 29, 23, 0.42) 44%, rgba(17, 29, 23, 0.10) 100%),
        url("../images/hero.jpg") center center / cover no-repeat,
        linear-gradient(135deg, #3e765f 0%, #8eae9d 100%);
    box-shadow: var(--shadow);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(620px, 72%);
    padding: 38px 42px;
    color: #fff;
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero p:not(.eyebrow) {
    max-width: 540px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 20px;
    padding: 0 19px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 750;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    background: #f2f5f3;
}

/* Footer */

.site-footer {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer .container {
    min-height: 72px;
    display: flex;
    align-items: center;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Accessibility */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(47, 111, 88, 0.28);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        min-height: 62px;
        flex-wrap: wrap;
        padding-block: 9px;
        gap: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 1px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        padding-top: 8px;
    }

    .hero-inner {
        min-height: 270px;
        border-radius: 20px;
    }

    .hero-content {
        width: min(680px, 82%);
        padding: 32px;
    }
}

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

    .brand-logo {
        gap: 5px;
    }

    .brand-nyttig {
        font-size: 1.2rem;
    }

    .brand-pet {
        min-height: 27px;
        padding: 4px 8px;
        font-size: 0.96rem;
        border-radius: 9px 9px 9px 4px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions a {
        font-size: 0.86rem;
    }

    .header-actions a:last-child {
        padding: 7px 10px;
    }

    .hero {
        padding: 7px 0 9px;
    }

    .hero-inner {
        min-height: 245px;
        border-radius: 18px;
        background-position: center;
    }

    .hero-content {
        width: 100%;
        padding: 26px 22px;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.9rem);
    }

    .hero p:not(.eyebrow) {
        max-width: 92%;
        margin-top: 10px;
        font-size: 0.94rem;
    }

    .primary-button {
        min-height: 42px;
        margin-top: 16px;
        padding-inline: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* Product page */

.product-detail,
.product-not-found {
    padding: 18px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    gap: 28px;
    align-items: start;
}

.product-gallery,
.product-info {
    min-width: 0;
}

.product-gallery {
    max-width: 620px;
}

.product-main-image,
.product-image-placeholder {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

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

.product-image-placeholder {
    background:
        radial-gradient(circle at 50% 42%, var(--brand-soft) 0 22%, transparent 23%),
        var(--surface);
}

.product-thumbnails {
    display: flex;
    gap: 9px;
    margin-top: 10px;
    overflow-x: auto;
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 24px 0;
}

.product-info .eyebrow,
.products-intro .eyebrow {
    color: var(--brand);
}

.product-info h1 {
    margin: 4px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.product-detail-price {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.product-vat-note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.product-description {
    max-width: 620px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #46524c;
}

.product-description p {
    margin: 0;
}

.product-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

.product-options h2 {
    display: none;
}

.product-option-row {
    display: block;
    margin: 0;
}

.product-option-row label {
    display: block;
    margin: 0 0 6px 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.product-option-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid #dce2de;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(31, 41, 37, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-option-row select:hover {
    border-color: #bcc9c2;
}

.product-option-row select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 111, 88, 0.10);
    outline: none;
}

.product-add-button {
    width: 100%;
    margin-top: 14px;
    border: 0;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(47, 111, 88, 0.18);
}

.product-add-button:hover {
    background: var(--brand-dark);
}

.empty-products {
    padding: 42px 0;
}

.empty-products h1,
.empty-products h2 {
    margin-top: 0;
}

@media (max-width: 820px) {
    .product-detail {
        padding-top: 10px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-main-image,
    .product-image-placeholder {
        border-radius: 18px;
    }

    .product-info {
        padding: 14px 2px 4px;
    }

    .product-info h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
}

@media (max-width: 520px) {
    .product-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-thumbnail {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }
}


/* Purchase controls */

.product-purchase-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}

.quantity-field {
    min-width: 132px;
}

.quantity-label {
    display: block;
    margin: 0 0 6px 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.quantity-control {
    display: grid;
    grid-template-columns: 38px 48px 38px;
    align-items: center;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid #dce2de;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 3px 12px rgba(31, 41, 37, 0.04);
}

.quantity-button {
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.quantity-button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.quantity-control input {
    width: 48px;
    height: 44px;
    padding: 0;
    border: 0;
    border-inline: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: center;
    font-weight: 800;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.quantity-control input:focus {
    outline: none;
}

.product-purchase-row .product-add-button {
    margin-top: 0;
    min-height: 46px;
}

@media (max-width: 520px) {
    .product-purchase-row {
        grid-template-columns: 1fr;
    }

    .quantity-field {
        width: 132px;
    }
}


/* Product layout refinement */

@media (min-width: 821px) {
    .product-detail-grid {
        grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
        gap: 34px;
        align-items: stretch;
    }

    .product-gallery {
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
    }

    .product-main-image,
    .product-image-placeholder {
        width: 100%;
        aspect-ratio: 1 / 1;
        flex: 0 0 auto;
    }

    .product-info {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 22px 0 0;
    }

    .product-options {
        margin-top: auto;
    }

    .product-purchase-row {
        margin-top: 14px;
    }
}


/* Enclosed product card layout */

.product-page {
    background: #f5f7f5;
}

.product-detail {
    padding: 18px 0 20px;
}

.product-detail-grid {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(31, 41, 37, 0.06);
}

@media (min-width: 821px) {
    .product-detail-grid {
        grid-template-columns: minmax(340px, 470px) minmax(0, 1fr);
        gap: 34px;
        align-items: stretch;
    }

    .product-gallery {
        max-width: 470px;
    }

    .product-main-image,
    .product-image-placeholder {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 18px;
    }

    .product-info {
        padding: 8px 0 0;
    }
}

@media (max-width: 820px) {
    .product-detail-grid {
        padding: 16px;
        border-radius: 18px;
    }
}


/* Compact enclosed product card */

@media (min-width: 821px) {
    .product-detail-grid {
        grid-template-columns: 410px minmax(0, 1fr);
        gap: 40px;
        align-items: start;
        padding: 26px 30px;
    }

    .product-gallery {
        width: 410px;
        max-width: 410px;
    }

    .product-main-image,
    .product-image-placeholder {
        width: 410px;
        height: 410px;
        aspect-ratio: 1 / 1;
    }

    .product-info {
        display: block;
        min-height: 0;
        padding: 8px 0 0;
    }

    .product-info h1 {
        margin-bottom: 10px;
    }

    .product-description {
        margin-top: 16px;
        padding-top: 16px;
    }

    .product-options {
        margin-top: 20px;
    }

    .product-purchase-row {
        margin-top: 14px;
    }
}


/* Variant buttons — compact professional layout */

.product-options {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 34px 70px;
    align-items: start;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

.product-option-group {
    min-width: 0;
}

.product-option-label {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

/* Color swatches */

.color-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-option {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 3px;
    border: 1px solid #dfe5e1;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.color-option-swatch {
    width: 28px;
    height: 28px;
    display: block;
    border: 1px solid rgba(31, 41, 37, 0.10);
    border-radius: 50%;
    background: var(--swatch-color);
}

.color-option:hover {
    transform: translateY(-1px);
    border-color: #bdc9c3;
}

.color-option.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(47, 111, 88, 0.16);
}

/* Size buttons */

.size-options {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 48px;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #dfe5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.size-option:hover {
    border-color: #b9c8c0;
}

.size-option.is-selected {
    border-color: var(--brand);
    background: #f7fbf9;
    color: var(--brand-dark);
    box-shadow: 0 0 0 1px var(--brand);
}

@media (max-width: 620px) {
    .product-options {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* Purchase row alignment */

.product-purchase-row {
    grid-template-columns: auto auto minmax(260px, 1fr);
    align-items: end;
    column-gap: 16px;
}

.variant-stock-status {
    align-self: center;
    white-space: nowrap;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.product-purchase-row .product-add-button {
    width: 100%;
    margin-top: 0;
}

@media (max-width: 760px) {
    .product-purchase-row {
        grid-template-columns: auto 1fr;
        row-gap: 12px;
    }

    .product-purchase-row .product-add-button {
        grid-column: 1 / -1;
    }
}


/* Purchase row — final compact layout */

.product-purchase-row {
    display: grid;
    grid-template-columns: 132px auto minmax(280px, 1fr) 48px;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
}

.quantity-field {
    min-width: 132px;
}

.variant-stock-status {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 0;
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.variant-stock-status::before {
    content: "✓";
    font-weight: 900;
}

.variant-stock-status.is-out-of-stock {
    color: #a83f3f;
}

.variant-stock-status.is-out-of-stock::before {
    content: "×";
}

.product-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
}

.product-add-button .cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.product-add-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.wishlist-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    margin-top: 20px;
    padding: 0;
    border: 1px solid #dfe5e1;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.wishlist-button:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .product-purchase-row {
        grid-template-columns: 132px 1fr 48px;
        gap: 12px;
    }

    .variant-stock-status {
        grid-column: 2 / 4;
        grid-row: 1;
        justify-self: start;
        margin-top: 0;
    }

    .quantity-field {
        grid-column: 1;
        grid-row: 2;
    }

    .product-add-button {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }

    .wishlist-button {
        grid-column: 3;
        grid-row: 2;
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .product-purchase-row {
        grid-template-columns: 132px 1fr;
    }

    .variant-stock-status {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .quantity-field {
        grid-column: 1;
        grid-row: auto;
    }

    .wishlist-button {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
    }

    .product-add-button {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
    }
}


/* Header cart counter badge */

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
    pointer-events: none;
}

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


/* Cart page */

.cart-section {
    padding: 28px 0 42px;
}

.cart-heading {
    margin-bottom: 22px;
}

.cart-heading .eyebrow {
    margin-bottom: 5px;
}

.cart-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

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

.cart-items-panel,
.cart-summary {
    border: 1px solid #e1e6e3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(25, 45, 36, 0.05);
}

.cart-items {
    padding: 4px 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #e7ebe9;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-image {
    width: 92px;
    aspect-ratio: 1;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    background:
        radial-gradient(circle at center, #e9f2ee 0 31%, transparent 32%),
        #f8faf9;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 850;
    text-decoration: none;
}

.cart-item-name:hover {
    color: var(--brand);
}

.cart-item-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #68736e;
    font-size: 0.9rem;
}

.cart-remove-button {
    margin-top: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a13d3d;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.cart-remove-button:hover {
    text-decoration: underline;
}

.cart-item-quantity {
    min-width: 126px;
}

.cart-item-quantity-label {
    display: block;
    margin-bottom: 7px;
    color: #65716b;
    font-size: 0.78rem;
    font-weight: 800;
}

.cart-item .quantity-control {
    width: 126px;
    min-height: 44px;
}

.cart-item .quantity-control input {
    min-width: 46px;
}

.cart-item-price {
    min-width: 112px;
    text-align: right;
}

.cart-item-price span {
    display: block;
    margin-bottom: 4px;
    color: #77817c;
    font-size: 0.82rem;
}

.cart-item-price strong {
    color: var(--text);
    font-size: 1.04rem;
    white-space: nowrap;
}

.cart-summary {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    font-size: 1.35rem;
}

.cart-summary-row,
.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cart-summary-row {
    padding: 10px 0;
    color: #5f6b65;
}

.cart-summary-total {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid #dfe5e1;
    color: var(--text);
    font-size: 1.12rem;
}

.cart-summary-total strong {
    font-size: 1.25rem;
}

.cart-vat-note {
    margin: 10px 0 18px;
    color: #7a847f;
    font-size: 0.82rem;
}

.cart-checkout-button {
    width: 100%;
    min-height: 50px;
    margin: 0;
}

.cart-empty {
    padding: 46px 28px;
    text-align: center;
}

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

.cart-empty p {
    margin-bottom: 22px;
    color: #69746f;
}

.cart-empty .primary-button {
    display: inline-flex;
    text-decoration: none;
}

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .cart-items {
        padding: 4px 16px;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
    }

    .cart-item-image {
        width: 76px;
    }

    .cart-item-quantity {
        grid-column: 2;
    }

    .cart-item-price {
        grid-column: 2;
        text-align: left;
    }
}


/* Checkout page */

.checkout-section {
    padding: 28px 0 48px;
}

.checkout-heading {
    margin-bottom: 22px;
}

.checkout-heading .eyebrow {
    margin-bottom: 5px;
}

.checkout-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

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

.checkout-form {
    display: grid;
    gap: 18px;
}

.checkout-card,
.checkout-summary {
    border: 1px solid #e1e6e3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25, 45, 36, 0.05);
}

.checkout-card {
    padding: 24px;
}

.checkout-card h2,
.checkout-summary h2 {
    margin: 0 0 20px;
    font-size: 1.3rem;
}

.checkout-grid {
    display: grid;
    gap: 16px;
}

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

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

.checkout-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
}

.checkout-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dce3df;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.checkout-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(45, 125, 97, 0.12);
}

.checkout-field input[readonly] {
    background: #f6f8f7;
    color: #66716c;
}

.checkout-continue-button {
    width: 100%;
    min-height: 52px;
    margin: 0;
}

.checkout-back-link {
    justify-self: center;
    color: #5f6b65;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.checkout-back-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.checkout-summary {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.checkout-summary-items {
    margin-bottom: 16px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e7ebe9;
}

.checkout-summary-item > div {
    min-width: 0;
}

.checkout-summary-item > div > strong {
    display: block;
    margin-bottom: 5px;
}

.checkout-summary-item span {
    display: block;
    color: #707b75;
    font-size: .84rem;
    line-height: 1.45;
}

.checkout-summary-item > strong {
    white-space: nowrap;
}

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

.checkout-summary-row {
    padding: 10px 0;
    color: #5f6b65;
}

.checkout-summary-total {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid #dfe5e1;
    font-size: 1.12rem;
}

.checkout-summary-total strong {
    font-size: 1.25rem;
}

.checkout-vat-note {
    margin: 10px 0 0;
    color: #7a847f;
    font-size: .82rem;
}

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

    .checkout-summary {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 620px) {
    .checkout-card,
    .checkout-summary {
        padding: 18px;
        border-radius: 18px;
    }

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

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

/* Products page */

.products-page {
    min-height: calc(100vh - 150px);
}

.products-intro {
    padding: 34px 0 14px;
}

.products-intro .eyebrow {
    margin-bottom: 6px;
    color: var(--brand);
}

.products-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.products-intro p:not(.eyebrow) {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
}

.products-section {
    padding: 14px 0 48px;
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31, 41, 37, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #d5ddd8;
    box-shadow: 0 14px 34px rgba(31, 41, 37, 0.09);
}

.product-card-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #f8faf8;
}

.product-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card-image-link img {
    transform: scale(1.025);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 46%, var(--brand-soft) 0 23%, transparent 24%),
        linear-gradient(145deg, #fbfcfb, #f1f5f2);
}

.product-card-content {
    padding: 17px 18px 19px;
}

.product-card-content h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.product-card-content h2 a:hover {
    color: var(--brand);
}

.product-price {
    margin: 9px 0 14px;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 850;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 800;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.product-card-link:hover {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .products-intro {
        padding-top: 24px;
    }

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

    .product-card {
        border-radius: 16px;
    }

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

@media (max-width: 440px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
