/**
 * Fyonli WooCommerce Styles
 * Modern · Rustic · Organic
 */

/* ===========================
   SINGLE PRODUCT — BRAND VARIABLES
   =========================== */
.single-product {
    --sp-forest:    #2D4A1E;
    --sp-forest-lt: #3d6228;
    --sp-cream:     #F5F0E8;
    --sp-parchment: #FAF7F2;
    --sp-brown:     #8B5E3C;
    --sp-brown-lt:  #A97850;
    --sp-gold:      #C9A84C;
    --sp-sage:      #6B8F5E;
    --sp-sage-lt:   #e8f0e5;
    --sp-bark:      #5C3D1E;
    --sp-ink:       #1E2E1A;
    --sp-mist:      #E8E2D9;
    --sp-border:    #D6CEC2;
}

/* ===========================
   SINGLE PRODUCT — PAGE BACKGROUND
   =========================== */
.single-product .site-content {
    background: var(--sp-parchment);
}

/* ===========================
   SINGLE PRODUCT — BREADCRUMB (hidden globally)
   =========================== */
.single-product .woocommerce-breadcrumb {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===========================
   SINGLE PRODUCT — MAIN WRAPPER
   =========================== */
.single-product .woocommerce div.product {
    margin-top: 0;
    padding: 0 0 60px;
    background: transparent;
    /* overflow: hidden removed — the ::after clearfix handles float containment,
       and we need unrestricted overflow for the farmer strip's full-width technique */
}

.single-product .woocommerce div.product::after {
    content: '';
    display: table;
    clear: both;
}

/* Image area — Storefront floats handle the 2-col layout; we refine it */
.single-product .woocommerce-product-gallery {
    width: 46% !important;
    float: left !important;
}

.single-product .summary.entry-summary {
    width: 48% !important;
    float: right !important;
    padding-left: 0 !important;
}

/* ===========================
   SINGLE PRODUCT — IMAGE GALLERY
   =========================== */
.single-product .woocommerce-product-gallery__wrapper {
    border-radius: 6px;
    overflow: hidden;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    display: block;
    background: var(--sp-cream);
}

.single-product .woocommerce-product-gallery__image:first-child img {
    border: 1px solid var(--sp-border);
    border-radius: 6px;
}

/* Thumbnails */
.single-product .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

/* Let thumbnails share available width evenly regardless of count */
.single-product .flex-control-thumbs li {
    flex: 1 1 0;
    min-width: 60px;
    max-width: 100px;
}

/* Column-count overrides if WooCommerce sets specific columns */
.single-product .woocommerce-product-gallery--columns-2 .flex-control-thumbs li { max-width: calc(50% - 4px); }
.single-product .woocommerce-product-gallery--columns-3 .flex-control-thumbs li { max-width: calc(33.333% - 6px); }
.single-product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li { max-width: calc(25% - 6px); }
.single-product .woocommerce-product-gallery--columns-5 .flex-control-thumbs li { max-width: calc(20% - 7px); }

.single-product .flex-control-thumbs img {
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
    border-color: var(--sp-forest);
}

/* ===========================
   SALE BADGE
   =========================== */
.single-product .woocommerce-product-gallery .onsale,
.woocommerce span.onsale {
    background: var(--sp-brown);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    animation: none;
}

/* ===========================
   ORIGIN BADGE
   =========================== */
.fyonli-origin-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--sp-sage-lt);
    color: var(--sp-forest);
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
    border: 1px solid rgba(45, 74, 30, 0.18);
    margin-bottom: 18px;
}

.fyonli-origin-badge svg {
    width: 13px;
    height: 13px;
    stroke: var(--sp-forest);
    flex-shrink: 0;
}

/* ===========================
   PRODUCT TITLE
   =========================== */
.single-product .woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--sp-ink);
    line-height: 1.25;
    margin-bottom: 14px;
    text-transform: none;
}

/* ===========================
   RATING
   =========================== */
.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.single-product .woocommerce-product-rating .star-rating {
    color: var(--sp-gold);
    font-size: 0.9rem;
}

.single-product .woocommerce-product-rating .woocommerce-review-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: var(--sp-brown);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.single-product .woocommerce-product-rating .woocommerce-review-link:hover {
    text-decoration-color: var(--sp-brown);
}

/* ===========================
   PRICE
   =========================== */
.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--sp-forest);
    margin-bottom: 22px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.single-product .woocommerce div.product p.price del,
.single-product .woocommerce div.product span.price del {
    font-size: 1.2rem;
    color: var(--sp-brown-lt);
    font-weight: 400;
    opacity: 0.7;
}

.single-product .woocommerce div.product p.price ins,
.single-product .woocommerce div.product span.price ins {
    text-decoration: none;
}

/* ===========================
   SECTION DIVIDER
   =========================== */
.single-product .summary .price-divider,
.single-product .summary .woocommerce-product-details__short-description {
    border-top: 1px solid var(--sp-border);
    padding-top: 22px;
    margin-top: 0;
}

/* ===========================
   SHORT DESCRIPTION
   =========================== */
.single-product .woocommerce-product-details__short-description {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    color: #4a4a3a;
    line-height: 1.75;
    margin-bottom: 24px;
    border-top: 1px solid var(--sp-border);
    padding-top: 20px;
}

.single-product .woocommerce-product-details__short-description p {
    margin-bottom: 0.75em;
}

/* ===========================
   QUANTITY + ADD TO CART
   =========================== */
.single-product .woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.single-product .woocommerce div.product form.cart div.quantity {
    margin: 0;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sp-border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.single-product .woocommerce div.product form.cart .quantity input.qty {
    width: 54px;
    padding: 12px 6px;
    border: none;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-ink);
    background: transparent;
    -moz-appearance: textfield;
}

.single-product .woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product .woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Add to Bag Button */
.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
.single-product .woocommerce div.product form.cart .button.single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    flex: 1;
    background: #2D4A1E !important;
    color: #F5F0E8 !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 15px 32px !important;
    border-radius: 4px !important;
    border: 2px solid #2D4A1E !important;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 180px;
    box-shadow: none !important;
}

.single-product .woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.single-product .woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:hover {
    background: transparent !important;
    color: #2D4A1E !important;
    border-color: #2D4A1E !important;
    transform: none;
    box-shadow: none !important;
}

/* ===========================
   TRUST BADGES
   =========================== */
.fyonli-trust-badges {
    margin-top: 6px;
}

.fyonli-trust-divider {
    height: 1px;
    background: var(--sp-border);
    margin-bottom: 20px;
}

.fyonli-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sp-brown);
    letter-spacing: 0.03em;
}

.trust-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sp-sage-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon-wrap svg {
    width: 15px;
    height: 15px;
    stroke: var(--sp-forest);
}

/* ===========================
   PRODUCT META
   =========================== */
.single-product .product_meta {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: var(--sp-brown-lt);
    border-top: 1px solid var(--sp-border);
    padding-top: 18px;
    margin-top: 22px;
}

.single-product .product_meta span {
    display: block;
    margin-bottom: 4px;
}

.single-product .product_meta a {
    color: var(--sp-sage);
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: var(--sp-forest);
}

/* Hide SKU on frontend — CSS fallback (primary hiding is via wc_product_sku_enabled filter) */
.sku_wrapper { display: none !important; }

/* ===========================
   FARMER STORY STRIP
   =========================== */
.fyonli-farmer-strip {
    background: var(--sp-forest);
    color: var(--sp-cream);
    clear: both; /* clear floated gallery + summary */
    margin: 56px -9999px 0;
    padding: 52px 9999px;
    position: relative;
}

.fyonli-farmer-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 48px;
}

.farmer-strip-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.farmer-mountain-icon svg {
    stroke: var(--sp-gold);
    opacity: 0.85;
}

.farmer-altitude-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 4px;
    padding: 8px 14px;
}

.altitude-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sp-gold);
    line-height: 1;
}

.altitude-unit {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.65);
    margin-top: 3px;
}

.farmer-strip-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sp-cream);
    margin-bottom: 10px;
    line-height: 1.3;
}

.farmer-strip-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.78);
    line-height: 1.7;
    margin: 0;
}

.farmer-strip-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.farmer-tag {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--sp-cream);
    background: rgba(245, 240, 232, 0.1);
    border: 1px solid rgba(245, 240, 232, 0.2);
    padding: 7px 16px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ===========================
   PRODUCT SECTIONS (formerly tabs — now stacked full-width)
   Tab nav hidden; all panels always visible as premium stacked sections.
   =========================== */

/* Hide the default tab navigation entirely */
.single-product .woocommerce-tabs ul.tabs.wc-tabs {
    display: none !important;
}

/* Outer wrapper */
.single-product .woocommerce-tabs {
    margin-top: 0;
    background: transparent;
}

/* Each panel = one full-width stacked section.
   Storefront floats panels right at 64.7% (to sit beside the tab nav).
   We hide the tab nav, so we must reset the float and restore full width. */
.single-product .woocommerce-tabs .panel {
    display: block !important;
    visibility: visible !important;
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    border-top: 1px solid #e8e2d9;
    padding: 52px 0;
    background: transparent;
    margin-left: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Description panel: constrain content width on desktop for a balanced, premium read */
@media (min-width: 769px) {
    .single-product #tab-description {
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Section label injected by fyonliProductTabs() JS */
.fyonli-section-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #c9a96e;
    display: block;
    margin-bottom: 28px;
}

/* ── Description panel ─────────────────────────────── */

/* Hide WC's auto-generated "Description" h2 */
.single-product #tab-description > h2:first-child {
    display: none;
}

/* Opening hook paragraph */
.single-product #tab-description > p:first-of-type {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-style: italic;
    color: #1a2a0a;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Body paragraphs */
.single-product #tab-description p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    line-height: 1.85;
    color: #4a4030;
    margin-bottom: 16px;
}

/* h4 subheadings: Why You'll Love It / Pure. Natural. / How to Use */
.single-product #tab-description h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2d4a0e;
    margin: 36px 0 14px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.single-product #tab-description h4:first-of-type {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

/* Bullet lists */
.single-product #tab-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.single-product #tab-description ul li {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #4a4030;
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.single-product #tab-description ul li:last-child {
    border-bottom: none;
}

.single-product #tab-description ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 9px;
    color: #c9a96e;
    font-size: 0.72rem;
}

/* ── Product Details panel (Additional Information) ─── */

.single-product #tab-additional_information .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lato', sans-serif;
}

.single-product #tab-additional_information .woocommerce-product-attributes th,
.single-product #tab-additional_information .woocommerce-product-attributes td {
    padding: 13px 0;
    border-bottom: 1px solid #ede7dd;
    font-size: 0.88rem;
    vertical-align: top;
    text-align: left;
}

.single-product #tab-additional_information .woocommerce-product-attributes th {
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: #2d4a0e;
    width: 150px;
    padding-right: 24px;
}

.single-product #tab-additional_information .woocommerce-product-attributes td {
    color: #4a4030;
}

.single-product #tab-additional_information .woocommerce-product-attributes tr:last-child th,
.single-product #tab-additional_information .woocommerce-product-attributes tr:last-child td {
    border-bottom: none;
}

/* ── Reviews panel ─────────────────────────────────── */

/* Hide WC's default "Reviews" h2 — we inject our own label */
.single-product #tab-reviews .woocommerce-Reviews-title {
    display: none;
}

/* No reviews notice */
.single-product #tab-reviews .woocommerce-noreviews {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #9a8878;
    font-style: italic;
    margin-bottom: 28px;
}

/* Review list */
.single-product #tab-reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.single-product #tab-reviews ol.commentlist li {
    padding: 22px 0;
    border-bottom: 1px solid #ede7dd;
}

.single-product #tab-reviews ol.commentlist li:last-child {
    border-bottom: none;
}

.single-product #tab-reviews ol.commentlist .star-rating {
    color: #c9a96e;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.single-product #tab-reviews ol.commentlist .woocommerce-review__author {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #1a2a0a;
    text-transform: uppercase;
}

.single-product #tab-reviews ol.commentlist .woocommerce-review__published-date {
    font-size: 0.78rem;
    color: #9a8878;
    margin-left: 10px;
}

.single-product #tab-reviews ol.commentlist .description p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    line-height: 1.78;
    color: #4a4030;
    margin: 10px 0 0;
}

/* Review form */
.single-product #tab-reviews #review_form_wrapper {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid #e8e2d9;
}

.single-product #tab-reviews #reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: #1a2a0a;
    display: block;
    margin-bottom: 28px;
}

.single-product #tab-reviews .comment-form input[type="text"],
.single-product #tab-reviews .comment-form input[type="email"],
.single-product #tab-reviews .comment-form textarea {
    border: 1px solid #ddd7ce;
    border-radius: 3px;
    padding: 10px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    background: #faf7f2;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.single-product #tab-reviews .comment-form input:focus,
.single-product #tab-reviews .comment-form textarea:focus {
    outline: none;
    border-color: #2d4a0e;
    box-shadow: 0 0 0 3px rgba(45, 74, 14, 0.07);
}

.single-product #tab-reviews #submit {
    background: #2d4a0e;
    color: #fff;
    border: none;
    padding: 13px 28px;
    font-family: 'Lato', sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    margin-top: 6px;
}

.single-product #tab-reviews #submit:hover {
    background: #1a2a0a;
}

/* ── Mobile responsive ──────────────────────────────── */
@media (max-width: 767px) {
    .single-product .woocommerce-tabs .panel {
        padding: 36px 0;
    }

    .single-product #tab-description > p:first-of-type {
        font-size: 0.97rem;
    }

    .single-product #tab-additional_information .woocommerce-product-attributes th {
        width: 110px;
    }
}

/* ===========================
   RELATED PRODUCTS
   =========================== */
.single-product .related.products,
.single-product .up-sells.products {
    /* Reset: style.css targets .woocommerce .products { display: grid } which catches
       this <section class="related products"> wrapper and traps the ul in one grid cell.
       Must be block so the ul.products below inherits the full section width. */
    display: block !important;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--sp-border);
}

.single-product .related.products > h2,
.single-product .up-sells.products > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sp-ink);
    margin-bottom: 32px;
}

/* ── Related / upsell product grid ─────────────────────────────────────
   Scoped override to beat Storefront's float-based .products li.product
   rules (float: left; width: 22.05%; margin-right: 3.8%). Using
   minmax(0, 1fr) — not plain 1fr — so cells can shrink below content
   size without overflow. width: 100% on li beats Storefront's explicit
   percentage widths even when !important is absent on their side.
   ─────────────────────────────────────────────────────────────────── */
.single-product .related ul.products,
.single-product .up-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.single-product .related ul.products li.product,
.single-product .up-sells ul.products li.product {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    /* Card styles — match the shop grid cards */
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.single-product .related ul.products li.product:hover,
.single-product .up-sells ul.products li.product:hover {
    box-shadow: 0 6px 24px rgba(45, 74, 30, 0.1);
    transform: translateY(-3px);
}

.single-product .related ul.products li.product img,
.single-product .up-sells ul.products li.product img {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.single-product .related ul.products li.product .woocommerce-loop-product__title,
.single-product .up-sells ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--sp-ink);
    padding: 12px 14px 4px;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
}

.single-product .related ul.products li.product .price,
.single-product .up-sells ul.products li.product .price {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sp-forest);
    padding: 4px 14px 12px;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .single-product .related ul.products,
    .single-product .up-sells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .single-product .related ul.products,
    .single-product .up-sells ul.products {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .single-product .related ul.products li.product img,
    .single-product .up-sells ul.products li.product img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center top;
    }

    .single-product .related ul.products li.product .woocommerce-loop-product__title,
    .single-product .up-sells ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.8rem;
        padding: 8px 10px 3px;
    }

    .single-product .related ul.products li.product .price,
    .single-product .up-sells ul.products li.product .price {
        font-size: 0.85rem;
        padding: 3px 10px 10px;
    }
}

/* ===========================
   SHOP PAGE — VARIABLES
   =========================== */
.woocommerce-shop {
    --sh-forest:    #2D4A1E;
    --sh-forest-lt: #3d6228;
    --sh-cream:     #F5F0E8;
    --sh-parchment: #FAF7F2;
    --sh-brown:     #8B5E3C;
    --sh-gold:      #C9A84C;
    --sh-sage:      #6B8F5E;
    --sh-sage-lt:   #e8f0e5;
    --sh-border:    #D6CEC2;
    --sh-ink:       #1E2E1A;
    --sh-mist:      #E8E2D9;
}

/* ===========================
   SHOP PAGE — BACKGROUND
   =========================== */
.woocommerce-shop .site-content {
    background: var(--sh-parchment);
}

/* ===========================
   SHOP PAGE — HERO BANNER
   =========================== */
.fyonli-shop-hero {
    background: var(--sh-forest);
    margin: 0 -9999px 52px;
    padding: 64px 9999px 60px;
    position: relative;
    overflow: hidden;
}

.fyonli-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 L30 10 L60 60Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.fyonli-shop-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sh-gold);
    margin-bottom: 18px;
}

.shop-hero-eyebrow svg {
    stroke: var(--sh-gold);
    flex-shrink: 0;
}

.shop-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--sh-cream);
    line-height: 1.2;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.shop-hero-desc {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.75;
    margin: 0 auto 36px;
    max-width: 600px;
}

.shop-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sh-gold);
    line-height: 1;
}

.hero-stat-number small {
    font-size: 0.9rem;
}

.hero-stat-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.55);
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(245, 240, 232, 0.15);
}

/* ===========================
   SHOP PAGE — TOOLBAR (sort + count)
   =========================== */
.woocommerce-shop .woocommerce-products-header {
    display: none; /* hero replaces the plain "Shop" h1 */
}

.woocommerce-shop .woocommerce-result-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sh-brown);
    letter-spacing: 0.04em;
    margin: 0;
}

.woocommerce-shop .woocommerce-ordering {
    margin: 0;
}

.woocommerce-shop .woocommerce-ordering select {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sh-ink);
    background: #fff;
    border: 1.5px solid var(--sh-border);
    border-radius: 4px;
    padding: 9px 36px 9px 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    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 d='M1 1l5 5 5-5' stroke='%238B5E3C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.woocommerce-shop .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--sh-forest);
}

/* ===========================
   SHOP PAGE — PRODUCT GRID
   =========================== */
.woocommerce-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    width: 100% !important;
}

/* Remove Storefront clearfix pseudo-elements — they become grid items inside a grid container */
.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after {
    content: none !important;
    display: none !important;
}

/* ===========================
   SHOP PAGE — PRODUCT CARD
   =========================== */
.woocommerce-shop ul.products li.product {
    background: #fff !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: box-shadow 0.25s, transform 0.25s !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-shop ul.products li.product:hover {
    box-shadow: 0 8px 32px rgba(45, 74, 30, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* Image wrapper */
.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
    flex: 1;
}

.woocommerce-shop ul.products li.product img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    background: var(--sh-sage-lt) !important;
    transition: transform 0.4s ease !important;
}

.woocommerce-shop ul.products li.product:hover img {
    transform: scale(1.04) !important;
}

/* Card image wrapper needs overflow hidden for zoom */
.woocommerce-shop ul.products li.product .woocommerce-LoopProduct-link {
    overflow: hidden;
}

/* Product title */
.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--sh-ink) !important;
    line-height: 1.4 !important;
    padding: 16px 16px 4px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Price */
.woocommerce-shop ul.products li.product .price {
    display: block !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--sh-forest) !important;
    padding: 2px 16px 14px !important;
}

.woocommerce-shop ul.products li.product .price del {
    color: var(--sh-brown) !important;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    opacity: 0.65 !important;
    margin-right: 4px !important;
}

.woocommerce-shop ul.products li.product .price ins {
    text-decoration: none !important;
}

/* Add to cart button */
.woocommerce-shop ul.products li.product .button,
.woocommerce-shop ul.products li.product a.button {
    display: block !important;
    margin: auto 16px 16px !important;
    width: calc(100% - 32px) !important;
    background: var(--sh-forest) !important;
    color: var(--sh-cream) !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 11px 16px !important;
    border-radius: 4px !important;
    border: 2px solid var(--sh-forest) !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: none !important;
}

.woocommerce-shop ul.products li.product .button:hover,
.woocommerce-shop ul.products li.product a.button:hover {
    background: transparent !important;
    color: var(--sh-forest) !important;
}

/* Sale badge */
.woocommerce-shop ul.products li.product .onsale {
    background: var(--sh-brown) !important;
    color: #fff !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    animation: none !important;
}

/* ===========================
   SHOP PAGE — PAGINATION
   =========================== */
.woocommerce-shop .woocommerce-pagination {
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--sh-border);
    text-align: center;
}

.woocommerce-shop .woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shop .woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-shop .woocommerce-pagination ul li a,
.woocommerce-shop .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 4px;
    border: 1.5px solid var(--sh-border);
    color: var(--sh-brown);
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-shop .woocommerce-pagination ul li a:hover {
    border-color: var(--sh-forest);
    color: var(--sh-forest);
    background: var(--sh-sage-lt);
}

.woocommerce-shop .woocommerce-pagination ul li span.current {
    background: var(--sh-forest);
    border-color: var(--sh-forest);
    color: var(--sh-cream);
}

/* ===========================
   PRODUCT CARDS (loop)
   =========================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none !important;
}

.woocommerce ul.products li.product {
    position: relative;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 6px 24px rgba(45, 74, 30, 0.1);
    transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: var(--sp-cream);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--sp-ink);
    padding: 14px 16px 4px;
    line-height: 1.35;
}

.woocommerce ul.products li.product .price {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-forest);
    padding: 4px 16px 14px;
}

.woocommerce ul.products li.product .price del {
    color: var(--sp-brown-lt);
    font-weight: 400;
    font-size: 0.82rem;
    opacity: 0.7;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    background: #2D4A1E !important;
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 3px !important;
    border: none !important;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: none !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: #3d6228 !important;
    color: #fff !important;
}

/* Sale badge on cards */
.woocommerce ul.products li.product .onsale {
    top: 10px;
    left: 10px;
    right: auto;
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 2px;
    animation: none;
}

/* ===========================
   SHOP PAGE
   =========================== */
.woocommerce .woocommerce-ordering select {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    padding: 9px 14px;
    border: 1.5px solid var(--sp-border);
    border-radius: 3px;
    background: #fff;
    color: #4a4a3a;
    cursor: pointer;
}

.woocommerce .woocommerce-result-count {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: #9a9080;
}

/* ===========================
   CART PAGE — VARIABLES
   =========================== */
.woocommerce-cart {
    --fc-forest:   #2d4a0e;
    --fc-dark:     #111d07;
    --fc-gold:     #c9a96e;
    --fc-cream:    #faf7f2;
    --fc-border:   #e4ddd3;
    --fc-text:     #2a2a1a;
    --fc-muted:    #8a7f6e;
}

/* ===========================
   CART PAGE — BACKGROUND
   =========================== */
.woocommerce-cart .site-content {
    background: var(--fc-cream);
}

/* ===========================
   CART PAGE — PAGE HEADER
   =========================== */
.woocommerce-cart .entry-header,
.woocommerce-cart .page-header {
    display: none;
}

/* ===========================
   CART PAGE — TWO-COLUMN WRAPPER
   =========================== */
.fyc-cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

/* ===========================
   CART ITEMS PANEL (left)
   =========================== */
.fyc-cart-items {
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    overflow: hidden;
}

/* ── Table: reshape into modern rows ── */
.fyc-cart-items .shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    background: transparent;
}

/* Column headers — hidden visually, keep for accessibility */
.fyc-cart-items .shop_table thead tr {
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--fc-border);
    background: #faf7f2;
}

.fyc-cart-items .shop_table thead th {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fc-muted);
    padding: 14px 0;
    border: none;
    background: transparent;
}

.fyc-cart-items thead .product-name      { flex: 1; }
.fyc-cart-items thead .product-price     { width: 80px; text-align: right; }
.fyc-cart-items thead .product-quantity  { width: 110px; text-align: center; }
.fyc-cart-items thead .product-subtotal  { width: 90px; text-align: right; }

/* ── Each product row ── */
.fyc-cart-items .woocommerce-cart-form__cart-item {
    display: flex !important;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fc-border);
    transition: background 0.15s;
    gap: 0;
}

.fyc-cart-items .woocommerce-cart-form__cart-item:hover {
    background: #fdfcfa;
}

.fyc-cart-items .woocommerce-cart-form__cart-item td {
    display: block;
    border: none !important;
    padding: 0;
    background: transparent;
    vertical-align: middle;
}

/* Remove text link — Blinkit-style, sits below product name */
.fyc-remove-link {
    display: block;
    margin-top: 6px;
}

.fyc-remove-link a.remove {
    display: inline;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: #999 !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    cursor: pointer;
}

.fyc-remove-link a.remove:hover {
    color: #c0392b !important;
    text-decoration: underline;
}

/* Suppress Font Awesome fa-times-circle injected via ::before by icon stylesheet */
.woocommerce-cart-form a.remove::before {
    display: none !important;
}

/* product-remove column is removed from cart.php; hide any stale WC-injected column */
.fyc-cart-items .product-remove,
.fyc-cart-items thead .product-remove { display: none !important; }

/* Thumbnail — column removed from cart.php; keep rule to hide any stale rendering */
.fyc-cart-items .product-thumbnail,
.fyc-cart-items thead .product-thumbnail {
    display: none !important;
}

/* Product name */
.fyc-cart-items .product-name {
    flex: 1;
    padding-right: 16px;
}

.fyc-cart-items .product-name a.fyc-product-link {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--fc-text);
    text-decoration: none;
    line-height: 1.3;
    display: block;
    transition: color 0.2s;
}

.fyc-cart-items .product-name a.fyc-product-link:hover {
    color: var(--fc-forest);
}

.fyc-cart-items .product-name .variation,
.fyc-cart-items .product-name dl.variation {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    color: var(--fc-muted);
    margin: 4px 0 0;
}

/* Unit price */
.fyc-cart-items .product-price {
    width: 80px;
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--fc-muted);
    white-space: nowrap;
}

/* Quantity */
.fyc-cart-items .product-quantity {
    width: 110px;
    text-align: center;
}

.fyc-cart-items .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--fc-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.fyc-cart-items .product-quantity .quantity input.qty {
    width: 42px;
    padding: 8px 4px;
    border: none;
    border-left: 1.5px solid var(--fc-border);
    border-right: 1.5px solid var(--fc-border);
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fc-text);
    background: transparent;
    -moz-appearance: textfield;
    outline: none;
}

.fyc-cart-items .product-quantity .quantity input.qty::-webkit-inner-spin-button,
.fyc-cart-items .product-quantity .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Subtotal */
.fyc-cart-items .product-subtotal {
    width: 90px;
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--fc-forest);
    white-space: nowrap;
}

/* ── Actions row (coupon + update) ── */
.fyc-cart-items .fyc-actions-row td {
    padding: 20px 24px !important;
    background: #faf7f2;
    border-top: 1px solid var(--fc-border);
    border-bottom: none;
}

.fyc-coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
}

.fyc-coupon input#coupon_code {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    padding: 10px 16px;
    border: 1.5px solid var(--fc-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fc-text);
    width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.fyc-coupon input#coupon_code:focus {
    border-color: var(--fc-forest);
}

.fyc-coupon input#coupon_code::placeholder {
    color: var(--fc-muted);
    letter-spacing: 0.05em;
}

.fyc-btn-coupon {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--fc-forest) !important;
    border: 1.5px solid var(--fc-forest) !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s !important;
    box-shadow: none !important;
}

.fyc-btn-coupon:hover {
    background: var(--fc-forest) !important;
    color: #fff !important;
}

.fyc-btn-update {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    background: transparent !important;
    color: var(--fc-muted) !important;
    border: 1.5px solid var(--fc-border) !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.fyc-btn-update:hover {
    border-color: var(--fc-forest) !important;
    color: var(--fc-forest) !important;
}

/* Continue Shopping link */
.fyc-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fc-muted);
    text-decoration: none;
    padding: 16px 24px;
    transition: color 0.2s;
}

.fyc-continue-shopping:hover {
    color: var(--fc-forest);
}

/* ===========================
   ORDER SUMMARY PANEL (right)
   =========================== */
.fyc-cart-summary .cart-collaterals {
    position: sticky;
    top: 24px;
}

/* Remove cross-sells from right panel area */
.fyc-cart-summary .cross-sells {
    display: none;
}

.fyc-order-summary {
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    padding: 28px;
    width: 100% !important;
    float: none !important;
}

.fyc-summary-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: var(--fc-dark) !important;
    letter-spacing: 0.02em;
    margin: 0 0 20px !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fc-border);
}

.fyc-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

.fyc-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--fc-border);
}

.fyc-summary-row:last-child {
    border-bottom: none;
}

.fyc-summary-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--fc-muted);
    letter-spacing: 0.04em;
}

.fyc-summary-value {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fc-text);
    text-align: right;
}

/* Coupon discount — green */
.fyc-discount {
    color: #2a7a3a !important;
}

/* Shipping row — WC outputs a full <tr> with its own markup */
.fyc-summary-row.shipping th,
.fyc-summary-row.shipping td {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--fc-muted);
    background: transparent;
    border: none;
    padding: 0;
}

.fyc-summary-row.shipping td {
    color: var(--fc-text);
    font-weight: 600;
    text-align: right;
}

/* Order total row */
.fyc-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0 0;
    margin-top: 4px;
    border-top: 2px solid var(--fc-dark);
}

.fyc-summary-total .fyc-summary-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fc-dark);
    letter-spacing: 0.04em;
}

.fyc-summary-total .fyc-summary-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fc-forest);
}

/* Shipping nudge */
.fyc-shipping-nudge {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    color: var(--fc-muted);
    text-align: center;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid var(--fc-border);
}

.fyc-shipping-nudge strong {
    color: var(--fc-text);
}

.fyc-shipping-nudge.fyc-shipping-unlocked {
    color: #2a7a3a;
}

/* Checkout button */
.fyc-checkout-wrap {
    margin-top: 16px;
}

.fyc-checkout-wrap .checkout-button,
.fyc-checkout-wrap a.checkout-button {
    display: block !important;
    width: 100% !important;
    background: var(--fc-forest) !important;
    color: #fff !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 16px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
}

.fyc-checkout-wrap .checkout-button:hover,
.fyc-checkout-wrap a.checkout-button:hover {
    background: #3a6012 !important;
    color: #fff !important;
}

/* Trust row */
.fyc-trust-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fc-border);
}

.fyc-trust-row span {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--fc-muted);
    text-align: center;
    flex: 1;
}

/* ===========================
   EMPTY CART
   =========================== */
.fyc-empty-cart {
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.fyc-empty-icon {
    margin-bottom: 28px;
}

.fyc-empty-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.65;
}

.fyc-empty-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #1a2a0a;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

.fyc-empty-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #8a7f6e;
    line-height: 1.65;
    margin: 0 0 36px;
}

.fyc-empty-btn {
    display: inline-block;
    background: #2d4a0e;
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.fyc-empty-btn:hover {
    background: #3a6012;
}

/* Hide WC-injected product search on empty cart */
.woocommerce-cart .woocommerce-product-search { display: none !important; }

/* Proceed to Checkout Button (fallback for non-fyc wrapper) */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #2D4A1E !important;
    color: #F5F0E8 !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 28px !important;
    border-radius: 6px !important;
    border: none !important;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background 0.2s;
    box-shadow: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #3d6228 !important;
    color: #F5F0E8 !important;
}

/* ══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   Mobile-first 2-column layout. CSS variables prefix: --fch-*
   Consistent with --fc-* (cart), --sp-* (product), --sh-* (shop)
   ══════════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ──────────────────────────────────────────── */
.woocommerce-checkout,
.fych-checkout-page {
    --fch-forest:    #2d4a0e;
    --fch-forest-lt: #3a6012;
    --fch-dark:      #111d07;
    --fch-gold:      #c9a96e;
    --fch-cream:     #faf7f2;
    --fch-white:     #ffffff;
    --fch-border:    #e0dbd2;
    --fch-text:      #2c2c2c;
    --fch-muted:     #888888;
    --fch-error:     #c0392b;
    --fch-focus:     #3a6012;
    --fch-input-h:   44px;
    --fch-radius:    4px;
    --fch-aside-w:   400px;
}

/* ── 2. PAGE SETUP ─────────────────────────────────────────── */

/* Hide Storefront's default page title on checkout */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-header {
    display: none !important;
}

.woocommerce-checkout .hentry {
    margin: 0;
}

.fych-checkout-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

/* Step label */
.fych-page-header {
    margin-bottom: 28px;
}

.fych-step-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--fch-gold);
    margin-bottom: 8px;
}

.fych-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--fch-dark);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* ── 3. TWO-COLUMN GRID ────────────────────────────────────── */

.fych-layout {
    display: grid;
    grid-template-columns: 1fr var(--fch-aside-w);
    gap: 40px;
    align-items: start;
}

.fych-col-main {
    min-width: 0; /* prevent grid cell overflow */
}

.fych-col-aside {
    position: sticky;
    top: 24px;
}

.fych-aside-inner {
    background: var(--fch-cream);
    border: 1px solid var(--fch-border);
    border-radius: 8px;
    padding: 28px;
}

.fych-aside-eyebrow {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--fch-gold);
    margin-bottom: 6px;
}

/* Aside heading (h2#order_review_heading) */
.fych-aside-inner #order_review_heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: var(--fch-dark) !important;
    margin: 0 0 20px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fch-border);
    letter-spacing: 0.02em;
    /* Reset Storefront's float-based checkout layout */
    float: none !important;
    clear: none !important;
    width: auto !important;
}

/* Reset the old #order_review stub — styling now lives on .fych-aside-inner */
#order_review {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    /* Reset Storefront's float-based checkout layout */
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin-right: 0 !important;
}

/* Reset Storefront's float-based .col2-set inside our custom layout */
.fych-col-main .col2-set {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    clear: none !important;
}

/* ── 4. ORDER REVIEW TABLE ─────────────────────────────────── */

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    margin: 0 0 8px;
}

.woocommerce-checkout-review-order-table thead {
    border-bottom: 1px solid var(--fch-border);
}

.woocommerce-checkout-review-order-table thead th {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fch-muted);
    padding: 0 0 10px;
    border: none !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table thead th.product-name {
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid var(--fch-border);
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 0;
    border: none !important;
    background: transparent !important;
    vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.87rem;
    color: var(--fch-text);
    line-height: 1.4;
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
    font-weight: 700;
    color: var(--fch-muted);
    font-size: 0.82rem;
}

.woocommerce-checkout-review-order-table .product-total {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fch-text);
    text-align: right;
    white-space: nowrap;
}

/* Totals footer rows */
.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid var(--fch-border);
}

.woocommerce-checkout-review-order-table tfoot tr:last-child {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 0;
    border: none !important;
    background: transparent !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--fch-muted);
}

.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 400;
    text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
    font-weight: 600;
    color: var(--fch-text);
    text-align: right;
}

/* Order Total row — Playfair, forest green, larger */
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    padding-top: 14px;
    border-top: 2px solid var(--fch-dark) !important;
    font-size: 1rem;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--fch-dark);
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--fch-forest);
}

/* ── 5. FORM FIELDS ────────────────────────────────────────── */

/* Force billing/shipping columns to full width (override Storefront floats) */
.fych-billing-col,
.fych-shipping-col {
    width: 100% !important;
    float: none !important;
    clear: both;
}

/* Section headings: "Billing details", "Shipping address" */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: var(--fch-dark) !important;
    margin: 28px 0 16px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fch-border);
    letter-spacing: 0.02em;
}

.woocommerce-billing-fields h3:first-child {
    margin-top: 0 !important;
}

/* Individual field wrapper */
.woocommerce-checkout .form-row {
    margin: 0 0 14px;
    padding: 0;
    position: relative;
    clear: none;
}

/* Label above field */
.woocommerce-checkout .form-row label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--fch-text);
    margin-bottom: 6px;
    text-transform: none;
    cursor: default;
}

.woocommerce-checkout .form-row label .required {
    color: var(--fch-error);
    font-weight: 700;
    margin-left: 2px;
}

/* Text inputs, selects, textareas */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    height: var(--fch-input-h);
    padding: 0 14px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--fch-text);
    background: var(--fch-white);
    border: 1.5px solid var(--fch-border);
    border-radius: var(--fch-radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-checkout .form-row textarea {
    height: auto;
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

/* Focus ring — forest green */
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--fch-focus) !important;
    box-shadow: 0 0 0 3px rgba(58, 96, 18, 0.12) !important;
}

/* Custom select chevron */
.woocommerce-checkout .form-row select {
    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 d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* Placeholder text */
.woocommerce-checkout .form-row input.input-text::placeholder {
    color: var(--fch-muted);
    opacity: 1;
}

/* Error state — WC adds .woocommerce-invalid to .form-row */
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: var(--fch-error) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10) !important;
}

.woocommerce-checkout .form-row .woocommerce-error,
.woocommerce-checkout .form-row em.error {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: var(--fch-error);
    background: none;
    border: none;
    padding: 4px 0 0;
    margin: 0;
    display: block;
}

/* Side-by-side fields (first name / last name, etc.) — desktop 50/50 */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
    float: none !important;
    display: inline-block;
    vertical-align: top;
}

.woocommerce-checkout .form-row-first {
    margin-right: 14px;
}

/* Full-width fields */
.woocommerce-checkout .form-row-wide {
    width: 100% !important;
    clear: both;
    display: block;
}

/* ── 6. SHIP TO DIFFERENT ADDRESS ──────────────────────────── */
.woocommerce-checkout #ship-to-different-address {
    margin: 20px 0 0;
    padding: 14px 18px;
    background: #f4f1ec;
    border: 1px solid var(--fch-border);
    border-radius: var(--fch-radius);
}

.woocommerce-checkout #ship-to-different-address label {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fch-text);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fch-forest);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── 7. SELECT2 DROPDOWNS (Country / State) ────────────────── */
.woocommerce-checkout .select2-container {
    width: 100% !important;
}

.woocommerce-checkout .select2-selection--single {
    height: var(--fch-input-h) !important;
    border: 1.5px solid var(--fch-border) !important;
    border-radius: var(--fch-radius) !important;
    background: var(--fch-white) !important;
    display: flex !important;
    align-items: center !important;
}

.woocommerce-checkout .select2-selection--single .select2-selection__rendered {
    line-height: var(--fch-input-h) !important;
    padding: 0 38px 0 14px !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--fch-text) !important;
}

.woocommerce-checkout .select2-selection--single .select2-selection__arrow {
    height: var(--fch-input-h) !important;
    right: 10px !important;
}

.woocommerce-checkout .select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--open .select2-selection--single {
    border-color: var(--fch-focus) !important;
    box-shadow: 0 0 0 3px rgba(58, 96, 18, 0.12) !important;
    outline: none !important;
}

/* ── 8. PAYMENT METHODS ────────────────────────────────────── */

#payment.woocommerce-checkout-payment {
    margin-top: 8px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Remove WC's default payment list bullet styles */
.wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Each payment method — card style */
.wc_payment_methods .wc_payment_method {
    border: 1.5px solid var(--fch-border);
    border-radius: var(--fch-radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    background: var(--fch-white);
}

/* Active payment card — forest green border + tinted background */
.wc_payment_methods .wc_payment_method:has(input[type="radio"]:checked) {
    border-color: var(--fch-forest);
    background: #f3f8ee;
}

/* Hide native radio (still in DOM for form submission) */
.wc_payment_methods .wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Payment label row */
.wc_payment_methods .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fch-text);
    margin: 0;
    position: relative;
    width: 100%;
}

/* Custom radio circle via ::before on label */
.wc_payment_methods .wc_payment_method label::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--fch-border);
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: var(--fch-white);
}

/* Filled circle when selected */
.wc_payment_methods .wc_payment_method:has(input[type="radio"]:checked) label::before {
    border-color: var(--fch-forest);
    background: var(--fch-forest);
    box-shadow: inset 0 0 0 4px var(--fch-white);
}

/* Payment gateway logo images — push to right */
.wc_payment_methods .wc_payment_method label img {
    height: 22px;
    width: auto;
    vertical-align: middle;
    margin-left: auto;
    flex-shrink: 0;
}

/* Payment description / box (e.g. "Pay securely via...") */
/* Note: Paytm may render its own form inside .payment_box — do not override input/button descendants */
.wc_payment_methods .payment_box {
    padding: 0 18px 14px 48px; /* indent past custom radio circle */
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: var(--fch-muted);
    line-height: 1.5;
    border-top: 1px solid var(--fch-border);
    background: transparent;
}

.wc_payment_methods .payment_box p {
    margin: 10px 0 0;
}

/* ── 9. PLACE ORDER BUTTON ─────────────────────────────────── */

.woocommerce-checkout .form-row.place-order {
    margin: 14px 0 0;
    padding: 0;
}

.woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    background: var(--fch-forest) !important;
    color: var(--fch-cream) !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    padding: 18px 24px !important;
    border-radius: var(--fch-radius) !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s !important;
    box-shadow: none !important;
    text-align: center;
    line-height: 1;
    transform: none !important;
}

.woocommerce-checkout #place_order:hover {
    background: var(--fch-forest-lt) !important;
    color: var(--fch-cream) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Terms & conditions text */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    color: var(--fch-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--fch-forest);
    text-decoration: underline;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: var(--fch-forest);
    margin-right: 6px;
}

/* ── 10. TRUST STRIP ───────────────────────────────────────── */

.fych-trust-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--fch-border);
    gap: 4px;
}

.fych-trust-strip span {
    font-family: 'Lato', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--fch-muted);
    text-align: center;
    flex: 1;
}

/* ── 11. MOBILE ACCORDION ──────────────────────────────────── */

/* Hidden on desktop — shown only at mobile breakpoint */
.fych-mobile-summary {
    display: none;
}

.fych-mobile-summary-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--fch-forest);
    color: var(--fch-cream);
    cursor: pointer;
    list-style: none;
    border-radius: 6px;
    user-select: none;
}

/* Remove default <summary> disclosure triangle */
.fych-mobile-summary-toggle::-webkit-details-marker { display: none; }
.fych-mobile-summary-toggle::marker { display: none; }

.fych-mobile-summary-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--fch-cream);
}

.fych-mobile-summary-total {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fch-cream);
}

.fych-mobile-summary-total .woocommerce-Price-amount {
    color: inherit;
}

.fych-chevron {
    color: var(--fch-cream);
    transition: transform 0.22s;
    flex-shrink: 0;
}

/* Rotate chevron when open */
.fych-mobile-summary[open] .fych-chevron {
    transform: rotate(180deg);
}

.fych-mobile-summary-body {
    border: 1px solid var(--fch-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 20px 16px;
    background: var(--fch-cream);
    margin-bottom: 20px;
}

/* ── 12. RESPONSIVE — TABLET (≤ 900px) ────────────────────── */

@media (max-width: 900px) {
    .fych-layout {
        grid-template-columns: 1fr 340px;
        gap: 28px;
    }

    .fych-checkout-page {
        padding: 32px 0 60px;
    }

    .fych-aside-w {
        --fch-aside-w: 340px;
    }
}

/* ── 13. RESPONSIVE — MOBILE (≤ 768px) ────────────────────── */

@media (max-width: 768px) {

    /* Show accordion at top for order preview */
    .fych-mobile-summary {
        display: block;
        margin-bottom: 20px;
    }

    /* Single-column layout — aside drops below billing form */
    .fych-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Show aside on mobile (contains payment + place order)
       but strip the card styling — it flows naturally below billing */
    .fych-col-aside {
        display: block;
        position: static;
        margin-top: 8px;
    }

    .fych-aside-inner {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    /* Hide the eyebrow, heading, and order table on mobile
       (user can see items in the accordion above) */
    .fych-aside-inner .fych-aside-eyebrow,
    .fych-aside-inner #order_review_heading {
        display: none;
    }

    .fych-aside-inner .woocommerce-checkout-review-order-table {
        display: none;
    }

    /* Trust strip stacks vertically on mobile */
    .fych-trust-strip {
        flex-direction: column;
        gap: 6px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .fych-trust-strip span {
        text-align: left;
        flex: none;
    }

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

    .fych-page-title {
        font-size: 1.45rem;
    }

    .fych-page-header {
        margin-bottom: 18px;
    }

    /* Input height — slightly smaller on mobile */
    .woocommerce-checkout {
        --fch-input-h: 42px;
    }

    /* All paired fields become full-width on mobile */
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        display: block;
        margin-right: 0;
    }

    /* Tighter field spacing */
    .woocommerce-checkout .form-row {
        margin-bottom: 12px;
    }

    /* Section headings */
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-additional-fields h3 {
        font-size: 0.98rem !important;
        margin-top: 20px !important;
    }

    /* Payment */
    #payment.woocommerce-checkout-payment {
        margin-top: 16px;
    }

    .wc_payment_methods .wc_payment_method label {
        padding: 13px 16px;
    }

    /* Place order */
    .woocommerce-checkout #place_order {
        padding: 16px 20px !important;
        font-size: 0.84rem !important;
    }
}

/* ── 14. RESPONSIVE — SMALL MOBILE (≤ 480px) ──────────────── */

@media (max-width: 480px) {
    .fych-checkout-page {
        padding: 14px 0 36px;
    }

    .woocommerce-checkout .form-row {
        margin-bottom: 10px;
    }

    .fych-mobile-summary-toggle {
        padding: 12px 14px;
    }
}

/* ===========================
   NOTICES & MESSAGES
   =========================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 3px;
    border-left: 3px solid;
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
}

.woocommerce-message {
    background: #edf4ea;
    border-color: var(--sp-forest);
    color: var(--sp-forest);
}

.woocommerce-info {
    background: #e8f0f7;
    border-color: #3a7ac0;
    color: #1e4a7a;
}

.woocommerce-error {
    background: #fdecea;
    border-color: #c0392b;
    color: #7a1e1e;
}

/* ===========================
   ACCOUNT PAGE
   =========================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--sp-cream);
    border-radius: 4px;
    border: 1px solid var(--sp-border);
    padding: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #4a4a3a;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--sp-forest);
    color: #fff;
}

/* ===========================
   GLOBAL BUTTON OVERRIDE
   Catch-all so Storefront gold (#d4af37) never bleeds through
   =========================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: #2D4A1E !important;
    color: #F5F0E8 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #3d6228 !important;
    color: #F5F0E8 !important;
    box-shadow: none !important;
}

/* ===========================
   LOADING STATES
   =========================== */
.woocommerce .blockUI.blockOverlay {
    background: rgba(250, 247, 242, 0.85) !important;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .woocommerce-shop ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .fyonli-farmer-strip-inner {
        grid-template-columns: 100px 1fr auto;
        gap: 28px;
    }

    /* Cart — tablet: narrower summary */
    .fyc-cart-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 24px;
        padding: 32px 0 60px;
    }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .woocommerce-shop ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .fyonli-shop-hero {
        margin: 0 -20px 36px;
        padding: 44px 20px 40px;
    }

    .shop-hero-title {
        font-size: 1.75rem;
    }

    .shop-hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .single-product .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
    }

    .single-product .summary.entry-summary {
        width: 100% !important;
        float: none !important;
    }

    .single-product .woocommerce div.product .product_title {
        font-size: 1.6rem;
    }

    .single-product .woocommerce div.product p.price {
        font-size: 1.5rem;
    }

    .fyonli-farmer-strip {
        margin: 48px -20px 0;
        padding: 40px 20px;
    }

    .fyonli-farmer-strip-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .farmer-strip-left {
        flex-direction: row;
        justify-content: center;
    }

    .farmer-strip-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .fyonli-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Cart — mobile: single column stack */
    .fyc-cart-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0 48px;
    }

    .fyc-cart-summary .cart-collaterals {
        position: static;
    }

    /* Cart items panel — tighter on mobile */
    .fyc-cart-items .woocommerce-cart-form__cart-item {
        padding: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .fyc-cart-items .shop_table thead tr {
        display: none; /* hide col headers on mobile */
    }

    .fyc-cart-items .product-name      { flex: 1; min-width: 120px; }
    .fyc-cart-items .product-price     { width: auto; flex: 1; text-align: left; white-space: nowrap; }
    .fyc-cart-items .product-quantity  { width: auto; }
    .fyc-cart-items .product-subtotal  { width: 80px; text-align: right; white-space: nowrap; }

    .fyc-cart-items .fyc-actions-row td.actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fyc-coupon {
        width: 100%;
        flex-wrap: wrap;
        margin-right: 0;
    }

    .fyc-coupon input#coupon_code {
        flex: 1;
        min-width: 0;
    }

    .fyc-btn-update,
    .fyc-btn-coupon {
        width: 100%;
        text-align: center;
    }

    .fyc-trust-row {
        gap: 10px;
    }

    .fyc-trust-row span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .single-product .woocommerce div.product form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .woocommerce div.product form.cart div.quantity {
        width: 100%;
        justify-content: center;
    }

    .fyonli-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE PRODUCT PAGE OPTIMIZATION — max-width: 767px
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── 1. Padding-bottom so sticky bar doesn't cover last content ── */
    .single-product .woocommerce div.product {
        padding-bottom: 90px !important;
    }

    /* ── 2. Image gallery: edge-to-edge, no extra margin ── */
    .single-product .woocommerce-product-gallery {
        margin: 0 !important;
        padding: 0 !important;
    }
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* ── 3. Title: tighter spacing + heavier weight ── */
    .single-product .woocommerce div.product .product_title {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin: 8px 0 4px !important;
    }

    /* ── 4. Price: compact, prominent ── */
    .single-product .woocommerce div.product p.price,
    .single-product .woocommerce div.product span.price {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin: 0 0 8px !important;
    }

    /* ── 5. Compact Trust Highlights strip ── */
    .fyonli-mobile-trust-strip {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin: 0 0 12px !important;
        padding: 8px 0 !important;
        border-top: 1px solid #ece6dc;
        border-bottom: 1px solid #ece6dc;
    }
    .fyonli-mobile-trust-strip span {
        font-family: 'Lato', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: #2d4a0e;
        white-space: nowrap;
    }

    /* ── 6. Short description: clamp to 3 lines + fade ── */
    .single-product .woocommerce-product-details__short-description {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        margin-bottom: 0 !important;
    }
    .single-product .woocommerce-product-details__short-description.fyonli-clamped {
        max-height: calc(1.7em * 3);
        overflow: hidden;
        position: relative;
    }
    .single-product .woocommerce-product-details__short-description.fyonli-clamped::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2em;
        background: linear-gradient(transparent, #fff);
        pointer-events: none;
    }
    .fyonli-read-more-btn {
        display: inline-block;
        margin: 6px 0 12px;
        font-family: 'Lato', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #2d4a0e;
        text-decoration: underline;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    /* ── 7. Benefits bullets inside short description ── */
    .single-product .woocommerce-product-details__short-description ul {
        padding-left: 1.2em !important;
        margin: 6px 0 !important;
    }
    .single-product .woocommerce-product-details__short-description ul li {
        margin-bottom: 4px !important;
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
    }

    /* ── 8. Sticky Add-to-Cart bar ── */
    .fyonli-sticky-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        z-index: 9999;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }
    .fyonli-sticky-cart.is-visible {
        transform: translateY(0);
    }
    .fyonli-sticky-price {
        font-family: 'Playfair Display', serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1a2a0a;
        white-space: nowrap;
    }
    .fyonli-sticky-btn {
        flex: 1;
        background: #2d4a0e;
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 12px 16px;
        font-family: 'Lato', sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        cursor: pointer;
        text-align: center;
        transition: background 0.2s;
        max-width: 200px;
    }
    .fyonli-sticky-btn:hover { background: #3d6228; }
    .fyonli-sticky-btn:active { background: #1a2a0a; }
}

/* Hide mobile trust strip on desktop */
@media (min-width: 768px) {
    .fyonli-mobile-trust-strip {
        display: none !important;
    }
}
