/*
Theme Name: Whimsy and Hearth
Theme URI: https://bisque-dugong-743746.hostingersite.com
Author: Whimsy and Hearth
Description: Custom WooCommerce storefront theme for Whimsy and Hearth — home decor, nursery, and pet furniture, built for the US/EU market.
Version: 1.0.0
Text Domain: whimsy-hearth
Requires PHP: 7.4
*/

:root {
  --ink: #1A1A1A;
  --ground: #FFFFFF;
  --panel: #FBF3E6;
  --panel-alt: #F5E8D3;
  --border: #EAE3D6;
  --accent: #D9790F;
  --secondary: #1B7A52;
  --muted: #706A61;
  --footer-bg: #FAF7F2;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 10px rgba(26,26,26,0.05);
  --card-shadow-hover: 0 10px 28px rgba(26,26,26,0.10);
}

* { box-sizing: border-box; }
html {
  zoom: 0.8;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--ground);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.82; }
h1, h2 { font-family: 'Fraunces', serif; margin: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Top utility bar */
.wh-topbar {
  background: var(--accent);
  color: #FFFFFF;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
}

/* Header */
.wh-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 64px;
  border-bottom: 1px solid rgba(23,24,26,0.1);
  flex-wrap: wrap;
  gap: 16px;
}
.wh-logo a { font-family: 'Fraunces', serif; font-weight: 700; font-size: 28px; }
.wh-logo .custom-logo-link { display: block; }
.wh-logo .custom-logo { width: 235px; height: auto; }
@media (max-width: 600px) {
  .wh-logo .custom-logo { width: 205px; }
}
.wh-nav-list { display: flex; gap: 40px; align-items: center; margin: 0; padding: 0; flex-wrap: wrap; }
.wh-nav-list > li { position: relative; }
.wh-nav-list a { font-size: 15px; font-weight: 500; }
.wh-nav-sale a, a.wh-nav-sale { color: var(--accent); font-weight: 600; }

/* Dropdown submenus (WordPress's default .sub-menu class — Pet Furniture's
   Dog/Cat category children render here automatically). */
.wh-nav-list .sub-menu {
  /* Flush against the parent (margin:0, not a gap below it) — a gap here
     would break :hover the instant the pointer crosses it, closing the
     menu before a click can land. */
  display: none; position: absolute; top: 100%; left: 0; margin: 0; padding: 12px 8px 8px;
  min-width: 200px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--card-shadow-hover); list-style: none; z-index: 20;
}
.wh-nav-list li.menu-item-has-children:hover > .sub-menu,
.wh-nav-list li.menu-item-has-children:focus-within > .sub-menu { display: flex; flex-direction: column; gap: 2px; }
.wh-nav-list .sub-menu a { display: block; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.wh-nav-list .sub-menu a:hover { background: var(--panel); opacity: 1; }
.wh-nav-list li.menu-item-has-children > a::after { content: '▾'; font-size: 10px; margin-left: 5px; opacity: 0.6; }
.wh-header-icons { display: flex; align-items: center; gap: 20px; }
.wh-icon-btn { display: flex; position: relative; color: var(--ink); }
.wh-cart-count {
  position: absolute; top: -6px; right: -10px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.wh-placeholder-label { font-size: 13px; color: var(--muted); text-align: center; padding: 12px; }

/* Hero */
.wh-hero {
  display: flex; align-items: center; gap: 48px;
  padding: 64px; background: var(--panel);
  flex-wrap: wrap;
}
.wh-hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.wh-eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); font-weight: 600; }
.wh-hero-text h1 { font-size: 52px; line-height: 1.1; }
.wh-hero-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.wh-hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.wh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; }
.wh-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(217,121,15,0.28); }
.wh-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217,121,15,0.34); opacity: 1; }
.wh-btn-link { padding: 14px 2px; border-bottom: 2px solid var(--ink); border-radius: 0; background: none; }
.wh-btn-outline { border: 1px solid var(--ink); background: none; color: var(--ink); width: 100%; }
.wh-btn-outline:hover { background: var(--ink); color: #fff; opacity: 1; }
.wh-hero-image {
  flex: 1 1 420px; min-height: 380px; border-radius: 16px; background: var(--panel-alt);
  border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}

/* Category & product sections */
.wh-categories, .wh-bestsellers { padding: 48px 64px; display: flex; flex-direction: column; gap: 28px; }
.wh-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px; }
.wh-category-tile { display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s ease; }
.wh-category-tile:hover { transform: translateY(-3px); opacity: 1; }
.wh-tile-image { height: 220px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--card-shadow); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.wh-category-tile:hover .wh-tile-image { box-shadow: var(--card-shadow-hover); }
.wh-tile-label { font-size: 16px; font-weight: 600; }

.wh-section-heading-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wh-view-all { font-weight: 600; color: var(--accent); }
.wh-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.wh-product-card { display: flex; flex-direction: column; gap: 10px; background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wh-product-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.wh-product-image { height: 200px; border-radius: 8px; background: var(--panel); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.wh-product-name { font-size: 15px; font-weight: 600; min-height: 40px; }
.wh-product-price { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; color: var(--accent); }
.wh-price-old, .wh-product-price del { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.wh-price-current, .wh-product-price ins { text-decoration: none; }

/* Brand story */
.wh-story { display: flex; gap: 56px; align-items: center; padding: 64px; background: var(--panel); flex-wrap: wrap; }
.wh-story-image { flex: 1 1 380px; min-height: 340px; border-radius: 16px; background: var(--panel-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wh-story-photo { display: block; width: 100%; height: 340px; object-fit: cover; }
.wh-story-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.wh-story-text p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.wh-story-link { font-weight: 600; border-bottom: 2px solid var(--ink); align-self: flex-start; }

/* Trust strip */
.wh-trust { padding: 40px 64px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; border-top: 1px solid rgba(23,24,26,0.08); border-bottom: 1px solid rgba(23,24,26,0.08); }
.wh-trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.wh-trust-item svg { color: var(--secondary); flex-shrink: 0; }

/* Newsletter */
.wh-newsletter { padding: 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--ink); color: var(--ground); text-align: center; }
.wh-newsletter p { margin: 0; font-size: 15px; color: var(--panel); max-width: 440px; }
.wh-newsletter-form { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.wh-newsletter-form input { width: 280px; padding: 14px 16px; border-radius: 8px; border: none; font-size: 15px; }
.wh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.wh-footer { padding: 56px 64px 32px; background: var(--footer-bg); }
.wh-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.wh-footer-col { display: flex; flex-direction: column; gap: 10px; }
.wh-footer-brand { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; }
.wh-footer-brand .custom-logo-link { display: inline-block; }
.wh-footer-brand .custom-logo { width: 235px; max-width: 100%; height: auto; }
.wh-footer-tagline { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.wh-footer-heading { font-size: 14px; font-weight: 600; }
.wh-footer-col a { font-size: 13px; color: var(--muted); }
.wh-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; margin-top: 40px; border-top: 1px solid rgba(23,24,26,0.1); font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px; }

/* Basic page/article fallback (index.php) */
.wh-main { padding: 64px; max-width: 800px; margin: 0 auto; }
.wh-article-content { font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .wh-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wh-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wh-footer-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wh-trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wh-hero, .wh-story { padding: 40px 24px; }
  .wh-header, .wh-categories, .wh-bestsellers { padding: 24px; }
  .wh-hero-text h1 { font-size: 36px; }
}

/* Contact Form 7 — ships with no CSS of its own, styled against its
   stable default markup/classes only. */
.wh-article-content .wpcf7-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin-top: 24px; }
.wh-article-content .wpcf7-form p { margin: 0; }
.wh-article-content .wpcf7-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.wh-article-content .wpcf7-form-control { font-family: 'Work Sans', sans-serif; font-size: 15px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--ink); }
.wh-article-content .wpcf7-form textarea.wpcf7-form-control { min-height: 140px; resize: vertical; }
.wh-article-content .wpcf7-form-control:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wh-article-content .wpcf7-submit { align-self: flex-start; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
.wh-article-content .wpcf7-submit:hover { opacity: 0.88; }
.wh-article-content .wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; font-weight: 500; }
.wh-article-content .wpcf7-response-output { border-radius: 8px; padding: 14px 18px; font-size: 14px; margin: 16px 0 0; border: 1px solid var(--border); }
.wh-article-content form.sent .wpcf7-response-output { border-color: var(--secondary); color: var(--secondary); }
.wh-article-content form.failed .wpcf7-response-output,
.wh-article-content form.aborted .wpcf7-response-output { border-color: #c0392b; color: #c0392b; }

/* ============================================================
   WooCommerce — Shop & Product pages
   Styled entirely against WooCommerce's own stable default markup/
   classes (no plugin template files copied into the theme), so a
   future WooCommerce update won't require re-syncing overridden
   templates. functions.php adds one small structural hook (the
   .wh-shop-toolbar wrapper below) but changes no WC logic.
   ============================================================ */

/* Shop/product pages get a wider content column than plain pages
   (.wh-main alone stays 800px for About/Contact/etc). */
.wh-woocommerce-main { max-width: 1280px; padding: 48px 64px; }

/* Breadcrumb + archive/category title */
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.wh-woocommerce-main h1.page-title,
.wh-woocommerce-main .woocommerce-products-header__title { font-family: 'Fraunces', serif; font-size: 34px; margin: 0 0 16px; }

/* Category/tag archive banner photo */
.wh-category-banner {
  /* Taller + responsive (was a fixed 220px), so background-size:cover
     crops less of real category photos. Solid border now that these
     hold real photography, not the dashed "placeholder" look. */
  height: clamp(260px, 30vw, 400px); border-radius: 16px; margin-bottom: 28px; background: var(--panel);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}

.wh-category-banner--personalized { background-position: center 30%; }

/* Notices (added to cart, errors, "no products found", etc.) — these
   render both wrapped in .woocommerce-notices-wrapper (cart/checkout
   notices) and bare (the shop loop's own "no products" message), so
   both forms are targeted here. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none; margin: 0 0 24px; padding: 14px 20px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border); font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.woocommerce-error { border-color: #c0392b; }
.woocommerce-message::before,
.woocommerce-info::before { display: none; }

/* Result count + sort-by row */
.wh-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(23,24,26,0.08);
}
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
  font-family: 'Work Sans', sans-serif; font-size: 14px; padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--ink);
}

/* Shop sidebar layout (archive/category pages only) */
.wh-shop-layout { display: flex; gap: 40px; align-items: flex-start; }
.wh-shop-sidebar { flex: 0 0 240px; display: flex; flex-direction: column; gap: 28px; }
.wh-shop-content { flex: 1 1 auto; min-width: 0; }
.wh-sidebar-block h3,
.wh-sidebar-block .widget-title,
.wh-sidebar-block .widgettitle { font-family: 'Fraunces', serif; font-size: 17px; margin: 0 0 14px; }
.wh-sidebar-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wh-sidebar-cat-list li { margin: 0; }
.wh-sidebar-cat-list a { font-size: 14px; color: var(--muted); }
.wh-sidebar-cat-list a:hover { color: var(--ink); opacity: 1; }
.wh-sidebar-cat-list .current-cat > a { color: var(--accent); font-weight: 600; }
.wh-sidebar-price-filter .price_slider { margin-bottom: 18px; }
.wh-sidebar-price-filter .price_slider_amount {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 13px; color: var(--muted); text-align: left;
}
.wh-sidebar-price-filter .price_slider_amount .button {
  /* WooCommerce's own CSS floats this button and right-aligns its
     container (a leftover from the pre-flex markup) — reset both
     explicitly, and pin flex-shrink so it can never be squeezed
     narrower than its own text, which is what was clipping the "F". */
  float: none; flex-shrink: 0; white-space: nowrap; overflow: visible;
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--ink); background: none;
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: normal; cursor: pointer;
}
.wh-sidebar-price-filter .ui-slider { position: relative; height: 4px; background: var(--border); border-radius: 999px; margin: 0 6px 14px; }
.wh-sidebar-price-filter .ui-slider .ui-slider-range { position: absolute; height: 100%; background: var(--accent); border-radius: 999px; }
.wh-sidebar-price-filter .ui-slider .ui-slider-handle {
  position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; transform: translateY(-50%);
  background: #fff; border: 2px solid var(--accent); border-radius: 50%; cursor: pointer; outline: none;
}
.wh-sidebar-onsale-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--accent); }

/* Narrower content column (sidebar present) fits 3 across, not 4.
   Extra specificity + !important: this and the 4-column base rule below
   have equal specificity otherwise, and which one wins on a tie is too
   fragile to depend on file order. */
.wh-woocommerce-main .wh-shop-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* Product grid — mirrors the homepage .wh-product-grid/.wh-product-card look */
.wh-woocommerce-main ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
/* WooCommerce's own CSS puts a float-layout clearfix (content:" ";
   display:table) on ul.products::before/::after. Harmless with floats,
   but in a grid context that pseudo-element becomes a real, empty grid
   item — always occupying the first cell. Strip it. */
.wh-woocommerce-main ul.products::before,
.wh-woocommerce-main ul.products::after { content: none !important; display: none !important; }
.wh-woocommerce-main ul.products li.product {
  /* WooCommerce's own woocommerce-layout.css sets float:left + a
     percentage width on this exact selector at equal specificity —
     without these !important overrides, cards render at ~22% width
     inside a much wider grid column instead of filling it. */
  display: flex !important; flex-direction: column; gap: 10px; position: relative;
  background: var(--card-bg); border-radius: 12px; padding: 16px; border: 1px solid var(--border);
  box-shadow: var(--card-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100% !important; float: none !important; margin: 0 !important;
}
.wh-woocommerce-main ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.wh-woocommerce-main ul.products li.product > a { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.wh-woocommerce-main ul.products li.product img { height: 200px; width: 100%; object-fit: cover; border-radius: 8px; background: var(--panel); }
.wh-woocommerce-main ul.products li.product .woocommerce-loop-product__title { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 600; margin: 0; min-height: 40px; color: var(--ink); }
.wh-woocommerce-main ul.products li.product .price { font-size: 16px; font-weight: 700; color: var(--accent); }
.wh-woocommerce-main ul.products li.product .price del { font-size: 13px; color: var(--muted); font-weight: 400; opacity: 1; margin-right: 6px; }
.wh-woocommerce-main ul.products li.product .price ins { text-decoration: none; }
.wh-woocommerce-main ul.products li.product .star-rating { font-size: 13px; color: var(--accent); }
.wh-woocommerce-main ul.products li.product .onsale {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1.4;
}
.wh-woocommerce-main ul.products li.product a.button {
  display: inline-flex; align-items: center; justify-content: center; margin-top: auto;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--ink); background: none; color: var(--ink); text-align: center;
}
.wh-woocommerce-main ul.products li.product a.button:hover { opacity: 0.82; }
.wh-woocommerce-main ul.products li.product .added_to_cart { font-size: 12px; text-align: center; color: var(--secondary); font-weight: 600; }

/* Pagination */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul.page-numbers { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  border-radius: 6px; border: 1px solid var(--border); font-size: 14px; color: var(--ink);
}
.woocommerce-pagination ul.page-numbers li span.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Single product */
.wh-woocommerce-main div.product { display: flex; flex-wrap: wrap; gap: 48px; }
.wh-woocommerce-main div.product .woocommerce-product-gallery { flex: 1 1 420px; max-width: 520px; }
.wh-woocommerce-main div.product .woocommerce-product-gallery img { border-radius: 12px; background: var(--panel); }
.wh-woocommerce-main div.product .flex-control-thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.wh-woocommerce-main div.product .flex-control-thumbs li img { border-radius: 6px; cursor: pointer; opacity: 0.7; }
.wh-woocommerce-main div.product .flex-control-thumbs li img.flex-active { opacity: 1; outline: 2px solid var(--accent); }
.wh-woocommerce-main div.product .summary.entry-summary { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.wh-woocommerce-main div.product .product_title { font-family: 'Fraunces', serif; font-size: 30px; margin: 0; }
.wh-woocommerce-main div.product .summary .price { font-size: 24px; font-weight: 700; color: var(--accent); }
.wh-woocommerce-main div.product .summary .price del { color: var(--muted); font-size: 16px; font-weight: 400; margin-right: 8px; }
.wh-woocommerce-main div.product .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.7; color: var(--muted); }
.wh-woocommerce-main div.product .variations { width: 100%; border-collapse: collapse; margin: 0; }
.wh-woocommerce-main div.product .variations td { padding: 6px 0; background: none; }
.wh-woocommerce-main div.product .variations select { font-family: 'Work Sans', sans-serif; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--card-bg); }
.wh-woocommerce-main div.product .reset_variations { font-size: 12px; color: var(--muted); margin-left: 10px; }
.wh-woocommerce-main div.product form.cart { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wh-woocommerce-main div.product .quantity input.qty { width: 48px; padding: 10px 4px; border-radius: 0; border: 1px solid var(--border); font-family: 'Work Sans', sans-serif; font-size: 15px; text-align: center; }
.wh-woocommerce-main div.product .single_add_to_cart_button { padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
.wh-woocommerce-main div.product .single_add_to_cart_button:hover { opacity: 0.88; }
.wh-woocommerce-main div.product .single_add_to_cart_button.disabled { opacity: 0.5; cursor: not-allowed; }
.wh-woocommerce-main div.product .product_meta { font-size: 13px; color: var(--muted); border-top: 1px solid rgba(23,24,26,0.08); padding-top: 14px; }
.wh-woocommerce-main div.product .product_meta a { color: var(--muted); text-decoration: underline; }

/* Tabs (description / additional info / reviews) */
.wh-woocommerce-main .woocommerce-tabs { width: 100%; margin-top: 56px; }
.wh-woocommerce-main .woocommerce-tabs ul.tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid rgba(23,24,26,0.1); }
.wh-woocommerce-main .woocommerce-tabs ul.tabs li { margin: 0; }
.wh-woocommerce-main .woocommerce-tabs ul.tabs li a { display: inline-block; padding: 10px 4px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wh-woocommerce-main .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--accent); }
.wh-woocommerce-main .woocommerce-tabs .panel { font-size: 15px; line-height: 1.7; color: var(--muted); }
.wh-woocommerce-main .woocommerce-tabs .panel h2 { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); margin-bottom: 12px; }

/* Reviews */
.wh-woocommerce-main #reviews .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.wh-woocommerce-main #reviews .comment_container { display: flex; gap: 14px; }
.wh-woocommerce-main #reviews .comment-text { background: var(--card-bg); border-radius: 10px; padding: 14px 16px; flex: 1; }
.wh-woocommerce-main #reviews .star-rating { color: var(--accent); }
.wh-woocommerce-main #review_form input,
.wh-woocommerce-main #review_form textarea { font-family: 'Work Sans', sans-serif; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); width: 100%; }
.wh-woocommerce-main #review_form .form-submit input#submit { padding: 12px 24px; border-radius: 8px; border: none; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }

/* Related products */
.wh-woocommerce-main .related.products { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(23,24,26,0.08); }
.wh-woocommerce-main .related.products > h2 { font-family: 'Fraunces', serif; font-size: 24px; margin: 0 0 24px; }

/* Cart page (classic [woocommerce_cart] shortcode) */
.wh-woocommerce-main table.cart,
.wh-woocommerce-main table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 32px; }
.wh-woocommerce-main table.cart th,
.wh-woocommerce-main table.shop_table th {
  text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.wh-woocommerce-main table.cart td,
.wh-woocommerce-main table.shop_table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.wh-woocommerce-main table.cart td.product-thumbnail img { width: 72px; border-radius: 8px; background: var(--panel); }
.wh-woocommerce-main table.cart td.product-name a { font-weight: 600; }
.wh-woocommerce-main table.cart td.product-remove a { color: var(--muted); font-size: 20px; }
.wh-woocommerce-main table.cart td.actions .button,
.wh-woocommerce-main table.cart td.actions input[type="submit"] {
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--ink); background: none; color: var(--ink);
}
.wh-woocommerce-main table.cart td.actions input.button[name="update_cart"] { border-color: var(--border); color: var(--muted); }
/* WooCommerce floats .coupon left with no clearfix on its parent cell,
   which is what was overlapping it with the Update Cart button. Un-float
   it (stacks cleanly above instead) and give the input/button their own
   flex row. */
.wh-woocommerce-main table.cart td.actions { text-align: left; padding-top: 20px; }
.wh-woocommerce-main .coupon { float: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 380px; margin-bottom: 16px; }
/* WooCommerce's generic .input-text rule sets width:100%, which — since
   we never override the `width` property itself, only flex-basis — was
   still the active value and forced the input to claim the whole row,
   squeezing into the Apply button. Override width directly. */
.wh-woocommerce-main .coupon input#coupon_code {
  flex: 1 1 220px; width: auto; min-width: 0; height: 44px; box-sizing: border-box;
  padding: 0 14px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px;
}
.wh-woocommerce-main .coupon button[name="apply_coupon"] {
  flex: 0 0 auto; white-space: nowrap; height: 44px; box-sizing: border-box;
}

/* Quantity stepper (+/-) — added via js/quantity-stepper.js since
   WooCommerce's classic templates don't include one by default. */
.wh-woocommerce-main .quantity { display: inline-flex; align-items: stretch; }
.wh-woocommerce-main .quantity .wh-qty-btn {
  width: 34px; border: 1px solid var(--border); background: var(--card-bg); color: var(--ink);
  font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wh-woocommerce-main .quantity .wh-qty-minus { border-radius: 8px 0 0 8px; border-right: none; }
.wh-woocommerce-main .quantity .wh-qty-plus { border-radius: 0 8px 8px 0; border-left: none; }
.wh-woocommerce-main .quantity .wh-qty-btn:hover { background: var(--panel); }
.wh-woocommerce-main .quantity input.qty {
  width: 48px; padding: 10px 4px; border-radius: 0; border: 1px solid var(--border);
  text-align: center; -moz-appearance: textfield;
}
.wh-woocommerce-main .quantity input.qty::-webkit-inner-spin-button,
.wh-woocommerce-main .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wh-woocommerce-main .cart-collaterals { margin-top: 32px; }
.wh-woocommerce-main .cart_totals { max-width: 420px; margin-left: auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--card-shadow); }
.wh-woocommerce-main .cart_totals h2 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 16px; }
.wh-woocommerce-main .cart_totals table { width: 100%; }
.wh-woocommerce-main .cart_totals table th,
.wh-woocommerce-main .cart_totals table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.wh-woocommerce-main .cart_totals .order-total .amount { font-weight: 700; color: var(--accent); font-size: 18px; }
.wh-woocommerce-main .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; margin-top: 16px; padding: 16px;
  border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-align: center; width: 100%;
}

/* Checkout page (classic [woocommerce_checkout] shortcode) */
.wh-woocommerce-main form.checkout { display: flex; flex-wrap: wrap; gap: 48px; }
.wh-woocommerce-main form.checkout > .col2-set { flex: 1 1 420px; }
.wh-woocommerce-main #order_review { flex: 1 1 380px; align-self: flex-start; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: var(--card-shadow); }
.wh-woocommerce-main .woocommerce-billing-fields h3,
.wh-woocommerce-main #order_review_heading { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 20px; }
.wh-woocommerce-main .form-row label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.wh-woocommerce-main .form-row input.input-text,
.wh-woocommerce-main .form-row textarea,
.wh-woocommerce-main .form-row select {
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); font-family: 'Work Sans', sans-serif; font-size: 14px; width: 100%;
}
.wh-woocommerce-main #payment { background: var(--panel); border-radius: 12px; padding: 20px; margin-top: 20px; }
.wh-woocommerce-main #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
.wh-woocommerce-main #place_order {
  width: 100%; padding: 16px; border-radius: 8px; border: none; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
}

/* My Account page (classic [woocommerce_my_account] shortcode) */
.wh-woocommerce-main .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wh-woocommerce-main .woocommerce-MyAccount-navigation { flex: 0 0 220px; }
.wh-woocommerce-main .woocommerce-MyAccount-navigation li a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted);
}
.wh-woocommerce-main .woocommerce-MyAccount-navigation li.is-active a { background: var(--panel); color: var(--ink); font-weight: 600; }
.wh-woocommerce-main .woocommerce-MyAccount-content { flex: 1 1 420px; }
.wh-woocommerce-main .woocommerce-form-login,
.wh-woocommerce-main .woocommerce-form-register { max-width: 420px; }
.wh-woocommerce-main fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }

@media (max-width: 900px) {
  .wh-woocommerce-main { padding: 24px; }
  .wh-woocommerce-main ul.products,
  .wh-woocommerce-main .wh-shop-content ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .wh-woocommerce-main div.product { gap: 24px; }
  .wh-shop-layout { flex-direction: column; }
  .wh-shop-sidebar { flex: 1 1 auto; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .wh-sidebar-price-filter { min-width: 220px; }
  .wh-woocommerce-main form.checkout { flex-direction: column; }
  .wh-woocommerce-main .cart_totals { max-width: none; margin-left: 0; }
}
