:root {
    --honey: #F2C97D;
    --pine: #4F7A69;
    --sand: #EADFCB;
    --sage: #BFD8C2;
    --cream: #FAF7F2;
    --text: #3A3A3A;
    --text-soft: #6B6B6B;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(58, 58, 58, 0.08);
    --radius: 14px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Quicksand", "Trebuchet MS", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, var(--cream), var(--sand));
}
a { color: var(--pine); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    background: var(--cream);
    box-shadow: var(--shadow);
    z-index: 10;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); height: 72px; overflow: visible; }
.brand-logo { height: 72px; width: auto; border-radius: 0; display: block; transform: scale(1.5); transform-origin: left center; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.nav-toggle { display: none; }

.dropdown { position: relative; }
.dropdown::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: 28px;
    height: 14px;
}
.drop-btn { background: none; border: none; font-family: inherit; font-size: inherit; font-weight: 600; color: var(--text); cursor: pointer; min-height: 44px; }
.drop-btn:hover,
.drop-btn:focus-visible,
.nav a:hover,
.nav a:focus-visible {
    color: var(--pine);
}
.nav a.active {
    color: var(--pine);
    border-bottom: 2px solid var(--pine);
    padding-bottom: 2px;
}
.drop-btn.active {
    color: var(--pine);
}
.nav a,
.drop-btn { transition: color 0.2s ease; }

/* Cart link in nav */
.cart-link-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}
.cart-link-nav-badge {
    position: absolute;
    top: 4px;
    right: -8px;
    background: var(--honey);
    color: #1d1d1d;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.dropdown-content {
    position: absolute;
    top: 44px;
    background: var(--cream);
    box-shadow: var(--shadow);
    border: 1px solid #e8dfd0;
    padding: 10px;
    border-radius: 10px;
    display: none;
    min-width: 160px;
}
.dropdown-content a { color: var(--text); }
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content { display: grid; gap: 8px; }

.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--sage), rgba(191, 216, 194, 0));
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }
.hero h1 { font-size: 46px; margin: 0 0 12px; line-height: 1.15; }
.lead { color: var(--text-soft); font-size: 17px; line-height: 1.45; max-width: 60ch; }
.hero-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; }

.btn {
    background: var(--honey);
    color: #2D2415;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    min-height: 44px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: #e8b85e; box-shadow: 0 4px 12px rgba(242, 201, 125, 0.4); }
.btn.ghost:hover { background: var(--honey); color: #2D2415; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; border: 2px solid var(--honey); color: var(--text); }
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Reassurance strip */
.reassurance { padding: 20px 0; background: var(--cream); border-bottom: 1px solid #e8dfd0; }
.reassurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reassurance-item { display: flex; align-items: center; gap: 12px; }
.reassurance-icon { flex-shrink: 0; color: var(--pine); }
.reassurance-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.reassurance-text span { font-size: 12px; color: var(--text-soft); }

.featured { padding: 40px 0; background: var(--sand); content-visibility: auto; contain-intrinsic-size: 540px; }
.featured h2 { text-align: center; margin: 0 0 4px; }
.featured-subtitle { text-align: center; color: var(--text-soft); font-size: 15px; margin: 0 0 24px; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 18px; overflow: hidden; scroll-behavior: smooth; }
.carousel-item { min-width: 260px; }
.carousel-btn {
    position: absolute;
    top: 40%;
    border: none;
    background: var(--pine);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.carousel-btn:hover { background: #3d6354; }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

/* Carousel dots */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8c0b4; border: none; cursor: pointer; padding: 0; transition: background-color 0.2s ease, transform 0.2s ease; }
.carousel-dot.active { background: var(--pine); transform: scale(1.3); }

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: grid;
    gap: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: 0 12px 36px rgba(58, 58, 58, 0.14); transform: translateY(-2px); }
.product-meta {
    background: var(--cream);
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    display: grid;
    gap: 4px;
}
.product-meta h3 { margin: 0; font-size: 18px; }
.product-meta p { margin: 0; color: var(--pine); font-weight: 700; font-size: 17px; }
.product-thumb { margin-bottom: 0; }
.product-card .btn { border-radius: var(--radius); }
.product-thumb img { transition: transform 0.3s ease; }
.product-thumb:hover img { transform: scale(1.05); }
.product-thumb { height: 220px; display: block; background: var(--cream); border-radius: var(--radius); position: relative; overflow: hidden; }
.product-thumb { text-decoration: none; color: inherit; cursor: pointer; }
.product-thumb img { height: 100%; width: 100%; object-fit: cover; }
.product-thumb .placeholder { height: 100%; display: grid; place-items: center; }
.product-thumb .bio-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    height: 60px;
    width: auto;
    background: transparent;
    padding: 0;
}
.placeholder { height: 100%; width: 100%; display: grid; place-items: center; color: var(--text-soft); }

.info-blocks { padding: 50px 0; content-visibility: auto; contain-intrinsic-size: 900px; }
.info-block { background: var(--sage); padding: 22px; border-radius: var(--radius); display: grid; grid-template-columns: 1fr 220px; gap: 20px; margin-bottom: 24px; }
.info-block.offset { margin-left: 40px; background: var(--sand); grid-template-columns: 220px 1fr; }
.info-block.offset .info-image { order: -1; }
.info-image { background: var(--cream); border-radius: var(--radius); display: grid; place-items: center; min-height: 140px; }
.info-image img { max-height: 250px; width: auto; max-width: 100%; object-fit: contain; }

.page-head { padding: 40px 0 20px; }
.category-description { color: var(--text-soft); }
.category-description p { margin: 0 0 8px; }
.category-desc-bottom { padding: 32px 0 48px; }
.category-desc-bottom .category-description { max-width: 720px; }
.shop-grid .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Section titles */
.section-title { text-align: center; margin: 0 0 20px; }
.shop-filters {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}
.shop-filters select,
.shop-filters input[type="range"] {
    min-height: 40px;
    font-size: 14px;
}
.shop-filters select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d8ccb6;
    border-radius: 10px;
    background-color: var(--cream);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--pine) 50%),
        linear-gradient(135deg, var(--pine) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-filters select:focus-visible {
    outline: none;
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(79, 122, 105, 0.2);
}
.price-range { display: grid; gap: 4px; }
.price-values { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); }
.dual-range { position: relative; height: 28px; display: grid; align-items: center; }
.dual-range input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
}
.dual-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
}
.dual-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
}
.product-card { height: 100%; }
.product-thumb { height: 220px; }

.product-detail { padding: 40px 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.gallery-main { background: var(--cream); padding: 10px; border-radius: var(--radius); }
.gallery-main img { width: 100%; height: auto; object-fit: contain; }
.gallery-main img.zoomed { transform: scale(1.4); transition: transform 0.3s ease; cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs img { width: 80px; height: 80px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s ease; }
.gallery-thumbs img.active { border-color: var(--pine); }
.price { font-size: 22px; font-weight: 700; color: var(--pine); }
.bio-off { margin-top: 10px; }
.bio-off img { height: 42px; width: auto; border-radius: 0; }
.product-description { max-width: 70ch; }
.product-info form { display: grid; gap: 10px; margin-top: 16px; }
.product-info label { font-weight: 600; }
.product-buy-form .btn[type="submit"] { padding: 14px 28px; font-size: 16px; }
.product-info select,
.product-info input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    background: var(--cream);
    font-family: inherit;
    min-height: 44px;
}

.product-reviews { padding: 12px 0 42px; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.review-form-card,
.review-list-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.review-summary { margin: 0 0 10px; color: var(--text-soft); }
.review-help { margin: 0 0 14px; color: var(--text-soft); font-size: 14px; }
.review-form { display: grid; gap: 10px; }
.review-form input[type="email"],
.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    background: var(--cream);
    font-family: inherit;
}
.review-form textarea { resize: vertical; min-height: 120px; }
.review-stars { display: inline-flex; gap: 4px; }
.review-star {
    border: none;
    background: transparent;
    color: #d0c6ac;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
}
.review-star.is-active { color: #d49b25; }
.review-item { border-top: 1px solid #ece4d4; padding: 12px 0; }
.review-item:first-of-type { border-top: none; padding-top: 4px; }
.review-item h3 { margin: 0 0 6px; font-size: 17px; }
.review-item p { margin: 0 0 8px; }
.review-item-stars { margin: 0 0 6px; letter-spacing: 2px; }
.review-item-stars .on { color: #d49b25; }
.review-item-stars .off { color: #d0c6ac; }
.review-item-meta { font-size: 13px; color: var(--text-soft); margin: 0; }
.review-empty { color: var(--text-soft); }
.review-alert { margin-bottom: 12px; }
.review-alert.success { background: #d6eadf; }
.review-alert.error { background: #f3dddd; }

.stock-status { font-weight: 700; margin: 6px 0; }
.stock-status.in-stock { color: #2f7a57; }
.stock-status.low-stock { color: #9f6f1b; }
.stock-status.out-stock { color: #a04747; }

.product-attributes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.attr-badge {
    background: var(--sand);
    color: #2f2f2f;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1;
}

.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.trust-badges span {
    background: var(--cream);
    border: 1px solid #eadfcb;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs { padding: 10px 0; }
.breadcrumbs .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-soft); }
.breadcrumbs a { color: var(--pine); }
.crumb-sep { opacity: 0.6; }

.card-block { margin: 18px 0 26px; }
.floral-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.floral-card h2 {
    margin: 0 0 10px;
    color: var(--pine);
}
.floral-content {
    color: var(--text);
}
.floral-content h3,
.floral-content h4 {
    margin: 14px 0 8px;
}
.floral-content p,
.floral-content ul,
.floral-content ol {
    margin: 0 0 10px;
}

.mini-cart {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 20;
    background: var(--pine);
    color: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}
.mini-cart .mini-cart-icon,
.mini-cart .mini-cart-qty,
.mini-cart .mini-cart-amount { color: var(--white); }
.mini-cart .mini-cart-icon { width: 20px; height: 20px; flex-shrink: 0; }
.mini-cart .mini-cart-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--honey);
    color: #1d1d1d;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.variant-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
    display: grid;
    place-items: center;
    z-index: 60;
    padding: 16px;
}
.variant-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.variant-modal-card {
    width: min(420px, 100%);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.variant-modal-card form { display: grid; gap: 10px; }
.variant-modal-card select { min-height: 44px; padding: 10px 12px; }
.variant-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

.sticky-add { display: none; }

.cart-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; padding: 20px 0 40px; }
.cart-item { background: var(--white); padding: 14px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #ece4d4; margin-bottom: 0; }
.cart-item:last-of-type { border-bottom: none; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-summary { background: var(--sand); padding: 20px; border-radius: var(--radius); }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; padding-bottom: 40px; }
.form input, .form textarea, .form select {
    width: 100%; padding: 10px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #ddd; font-family: inherit;
}
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; padding-bottom: 40px; align-items: start; }
.checkout-summary { background: var(--sand); padding: 20px; border-radius: var(--radius); display: grid; gap: 8px; position: sticky; top: 88px; }
.checkout-section + .checkout-section { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--sand); }
.checkout-step-title { display: flex; align-items: center; gap: 10px; color: var(--pine); margin: 0 0 14px; font-size: 17px; }
.checkout-step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.summary-line { display: flex; justify-content: space-between; color: var(--text-soft); }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; }
.shipping-options { display: grid; gap: 8px; margin-bottom: 12px; }
.shipping-option { background: var(--cream); padding: 10px; border-radius: 10px; display: flex; gap: 8px; align-items: center; }

.site-footer { background: var(--cream); padding: 30px 0; margin-top: 40px; content-visibility: auto; contain-intrinsic-size: 260px; border-top: 3px solid var(--sand); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.footer-grid a { display: block; margin: 6px 0; }
.footer-bio { margin-top: 10px; height: 38px; width: auto; border-radius: 0; }
.footer-contact-link { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: var(--text); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--pine); transition: background-color 0.2s ease; margin: 0; }
.footer-social a:hover { background: var(--sage); }

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.alert { background: var(--sage); padding: 10px 12px; border-radius: 8px; }
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--cream);
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 50;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: #2f7a57;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 80;
    font-weight: 700;
}
.toast.error { background: #a04747; }

/* Similar products grid – always 4 columns, single row */
.similar-products .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.similar-products .product-card { height: 100%; }

@media (max-width: 900px) {
    .similar-products .grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
    .similar-products .grid .product-card { min-width: 60vw; max-width: 60vw; flex-shrink: 0; scroll-snap-align: start; }
}

@media (max-width: 900px) {
    .hero-grid, .product-grid, .cart-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .nav { display: none; flex-direction: column; background: var(--cream); position: absolute; right: 20px; top: 70px; padding: 16px; border-radius: 12px; box-shadow: var(--shadow); }
    .nav-toggle { display: block; background: var(--honey); color: #2D2415; border: 1px solid #9B7A3B; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
    .nav.open { display: grid; gap: 12px; }
    .info-block.offset { margin-left: 0; }
    .info-block, .info-block.offset { grid-template-columns: 1fr; }
    .info-block .info-image, .info-block.offset .info-image { order: -1; }
    .carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .carousel-item { scroll-snap-align: start; }
    .carousel-btn.prev, .carousel-btn.next { display: none; }
    .shop-grid .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .shop-filters { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-summary { position: static; }
    .sticky-add {
        display: inline-flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 25;
        justify-content: center;
    }
    .mini-cart { bottom: 140px; }
    .cookie-banner { bottom: 76px; }
    .mini-cart .mini-cart-icon { font-size: 17px; }
    .scroll-to-top { bottom: 160px; }
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; z-index: 100; background: var(--honey); color: var(--white); padding: 8px 16px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; top: 0; }

.ai-note-hidden,
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible */
.btn:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* Checkout grid responsive fix */
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .guide-nav { grid-template-columns: 1fr; }
    .guide-section { padding: 16px; }
    .guide-section h2 { font-size: 22px; }
    .guide-section h3 { font-size: 18px; margin-top: 18px; }
    .guide-section p { font-size: 16px; line-height: 1.75; }
    .guide-cta {
        display: grid;
        justify-items: start;
    }
}

/* Legal pages typography */
.legal { padding: 20px 0 40px; line-height: 1.75; }
.legal .toc { background: var(--sand); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2rem; }
.legal .toc strong { display: block; margin-bottom: 8px; font-size: 17px; }
.legal .toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.legal .toc li { padding: 4px 0; break-inside: avoid; }
.legal .toc a { color: var(--pine); text-decoration: none; border-bottom: 1px solid transparent; }
.legal .toc a:hover { border-bottom-color: var(--pine); }
@media (max-width: 600px) { .legal .toc ul { columns: 1; } }
.legal h2 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 20px; color: var(--text); border-bottom: 2px solid var(--sand); padding-bottom: 6px; }
.legal h3 { margin-top: 1.5rem; font-size: 17px; }
.legal p { margin: 0.5rem 0; }
.legal ul, .legal ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid #ddd; text-align: left; }
.legal th { background: var(--sand); font-weight: 700; }
.legal-date { margin-top: 2rem; }
@media (max-width: 600px) {
    .legal table { display: block; overflow-x: auto; }
}

/* Story grid (about page) */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 20px 0; }
.story-card { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Contact card */
.contact-card { background: var(--sand); padding: 20px; border-radius: var(--radius); }

.contact-slider {
    background: var(--cream);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}
.contact-slider input[type="range"] {
    width: 100%;
    margin: 6px 0;
}

/* Apiculture guide page */
.apiculture-guide { padding: 12px 0 34px; }
.apiculture-guide .container { width: min(980px, 92%); }
.guide-intro {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 14px;
}
.guide-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.guide-nav a {
    background: var(--cream);
    border: 1px solid #e8dfd0;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}
.guide-section {
    background: var(--white);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
    border: 1px solid #ebdfcd;
    padding: 24px 26px;
    margin-bottom: 18px;
}
.guide-section h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.25;
    color: #2f4438;
}
.guide-section h3 {
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--honey);
    font-size: 19px;
    line-height: 1.35;
}
.guide-section p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.85;
    max-width: 74ch;
}
.guide-section p strong { color: #2d5343; }
.guide-section p.guide-lead {
    background: linear-gradient(180deg, #fff8ea, #fffdf7);
    border: 1px solid #f0e2c8;
    border-left: 4px solid var(--honey);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.guide-section ul { margin: 0; padding-left: 1.25rem; }
.guide-section li { margin-bottom: 5px; }
.guide-cta {
    margin-top: 6px;
    background: var(--sand);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}
.guide-cta p { margin: 0; font-weight: 700; }

/* Form row (checkout/contact) */
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }

/* Cart quantity form */
.cart-qty-form { display: inline-flex; gap: 6px; align-items: center; }
.cart-qty-input { width: 60px; padding: 6px 8px; border-radius: 8px; border: 1px solid #ddd; text-align: center; font-family: inherit; }
.cart-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-promo-form { margin-top: 12px; display: grid; gap: 6px; }
.cart-promo-row { display: flex; gap: 8px; align-items: center; }
.cart-promo-row input[type="text"] { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; }

/* Search bar */
.shop-search { display: flex; gap: 8px; margin-top: 12px; max-width: 420px; }
.shop-search input[type="search"] { flex: 1; padding: 8px 12px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; font-size: .95rem; }
.footer-shop-search { max-width: 100%; }
.footer-shop-search input[type="search"] { border-color: #d8ccb6; background: var(--white); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Mini-cart hover */
.mini-cart { transition: transform 0.2s ease; }
.mini-cart:hover { transform: scale(1.08); }

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 15;
    background: var(--cream);
    border: 2px solid var(--sand);
    color: var(--pine);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: background-color 0.2s ease, opacity 0.3s ease;
}
.scroll-to-top:hover { background: var(--sand); }

/* Links underline in editorial text blocks */
.info-text p a { text-decoration: underline; text-underline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .fade-in { opacity: 1; transform: none; }
    .product-card:hover { transform: none; }
    .mini-cart:hover { transform: none; }
    .product-thumb:hover img { transform: none; }
}

/* FAQ section */
.faq { padding: 40px 0; background: var(--cream); }
.faq h2 { margin: 0 0 16px; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--pine); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--text-soft); line-height: 1.6; }

/* Account link nav */
.account-link-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
}
.account-link-nav svg { flex-shrink: 0; }

/* Button styled as link */
.btn-link {
    background: none;
    border: none;
    color: var(--pine);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

/* Auth section */
.auth-section { padding: 40px 0 60px; }
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--sand);
}
.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active, .auth-tab:hover {
    color: var(--pine);
    border-bottom-color: var(--pine);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-link {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}
.auth-link a { text-decoration: underline; }

/* Alert success */
.alert.success {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}

/* Checkout auth gate */
.checkout-auth-section { padding: 40px 0 60px; }
.checkout-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.checkout-auth-left .auth-card,
.checkout-auth-right .auth-card {
    max-width: none;
}
.checkout-auth-right .auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    gap: 16px;
}
.checkout-auth-right h3 { margin: 0; }
.checkout-auth-right p { margin: 0; color: var(--text-soft); text-align: center; }

/* Account section */
.account-section { padding: 40px 0 60px; }
.account-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--sand);
}
.account-panel { display: none; }
.account-panel.active { display: block; }
.account-panel h2 { margin: 0 0 20px; font-size: 22px; }

/* Order cards */
.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
}
.order-card-header strong { font-size: 15px; }
.order-date { margin-left: 10px; font-size: 13px; color: var(--text-soft); }
.order-card-items { padding: 12px 18px; }
.order-item-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--sand);
}
.order-item-line:last-child { border-bottom: none; }
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--sand);
}
.order-tracking { font-size: 13px; color: var(--pine); }

/* Order status badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-paid { background: #e8f5e9; color: #2e7d32; }
.badge-shipped { background: #e3f2fd; color: #1565c0; }
.badge-failed { background: #ffebee; color: #c62828; }

@media (max-width: 768px) {
    .checkout-auth-grid {
        grid-template-columns: 1fr;
    }
    .checkout-auth-right .auth-card {
        min-height: auto;
        padding: 20px;
    }
    .account-tabs {
        overflow-x: auto;
    }
    .auth-tab {
        font-size: 13px;
        padding: 8px 10px;
    }
    .account-link-nav .account-link-label {
        display: none;
    }
}

/* Loyalty */
.loyalty-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.loyalty-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.loyalty-card-label {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.loyalty-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pine);
}
.loyalty-convert {
    background: var(--sage);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.loyalty-convert p { margin: 0 0 12px; }
.loyalty-info {
    color: var(--text-soft);
    font-style: italic;
}
.loyalty-history-table {
    width: 100%;
    border-collapse: collapse;
}
.loyalty-history-table th,
.loyalty-history-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--sand);
}
.loyalty-history-table th {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
}
.loyalty-positive { color: var(--pine); font-weight: 600; }
.loyalty-negative { color: #c0392b; font-weight: 600; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-box h3 { margin: 0 0 12px; }
.modal-box p { margin: 0 0 20px; color: var(--text-soft); }
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .loyalty-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .site-header, .site-footer, .mini-cart, .cookie-banner, .nav-toggle, .sticky-add, .skip-link { display: none !important; }
    body { background: #fff; }
    .container { width: 100%; }
}
