/* =====================================================================
   1. CANONICAL COLUMN — kill the full-bleed stretch on every WC view
   ===================================================================== */
body.woocommerce-page main,
body.woocommerce main,
body.woocommerce-cart main,
body.woocommerce-checkout main,
body.woocommerce-account main,
body.post-type-archive-product main,
body.single-product main {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 4vw, 48px) !important;
    padding-right: clamp(16px, 4vw, 48px) !important;
    box-sizing: border-box !important;
    background: var(--paper, #f5efe4) !important;
    overflow-x: visible !important;
}

/* Kadence wrappers that try to break out of the column. We DO NOT clamp
   padding on these inner wrappers — that double-pads and clips form
   labels on /checkout/. Only constrain width + center, leave padding to
   the page <main>. */
body.woocommerce .content-bg.entry-content-wrap,
body.woocommerce-cart .content-bg.entry-content-wrap,
body.woocommerce-checkout .content-bg.entry-content-wrap,
body.woocommerce .site-container,
body.woocommerce-cart .site-container,
body.woocommerce-checkout .site-container,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart article,
body.woocommerce-checkout article {
    max-width: 1320px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* =====================================================================
   2. EDITORIAL HEADER WRAPPER FOR /CART/  (clean hero + breadcrumb)
   ===================================================================== */
.ffw-wc-cart-wrap {
    background: var(--paper, #f5efe4);
    padding: 24px 0 64px;
    max-width: 1320px;
    margin: 0 auto;
}
.ffw-wc-cart-inner {
    max-width: 1320px;
    margin: 0 auto;
}

/* =====================================================================
   3. CART PAGE — force stacked grid (Summary on top, Totals below)
   ===================================================================== */
.woocommerce-cart .woocommerce {
    display: block !important;
}
.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
    background: var(--paper, #f5efe4);
}
.woocommerce-cart .woocommerce .cart-collaterals {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .shipping_calculator {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    background: var(--paper-warm, #ede4d2);
    border: 1px solid rgba(42,31,21,0.12);
    border-radius: 4px;
    padding: 24px;
    margin: 0 0 24px;
    box-sizing: border-box;
}

/* Cart table */
.woocommerce-cart table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--paper, #f5efe4) !important;
    border: 1px solid rgba(42,31,21,0.12) !important;
    border-radius: 4px;
    overflow: hidden;
}
.woocommerce-cart table.shop_table thead {
    background: var(--paper-warm, #ede4d2) !important;
}
.woocommerce-cart table.shop_table th {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--olive-deep, #3d4a2a) !important;
    padding: 14px 16px !important;
    text-align: left !important;
}
.woocommerce-cart table.shop_table td {
    font-family: 'Fraunces', serif !important;
    color: var(--ink, #2a1f15) !important;
    padding: 16px !important;
    vertical-align: middle !important;
    border-top: 1px solid rgba(42,31,21,0.08) !important;
}
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    object-fit: cover !important;
    border-radius: 4px;
}
.woocommerce-cart .product-name a {
    color: var(--terracotta-text, #9a4827) !important;
    text-decoration: none !important;
}
.woocommerce-cart .product-name a:hover {
    text-decoration: underline !important;
}
.woocommerce-cart .quantity input[type="number"] {
    width: 64px !important;
    padding: 8px !important;
    border: 1px solid rgba(42,31,21,0.22) !important;
    border-radius: 4px !important;
    background: var(--paper, #f5efe4) !important;
}
.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-cart .cart-collaterals .shipping_calculator h2 {
    font-family: 'Fraunces', serif !important;
    font-size: 22px !important;
    color: var(--olive-deep, #3d4a2a) !important;
    margin: 0 0 16px !important;
}

/* Coupon + Update cart row */
.woocommerce-cart table.shop_table .actions {
    background: var(--paper-warm, #ede4d2) !important;
    padding: 16px !important;
}
.woocommerce-cart .coupon {
    display: inline-flex !important;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.woocommerce-cart .coupon input.input-text {
    padding: 10px 14px !important;
    border: 1px solid rgba(42,31,21,0.22) !important;
    border-radius: 4px !important;
    background: var(--paper, #f5efe4) !important;
    min-width: 200px;
}

/* All WC buttons inside cart/checkout - Editorial Earth terracotta */
.woocommerce-cart a.button,
.woocommerce-cart button.button,
.woocommerce-cart input[type="submit"],
.woocommerce-cart input.button,
.woocommerce-checkout a.button,
.woocommerce-checkout button.button,
.woocommerce-checkout input[type="submit"] {
    background: var(--terracotta-text, #9a4827) !important;
    color: var(--paper, #f5efe4) !important;
    border: 1px solid var(--terracotta-text, #9a4827) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 12px 22px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.woocommerce-cart a.button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input[type="submit"]:hover,
.woocommerce-checkout a.button:hover,
.woocommerce-checkout button.button:hover,
.woocommerce-checkout input[type="submit"]:hover {
    background: var(--olive-deep, #3d4a2a) !important;
    border-color: var(--olive-deep, #3d4a2a) !important;
}
.woocommerce-cart a.button[disabled],
.woocommerce-cart button.button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Cart totals rows */
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    border: 0 !important;
    padding: 10px 0 !important;
    background: transparent !important;
}
.woocommerce-cart .cart_totals table.shop_table .order-total td {
    font-family: 'Fraunces', serif !important;
    font-size: 22px !important;
    color: var(--terracotta-text, #9a4827) !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(42,31,21,0.18) !important;
}

/* =====================================================================
   4. SHOP ARCHIVE — Editorial Earth product grid
   ===================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 32px 0 !important;
    list-style: none !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--paper, #f5efe4);
    border: 1px solid rgba(42,31,21,0.12);
    border-radius: 4px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    /* No aspect-ratio — let each cover render at its native dimensions
       so the full image shows without crop or letterbox. */
    object-fit: contain !important;
    background: transparent;
    border-radius: 4px;
    margin: 0 0 16px !important;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Fraunces', serif !important;
    font-size: 20px !important;
    color: var(--olive-deep, #3d4a2a) !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-weight: 500 !important;
}
.woocommerce ul.products li.product .price {
    color: var(--terracotta-text, #9a4827) !important;
    font-family: 'Fraunces', serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    margin: 0 0 12px !important;
}
.woocommerce ul.products li.product a.button {
    background: var(--terracotta-text, #9a4827) !important;
    color: var(--paper, #f5efe4) !important;
    border: 1px solid var(--terracotta-text, #9a4827) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 10px 18px !important;
    border-radius: 4px !important;
}
.woocommerce ul.products li.product a.button:hover {
    background: var(--olive-deep, #3d4a2a) !important;
    border-color: var(--olive-deep, #3d4a2a) !important;
}

/* Kadence product archive hero — contain */
.woocommerce .entry-hero.product-archive-hero-section .hero-container,
.woocommerce .entry-hero.product-archive-hero-section .entry-hero-container-inner {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 6vw !important;
    padding-right: 6vw !important;
    box-sizing: border-box !important;
}

/* =====================================================================
   5. SINGLE PRODUCT PAGE — clean split gallery + summary
   ===================================================================== */
.single-product div.product {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr 1fr !important;
        gap: 48px !important;
    }
}
.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
.single-product div.product .summary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
.single-product .product_title {
    font-family: 'Fraunces', serif !important;
    color: var(--olive-deep, #3d4a2a) !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
    font-weight: 500 !important;
}
.single-product .price {
    font-family: 'Fraunces', serif !important;
    font-size: 24px !important;
    color: var(--terracotta-text, #9a4827) !important;
    margin: 0 0 20px !important;
}
.single-product .woocommerce-product-details__short-description {
    font-family: 'Fraunces', serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: var(--ink, #2a1f15) !important;
    margin: 0 0 24px !important;
}
.single-product .cart {
    display: flex !important;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 24px !important;
}
.single-product .cart .quantity input[type="number"] {
    width: 72px !important;
    padding: 12px !important;
    border: 1px solid rgba(42,31,21,0.22) !important;
    border-radius: 4px !important;
    background: var(--paper, #f5efe4) !important;
}
.single-product .single_add_to_cart_button {
    background: var(--terracotta-text, #9a4827) !important;
    color: var(--paper, #f5efe4) !important;
    border: 1px solid var(--terracotta-text, #9a4827) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Center text in every WC button across product, cart, checkout, account. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce .button.product_type_simple,
.woocommerce .button.product_type_variable,
.woocommerce .button.add_to_cart_button,
.woocommerce-cart a.button,
.woocommerce-cart button.button,
.woocommerce-checkout a.button,
.woocommerce-checkout button.button,
.woocommerce-checkout input.button,
.woocommerce-account a.button,
.woocommerce-account button.button {
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Single-product gallery image — show full cover, no crop. */
.single-product .woocommerce-product-gallery img,
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: contain !important;
    background: var(--paper-warm, #ede4d2);
    border-radius: 4px !important;
}
.single-product .single_add_to_cart_button:hover {
    background: var(--olive-deep, #3d4a2a) !important;
    border-color: var(--olive-deep, #3d4a2a) !important;
}
.single-product .product_meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--olive, #5a6b3e) !important;
    border-top: 1px solid rgba(42,31,21,0.12);
    padding-top: 16px;
    margin-top: 16px;
}

/* Product tabs */
.single-product .woocommerce-tabs {
    grid-column: 1 / -1 !important;
    margin-top: 48px !important;
}
.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid rgba(42,31,21,0.18) !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    list-style: none !important;
}
.single-product .woocommerce-tabs ul.tabs li {
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--olive-deep, #3d4a2a) !important;
    padding: 12px 18px !important;
    border-radius: 4px 4px 0 0 !important;
    text-decoration: none !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    background: var(--paper-warm, #ede4d2) !important;
    color: var(--terracotta-text, #9a4827) !important;
}

/* =====================================================================
   6. NAV CART ICON (header)
   ===================================================================== */
.site-header .nav-actions .nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px;
    color: var(--olive-deep, #3d4a2a);
    text-decoration: none;
}
.site-header .nav-actions .nav-cart:hover {
    color: var(--terracotta-text, #9a4827);
}
.site-header .nav-actions .nav-cart .nav-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--terracotta-text, #9a4827);
    color: var(--paper, #f5efe4);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

/* =====================================================================
   7. Hide Kadence + theme breadcrumb / archive title duplication
   ===================================================================== */
body.woocommerce-cart .entry-hero,
body.woocommerce-checkout .entry-hero,
body.woocommerce-account .entry-hero {
    display: none !important;
}

/* Hide Kadence's auto entry-header H1 ("Shop") on the product archive —
   the Shop page content already provides its own H1 hero. */
body.post-type-archive-product .entry-header,
body.post-type-archive-product .entry-hero,
body.post-type-archive-product header.page-header,
body.post-type-archive-product h1.page-title.archive-title {
    display: none !important;
}

/* =====================================================================
   9. KADENCE MASTHEAD SUPPRESSION on every WC page
   The Editorial Earth header (template-editorial.php) renders the site
   header + announcement-rotator. WooCommerce's archive template path
   also pulls Kadence's #masthead into the page, producing two headers.
   Hide the Kadence one so only the Editorial nav shows.
   ===================================================================== */
body.post-type-archive-product #masthead.site-header,
body.single-product #masthead.site-header,
body.woocommerce-cart #masthead.site-header,
body.woocommerce-checkout #masthead.site-header,
body.woocommerce-account #masthead.site-header,
body.post-type-archive-product .kadence-header-row,
body.single-product .kadence-header-row,
body.post-type-archive-product .site-header-inner-wrap,
body.single-product .site-header-inner-wrap,
body.woocommerce-cart .site-header-inner-wrap,
body.woocommerce-checkout .site-header-inner-wrap,
body.woocommerce-account .site-header-inner-wrap {
    display: none !important;
}
/* And kill the Kadence footer too so we only see the Editorial footer. */
body.post-type-archive-product #colophon,
body.single-product #colophon,
body.woocommerce-cart #colophon,
body.woocommerce-checkout #colophon,
body.woocommerce-account #colophon {
    display: none !important;
}

/* =====================================================================
   8. CHECKOUT FORM — clipping fix per Jackie's 2026-05-29 screenshot
   Form labels "State", "Phone", "Postcode" were getting chopped on the
   left because an outer wrapper had overflow:hidden combined with
   negative-margin row layout. Force overflow visible on every container
   in the form chain and reset the col2-set to a clean 1fr/1fr grid.
   ===================================================================== */
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout form.woocommerce-checkout,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout .form-row,
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart .woocommerce {
    overflow: visible !important;
}
body.woocommerce-checkout #customer_details.col2-set,
body.woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    margin: 0 0 32px !important;
}
@media (max-width: 768px) {
    body.woocommerce-checkout #customer_details.col2-set,
    body.woocommerce-checkout .col2-set {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-checkout .form-row {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
body.woocommerce-checkout label,
body.woocommerce-checkout legend {
    white-space: normal !important;
    overflow: visible !important;
    padding: 0 0 6px !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--olive-deep, #3d4a2a) !important;
    font-weight: 600 !important;
}
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="number"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(42,31,21,0.22) !important;
    border-radius: 4px !important;
    background: var(--paper, #f5efe4) !important;
    font-family: 'Fraunces', serif !important;
    box-sizing: border-box !important;
}
body.woocommerce-checkout h3 {
    font-family: 'Fraunces', serif !important;
    color: var(--olive-deep, #3d4a2a) !important;
    margin: 24px 0 16px !important;
}
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
    background: var(--paper-warm, #ede4d2);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid rgba(42,31,21,0.12);
    margin-top: 24px;
}
body.woocommerce-checkout .place-order .button {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
}