/* Headless storefront additions. Everything visual comes from the ported BigCommerce theme CSS
   (public/theme/css/*) plus the live page's inline styles (live-inline.css); this file only covers the
   handful of pieces that were driven by theme JavaScript on BigCommerce (slick carousels, drawers, gates). */

/* --- product rails on the home page: native cards inside the lm-pc scroll rail --- */
.lm-pc-card.gbd-pc-card { padding: 0; border: 1px solid #eaeaea; }
.lm-pc-card.gbd-pc-card .card { margin: 0; height: 100%; }
.lm-pc-row > .gbd-pc-card { scroll-snap-align: start; }
.lm-pc-row, .lm-cc-row { scroll-snap-type: x proximity; scrollbar-width: thin; }

/* --- slick replacement: horizontal snap carousel for Top Sellers / You May Also Like --- */
.gbd-carousel { position: relative; }
.gbd-carousel__list { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gbd-carousel__list::-webkit-scrollbar { display: none; }
.gbd-carousel__track { display: flex; gap: 16px; width: auto !important; transform: none !important; }
.gbd-carousel__track > .productCarousel-slide { flex: 0 0 calc(25% - 12px); scroll-snap-align: start; width: auto !important; }
@media (max-width: 980px) { .gbd-carousel__track > .productCarousel-slide { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 800px) { .gbd-carousel__track > .productCarousel-slide { flex-basis: calc(50% - 8px); } }
.gbd-carousel .slick-arrow { z-index: 2; }
.productView .right-sideBar .gbd-carousel__track { flex-direction: column; }
.productView .right-sideBar .gbd-carousel__track > .productCarousel-slide { flex-basis: auto; }

/* --- hero --- */
.gbd-hero .slick-list { overflow: hidden; }
.gbd-hero__track { display: flex; transition: transform .5s ease; width: 100% !important; }
.gbd-hero__track > .slick-slide { flex: 0 0 100%; width: 100% !important; display: block; }
.gbd-hero .heroCarousel-image { width: 100%; height: auto; display: block; }

/* --- sidebar sibling list --- */
#side-categories .sidenav-list .navPages-item.is-active > a { font-weight: 700; color: #e07b00; }

/* --- product page: Option/Flavor dropdown + qty --- */
.lm-flavor { margin: 0 0 16px; }
.lm-flavor-label { display: block; font-weight: 700; margin-bottom: 6px; }
.lm-flavor-select { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: #fff; }
.form-increment .form-input--incrementTotal { width: 60px; text-align: center; }
.gbd-inline-error { color: #df2126; font-size: 13px; margin: 6px 0 0; }
.button.disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.gbd-oos-flag .sale-text { background: #111; }

/* --- product page tabs (JS-free) --- */
.productView-description .tabs-contents .tab-content { display: none; }
.productView-description .tabs-contents .tab-content.is-active { display: block; }
.productView-description .tabs .tab { cursor: pointer; }
.slide-read-more.overflow-hidden { position: relative; }
.slide-read-more.overflow-hidden::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.slide-read-more-button { cursor: pointer; color: #e07b00; font-weight: 700; margin: 8px 0 0; }

/* --- reviews block (WooCommerce reviews in the Fera carousel's place) --- */
.gbd-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; text-align: center; padding: 10px 0 20px; }
.gbd-review__stars .icon { width: 18px; height: 18px; }
.gbd-review__stars .icon svg { fill: #111; }
.gbd-review__text { font-size: 14px; margin: 8px 0; }
.gbd-review__product { font-size: 12px; color: #777; margin: 0 0 4px; }
.gbd-review__author { font-weight: 700; font-size: 14px; }
.gbd-verified { color: #111; font-size: 12px; }
.gbd-muted { color: #888; text-align: center; padding: 20px 0; }
.gbd-link-btn { font-size: 13px; font-weight: 700; color: #111; text-decoration: underline; }

/* --- cart page / checkout --- */
.gbd-cart-table { width: 100%; border-collapse: collapse; }
.gbd-cart-table th, .gbd-cart-table td { padding: 12px 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.gbd-cart-table img { width: 80px; height: 80px; object-fit: contain; }
.gbd-cart-qty { display: inline-flex; align-items: center; gap: 6px; }
.gbd-cart-qty button { width: 32px; height: 32px; border: 1px solid #ccc; background: #fff; border-radius: 4px; cursor: pointer; }
.gbd-cart-totals { max-width: 380px; margin-left: auto; margin-top: 20px; }
.gbd-cart-totals .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.gbd-cart-totals .row.grand { font-weight: 700; font-size: 18px; border-bottom: 0; }
.gbd-checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin: 20px 0 40px; }
@media (max-width: 900px) { .gbd-checkout { grid-template-columns: 1fr; } }
.gbd-checkout .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gbd-checkout .form-field { margin-bottom: 12px; }
.gbd-checkout .form-label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.gbd-checkout .form-input, .gbd-checkout .form-select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.gbd-summary { background: #f7f7f7; padding: 20px; border-radius: 6px; }
.gbd-summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.gbd-summary .line.grand { font-weight: 700; font-size: 18px; border-top: 1px solid #ddd; margin-top: 8px; padding-top: 12px; }
.gbd-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 8px; cursor: pointer; }
.gbd-radio.selected { border-color: #F9AE40; background: #fffaf0; }
.gbd-alert { background: #fdecea; color: #b3261e; padding: 12px; border-radius: 4px; margin: 12px 0; }
.gbd-success { background: #eaf7ea; color: #1e6e1e; padding: 12px; border-radius: 4px; margin: 12px 0; }
.gbd-coupon { display: flex; gap: 8px; max-width: 380px; }
.gbd-coupon input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* --- account --- */
.gbd-account { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin: 20px 0 50px; }
@media (max-width: 800px) { .gbd-account { grid-template-columns: 1fr; } }
.gbd-account nav a { display: block; padding: 10px 0; border-bottom: 1px solid #eee; color: #111; }
.gbd-account nav a.active { font-weight: 700; color: #e07b00; }
.gbd-orders-table { width: 100%; border-collapse: collapse; }
.gbd-orders-table th, .gbd-orders-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.gbd-auth { max-width: 460px; margin: 30px auto 60px; }
.gbd-auth .form-field { margin-bottom: 14px; }
.gbd-auth .form-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.gbd-auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 30px 0 60px; }
@media (max-width: 800px) { .gbd-auth-cols { grid-template-columns: 1fr; } }

/* --- blog --- */
.gbd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 20px 0 40px; }
@media (max-width: 900px) { .gbd-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gbd-blog-grid { grid-template-columns: 1fr; } }
.gbd-post { max-width: 860px; margin: 0 auto 60px; }
.gbd-post img { max-width: 100%; height: auto; }
.gbd-post-hero { width: 100%; max-height: 480px; object-fit: cover; border-radius: 6px; margin: 16px 0; }

/* --- age gate --- */
.gbd-agegate { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 200000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gbd-agegate__box { background: #fff; border-radius: 10px; padding: 36px 30px; max-width: 460px; text-align: center; }
.gbd-agegate__box h2 { margin: 16px 0 10px; font-size: 24px; }
.gbd-agegate__box p { color: #444; font-size: 14px; }
.gbd-agegate__btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* --- misc --- */
.gbd-page-content { max-width: 960px; margin: 0 auto 50px; }
.gbd-page-content img { max-width: 100%; height: auto; }
.gbd-contact-form { max-width: 620px; }
.gbd-contact-form .form-field { margin-bottom: 14px; }
.gbd-contact-form .form-input, .gbd-contact-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.gbd-pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.gbd-empty { text-align: center; padding: 60px 20px; color: #666; }
.gbd-search-form { display: flex; gap: 8px; max-width: 600px; margin: 10px 0 24px; }
.gbd-search-form input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* --- states the BigCommerce theme JS used to set at runtime --- */
.category .page-content.both-grid-list-views, .brand .page-content.both-grid-list-views, main.search.both-grid-list-views { opacity: 1 !important; }
section.productView-details { visibility: visible !important; }
.gbd-oos-flag .sale-text { background: #111 !important; color: #fff !important; }

/* product page fixes */
.gbd-right-sidebar .gbd-carousel__track { flex-direction: column; gap: 12px; }
.gbd-right-sidebar .gbd-carousel__list { max-height: 1120px; overflow-y: auto; overflow-x: hidden; }
.gbd-right-sidebar .gbd-carousel__track > .productCarousel-slide { flex-basis: auto; width: 100% !important; }
.gbd-right-sidebar .gbd-carousel .slick-arrow { display: none !important; }
.productView-product .productView-info { clear: both; display: block; margin: 0 0 12px; }
.productView-product .productView-info dt, .productView-product .productView-info dd { display: inline-block; margin: 0 4px 0 0; }
.productView-options { clear: both; }
.gbd-thumbs { display: flex; gap: 6px; width: auto !important; transform: none !important; }
.gbd-thumbs > .slick-slide { width: 105px !important; cursor: pointer; }
.gbd-thumbs > .slick-slide.slick-current img { outline: 2px solid #F9AE40; }
.productView-options .mv-gift { clear: both; padding-top: 6px; }

/* mobile header: the BigCommerce theme JS moved the black bar + account icons into .top-menu on phones */
.top-menu-wrapper > .lm-topbar-black { display: none; }
@media (max-width: 767px) {
  .top-menu-wrapper > .lm-topbar-black { display: block; }
  .header-container.sticky-header > .lm-topbar-black { display: none !important; }
  header.header > .lm-header-acct:not(.gbd-mobile-acct) { display: none !important; }
  header.header .navPages-container.search-container { display: none !important; }
  .top-menu .content > .right.account-links.gbd-mobile-acct { display: block !important; }
}
.top-menu .content > .right.account-links.gbd-mobile-acct { display: none; }
