/* Self-hosted webfonts — replaces the fonts.googleapis.com <link> that used to
   live in base.html. Served from our own domain so no visitor IP is handed to
   Google (GDPR; the site sells EU-only). latin + latin-ext subsets only —
   latin-ext carries the Polish diacritics. Regenerate: see TODO 7.4. */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin-ext.633f8feda218.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.e1b3b5908c9c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin-ext.33c906549bd6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.de69cf9e514d.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400-italic-latin-ext.fbc900d5891b.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400-italic-latin.4450ccfb7533.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400-latin-ext.319e6b2aad48.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400-latin.ef05b30d6e5c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700-latin-ext.319e6b2aad48.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700-latin.ef05b30d6e5c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    font-family: 'Lato', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* ── Site header ─────────────────────────────────────────── */

.site-header {
    background-color: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(58,46,31,0.08);
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-img {
    height: 40px;
    width: auto;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-toggle {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a6a55;
    background: transparent;
    border: 1px solid #c8b89a;
    border-radius: 99px;
    padding: 3px 10px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.header-toggle:hover,
.header-toggle--active {
    color: #3a2e1f;
    border-color: #3a2e1f;
    font-weight: 700;
}

.block-content {
    padding-left: 10px;
}

.content-page {
    max-width: 760px;
    margin: 48px auto;
    padding: 0 24px;
}

.content-page h1 {
    font-family: 'Playfair Display', serif;
    color: #3a2e1f;
    margin-bottom: 32px;
}

.content-page-body {
    color: #3a2e1f;
    line-height: 1.75;
    font-size: 1rem;
}

.content-page-body h2,
.content-page-body h3 {
    font-family: 'Playfair Display', serif;
    color: #3a2e1f;
    margin: 32px 0 12px;
}

.content-page-body p {
    margin: 0 0 16px;
}

.content-page-body a {
    color: #8b6f4e;
    text-decoration: underline;
}

.content-page-body a:hover {
    color: #3a2e1f;
}

.about-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.about-split {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 340px;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.75;
    color: #3a2e1f;
}

.about-text-full {
    max-width: 700px;
    margin: 0 auto;
}

.about-text h1 {
    margin-top: 0;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .about-split {
        flex-direction: column;
    }
    .about-photo {
        flex: 0 0 auto;
        width: 100%;
    }
}


/* ── Product grid (gallery + category pages) ────────────── */

.product-listing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.product-listing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #3a2e1f;
    margin: 0 0 36px;
}

.product-listing-empty {
    color: #7a6a55;
}

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

.product-card {
    display: block;
    background: #fff;
    border: 1px solid #e4ddd4;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(58,46,31,0.10);
    transform: translateY(-2px);
}

.product-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0ebe4;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-info {
    padding: 12px 14px 16px;
}

.product-card-name {
    font-size: 0.9rem;
    color: #3a2e1f;
    margin: 0 0 6px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.product-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7a6a55;
    margin: 0;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.carousel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f0e8;
}

.carousel-slide {
    display: none;
    position: absolute;
    inset: 0;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide.slide-from-right {
    display: block;
    animation: slideFromRight 0.35s ease;
}

.carousel-slide.slide-from-left {
    display: block;
    animation: slideFromLeft 0.35s ease;
}

@keyframes slideFromRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes slideFromLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    font-size: 3em;
    line-height: 1;
    padding: 0.1em 0.3em;
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    transition: background 0.2s;
    z-index: 1;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    text-align: center;
    padding: 8px 0 4px;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #3a2e1f;
}


.lining-nav {
    display: none;
}

/* Swatch carousel (colors + linings) */

.swatch-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.swatch-viewport {
    flex: 1 1 0px;
    min-width: 0;
    overflow: hidden;
}

.swatch-track {
    display: flex;
    transition: transform 0.3s ease;
}

.swatch-item {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 4px;
    cursor: pointer;
}

.swatch-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: box-shadow 0.15s ease;
}

.swatch-item.color-box-selected img,
.swatch-item.lining-box-selected img {
    outline: 2px solid #3a2e1f;
    outline-offset: -1px;
    box-shadow: 0 0 6px rgba(0,0,0,0.45);
}

.lining-none-inner {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe0;
    color: #b0a090;
    font-size: 1.2em;
    border-radius: 2px;
}

.lining-none-box.lining-box-selected .lining-none-inner {
    outline: 2px solid #3a2e1f;
    outline-offset: -1px;
    box-shadow: 0 0 6px rgba(0,0,0,0.45);
    color: #3a2e1f;
}

.swatch-btn {
    background: none;
    border: 1px solid #c8b89a;
    color: #3a2e1f;
    font-size: 1.4em;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.swatch-btn:hover:not(:disabled) {
    background: #f5f0e8;
}

.swatch-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.swatch-item:not(.color-box-selected):not(.lining-box-selected):hover img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.lining-none-box:not(.lining-box-selected):hover .lining-none-inner {
    background: #e5ddd0;
    color: #3a2e1f;
}

.section-error-msg {
    color: #c0392b;
    font-size: 0.85em;
    margin: 4px 0 8px;
}

.has-error > h3 {
    color: #c0392b;
}

.carousel-slide {
    cursor: zoom-in;
}

.img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.img-lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    padding: 4px 8px;
    transition: opacity 0.15s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    padding: 8px 16px;
    opacity: 0.7;
    line-height: 1;
    transition: opacity 0.15s, background 0.15s;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}


.header-nav .nav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav a {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #3a2e1f;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #3a2e1f;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.header-nav a:hover::after,
.header-nav a.active::after {
    transform: scaleX(1);
}

.header-nav a.active {
    font-weight: 700;
}

#mainBody {
    transition: margin-top .5s;
    padding-top: 0px;
    margin: 0px;
}


/* Item page layout */

.item-page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
}

.item-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.item-images {
    flex: 0 0 55%;
    position: sticky;
    top: 80px;
}

.item-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.item-details-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin: 0 0 6px;
    color: #3a2e1f;
}

/* Shared prose typography for every RichText field on the item page
   (description, measurements, care) so they can never drift apart. */
.item-prose {
    font-size: 1.05em;
    line-height: 1.7;
    color: #3a2e1f;
}

.item-meta-divider {
    border: none;
    border-top: 1px solid #e0d8cc;
    margin: 20px 0;
}

.item-meta-row {
    display: flex;
    gap: 32px;
}

.item-meta-col {
    flex: 1;
}

.item-meta-col h3 {
    margin: 0 0 8px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
}

.item-option-section h3 {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
    margin: 0 0 10px;
}

.item-select {
    width: 100%;
    max-width: 320px;
    padding: 10px 36px 10px 14px;
    font-size: 0.95em;
    font-family: inherit;
    color: #3a2e1f;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a6a55' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #c8b89a;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.item-select:focus {
    outline: none;
    border-color: #3a2e1f;
}

#section-color.has-error .item-select,
#section-size.has-error .item-select {
    border-color: #b3543f;
}

.item-choice-label {
    margin: 8px 0 0;
    font-size: 0.9em;
    color: #555;
}

.item-accessory {
    margin-bottom: 12px;
}

.item-accessory label {
    font-size: 0.95em;
    cursor: pointer;
}

.item-accessory-desc {
    margin-top: 4px;
    padding-left: 20px;
    font-size: 0.9em;
    color: #666;
}

.item-cta {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e0d8cc;
    padding: 16px 0 8px;
    margin-top: 24px;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.item-price-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
}

.item-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: #3a2e1f;
}

.item-buy-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #3a2e1f;
    color: #fff;
    border: none;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.item-buy-btn:hover:not(:disabled) {
    background: #5a4a35;
}

.item-buy-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.item-expo-message {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.item-back-link {
    display: block;
    font-size: 0.85em;
    color: #7a6a55;
    text-decoration: none;
    text-align: center;
}

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

/* Order form */
.order-field {
    margin-bottom: 10px;
}

.order-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.order-row .order-field {
    flex: 1;
    margin-bottom: 0;
}

.order-label {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a6a55;
    margin-bottom: 6px;
}

.order-input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0c8bc;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: inherit;
    color: #3a2e1f;
    background: #fff;
    box-sizing: border-box;
}

.order-input:focus {
    outline: none;
    border-color: #7a6a55;
}

.order-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-radio-label {
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-consent {
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

.order-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.5;
}

.order-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.order-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #3a2e1f;
    color: #fff;
    border: none;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    margin-top: 16px;
}

.order-btn:hover {
    background: #5a4a35;
}

.item-order-error {
    color: #c0392b;
    font-size: 0.9em;
    margin-bottom: 8px;
}

@media (max-width: 800px) {
    .item-layout {
        flex-direction: column;
    }
    .item-images {
        flex: 0 0 auto;
        width: 100%;
        position: static;
    }
    .item-cta {
        position: static;
    }
}

@media screen and (max-height: 450px) {
    .sidenav { padding-top: 15px; }
    .sidenav a { font-size: 18px; }
}

.about-text img {
    max-width: 100%;
    height: auto;
}

/* Checkout page */
.checkout-page {
    padding: 32px 24px 72px;
    background: #faf8f5;
    min-height: calc(100vh - 80px);
}

.checkout-container {
    max-width: 580px;
    margin: 0 auto;
}

.checkout-breadcrumb {
    font-size: 0.85em;
    color: #7a6a55;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.checkout-breadcrumb:hover {
    color: #3a2e1f;
}

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9em;
    color: #3a2e1f;
    margin: 0 0 28px;
    font-weight: 700;
}

.checkout-card {
    border: 1px solid #e4ddd4;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(58,46,31,0.06);
}

.checkout-card-title {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a6a55;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ebe4;
}

/* Item summary card */
.checkout-item-summary {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkout-item-image {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0ebe4;
}

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

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #3a2e1f;
    margin: 0 0 5px;
    font-weight: 600;
}

.checkout-item-accessories {
    font-size: 0.83em;
    color: #9a8a78;
    margin: 0 0 8px;
    line-height: 1.4;
}

.checkout-item-price {
    font-size: 1em;
    font-weight: 700;
    color: #3a2e1f;
    margin: 0;
}

/* Form fields */
.checkout-field {
    margin-bottom: 13px;
}

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-row {
    display: flex;
    gap: 12px;
}

.checkout-row .checkout-field {
    flex: 1;
    margin-bottom: 13px;
}

.checkout-label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    color: #5a4e42;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.checkout-req {
    color: #b94040;
    font-weight: 400;
}

.checkout-required-note {
    margin: 0 0 14px;
    font-size: 0.85em;
    color: #7a6a55;
}

.checkout-invoice-note {
    margin: 0 0 14px;
    font-size: 0.88em;
    color: #7a6a55;
}

.checkout-phone {
    display: flex;
    gap: 8px;
}

.checkout-phone .checkout-phone-dial {
    flex: 0 0 130px;
    width: 130px;
}

.checkout-phone input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.checkout-eu-note {
    margin: 12px 0 0;
    padding: 10px 13px;
    background: #f5f0e8;
    border-radius: 5px;
    font-size: 0.85em;
    line-height: 1.5;
    color: #5a4c3a;
}

.checkout-eu-note a {
    color: #3a2e1f;
    text-decoration: underline;
}

.checkout-input {
    display: block;
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #d0c8bc;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    color: #3a2e1f;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.checkout-input:focus {
    outline: none;
    border-color: #7a6a55;
    box-shadow: 0 0 0 3px rgba(122,106,85,0.12);
}

/* Customer type radios */
.checkout-radio-group {
    display: flex;
    gap: 24px;
}

.checkout-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95em;
    cursor: pointer;
    color: #3a2e1f;
}

/* Shipping options */
.checkout-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e4ddd4;
    border-radius: 6px;
    padding: 11px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.checkout-shipping-option:hover {
    border-color: #c0b8ac;
    background: #fdfcfa;
}

.checkout-shipping-option:has(input:checked) {
    border-color: #7a6a55;
    background: #f8f4f0;
}

.checkout-shipping-option input[type="radio"] {
    flex-shrink: 0;
    accent-color: #7a6a55;
    width: 16px;
    height: 16px;
}

.checkout-shipping-label {
    flex: 1;
    font-size: 0.95em;
    color: #3a2e1f;
}

.checkout-shipping-price {
    font-size: 0.9em;
    font-weight: 700;
    color: #3a2e1f;
}

/* Order totals */
.checkout-totals {
    background: #f7f3ef;
    border-color: #e4ddd4;
}

.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.93em;
    color: #6a5a4a;
    padding: 5px 0;
}

.checkout-totals-grand {
    font-size: 1.15em;
    font-weight: 700;
    color: #3a2e1f;
    border-top: 1px solid #ddd5cc;
    margin-top: 10px;
    padding-top: 14px;
}

/* Consent */
.checkout-consent {
    font-size: 0.88em;
    color: #6a5a4a;
    margin-bottom: 18px;
    line-height: 1.6;
}

.checkout-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkout-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #7a6a55;
    width: 15px;
    height: 15px;
}

/* Pay button */
.checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #3a2e1f;
    color: #fff;
    border: none;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.checkout-btn:hover {
    background: #4e3e2a;
}

.checkout-back {
    display: block;
    text-align: center;
    font-size: 0.85em;
    color: #7a6a55;
    text-decoration: none;
}

.checkout-back:hover {
    color: #3a2e1f;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 20px 16px 48px;
    }
    .checkout-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Homepage ───────────────────────────────────────────── */

.home-hero {
    background: #f5f0e8;
    padding: 80px 24px 72px;
    text-align: center;
}

.home-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.home-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #3a2e1f;
    line-height: 1.2;
    margin: 0 0 20px;
}

.home-hero-subtitle {
    font-size: 1.1rem;
    color: #7a6a55;
    line-height: 1.7;
    margin: 0 0 32px;
}

.home-hero-cta {
    display: inline-block;
    background: #3a2e1f;
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-hero-cta:hover {
    opacity: 0.85;
}

/* Shop-now button colour (SiteSettings.hero_cta_style) */
.home-hero-cta--brown {
    background: #3a2e1f;
    color: #fff;
}

.home-hero-cta--cream {
    background: #f5f0e8;
    color: #3a2e1f;
    border: 1px solid #e0d8cc;
}

/* Full-width banner variant (when a hero_image is set) */
.home-hero--banner {
    position: relative;
    padding: 0;
    background: none;
}

.home-hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 66.3vh;
    object-fit: cover;
}

.home-hero--banner .home-hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    max-width: none;
}

.home-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.home-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #3a2e1f;
    text-align: center;
    margin: 0 0 40px;
}

.home-section .product-grid {
    grid-template-columns: repeat(auto-fit, 260px);
    justify-content: center;
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.home-category-card {
    display: block;
    background: #fff;
    border: 1px solid #e4ddd4;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-category-card:hover {
    box-shadow: 0 4px 16px rgba(58,46,31,0.10);
    transform: translateY(-2px);
}

.home-category-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #3a2e1f;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-product-card {
    display: block;
    background: #fff;
    border: 1px solid #e4ddd4;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.home-product-card:hover {
    box-shadow: 0 4px 16px rgba(58,46,31,0.10);
    transform: translateY(-2px);
}

.home-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0ebe4;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.home-product-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-info {
    padding: 12px 14px 16px;
}

.home-product-name {
    font-size: 0.9rem;
    color: #3a2e1f;
    margin: 0 0 6px;
    line-height: 1.4;
}

.home-product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7a6a55;
    margin: 0;
}

.home-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ── Newsletter section ──────────────────────────────────── */

.home-newsletter {
    background-color: #f5f0e8;
    padding: 60px 24px;
    text-align: center;
}

.template-homepage .site-footer {
    margin-top: 0;
}

.home-newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
}

.home-newsletter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #3a2e1f;
    margin: 0 0 16px;
}

.home-newsletter-body {
    color: #6b5744;
    margin: 0 0 28px;
    line-height: 1.6;
}

.home-newsletter-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 10px 14px;
    border: 1px solid #c9b99a;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #3a2e1f;
    background: #fff;
}

.home-newsletter-input:focus {
    outline: none;
    border-color: #8b6f4e;
}

.home-newsletter-btn {
    padding: 10px 22px;
    background-color: #3a2e1f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.home-newsletter-btn:hover {
    background-color: #5c4a35;
}

.home-newsletter-feedback {
    margin-top: 16px;
    color: #6b5744;
    font-style: italic;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
    background-color: #f5f0e8;
    padding: 36px 24px;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.site-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7a6a55;
    transition: color 0.2s;
}

.footer-social:hover {
    color: #3a2e1f;
    text-decoration: none;
}

.footer-social svg {
    display: block;
}

.footer-social span {
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    letter-spacing: 0.04em;
}

.site-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 760px;
    gap: 40px;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer a {
    font-family: 'Playfair Display', serif;
    color: #3a2e1f;
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 0.04em;
}

.site-footer-links a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .home-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-hero-title {
        font-size: 3.6rem;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 56px 20px 48px;
    }

    .home-hero-title {
        font-size: 2rem;
    }

    .home-section {
        padding: 40px 16px;
    }
}

/* ── Stock badges ────────────────────────────────────────────── */

.stock-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 8px 0 4px;
}

.stock-badge--out {
    background: #fce8e8;
    color: #c0392b;
}

.stock-badge--made {
    background: #efe9df;
    color: #7a6a55;
}

.stock-badge--ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-note {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: #7a6a55;
}

.item-buy-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Order return page */
.return-hero {
    text-align: center;
    padding: 36px 0 32px;
    margin-bottom: 8px;
}

.return-status-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9em;
    margin: 0 auto 20px;
    font-weight: 400;
}

.return-status-icon--success {
    background: #edf3e8;
    color: #3d6b38;
}

.return-status-icon--pending {
    background: #fef3e2;
    color: #9a6a1a;
    font-size: 1.5em;
}

.return-status-icon--failed {
    background: #f7ecec;
    color: #8b3a3a;
    font-size: 1.5em;
}

.return-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #3a2e1f;
    margin: 0 0 12px;
    font-weight: 700;
}

.return-subtitle {
    font-size: 0.97em;
    color: #7a6a55;
    margin: 0;
    line-height: 1.55;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.return-address {
    font-size: 0.93em;
    color: #5a4e42;
    line-height: 1.75;
    margin-bottom: 12px;
}

.return-address p {
    margin: 0;
}

.return-shipping-label {
    font-size: 0.88em;
    color: #7a6a55;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #f0ebe4;
}

.return-email-note {
    text-align: center;
    font-size: 0.88em;
    color: #7a6a55;
    line-height: 1.7;
    margin: 20px 0 24px;
}

.return-try-again {
    text-align: center;
    font-size: 0.95em;
    color: #6a5a4a;
    margin: 0 0 24px;
}

/* Order / return progress stepper (order_return.html) */
.order-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: #b3a894;
}

.order-step--done {
    color: #3a2e1f;
}

.order-step--current {
    color: #7a6a55;
    font-weight: 600;
}

.order-step-mark {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.8em;
    background: #f0ece4;
    color: inherit;
}

.order-step--done .order-step-mark {
    background: #6e8b6e;
    color: #fff;
}

.order-step--current .order-step-mark {
    background: #d8c9ad;
    color: #3a2e1f;
}

.order-step-label small {
    color: #7a6a55;
    font-weight: 400;
}

.return-try-again a {
    color: #7a6a55;
    text-decoration: underline;
}

.return-try-again a:hover {
    color: #3a2e1f;
}

.checkout-totals-grand:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Nav: Patterns link */
.nav-patterns-item {
    margin-left: 12px;
}
.nav-patterns-item a {
    font-style: normal;
}

/* Nav: hover submenu (Patterns → Knitted / Crocheted) */
.nav-has-submenu {
    position: relative;
}
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #f5f0e8;
    min-width: 160px;
    box-shadow: 0 6px 16px rgba(58, 46, 31, 0.14);
    z-index: 60;
}
.nav-has-submenu:hover .nav-submenu,
.nav-has-submenu:focus-within .nav-submenu {
    display: block;
}
.nav-submenu li {
    display: block;
    margin: 0;
}
.nav-submenu a {
    display: block;
    padding: 6px 18px;
    white-space: nowrap;
}

/* Pattern page */
.pattern-digital-label {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a8a78;
    margin: 0 0 6px;
}
.pattern-digital-badge {
    font-size: 0.75em;
    color: #9a8a78;
    font-style: italic;
    margin: 2px 0 0;
}
.pattern-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}
.pattern-meta-row {
    display: flex;
    gap: 12px;
    font-size: 0.92em;
}
.pattern-meta-row--block {
    flex-direction: column;
    gap: 4px;
}
.pattern-meta-label {
    color: #7a6a55;
    min-width: 120px;
    flex-shrink: 0;
}
.pattern-meta-value {
    color: #2a1f14;
}

/* ── Pattern craft filter (Knitted / Crocheted) ─────────── */
.craft-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
    flex-wrap: wrap;
}
.craft-tab {
    padding: 6px 18px;
    border: 1px solid #c8b89a;
    border-radius: 20px;
    color: #7a6a55;
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.craft-tab:hover {
    border-color: #3a2e1f;
    color: #3a2e1f;
}
.craft-tab--active {
    background: #3a2e1f;
    border-color: #3a2e1f;
    color: #fff;
}

/* ── Contact page ───────────────────────────────────────── */
.contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #3a2e1f;
    margin: 0 0 16px;
    text-align: center;
}
.contact-intro {
    color: #7a6a55;
    line-height: 1.7;
    margin-bottom: 28px;
    text-align: center;
}
.contact-details {
    margin-bottom: 24px;
    text-align: center;
}
.contact-detail {
    margin: 4px 0;
    color: #3a2e1f;
}
.contact-detail a {
    color: #7a6a55;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-input {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95em;
    color: #3a2e1f;
    background: #fff;
    border: 1px solid #c8b89a;
    border-radius: 4px;
}
.contact-input:focus {
    outline: none;
    border-color: #3a2e1f;
}
.contact-textarea {
    resize: vertical;
}
.contact-btn {
    align-self: center;
    padding: 12px 32px;
    background: #3a2e1f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover {
    background: #5a4a35;
}
.contact-feedback {
    margin-top: 18px;
    text-align: center;
    color: #6b5744;
    font-style: italic;
}

/* ---------------------------------------------------------------------------
   Cookie consent (TODO 7.1) — restyling tarteaucitron to look like the shop.
   The library ships its own CSS (loaded from js/tarteaucitron/css/); these rules
   come after it and override the parts that would otherwise look bolted on:
   its default black/green chrome, its system font, its square buttons.
   Palette + fonts are the site's own: #3a2e1f brown, #7a6a55 taupe, #f5f0e8
   cream, Playfair Display for headings, Lato for body.
   Selectors are the library's DOM ids — if a tarteaucitron upgrade renames one,
   the banner falls back to *its* styling (ugly, not broken). See VENDOR.md.
   --------------------------------------------------------------------------- */

#tarteaucitronRoot * {
    font-family: 'Lato', sans-serif;
}

/* --- the banner itself --- */
#tarteaucitronRoot #tarteaucitronAlertBig {
    background: #f5f0e8 !important;
    color: #3a2e1f !important;
    border-top: 1px solid #e0d8cc;
    box-shadow: 0 -2px 12px rgba(58, 46, 31, 0.08);
    padding: 22px 24px !important;
}
#tarteaucitronRoot #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronDisclaimerAlert b {
    color: #3a2e1f !important;
    font-size: 0.95em !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

/* --- buttons: match .item-buy-btn (brown = accept, outlined = the rest) --- */
#tarteaucitronRoot #tarteaucitronAlertBig button,
#tarteaucitronRoot #tarteaucitron button {
    font-size: 0.9em !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 3px !important;
    padding: 11px 18px !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#tarteaucitronRoot #tarteaucitronPersonalize2,
#tarteaucitronRoot .tarteaucitronAllow {
    background: #3a2e1f !important;
    color: #fff !important;
    border: 1px solid #3a2e1f !important;
}
#tarteaucitronRoot #tarteaucitronPersonalize2:hover,
#tarteaucitronRoot .tarteaucitronAllow:hover {
    background: #7a6a55 !important;
    border-color: #7a6a55 !important;
}
/* "Deny all" must not be visually weaker than "Accept all" — a refusal has to be
   as easy as a consent, and a greyed-out reject button is exactly the dark
   pattern regulators look for. Same size, same weight, same prominence. */
#tarteaucitronRoot #tarteaucitronAllDenied2,
#tarteaucitronRoot .tarteaucitronDeny {
    background: transparent !important;
    color: #3a2e1f !important;
    border: 1px solid #3a2e1f !important;
    opacity: 1 !important;
}
#tarteaucitronRoot #tarteaucitronAllDenied2:hover,
#tarteaucitronRoot .tarteaucitronDeny:hover {
    background: #e4ddd4 !important;
}
#tarteaucitronRoot #tarteaucitronCloseAlert {
    background: transparent !important;
    color: #7a6a55 !important;
    border: 1px solid #c8b89a !important;
}
#tarteaucitronRoot #tarteaucitronCloseAlert:hover {
    background: #e4ddd4 !important;
    color: #3a2e1f !important;
}

/* --- the settings panel --- */
#tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button,
#tarteaucitronRoot #tarteaucitron #tarteaucitronInfo,
#tarteaucitronRoot #tarteaucitron .tarteaucitronH1,
#tarteaucitronRoot #tarteaucitron .tarteaucitronH2 {
    font-family: 'Playfair Display', serif !important;
}
#tarteaucitronRoot #tarteaucitron {
    color: #3a2e1f;
}
#tarteaucitronRoot #tarteaucitronClosePanel {
    background: #3a2e1f !important;
    color: #fff !important;
    /* The library ships this button as position:absolute with **no `top`**, so
       it settles at the panel's own top edge and the panel body paints over its
       lower half — the button reads as cut in two. Pin it just above the panel
       instead (#tarteaucitron is position:fixed, so it is the containing block)
       and give it a stacking order, since the panel's inner border/scroll area
       is painted after it in DOM order. */
    position: absolute !important;
    top: -30px !important;
    right: 15px !important;
    width: auto !important;
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 18px !important;
    border-radius: 5px 5px 0 0 !important;
    z-index: 1 !important;
}
#tarteaucitronRoot #tarteaucitronservicesTitle_mandatory,
#tarteaucitronRoot .tarteaucitronMainLine,
#tarteaucitronRoot .tarteaucitronTitle {
    background: #f0ebe4 !important;
    color: #3a2e1f !important;
}
#tarteaucitronRoot .tarteaucitronBorder {
    border-color: #e0d8cc !important;
}

/* --- the "Cookie settings" link we add to the footer --- */
.footer-cookie-link {
    cursor: pointer;
}

/* ---------------------------------------------------------------- Reviews
   (TODO 1.12 / 4.4). Small, minimalist, taupe — the stars are the only
   colour, and they use the same warm brown as the rest of the shop. */

.rating-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.92em;
    color: #6b5b45;
    text-decoration: none;
}

.rating-badge__stars,
.reviews__stars,
.review__stars,
.home-review__stars {
    color: #a8875c;
    letter-spacing: 1px;
}

.rating-badge__count,
.reviews__count {
    color: #9a8b76;
}

.reviews {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 0 20px;
}

.reviews__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #3a2e1f;
    margin: 0 0 10px;
}

.reviews__summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95em;
    color: #6b5b45;
    margin-bottom: 22px;
}

.reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.review {
    padding: 18px 0;
    border-top: 1px solid #e7e0d5;
}

.review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    font-size: 0.9em;
    color: #6b5b45;
}

.review__author {
    font-weight: 600;
    color: #3a2e1f;
}

.review__verified {
    font-size: 0.85em;
    color: #7d8a6a;
}

.review__date {
    margin-left: auto;
    color: #9a8b76;
}

.review__body {
    margin: 8px 0 0;
    font-size: 1.02em;
    line-height: 1.7;
    color: #3a2e1f;
}

/* Homepage carousel — paged, 3 cards per view (see reviewsCarousel in
   woolfans.js, which sets --per-view and translates the track). */
.home-reviews__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-reviews__viewport {
    overflow: hidden;
    flex: 1 1 auto;
}

.home-reviews__track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
}

.home-reviews__nav {
    flex: 0 0 auto;
    background: none;
    border: none;
    font-size: 2.4em;
    line-height: 1;
    padding: 0 6px;
    color: #a8875c;
    cursor: pointer;
    transition: color 0.2s, opacity 0.2s;
}

.home-reviews__nav:hover {
    color: #3a2e1f;
}

.home-reviews__nav[disabled] {
    opacity: 0.25;
    cursor: default;
}

.home-reviews__nav[hidden],
.home-reviews__dots[hidden] {
    display: none;
}

.home-reviews__dots {
    margin-top: 6px;
}

.home-review {
    /* --per-view is set by the JS; the fallback keeps a sane layout if it
       never runs (no-JS, or a script error). */
    flex: 0 0 calc((100% - (var(--per-view, 3) - 1) * 20px) / var(--per-view, 3));
    margin: 0;
    padding: 22px;
    background: #faf7f2;
    border: 1px solid #e7e0d5;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-review__body {
    margin: 0;
    font-size: 0.98em;
    line-height: 1.65;
    color: #3a2e1f;
}

.home-review__meta {
    margin-top: auto;
    font-size: 0.88em;
    color: #6b5b45;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-review__author {
    font-weight: 600;
    color: #3a2e1f;
}

.home-review__product {
    color: #9a8b76;
    text-decoration: none;
}

.home-review__product:hover {
    text-decoration: underline;
}

/* Star picker on the review form: radios rendered 5→1 so the ~ sibling
   selector can fill every star to the left of the hovered/checked one. */
.review-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 2em;
    line-height: 1;
}

.review-rating input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.review-rating label {
    cursor: pointer;
    color: #ddd4c6;
    transition: color 0.12s ease;
}

.review-rating input:checked ~ label,
.review-rating label:hover,
.review-rating label:hover ~ label {
    color: #a8875c;
}

.review-rating input:focus-visible + label {
    outline: 2px solid #a8875c;
    outline-offset: 2px;
}

.review-product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.review-product__image {
    border-radius: 3px;
}

.review-product__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15em;
    color: #3a2e1f;
}

.review-privacy {
    margin: 14px 0 0;
    font-size: 0.85em;
    color: #9a8b76;
    line-height: 1.5;
}

.review-stars--large {
    font-size: 1.8em;
    color: #a8875c;
    letter-spacing: 3px;
    margin-top: 10px;
}

.checkout-optional {
    color: #9a8b76;
    font-size: 0.88em;
}

.review-anon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.95em;
    color: #3a2e1f;
    cursor: pointer;
}

.review-anon input {
    width: 16px;
    height: 16px;
    accent-color: #a8875c;
    cursor: pointer;
}

/* Colour preview swatch beside the drop-down (Q15). */
.item-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-select-row .item-select {
    flex: 1 1 auto;
    min-width: 0;
}

.item-swatch-preview {
    flex: 0 0 auto;
    line-height: 0;
}

.item-swatch-preview[hidden] {
    display: none;
}

.item-swatch-preview__img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0d8cc;
    display: block;
}
