/* Wendy House theme. Shared components live in the Wendy House Core plugin's wh-core.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: #b11226; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
input, select, textarea, button { font: inherit; }
.wh-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100000; background: #fff; padding: 8px 14px; white-space: normal; }

/* ---------- Header ---------- */
.wh-hdr-main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "logo nav" "logo tools"; background: #f8f3f6; }
.wh-hdr-logo { grid-area: logo; padding: 8px 28px 6px 24px; text-align: center; }
.wh-hdr-logo a { display: block; }
.wh-hdr-logo img { display: block; height: 175px; width: auto; max-width: 100%; margin: 0 auto; }
.wh-hdr-email { margin: 2px 0 0; font-size: 13px; }
.wh-hdr-email a { color: #93183B; font-weight: 600; text-decoration: none; }
.wh-hdr-email a:hover { text-decoration: underline; }
.wh-nav { grid-area: nav; background: #000; position: relative; z-index: 60; align-self: start; }
.wh-nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; align-items: center; gap: 8px; padding: 7px 12px; width: 100%; font-weight: 600; font-size: 15px; }
.wh-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; font-family: Roboto, -apple-system, "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.wh-menu > li { position: relative; display: flex; align-items: stretch; }
.wh-menu > li > a { display: block; padding: 9px 14px; line-height: 18px; color: #fff; text-decoration: none; border-bottom: 3px solid transparent; }
.wh-menu > li > a:hover, .wh-menu > li > a:focus-visible { color: #ffc9d6; }
.wh-menu > li.current-menu-item > a, .wh-menu > li.current-menu-ancestor > a { border-bottom-color: #e8132b; }
.wh-sub-toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: 0 12px 0 0; margin-left: -8px; display: flex; align-items: center; }
.wh-sub-toggle::before { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.wh-menu .sub-menu { list-style: none; margin: 0; padding: 6px 0; display: none; position: absolute; top: 100%; left: 0; min-width: 290px; max-height: 75vh; overflow-y: auto; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.2); z-index: 1000; font-weight: 500; letter-spacing: 0; }
.wh-menu > li:hover > .sub-menu, .wh-menu > li:focus-within > .sub-menu, .wh-menu > li.is-open > .sub-menu { display: block; }
.wh-menu .sub-menu a { display: block; padding: 9px 24px; color: #33373d; text-decoration: none; font-size: 15px; }
.wh-menu .sub-menu a:hover, .wh-menu .sub-menu a:focus-visible { background: #f8f3f6; color: #93183B; }
.wh-hdr-tools { grid-area: tools; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 24px; min-width: 0; }
.wh-search { display: flex; flex: 0 1 460px; min-width: 0; margin: 0; }
.wh-search input[type=search] { flex: 1; min-width: 0; height: 40px; padding: 0 14px; font-size: 15px; background: #fff; color: #333; border: 1px solid #c9b6bd; border-right: 0; border-radius: 20px 0 0 20px; -webkit-appearance: none; appearance: none; }
.wh-search input[type=search]:focus { outline: 2px solid #93183B; outline-offset: -1px; }
.wh-search button { height: 40px; padding: 0 20px; background: #2b2b2b; color: #fff; border: 0; border-radius: 0 20px 20px 0; cursor: pointer; font-size: 15px; }
.wh-search button:hover { background: #93183B; }
.wh-basket { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; background: #fff; color: #595f66; border: 1px solid #6b7280; cursor: pointer; font-weight: 700; flex: 0 0 auto; }
.wh-basket:hover { border-color: #93183B; color: #93183B; }
.wh-basket-count { position: absolute; top: -7px; right: 6px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 9px; background: #d9534f; color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.wh-strip { background: #93183B; }
.wh-main { max-width: 1440px; margin: 0 auto; padding: 10px 50px 40px; }
.wh-page-main { padding-left: 16px; padding-right: 16px; max-width: 1280px; }
.wh-archive-title { font-family: Roboto, -apple-system, "Segoe UI", sans-serif; font-size: 38px; font-weight: 700; color: #111; margin: 10px 0 12px; }
.wh-404 { text-align: center; padding-top: 50px; padding-bottom: 70px; }

/* ---------- Homepage ---------- */
.wh-hero { background: #f7f3f5; border-radius: 14px; padding: 12px 20px; margin: 0 0 14px; }
.wh-hero h1 { font-size: clamp(20px, 1.85vw, 27px); font-weight: 700; color: #93183B; margin: 0; line-height: 1.25; }
.whc-home-row { display: flex; gap: 24px; align-items: stretch; }
.whc-home-titles { flex: 0 0 280px; min-width: 0; }
.whc-home-cats { flex: 1; min-width: 0; }

/* ---------- Archive ---------- */
.wh-archive { display: flex; gap: 24px; align-items: flex-start; padding-left: 24px; padding-right: 24px; max-width: 1320px; }
.whc-archive-side { flex: 0 0 240px; }
.whc-archive-main { flex: 1; min-width: 0; }

/* ---------- Single product ---------- */
.wh-product-page { max-width: 1240px; padding: 16px 16px 20px; }
.wh-product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.06); padding: 40px 30px; }
.wh-product .woocommerce-product-gallery { float: none !important; width: 100% !important; margin: 14px 0 0 !important; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.wh-product .summary { float: none !important; width: 100% !important; margin: 0 !important; }
.wh-product .product_title { font-family: Roboto, -apple-system, "Segoe UI", sans-serif; font-size: 24px; font-weight: 700; color: #5a2a20; text-align: center; margin: 0 0 18px; }
.wh-product .summary .price { font-family: Roboto, -apple-system, "Segoe UI", sans-serif; font-size: 22px; font-weight: 700; color: #b11226; margin: 0 0 18px; }
.wh-product form.cart { display: flex; gap: 12px; align-items: center; margin: 0 0 20px; }
.wh-product form.cart .qty { width: 70px; height: 40px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px; }
.wh-product .single_add_to_cart_button { background: #b11226; color: #fff; border: 0; border-radius: 6px; padding: 10px 22px; font-weight: 700; font-size: 16px; cursor: pointer; }
.wh-product .single_add_to_cart_button:hover { background: #920f1f; }
.wh-product .stock { color: #6b5a5e; }
.woocommerce-store-notice, .woocommerce-message, .woocommerce-info, .woocommerce-error { max-width: 1240px; }

/* ---------- Footer ---------- */
.wendy-footer { background: #1a1a1a; padding: 60px 30px 20px; color: #fff; margin: 0 10px; font-family: Arial, Helvetica, sans-serif; }
.wendy-footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.wendy-footer-logo { width: 180px; height: auto; margin-bottom: 15px; }
.wendy-tagline { font-size: 14px; font-style: italic; opacity: .8; }
.wendy-footer h2 { font-size: 18px; color: #b42355; margin: 0 0 12px; font-weight: 700; text-transform: uppercase; }
.wendy-footer ul { list-style: none; padding: 0; margin: 0; }
.wendy-footer ul li { margin: 6px 0; }
.wendy-footer a { color: #eee; text-decoration: none; }
.wendy-footer a:hover { color: #e58aa6; }
.wendy-footer-bottom { max-width: 1300px; margin: 40px auto 0; text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 14px; opacity: .75; }
.wendy-footer-bottom p { margin: 0 0 8px; }

/* ---------- Coming soon ---------- */
.wh-soon { max-width: 1180px; margin: 0 auto; padding: 60px 20px 40px; text-align: center; }
.wh-soon .wp-block-image { margin: 0 auto 50px; }
.wh-soon .wp-block-image img { width: 550px; max-width: 100%; }
.wh-soon p { font-size: 23px; line-height: 1.55; color: #000; margin: 0 0 12px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.wh-soon p.wh-soon-small { font-size: 12px; color: #7a5a56; opacity: .8; text-shadow: none; margin-top: 30px; }
.whc-newsletter.is-coming-soon { max-width: 550px; margin: 60px auto 0; padding: 30px; text-align: left; background: #f9ecd6; border: 2px solid #c9a77f; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.is-coming-soon label { display: block; color: #7a6e66; font-size: 19px; margin-bottom: 4px; }
.is-coming-soon input[type=text], .is-coming-soon input[type=email] { width: 100%; height: 48px; padding: 0 16px; margin-bottom: 10px; background: #fff; border: 1px solid #6b7280; border-radius: 8px; font-size: 16px; }
.is-coming-soon input::placeholder { font-style: italic; }
.is-coming-soon button { width: 100%; height: 46px; background: #8c1f2e; color: #fff; border: 0; border-radius: 8px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.is-coming-soon button:hover { background: #b42355; }
.is-coming-soon p.whc-newsletter-msg { font-size: 16px; text-shadow: none; }
@media (max-width: 767px) { .wh-soon { padding-top: 24px; } .wh-soon .wp-block-image { margin-bottom: 24px; } .wh-soon p { font-size: 18px; } .whc-newsletter.is-coming-soon { margin-top: 30px; padding: 20px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wh-hdr-main { grid-template-areas: "nav nav" "logo tools"; grid-template-rows: auto auto; }
  .wh-hdr-logo img { height: 110px; }
  .wh-menu > li > a { padding: 9px 9px; font-size: 13px; }
  .wh-sub-toggle { padding-right: 8px; }
}
@media (max-width: 1024px) {
  .whc-home-row { flex-direction: column; gap: 14px; }
  .whc-home-titles { flex: none; width: 100%; }
  .wh-main { padding-left: 16px; padding-right: 16px; }
  .whc-archive-side { display: none; }
  .wh-archive { display: block; }
  .wh-archive-title { font-size: 30px; }
}
@media (max-width: 767px) {
  .wh-nav-toggle { display: flex; }
  .wh-menu { display: none; flex-direction: column; background: #fff; position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 12px 28px rgba(0,0,0,.25); max-height: 80vh; overflow-y: auto; font-size: 16px; letter-spacing: 0; }
  .wh-menu.is-open { display: flex; }
  .wh-menu > li { flex-wrap: wrap; border-bottom: 1px solid #ecdfe4; }
  .wh-menu > li > a { flex: 1; color: #2b2b2b; padding: 13px 16px; font-size: 16px; border-bottom: 0; }
  .wh-menu > li > a:hover, .wh-menu > li > a:focus-visible { color: #93183B; }
  .wh-menu > li.current-menu-item > a { color: #93183B; }
  .wh-sub-toggle { color: #93183B; width: 52px; margin: 0; padding: 0; justify-content: center; }
  .wh-menu > li:hover > .sub-menu, .wh-menu > li:focus-within > .sub-menu { display: none; }
  .wh-menu > li.is-open > .sub-menu { display: block; position: static; width: 100%; flex-basis: 100%; box-shadow: none; max-height: none; background: #f8f3f6; }
  .wh-hdr-logo { padding: 4px 6px 4px 10px; }
  .wh-hdr-logo img { height: 62px; }
  .wh-hdr-email { display: none; }
  .wh-hdr-tools { gap: 6px; padding: 6px 10px 6px 2px; }
  .wh-search { flex: 1 1 auto; }
  .wh-search input[type=search] { font-size: 16px; padding: 0 4px 0 12px; }
  .wh-search input[type=search]::placeholder { font-size: 14px; }
  .wh-search button { width: 44px; padding: 0; background-repeat: no-repeat; background-position: center; background-size: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
  .wh-search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
  .wh-basket { border: 0; background: transparent; padding: 0 8px; }
  .wh-basket-total { display: none; }
  .wh-basket-count { right: 0; top: -2px; }
  .wh-main { padding-top: 6px; padding-bottom: 24px; }
  .wh-hero { padding: 12px 16px; margin-bottom: 10px; }
  .wh-hero h1 { font-size: 18px; text-align: center; }
  .wh-archive-title { font-size: 28px; }
  .wh-product-page { padding: 8px 12px; }
  .wh-product-card { grid-template-columns: minmax(0, 1fr); padding: 16px; box-shadow: none; }
  .wendy-footer { margin: 0; padding: 36px 20px 16px; text-align: center; }
  .wendy-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .wendy-footer-inner > .wendy-footer-col { width: 100%; }
  .wendy-footer-brand { order: 9; }
  .wendy-footer-logo { width: 110px; margin: 0 auto 8px; display: block; }
  .whc-newsletter { margin: 0 auto; }
}

/* WooCommerce defaults need more specificity */
.woocommerce div.product.wh-product p.price, .woocommerce div.product.wh-product span.price { color: #b11226; font-size: 22px; font-weight: 700; }
.woocommerce div.product.wh-product form.cart .button.single_add_to_cart_button, .woocommerce .wh-product .single_add_to_cart_button.button.alt { background: #b11226; color: #fff; border-radius: 6px; padding: 10px 22px; }
.woocommerce div.product.wh-product form.cart .button.single_add_to_cart_button:hover { background: #920f1f; color: #fff; }
.woocommerce .wh-product .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce a.button, .woocommerce button.button { background-color: #93183B; color: #fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background-color: #b11226; color: #fff; }

/* =========================================================
   Single product: carried over from the original product template
   ========================================================= */
.wh-product-card { max-width: 1100px; margin: 0 auto; padding: 40px 20px; gap: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.woocommerce div.product.wh-product div.images { background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 20px; margin: 14px 0 30px !important; overflow: hidden; }
.woocommerce div.product.wh-product div.images img { border-radius: 12px; width: 100%; height: auto; object-fit: cover; background: #fafafa; transition: transform .25s ease, box-shadow .25s ease; }
.woocommerce div.product.wh-product div.images .woocommerce-product-gallery__image img:hover { transform: scale(1.02); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.woocommerce div.product.wh-product div.images .flex-control-thumbs { display: flex !important; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; overflow: visible; }
.woocommerce div.product.wh-product div.images .flex-control-thumbs li { float: none; width: 96px; height: 96px; margin: 0; }
.woocommerce div.product.wh-product div.images .flex-control-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,.06); opacity: 1; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.woocommerce div.product.wh-product div.images .flex-control-thumbs img:hover, .woocommerce div.product.wh-product div.images .flex-control-thumbs img.flex-active { border-color: #b11226; box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
.woocommerce div.product.wh-product p.price, .woocommerce div.product.wh-product span.price { margin: 8px 0 16px; }
.woocommerce div.product.wh-product .woocommerce-Price-amount { color: #b11226; font-weight: 700; }
.woocommerce div.product.wh-product form.cart { margin: 0 0 2em; }
.woocommerce div.product.wh-product form.cart .quantity input { border: 1px solid #ddd; border-radius: 6px; padding: 6px 10px; width: 70px; height: 40px; font-size: 15px; text-align: center; }
.wh-product .whc-benefits { margin-top: 24px; padding-top: 16px; }
.wh-product .whc-qg-link { margin-top: 10px; }
.wh-product .whc-recs { max-width: 1100px; }
@media (max-width: 768px) {
  .woocommerce div.product.wh-product div.images { padding: 12px; }
  .woocommerce div.product.wh-product div.images .flex-control-thumbs li { width: 80px; height: 80px; }
}
@media (max-width: 480px) {
  .woocommerce div.product.wh-product div.images .flex-control-thumbs li { width: 68px; height: 68px; }
}
@media (max-width: 767px) { .wh-product-card { padding: 16px; } }

/* Footer runs edge to edge */
.wendy-footer { margin: 0; }
