/*
Theme Name: Search Bazaar Shop
Theme URI: https://github.com/search-bazaar
Description: Child theme of Home Accessories Shop carrying the Search Bazaar catalogue — honest home & decor content, prototype guardrails and catalogue styling. The parent theme is kept byte-for-byte as delivered; everything project-specific lives here.
Author: Search Bazaar (CSET489 prototype)
Template: home-accessories-shop
Version: 1.0.0
Text Domain: search-bazaar-shop
*/

/* ============================================================
   Search Bazaar Shop — child overrides
   Layer: loaded after the parent style.css; wins over it.
   Contents:
   1. Offer statistics + demo price (replaces the countdown)
   2. Header icon links + topbar
   3. Hero ornaments (circular button, rail cards)
   4. Footer contrast
   5. Catalogue content (spec sheets, category copy, inner pages)
   6. Inner-page covers + breadcrumbs
   7. Contrast rules (black ink on orange)
   ============================================================ */

/* ---------- 1. Offer statistics + demo price ---------- */
.sb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.sb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 8px 10px 7px;
  border-radius: 10px;
  background: #1D1D1D;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.sb-stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.sb-stat-label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFB27D;
}
.sb-price-big {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 0 6px;
}
.sb-price-num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.sb-price-label {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #FFB27D;
}
/* offer card: give the text column room and stop wrapping */
.offer-section .offer-left-inner > .offer-inner-left { flex-basis: 52% !important; }
.offer-section .offer-left-inner > .offer-inner-right { flex-basis: 48% !important; }
.offer-section .offer-left-box .offer-left-btm { flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ---------- 2. Header icon links + topbar ---------- */
.header-woo-icons .header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
}
.header-woo-icons .header-icon-link:hover {
  background: #FF681A;
  transform: translateY(-1px);
}
.header-woo-icons .header-icon-link svg { width: 19px; height: 19px; }
.topbar-right-box p { margin: 0; }
.topbar-right-box a { text-decoration: underline; text-underline-offset: 2px; }
.topbar-right-box a:hover { opacity: 0.8; }

/* ---------- 3. Hero ornaments ---------- */
.banner-section .banner-video .video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.banner-section .banner-video .video-btn:hover {
  background-color: var(--wp--preset--color--primary) !important;
  color: #fff !important;
}
/* second rail card gets the reference's orange treatment */
.banner-right-box.banner-right-middle .wp-block-cover__background {
  background-color: var(--wp--preset--color--primary) !important;
  opacity: 1 !important;
}
.banner-right-box.banner-right-middle p a { color: #1D1D1D !important; }
.banner-right-box:hover .wp-block-cover__background { opacity: 1 !important; }
.banner-right-box:hover p a { color: #1D1D1D !important; }
.banner-right-box { transition: transform 0.2s ease; }
.banner-right-box:hover { transform: translateY(-2px); }

/* ---------- 4. Footer contrast ---------- */
.scroll-top-box img { filter: none; }
.scroll-top-box .wp-block-button__link { background: transparent !important; padding: 0 !important; }
.footer-section a:hover { text-decoration: underline; }

/* ---------- 5. Catalogue content (spec sheets, category copy) ---------- */
.sb-details { margin-top: 28px; }
.sb-details details,
.entry-content details,
.wp-block-woocommerce-product-details details {
  background: #fff;
  border: 1px solid #ECE7DE;
  border-radius: 12px;
  margin: 0 0 10px;
  overflow: hidden;
}
.sb-details summary,
.entry-content details summary,
.wp-block-woocommerce-product-details details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 15.5px;
  color: #1D1D1D;
}
.sb-details summary::-webkit-details-marker,
.entry-content details summary::-webkit-details-marker,
.wp-block-woocommerce-product-details details summary::-webkit-details-marker { display: none; }
.sb-details summary::after,
.entry-content details summary::after,
.wp-block-woocommerce-product-details details summary::after { content: '+'; font-weight: 600; color: #FF681A; }
.sb-details details[open] summary::after,
.entry-content details[open] summary::after,
.wp-block-woocommerce-product-details details[open] summary::after { content: '–'; }
.sb-details details > *:not(summary),
.entry-content details > p,
.entry-content details > ul,
.wp-block-woocommerce-product-details details > p {
  padding: 0 18px 14px;
  color: #4A4A4A;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
table.sb-specs { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
table.sb-specs th,
table.sb-specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #F0EBE2; font-size: 14.5px; }
table.sb-specs th { width: 34%; color: #797979; font-weight: 500; }
table.sb-specs td { color: #1D1D1D; font-weight: 500; }
.sb-option { display: inline-block; padding: 8px 16px; border: 1px solid #DDD6CC; border-radius: 6px; margin: 0 8px 8px 0; font-size: 14px; font-weight: 500; }
.sb-option:has(input:checked) { background: #1D1D1D; color: #fff; border-color: #1D1D1D; }
.sb-prototype-cta { margin-top: 16px; padding: 12px 16px; border-left: 4px solid #FF681A; background: #FFF4EC; border-radius: 6px; font-size: 14px; color: #6B6259; }
.sb-details a { text-decoration: none; }

/* category copy + FAQ blocks rendered by [sb_category_copy] */
.sb-term-desc-wrap { margin: 36px auto 16px; padding: 0 20px; }
.sb-term-desc { background: #fff; border: 1px solid #ECE7DE; border-radius: 15px; padding: 28px 30px; max-width: 980px; margin: 0 auto; }
.sb-term-desc p { font-size: 15.5px; line-height: 1.65; color: #4A453E; }
.sb-term-desc h2 { font-size: 22px; margin: 22px 0 10px; }
.sb-term-desc details { border: 1px solid #EFE9DF; border-radius: 10px; margin: 8px 0; background: #FBF8F4; overflow: hidden; }
.sb-term-desc details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; list-style: none; }
.sb-term-desc details summary::-webkit-details-marker { display: none; }
.sb-term-desc details summary::after { content: '+'; float: right; color: #FF681A; font-weight: 700; }
.sb-term-desc details[open] summary::after { content: '–'; }
.sb-term-desc details p { padding: 0 16px 12px; margin: 0; font-size: 14.5px; }

/* testimonial/promise cards: body text below AA at #797979 */
.testimonial-section .client-box p { color: #6B6259 !important; }

/* ---------- 6. Inner-page covers + breadcrumbs ---------- */
.innerpage-banner { margin-bottom: 0; }
.innerpage-banner .wp-block-post-title,
.innerpage-banner .wp-block-query-title,
.innerpage-banner h1,
.innerpage-banner h2 { color: #fff; }
.sb-breadcrumbs { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; padding: 0 24px; }

/* ---------- 6b. Legacy page content (sb-* card markup) ---------- */
.sb-hero, .sb-section, .sb-details, .sb-guides-bento, .sb-poster, .sb-bento {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.sb-hero { margin-top: 30px; margin-bottom: 24px; padding: 0 20px; }
.sb-hero h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; }
.sb-hero .sb-lede { margin: 0 0 10px; }
.sb-section { margin-top: 36px; margin-bottom: 36px; padding: 0 20px; }
.sb-section h2 { font-size: 28px; margin-bottom: 6px; }
.sb-sub { color: #797979; margin-bottom: 18px; }
.sb-issue { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #FF681A; }
.sb-issue em { font-style: normal; }
.sb-chip { display: inline-block; padding: 6px 14px; border-radius: 4px; background: #FBF6F0; border: 1px solid #EFE7DC; margin: 0 8px 8px 0; font-size: 14px; font-weight: 500; }
.sb-pb, .sb-pb-text, .sb-prod, .sb-post-card, .sb-collection {
  display: block; background: #fff; border: 1px solid #ECE7DE; border-radius: 15px; padding: 22px; margin-bottom: 14px;
}
.sb-pb-name, .sb-pb-line { font-weight: 700; }
.sb-pb-name, .sb-pb-line, .sb-pb-attr, .sb-pb-sub, .sb-prod-cat, .sb-prod-name, .sb-prod-price { display: block; }
.sb-pb-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sb-pb-line { font-size: 19px; }
.sb-pb-attr { color: #797979; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 8px; }
.sb-pb-sub { color: #797979; font-size: 14px; margin-top: 4px; }
.sb-pb-text { margin-bottom: 12px; }
.sb-pb img, .sb-prod img { max-width: 100%; height: auto; border-radius: 10px; }
.sb-pb-text strong, .sb-pb strong { display: block; margin-bottom: 4px; }
.sb-pb-q { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.sb-pb-a { display: block; color: #5A544C; font-size: 14.5px; line-height: 1.55; }
.sb-pb-brown { background: #FFF4EC; border-color: #F6DFC9; }
.sb-poster .sb-c6x1, .sb-bento .sb-c6x1 { grid-column: 1 / -1; }
.sb-bento, .sb-poster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sb-guides-bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sb-container { max-width: none; }
.sb-guides-bento a, .sb-poster a { text-decoration: none; }
.sb-prod-cat { color: #797979; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.sb-prod-name { font-weight: 600; margin: 6px 0 2px; }
.sb-prod-price { color: #FF681A; font-weight: 700; }

/* ---------- 7. Contrast: black ink on orange surfaces ---------- */
.topbar p, .topbar a,
.banner-small-title,
.about-small-title, .news-small-title, .faq-small-title,
.offer-left-box .offer-sub-title,
.offer-right-box .offer-sub-title { color: #1D1D1D !important; }
.topbar a:hover { color: #fff !important; }
.offer-right-box .offer-main-title,
.offer-right-box .offer-para { color: #1D1D1D !important; }
a.wp-element-button.has-primary-background-color,
button.wp-element-button.has-primary-background-color,
.wp-block-button__link.has-primary-background-color,
.wp-block-woocommerce-product-button .wp-element-button,
.woocommerce a.button,
.woocommerce button.button { color: #1D1D1D !important; }
.offer-section .offer-btn a:after { filter: brightness(0); }
.woocommerce a.button:after { filter: none; }
