/*
Theme Name:   Flatsome Child (Black Wolf)
Description:  Child theme for Flatsome - Black Wolf Collectibles design (matches the Shopify "Refresh" storefront).
Template:     flatsome
Version:      1.0.0
Text Domain:  flatsome-child
*/

/* ---------- Design tokens (from blackwolfcollectibles.com) ---------- */
:root {
  --bw-navy: #0E1B4D;
  --bw-blue: #4770DB;
  --bw-red: #E32402;
  --bw-bg: #EFF0F5;
  --bw-text: #3E4770;
  --bw-radius-btn: 40px;
  --bw-radius-input: 26px;
  --bw-radius-media: 20px;
  --bw-radius-card: 18px;
}

body { background: var(--bw-bg); color: var(--bw-text); letter-spacing: .06rem; line-height: 1.8; }
#main, #wrapper { background: var(--bw-bg); }
h1, h2, h3, h4, h5, h6, .heading-font { color: var(--bw-navy); letter-spacing: normal; }
a { color: var(--bw-navy); }
a:hover { color: var(--bw-blue); }

/* ---------- Announcement bars ---------- */
.header-top { border-bottom: 0; }
#top-bar .flex-col.flex-center { flex: 1 1 auto; width: 100%; }
.bw-announce { position: relative; height: 22px; width: 900px; max-width: 92vw; margin: 0 auto; overflow: hidden; text-align: center; font-size: 13px; letter-spacing: .1rem; color: #fff; }
.bw-announce > span { position: absolute; left: 0; right: 0; opacity: 0; animation: bw-rotate 15s infinite; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-announce > span:nth-child(2) { animation-delay: 5s; }
.bw-announce > span:nth-child(3) { animation-delay: 10s; }
.bw-announce a { color: #fff; }
@keyframes bw-rotate { 0%, 2% { opacity: 0; transform: translateY(6px); } 5%, 30% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-6px); } }

.bw-promo-bar { background: var(--bw-red); color: #fff; }
.bw-promo-bar .container { display: flex; align-items: center; justify-content: center; min-height: 42px; position: relative; }
.bw-promo-bar .bw-promo-social { position: absolute; left: 15px; display: flex; gap: 14px; }
.bw-promo-bar .bw-promo-social a { color: #fff; opacity: .9; display: inline-flex; }
.bw-promo-bar .bw-promo-social a:hover { opacity: 1; }
.bw-promo-bar .bw-promo-social svg { width: 18px; height: 18px; fill: currentColor; }
.bw-promo-bar .bw-promo-link { color: #fff; font-size: 14px; letter-spacing: .1rem; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 849px) { .bw-promo-bar .bw-promo-social { display: none; } }

/* ---------- Header ---------- */
.header-main { border-bottom: 0; }
.header-main .header-social-icons a, .header-main .header-nav > li > a { color: #000; }
.header-main .header-social-icons .icon-facebook, .header-main .header-social-icons .icon-instagram,
.header-main .header-social-icons .icon-tiktok, .header-main .header-social-icons .icon-youtube { font-size: 18px; }
.header-bottom { border-top: 0; border-bottom: 1px solid rgba(14, 27, 77, .08); }
.header-bottom .header-bottom-nav { flex-wrap: wrap; justify-content: center; row-gap: 0; }
.header-bottom .nav > li > a { color: rgba(0, 0, 0, .75); font-size: 15px; letter-spacing: .06rem; padding: 10px 0; text-transform: none; }
.header-bottom .nav > li > a:hover, .header-bottom .nav > li.active > a { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.header-bottom .nav > li { margin: 0 10px; }
.nav-dropdown { border-radius: 0 0 var(--bw-radius-card) var(--bw-radius-card); }

/* ---------- Buttons & inputs ---------- */
.button, button, input[type="submit"], input[type="button"], .add_to_cart_button, .single_add_to_cart_button, .checkout-button { border-radius: var(--bw-radius-btn) !important; letter-spacing: .1rem; text-transform: none; }
.button.primary, .button.alt, .single_add_to_cart_button, .checkout-button, button[type="submit"] { background-color: var(--bw-navy); }
input[type="email"], input[type="text"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], select, textarea { border-radius: var(--bw-radius-input); }
.quantity input[type="number"] { border-radius: 0; }

/* ---------- Media & cards ---------- */
.banner, .ux-slider .banner, .bw-slide .bg { border-radius: 0; }
.product-small.box { background: #fff; border-radius: var(--bw-radius-card); overflow: hidden; height: 100%; }
.product-small .box-image { border-radius: var(--bw-radius-card) var(--bw-radius-card) 0 0; overflow: hidden; background: #fff; }
.product-small .box-text { padding: 14px 16px 18px; }
.product-small .name.product-title a { color: var(--bw-navy); font-size: 15px; line-height: 1.4; }
.product-small .price { color: var(--bw-navy); font-size: 15px; }
.product-small .add-to-cart-button .button { width: 100%; margin-top: 10px; }
.products .col-inner { height: 100%; }
.woocommerce-product-gallery__image img, .product-gallery-slider img { border-radius: var(--bw-radius-media); }

.badge-container .out-of-stock-label, .out-of-stock-label { border-radius: var(--bw-radius-btn); }

/* ---------- Homepage: slideshow text boxes ---------- */
.bw-slide .text-box .text-box-content { background: var(--bw-bg); border-radius: var(--bw-radius-media); padding: 28px 36px; }
.bw-slide .text-box h2 { font-size: clamp(22px, 3.2vw, 40px); margin-bottom: .3em; }
.bw-slide .text-box p { color: var(--bw-text); margin-bottom: 1em; letter-spacing: .06rem; }
.bw-section-title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 30px; }

/* ---------- Homepage: featured product ---------- */
.bw-featured { padding: 36px 0; }
.bw-featured .bw-featured-media img { border-radius: var(--bw-radius-media); background: #fff; }
.bw-featured .bw-vendor { font-size: 12px; letter-spacing: .13rem; text-transform: uppercase; color: var(--bw-text); }
.bw-featured h2 { font-size: clamp(26px, 3vw, 40px); margin: 6px 0 14px; }
.bw-featured .price { font-size: 20px; color: var(--bw-navy); margin-bottom: 18px; display: block; }
.bw-featured .price del { opacity: .6; margin-right: 8px; }
.bw-featured .bw-buy .button { width: 100%; max-width: 440px; padding: 10px 30px; }
.bw-featured .bw-details { display: inline-block; margin-top: 16px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter ---------- */
.bw-newsletter { background: #fff; padding: 60px 15px; text-align: center; }
.bw-newsletter h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 10px; color: #000; }
.bw-newsletter p { color: rgba(0, 0, 0, .75); margin-bottom: 24px; }
.bw-newsletter form, .bw-newsletter .wpforms-container { max-width: 520px; margin: 0 auto !important; }
.bw-newsletter .wpforms-field-container .wpforms-field { padding: 0 !important; }
.bw-newsletter .wpforms-form { display: flex; gap: 10px; align-items: flex-start; }
.bw-newsletter .wpforms-field-container { flex: 1; }
.bw-newsletter .wpforms-submit-container { padding: 0 !important; margin: 0 !important; }
.bw-newsletter input[type="email"] { width: 100% !important; max-width: none !important; height: 46px; border: 1px solid rgba(0, 0, 0, .55); padding: 0 20px; }
.bw-newsletter .wpforms-submit { height: 46px; padding: 0 26px !important; background: #000 !important; color: #fff !important; border: 0 !important; }

/* ---------- Footer ---------- */
.bw-footer { background: #fff; color: #000; padding: 50px 15px 30px; text-align: center; border-top: 1px solid rgba(0, 0, 0, .08); }
.bw-footer .bw-footer-name { font-family: inherit; font-size: 16px; letter-spacing: .1rem; margin-bottom: 8px; color: #000; }
.bw-footer p { margin: 0 0 6px; font-size: 14px; letter-spacing: .08rem; color: rgba(0, 0, 0, .75); }
.bw-footer .bw-footer-social { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.bw-footer .bw-footer-social a { color: #000; }
.bw-footer .bw-footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.absolute-footer { background: #fff !important; color: rgba(0, 0, 0, .75); border-top: 1px solid rgba(0, 0, 0, .08); font-size: 12px; letter-spacing: .06rem; }
.absolute-footer a { color: rgba(0, 0, 0, .75); }
.absolute-footer .bw-policies a { margin: 0 8px; }
.footer-secondary .payment-icons .payment-icon { background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; }
.footer-secondary .payment-icons svg { fill: #333; }

/* ---------- Shop / collection pages ---------- */
.shop-page-title, .category-page-title { background: var(--bw-bg); }
.woocommerce-breadcrumb, .breadcrumbs { text-transform: none; letter-spacing: .06rem; }
.product-main .product-title { font-size: clamp(26px, 3vw, 40px); }
.product-main .price { color: var(--bw-navy); }

/* ---------- Sale badge: rounded red pill ---------- */
.badge-container { margin: 14px 0 0 14px; }
.badge-container .badge { width: auto; height: auto; min-width: 0; margin: 0 0 6px; }
.badge-container .badge-inner.on-sale,
.badge-container .badge-inner.secondary.on-sale {
  background: var(--bw-red) !important; color: #fff !important; border: 0 !important;
  border-radius: 40px; padding: 6px 16px; height: auto; line-height: 1.2;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(227, 36, 2, .35);
}
.badge-container .badge-inner.on-sale .onsale { color: #fff; }
.product-main .badge-container { margin: 16px 0 0 16px; }

/* ---------- Search (header lightbox, dropdown, mobile menu) ---------- */
.searchform .flex-row {
  background: #fff; border: 1px solid rgba(14, 27, 77, .15); border-radius: 40px;
  padding: 5px 5px 5px 8px; box-shadow: 0 8px 28px rgba(14, 27, 77, .18); align-items: center;
}
.searchform .flex-col.flex-grow { flex: 1 1 auto; }
.searchform .search-field, .searchform input[type="search"] {
  border: 0 !important; box-shadow: none !important; background: transparent !important;
  height: 48px; padding: 0 16px; font-size: 16px; color: var(--bw-navy); border-radius: 40px !important;
}
.searchform .search-field:focus { outline: none; }
.searchform .ux-search-submit, .searchform .ux-search-submit.button {
  width: 48px; height: 48px; min-height: 48px; padding: 0; margin: 0;
  border-radius: 50% !important; background: var(--bw-navy) !important; color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: none; border: 0;
}
.searchform .ux-search-submit:hover { background: var(--bw-blue) !important; }
.searchform .ux-search-submit i { font-size: 18px; top: 0; }
.searchform:focus-within .flex-row { border-color: var(--bw-blue); box-shadow: 0 8px 28px rgba(71, 112, 219, .35); }
#search-lightbox .searchform { max-width: 640px; margin: 0 auto; }
#search-lightbox .searchform .search-field { height: 58px; font-size: 18px; }
#search-lightbox .searchform .ux-search-submit { width: 58px; height: 58px; min-height: 58px; }
#search-lightbox .searchform .ux-search-submit i { font-size: 22px; }
.live-search-results { border-radius: var(--bw-radius-card); overflow: hidden; margin-top: 10px; box-shadow: 0 12px 30px rgba(14, 27, 77, .18); }
