/* ==========================================================================
   Grainwell — WooCommerce / Flatsome overrides (loaded after grainwell.css)
   ========================================================================== */

/* Reset Flatsome's generic button/input styling on our components */
.gw-theme .gw-btn, .gw-theme .gw-icon-btn, .gw-theme .gw-wish, .gw-theme .gw-swatch, .gw-theme .gw-size,
.gw-theme .gw-quick-add, .gw-theme .gw-qty button, .gw-theme .gw-gallery__nav, .gw-theme .gw-gallery__thumbs button,
.gw-theme .gw-currency, .gw-theme .gw-burger, .gw-theme .gw-text-button {
  margin: 0; text-transform: none; letter-spacing: inherit; line-height: 1.2; box-shadow: none; text-shadow: none; font-family: var(--sans); min-width: 0; text-align: center;
}
.gw-theme .gw-btn { line-height: 1; letter-spacing: .01em; }
.gw-theme .gw-text-link, .gw-theme .gw-text-button { background: none; border: 0; padding: 0; margin: 0; min-height: 0; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.gw-theme .gw-text-button { color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.gw-theme .gw-search input, .gw-theme .gw-cform input, .gw-theme .gw-cform textarea, .gw-theme .gw-custom-form input, .gw-theme .gw-newsletter input {
  box-shadow: none; height: auto; margin: 0; font-family: var(--sans); font-size: 15px; transition: none;
}
.gw-theme .gw-search input { border: 0; background: transparent; padding: 0; min-height: 0; }
.gw-theme .gw-search input:focus { box-shadow: none; }
.gw-theme ul, .gw-theme ol { margin: 0; }
.gw-theme .gw-mega ul, .gw-theme .gw-footer ul, .gw-theme .gw-mnav ul, .gw-theme .gw-trust-band ul, .gw-theme .gw-assure, .gw-theme .gw-process, .gw-theme .gw-timeline { list-style: none; padding-left: 0; }
.gw-theme h1, .gw-theme h2, .gw-theme h3, .gw-theme h4 { text-transform: none; color: inherit; margin-top: 0; }
.gw-theme h1, .gw-theme h2 { font-family: var(--serif); font-weight: 500; }
.gw-theme .gw-section-head h2, .gw-theme .gw-hero h1 { margin-bottom: 0; }
.gw-theme .gw-hero h1 { margin-bottom: 20px; }
.gw-theme p { margin-bottom: 0; }
.gw-theme label { margin-bottom: 0; }
.gw-theme summary { list-style: none; }
.gw-theme .gw-brand__name { font-family: var(--serif); }
.gw-theme #wrapper { overflow: visible; }
.gw-theme .gw-skip-link { background: #fff; }
.gw-theme .gw-entry ul { list-style: disc; padding-left: 18px; margin: 10px 0; }
.gw-theme .gw-entry ol { list-style: decimal; padding-left: 18px; margin: 10px 0; }
.gw-theme .gw-entry p { margin: 0 0 10px; color: var(--muted); }
.gw-theme .gw-desc .gw-entry h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.gw-theme .gw-desc .gw-entry h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 22px 0 8px; }
.gw-theme .gw-desc .gw-entry p { color: var(--muted); }

/* Attribute table inside Details */
.gw-theme table.woocommerce-product-attributes { width: 100%; margin: 12px 0 0; border: 0; font-size: 14px; }
.gw-theme table.woocommerce-product-attributes th, .gw-theme table.woocommerce-product-attributes td { padding: 6px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.gw-theme table.woocommerce-product-attributes th { width: 150px; color: var(--muted); font-weight: 400; }
.gw-theme table.woocommerce-product-attributes td p { margin: 0; color: var(--ink); }

/* WooCommerce add-to-cart form inside the buy panel */
.gw-theme .gw-wc-form form.cart { margin: 0 0 12px; }
.gw-theme .gw-wc-form table.variations, .gw-theme .gw-wc-form .reset_variations, .gw-theme .gw-wc-form .woocommerce-variation-price, .gw-theme .gw-wc-form .woocommerce-variation-description, .gw-theme .gw-wc-form .ux-swatches, .gw-theme .gw-wc-form .variations-table { display: none !important; }
.gw-theme .gw-wc-form .single_variation_wrap { margin: 0; }
.gw-theme .gw-wc-form .woocommerce-variation-availability { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.gw-theme .gw-wc-form .woocommerce-variation-availability p { margin: 0; }
.gw-theme .gw-wc-form .stock.out-of-stock { color: var(--danger); font-weight: 600; }
.gw-theme .gw-wc-form .woocommerce-variation-add-to-cart, .gw-theme .gw-wc-form form.cart:not(.variations_form) { display: grid; grid-template-columns: 136px 1fr; gap: 12px; align-items: stretch; }
.gw-theme .gw-wc-form .quantity { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; min-height: 52px; margin: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); overflow: hidden; }
.gw-theme .gw-wc-form .quantity.buttons_added { display: grid; }
.gw-theme .gw-wc-form .quantity .minus, .gw-theme .gw-wc-form .quantity .plus { height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 20px; box-shadow: none; line-height: 1; }
.gw-theme .gw-wc-form .quantity .qty { width: 100%; min-height: 0; height: auto; margin: 0; padding: 8px 0; border: 0; box-shadow: none; text-align: center; font-weight: 700; background: transparent; font-size: 15px; }
.gw-theme .gw-wc-form .quantity.hidden, .gw-theme .gw-wc-form .quantity[style*="display: none"] { display: none; }
.gw-theme .gw-wc-form .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; margin: 0; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--brown); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1; text-transform: none; box-shadow: none; transition: background .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.gw-theme .gw-wc-form .single_add_to_cart_button:hover { background: var(--brown-deep); box-shadow: 0 10px 24px rgba(42, 29, 22, .25); transform: translateY(-1px); }
.gw-theme .gw-wc-form .single_add_to_cart_button.disabled, .gw-theme .gw-wc-form .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.gw-theme .gw-wc-form .single_add_to_cart_button.loading { opacity: .7; }
.gw-theme .gw-wc-form .single_add_to_cart_button .gw-price-inline { font-weight: 700; }
.gw-theme .gw-wc-form .added_to_cart { display: none; }
.gw-theme .gw-wc-form .cart.variations_form .single_variation_wrap .woocommerce-variation { padding: 0; }
.gw-theme .gw-size.is-unavailable, .gw-theme .gw-swatch.is-unavailable { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.gw-theme .gw-swatch.is-unavailable { text-decoration: none; }
.gw-theme .gw-price-display .woocommerce-Price-amount, .gw-theme .gw-price-display ins { font-weight: inherit; text-decoration: none; background: none; }
.gw-theme .gw-price-display del { font-size: .6em; color: var(--muted); margin-left: 8px; }
.gw-theme .gw-product__price .woocommerce-Price-amount { font-weight: 700; }

/* Quick add (archive AJAX button) */
.gw-theme .gw-quick-add.added::after { display: none; }
.gw-theme .gw-quick-add.loading { opacity: .6; }
.gw-theme .gw-product .added_to_cart { display: none; }

/* Notices */
.gw-theme .woocommerce-message, .gw-theme .woocommerce-error, .gw-theme .woocommerce-info, .gw-theme .message-container { width: min(calc(100% - 48px), var(--container)); margin: 16px auto 0; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.gw-theme .woocommerce-error { border-color: var(--danger); color: var(--danger); }

/* Reviews (WooCommerce / Flatsome markup) */
.gw-theme .gw-wc-reviews #reviews { margin: 0; }
.gw-theme .gw-wc-reviews #comments > h2, .gw-theme .gw-wc-reviews .woocommerce-Reviews-title { display: none; }
.gw-theme .gw-wc-reviews .commentlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gw-theme .gw-wc-reviews .commentlist li { margin: 0; }
.gw-theme .gw-wc-reviews .comment_container { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); height: 100%; }
.gw-theme .gw-wc-reviews .comment_container img.avatar { width: 44px; height: 44px; border-radius: 50%; }
.gw-theme .gw-wc-reviews .comment-text { margin: 0; padding: 0; border: 0; }
.gw-theme .gw-wc-reviews .star-rating { float: none; margin: 0 0 6px; color: var(--gold); }
.gw-theme .gw-wc-reviews .meta { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.gw-theme .gw-wc-reviews .meta strong { color: var(--ink); }
.gw-theme .gw-wc-reviews .description p { margin: 0; font-size: 14.5px; }
.gw-theme .gw-wc-reviews .woocommerce-review__verified { color: var(--sage); font-weight: 600; font-style: normal; }
.gw-theme .gw-wc-reviews #review_form_wrapper { grid-column: 1 / -1; margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gw-theme .gw-wc-reviews #review_form_wrapper .comment-reply-title { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 22px; }
.gw-theme .gw-wc-reviews #review_form_wrapper label { font-size: 13px; font-weight: 600; }
.gw-theme .gw-wc-reviews #review_form_wrapper input[type=text], .gw-theme .gw-wc-reviews #review_form_wrapper input[type=email], .gw-theme .gw-wc-reviews #review_form_wrapper textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: none; background: #fff; }
.gw-theme .gw-wc-reviews #review_form_wrapper .submit { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--brown); color: #fff; font-weight: 600; text-transform: none; letter-spacing: .01em; box-shadow: none; }
.gw-theme .gw-wc-reviews .woocommerce-noreviews { padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.gw-theme .gw-wc-reviews .stars a { color: var(--gold); }

/* Generic WooCommerce pages (shop, cart, checkout, account) sit between our header/footer */
.gw-theme .shop-container, .gw-theme .page-wrapper, .gw-theme .content-area { padding-top: 24px; }
.gw-theme .woocommerce-breadcrumb { font-size: 12.5px; color: var(--muted); }
.gw-theme .shop-page-title { background: var(--bg-deep); }
.gw-theme .product-small .box-image img { border-radius: 14px; }
.gw-theme .button.primary, .gw-theme .checkout-button, .gw-theme .woocommerce-checkout #place_order { background: var(--brown); border-radius: 999px; text-transform: none; letter-spacing: .01em; }
.gw-theme .button.primary:hover, .gw-theme .checkout-button:hover, .gw-theme .woocommerce-checkout #place_order:hover { background: var(--brown-deep); }

@media (max-width: 767px) {
  .gw-theme .gw-wc-form .woocommerce-variation-add-to-cart, .gw-theme .gw-wc-form form.cart:not(.variations_form) { grid-template-columns: 110px 1fr; }
  .gw-theme .gw-wc-reviews .commentlist { grid-template-columns: 1fr; }
}

/* Small fixes found in QA */
.gw-theme .gw-option__label .gw-text-link { white-space: nowrap; flex: none; }
.gw-theme .gw-option__label legend { padding: 0; margin: 0; float: none; width: auto; font-size: inherit; border: 0; }

/* Single product: Flatsome layout, Grainwell skin ------------------------- */
body.single-product .product-container { padding-top: 10px; }
body.single-product h1.product-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.15; text-transform: none; letter-spacing: 0; }
body.single-product .product-info .price { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); }
body.single-product .product-info .price del { font-size: 18px; color: var(--muted); }
body.single-product .product-info .price ins { text-decoration: none; }
body.single-product .woocommerce-product-details__short-description { font-size: 15px; color: var(--muted); }
body.single-product .star-rating span::before, .gw-theme .star-rating::before { color: var(--gold); }
body.single-product table.variations th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.single-product table.variations select { width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background-color: #fff; color: var(--ink); font-size: 14px; box-shadow: none; }
body.single-product table.variations select:focus { border-color: var(--ink); outline: 0; }
body.single-product form.cart .single_add_to_cart_button { min-height: 52px; border-radius: 999px; background: var(--brown-deep); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; padding: 0 28px; }
body.single-product form.cart .single_add_to_cart_button:hover { background: var(--ink); }
body.single-product .quantity .input-text, body.single-product .quantity .button { border-color: var(--line-strong); }
body.single-product .product_meta { font-size: 13px; color: var(--muted); }
body.single-product .product-info .reset_variations { font-size: 12px; }
.gw-pdp-facts { margin: 18px 0 6px; padding: 14px 0 4px; border-top: 1px solid var(--line); list-style: none; }
.gw-pdp-facts li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 9px; font-size: 13.5px; color: var(--ink); }
.gw-pdp-facts svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--brown-deep); }
.gw-pdp-custom-link { margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); }
.gw-pdp-custom-link a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gw-theme .product-footer { margin-top: 24px; }
.gw-theme .woocommerce-tabs .nav > li > a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.gw-theme .woocommerce-tabs .nav > li.active > a { color: var(--ink); }
.gw-theme .woocommerce-tabs .nav > li.active > a::after, .gw-theme .nav-line-bottom > li > a::before { background-color: var(--brown-deep) !important; }
.gw-theme .woocommerce-tabs .panel { max-width: 820px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.gw-theme .woocommerce-tabs .panel h2, .gw-theme .related-products-wrapper h3, .gw-theme .product-section-title { font-family: var(--serif); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 22px; }
.gw-theme .woocommerce-tabs table.shop_attributes th { font-weight: 600; color: var(--ink); }
.gw-theme .related-products-wrapper { padding-top: 40px; border-top: 1px solid var(--line); }
body.single-product .product-small .box-image img { border-radius: 14px; }
body.single-product .product-small .box-text { padding-left: 0; }
.gw-theme #reviews .comment-reply-title { font-family: var(--serif); font-weight: 500; text-transform: none; }
.gw-theme #reviews .submit { border-radius: 999px; background: var(--brown-deep); }

/* PDP v3: compact buy box */
body.single-product .product-info .next-prev-nav, body.single-product .product-info .product_meta, body.single-product .product-info .social-icons, body.single-product .product-info .is-divider, body.single-product table.variations .reset_variations, body.single-product .woocommerce-variation-price { display: none !important; }
body.single-product .product-info .product-title { margin-bottom: 6px; font-size: 22px; line-height: 1.25; }
body.single-product .product-info .woocommerce-product-rating { margin: 0 0 8px; }
body.single-product .product-info .gw-pdp-price { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); }
body.single-product .gw-pdp-price .gw-from { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; }
body.single-product .gw-pdp-price del { font-size: 17px; color: var(--muted); margin-right: 6px; }
body.single-product .gw-pdp-price ins { text-decoration: none; }
body.single-product .gw-pdp-price .woocommerce-Price-currencySymbol { font-size: .75em; vertical-align: baseline; top: 0; position: static; }
body.single-product .woocommerce-variation-availability { font-size: 13px; }
body.single-product table.variations { display: block; width: 100%; margin: 0 0 2px; border: 0; }
body.single-product table.variations tbody { display: block; width: 100%; }
body.single-product table.variations tr { display: block; margin: 0 0 14px; border: 0; }
body.single-product table.variations th, body.single-product table.variations td { display: block; width: 100%; padding: 0; border: 0; background: none; }
body.single-product table.variations th label { display: block; margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
body.single-product table.variations .gw-vopts__current { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12.5px; }
body.single-product table.variations select { width: 100%; max-width: 100%; height: 46px; min-height: 46px; margin: 0; padding: 0 36px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background-color: #fff; color: var(--ink); font-size: 14px; box-shadow: none; }
body.single-product table.variations select:focus { border-color: var(--ink); outline: 0; }
body.single-product table.variations tr.gw-has-vopts select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.single-product .product-info.col-fit, body.single-product .product-info.summary { min-width: 0; }
body.single-product table.variations th.gw-th-with-link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; margin-bottom: 4px; }
.gw-pdp-custom-link--label { flex: 0 0 auto !important; margin: 0 0 6px auto !important; font-size: 12.5px !important; text-align: right; }
.gw-pdp-custom-link--label a { display: inline-flex !important; align-items: center; gap: 5px; font-weight: 500 !important; color: var(--muted) !important; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.gw-pdp-custom-link--label a:hover { color: var(--ink) !important; }
.gw-vopts { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-vopt { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: border-color .15s; }
.gw-vopt:hover { border-color: var(--ink); }
.gw-vopt.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gw-vopt.is-disabled { opacity: .4; cursor: not-allowed; }
.gw-vopts--color .gw-vopt { flex-direction: column; gap: 4px; min-width: 56px; min-height: 0; padding: 6px 6px 4px; border-color: transparent; background: transparent; }
.gw-vopts--color .gw-vopt:hover { border-color: var(--line-strong); }
.gw-vopts--color .gw-vopt.is-active { border-color: var(--ink); box-shadow: none; }
.gw-vopt__dot { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.gw-vopt__name { font-size: 11.5px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.gw-vopts--color .gw-vopt.is-active .gw-vopt__name { color: var(--ink); font-weight: 600; }
body.single-product form.cart { margin-top: 4px; }
body.single-product form.cart .single_variation_wrap { margin: 0; }
body.single-product form.cart .woocommerce-variation-add-to-cart, body.single-product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
body.single-product form.cart .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled { opacity: .5; }
body.single-product form.cart .quantity.buttons_added { display: inline-flex; flex: 0 0 auto; margin: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
body.single-product form.cart .quantity .button.is-form, body.single-product form.cart .quantity .input-text.qty { height: 48px; border: 0; background: #fff; box-shadow: none; }
body.single-product form.cart .quantity .button.is-form { width: 42px; font-size: 18px; color: var(--ink); }
body.single-product form.cart .quantity .button.is-form:hover { background: var(--bg-deep); }
body.single-product form.cart .quantity .input-text.qty { width: 48px; font-weight: 600; font-size: 15px; }
body.single-product form.cart .single_add_to_cart_button { flex: 1 1 200px; height: 48px; min-height: 48px; margin: 0; border-radius: 10px; background: var(--brown-deep); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
body.single-product form.cart .single_add_to_cart_button:hover { background: var(--ink); }
body.single-product form.cart .gw-pdp-custom-link { flex: 1 1 100%; margin: -4px 0 10px; font-size: 13px; }
body.single-product form.cart .gw-pdp-custom-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body.single-product .gw-pdp-custom-link svg { width: 14px; height: 14px; }
.gw-pdp-eta { display: flex; align-items: center; gap: 10px; margin: 14px 0 20px; padding: 9px 12px; border-radius: 10px; background: #f2efea; color: var(--ink); font-size: 13px; font-weight: 500; }
.gw-pdp-eta svg { flex: none; width: 18px; height: 18px; }
.gw-pdp-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 20px; padding: 0; list-style: none; }
.gw-pdp-links button { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.4; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.gw-pdp-links button:hover { color: var(--brown-deep); text-decoration-color: var(--brown-deep); }
.gw-pdp-links svg { width: 15px; height: 15px; flex: none; color: var(--brown-deep); }
.gw-popup { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; }
.gw-popup[hidden] { display: none; }
.gw-popup__backdrop { position: absolute; inset: 0; background: rgba(43, 34, 28, .45); }
.gw-popup__box { position: relative; width: 100%; max-width: 440px; padding: 28px 28px 24px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.gw-popup__box h3 { margin: 0 0 10px; padding-right: 32px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.gw-popup__box p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.gw-popup__box .gw-text-link { font-size: 13px; }
.gw-popup__close { position: absolute; top: 12px; right: 12px; }
body.gw-popup-open { overflow: hidden; }
.gw-pdp-acc { margin-top: 4px; border-top: 1px solid var(--line); }
.gw-pdp-acc details { border-bottom: 1px solid var(--line); }
.gw-pdp-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; list-style: none; }
.gw-pdp-acc summary::-webkit-details-marker { display: none; }
.gw-pdp-acc summary .gw-chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; flex: none; }
.gw-pdp-acc details[open] summary .gw-chev { transform: rotate(180deg); }
.gw-pdp-acc__body { padding: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.gw-pdp-acc__body h2, .gw-pdp-acc__body h3, .gw-pdp-acc__body h4 { margin: 12px 0 4px; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.gw-pdp-acc__body h2:first-child, .gw-pdp-acc__body h3:first-child, .gw-pdp-acc__body h4:first-child { margin-top: 0; }
.gw-pdp-acc__body p { margin: 0 0 10px; }
.gw-pdp-acc__body ul { margin: 0 0 10px 18px; }
.gw-pdp-acc__body li { margin-bottom: 4px; }
.gw-pdp-acc__body a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.gw-pdp-acc__body table.shop_attributes { margin: 0; font-size: 13.5px; }
.gw-pdp-acc__body table.shop_attributes th { width: 110px; font-weight: 600; color: var(--ink); }
.gw-pdp-acc__body table.shop_attributes td p { margin: 0; }
/* reviews section below (Flatsome "sections" display) */
body.single-product .product-page-sections { margin-top: 24px; }
body.single-product .product-page-sections .product-section { padding: 28px 0; border-top: 1px solid var(--line); }
body.single-product .product-page-sections .product-section .row { display: block; margin: 0; max-width: none; }
body.single-product .product-page-sections .product-section .col { width: 100%; max-width: none; flex: none; padding: 0; margin: 0; }
body.single-product .product-page-sections .product-section h5 { display: inline-block; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
body.single-product .product-page-sections .panel { max-width: none; font-size: 15px; line-height: 1.7; color: var(--ink); }
body.single-product .related-products-wrapper, body.single-product .product-footer .related { padding-top: 40px; border-top: 1px solid var(--line); margin-top: 8px; }
.gw-cform__file input[type="file"] { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13px; background: #fff; }
.gw-cform__filelist { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 767px) {
  body.single-product .product-info .gw-pdp-price { font-size: 24px; }
  .gw-pdp-custom-link--inline a { padding: 0 10px; font-size: 12px; }
}

/* Gallery: fixed ratios so switching thumbnails never jumps */
body.single-product .product-gallery .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.single-product .product-gallery .woocommerce-product-gallery__image { border-radius: 12px; overflow: hidden; }
body.single-product .product-gallery .product-thumbnails img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
body.single-product .product-gallery .product-thumbnails .col { padding: 0 0 10px; }
body.single-product .product-gallery .product-thumbnails .is-nav-selected img { outline: 2px solid var(--ink); }

/* Shop / category grid uses the home page cards */
.gw-theme .products.row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; margin: 0; width: 100%; max-width: none; }
.gw-theme .products.row::before, .gw-theme .products.row::after { display: none; }
.gw-theme .products .gw-loop-col { width: auto; max-width: none; flex: none; padding: 0; margin: 0; }
.gw-theme .products .gw-loop-col .gw-product { height: 100%; }
.gw-theme .term-description { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }
.gw-theme .woocommerce-ordering select { border-radius: 10px; border: 1px solid var(--line-strong); min-height: 40px; font-size: 13px; box-shadow: none; }
.gw-theme .woocommerce-result-count { font-size: 13px; color: var(--muted); }
@media (max-width: 991px) { .gw-theme .products.row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gw-theme .products.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* Cart & checkout (WooCommerce blocks) in Grainwell type and color */
.gw-theme .checkout-breadcrumbs { margin: 28px 0 18px; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.gw-theme .checkout-breadcrumbs a, .gw-theme .checkout-breadcrumbs .current { color: var(--muted); }
.gw-theme .checkout-breadcrumbs .current { color: var(--ink); }
.gw-theme .checkout-breadcrumbs .divider { opacity: .5; }
.gw-theme .wp-block-woocommerce-cart, .gw-theme .wp-block-woocommerce-checkout { font-family: var(--sans); color: var(--ink); }
.gw-theme .wc-block-components-product-name { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.gw-theme .wc-block-cart-item__prices .wc-block-components-product-price, .gw-theme .wc-block-cart-item__total .wc-block-components-product-price { font-family: var(--serif); font-size: 16px; }
.gw-theme .wc-block-components-product-metadata__description, .gw-theme .wc-block-components-product-details { font-size: 12.5px; color: var(--muted); }
.gw-theme .wc-block-cart-item__image img { border-radius: 10px; }
.gw-theme .wc-block-components-quantity-selector, .gw-theme .wc-block-components-quantity-selector::after { border-radius: 10px; border-color: var(--line-strong); }
.gw-theme .wc-block-cart__totals-title, .gw-theme .wc-block-components-checkout-step__title, .gw-theme .wc-block-components-title { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.gw-theme .wc-block-components-totals-item, .gw-theme .wc-block-components-totals-footer-item { font-size: 14px; }
.gw-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .gw-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.gw-theme .wc-block-cart__submit-button, .gw-theme .wc-block-components-checkout-place-order-button, .gw-theme .wc-block-components-button:not(.is-link) { min-height: 50px; border-radius: 10px; background: var(--brown-deep); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; box-shadow: none; }
.gw-theme .wc-block-cart__submit-button:hover, .gw-theme .wc-block-components-checkout-place-order-button:hover, .gw-theme .wc-block-components-button:not(.is-link):hover { background: var(--ink); }
.gw-theme .wc-block-components-text-input input, .gw-theme .wc-block-components-combobox .components-combobox-control__input { border-radius: 10px; border-color: var(--line-strong); }
.gw-theme .wc-block-components-text-input.is-active input, .gw-theme .wc-block-components-text-input input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gw-theme .wc-block-components-radio-control__option, .gw-theme .wc-block-components-checkbox { font-size: 14px; }
.gw-theme .wc-block-components-order-summary-item__description { font-size: 13px; }
.gw-theme .wc-block-components-notice-banner { border-radius: 10px; }
.gw-theme .woocommerce-message, .gw-theme .woocommerce-info { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; }
.gw-theme .woocommerce-message .message-container, .gw-theme .woocommerce-info .message-container { border: 0; }

/* Header icon buttons: identical box for <a> and <button> */
.gw-theme .gw-header__actions .gw-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; line-height: 1; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.gw-theme .gw-header__actions .gw-icon-btn:hover { background: rgba(61, 43, 34, .08); }
.gw-theme .gw-drawer__head .gw-icon-btn, .gw-theme .gw-popup__close { min-height: 0; margin: 0; padding: 0; line-height: 1; box-shadow: none; }
.gw-theme .gw-icon-btn > svg { display: block; width: 21px; height: 21px; }
.gw-theme .gw-icon-btn .gw-count { top: 3px; right: 3px; }


/* Quick add never wider than the image */
.gw-theme .gw-product__media .gw-quick-add { width: auto; left: 12px; right: 12px; }

/* Payment options under the form */
.gw-pdp-pay { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.gw-pdp-pay > span { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gw-pdp-pay .payment-icons { display: flex; flex-wrap: nowrap; gap: 5px; margin: 0; overflow: hidden; }
.gw-pdp-pay .payment-icon { display: inline-flex; width: 38px; height: 24px; margin: 0; padding: 2px 3px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.gw-pdp-pay .payment-icon svg { width: 100%; height: 100%; }

/* Description clamp */
.gw-clamp { max-height: 240px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.gw-clamp.is-expanded { max-height: none; overflow: visible; }
.gw-clamp__more { display: inline-block; margin: -6px 0 14px; padding: 0; border: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brown-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gw-clamp__more[hidden] { display: none; }
.gw-pdp-faq details { border-bottom: 1px solid var(--line); }
.gw-pdp-faq summary { padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.gw-pdp-faq summary::-webkit-details-marker { display: none; }
.gw-pdp-faq summary::after { content: "+"; float: right; color: var(--muted); }
.gw-pdp-faq details[open] > summary::after { content: "–"; }
.gw-pdp-faq p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* Compact reviews under the gallery */
.gw-pdp-reviews { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.gw-pdp-reviews__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.gw-pdp-reviews__head h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.gw-pdp-reviews__score { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--muted); }
.gw-pdp-reviews__score strong { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.gw-pdp-reviews__score .gw-stars { font-size: 13px; letter-spacing: .05em; color: var(--gold); }
.gw-pdp-reviews__write { margin-left: auto; padding: 0; border: 0; background: none; box-shadow: none; font-size: 13px; text-transform: none; letter-spacing: 0; }
.gw-pdp-reviews .woocommerce-Reviews-title { display: none; }
.gw-pdp-reviews #reviews.row, .gw-pdp-reviews .comments.col { margin: 0; padding: 0; max-width: none; width: 100%; }
.gw-pdp-reviews .commentlist { margin: 0; padding: 0; list-style: none; }
.gw-pdp-reviews .commentlist li.review { margin: 0; padding: 0; border: 0; }
.gw-pdp-reviews .comment_container { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); }
.gw-pdp-reviews .comment_container > .flex-col { flex: none; }
.gw-pdp-reviews .comment_container img.avatar { width: 34px; height: 34px; border-radius: 50%; }
.gw-pdp-reviews .comment-text { flex: 1; min-width: 0; }
.gw-pdp-reviews .comment-text .star-rating { float: none; margin: 0 0 3px; font-size: 12px; }
.gw-pdp-reviews .comment-text .meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.gw-pdp-reviews .woocommerce-review__author { font-weight: 600; color: var(--ink); text-transform: none; }
.gw-pdp-reviews .woocommerce-review__verified { font-style: normal; font-size: 11.5px; color: var(--sage, #5c7a5c); }
.gw-pdp-reviews .description p { margin: 0; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--ink); }
.gw-pdp-reviews .review_form_wrapper { display: none; padding: 0; }
.gw-pdp-reviews .review_form_wrapper.is-open { display: block; }
.gw-pdp-reviews .review-form-inner { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gw-pdp-reviews .comment-reply-title { display: block; margin: 0 0 10px; font-family: var(--serif); font-size: 18px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.gw-pdp-reviews .comment-form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.gw-pdp-reviews .comment-form textarea, .gw-pdp-reviews .comment-form input[type="text"], .gw-pdp-reviews .comment-form input[type="email"] { border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: none; background: #fff; }
.gw-pdp-reviews .comment-form textarea { min-height: 100px; }
.gw-pdp-reviews .comment-form-rating .stars a { color: var(--gold); }
.gw-pdp-reviews .comment-form .submit { min-height: 44px; padding: 0 22px; border-radius: 10px; background: var(--brown-deep); color: #fff; font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: .02em; }
.gw-pdp-reviews .comment-form-cookies-consent { font-size: 12.5px; color: var(--muted); }
body.single-product .product-footer .gw-pdp-reviews { margin: 8px 0 32px; }

/* Reviews block must stay inside the gallery column */
.gw-pdp-reviews { width: 100%; max-width: 100%; overflow: hidden; }
.gw-pdp-reviews #reviews.row { display: block; margin: 0; width: 100%; max-width: 100%; }
.gw-pdp-reviews .comments.col, .gw-pdp-reviews .review_form_wrapper.col { display: block; width: 100%; max-width: 100%; flex: none; padding: 0; margin: 0; }
.gw-pdp-reviews .comment_container { flex-wrap: nowrap; width: 100%; }
.gw-pdp-reviews .comment-text { flex: 1 1 0; width: auto; max-width: 100%; }
.gw-pdp-reviews .description, .gw-pdp-reviews .description p { white-space: normal; overflow-wrap: anywhere; }
/* Description clamp: soft fade + spacing before Show more */
.gw-pdp-acc details { position: relative; }
.gw-clamp { position: relative; padding-bottom: 8px; }
.gw-clamp:not(.is-expanded) { mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.gw-clamp__more { margin: 4px 0 16px; }
