/* ============================================================
   Product + Category pages — oceans-halo-2026
   Loaded ONLY on: single halo_products, halo_products archive,
   and the `products` taxonomy term pages (see functions.php).
   Kept out of the sitewide css/style.css to avoid collisions.
   ============================================================ */


/* Keyboard focus — css/style.css:11 sets `a:focus, button:focus { outline: none; }`
   sitewide with no replacement, which hides the focus indicator for every
   link/button here. Restore it, scoped to these two templates, visible only
   for keyboard focus (not mouse clicks) via :focus-visible. */
.products-archive a:focus-visible,
.products-archive button:focus-visible,
.product-detail a:focus-visible,
.product-detail button:focus-visible {
    outline: 2px solid #27826b;
    outline-offset: 2px;
}

/* ============================================================
   Products Archive
   ============================================================ */

/* Filter Nav */
.products-filter-nav { padding: 24px 0 0; }
.products-filter-nav__inner { display: flex; flex-wrap: nowrap; justify-content: center; gap: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.products-filter-nav__inner::-webkit-scrollbar { display: none; }
/* Desktop: plain text tabs, bottom rule on active only */
.filter-btn { display: inline-block; white-space: nowrap; flex-shrink: 0; padding: 9px 0 10px; border: none; border-bottom: 2px solid transparent; border-radius: 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: 0.35px; text-transform: uppercase; text-align: center; color: #212529; background: transparent; text-decoration: none; transition: border-color .15s, color .15s; margin-bottom: -1px; }
.filter-btn:hover { color: #212529; border-bottom-color: #212529; text-decoration: none; background: transparent; }
.filter-btn.active { color: #27826b; border-bottom-color: #27826b; text-decoration: none; background: transparent; }

/* Hero — sits flush below filter nav, no top gap */
.products-hero { padding: 0 0 32px; }
.products-hero__inner { display: flex; align-items: stretch; gap: 48px; background: #f6f6f6; border: 1px solid #d1d5dc; border-radius: 12px; padding: 0 0 0 48px; overflow: hidden; }
.products-hero__inner--no-image { padding: 40px 48px; align-items: center; }
.products-hero__text { flex: 1; padding: 40px 0; }
.products-hero__text h1 { color: #27826b; margin-top: 0; margin-bottom: 8px; }
.products-hero__tagline { font-family: 'Open Sans', sans-serif; font-size: 18px; line-height: 28px; color: #212529; margin: 0; }
.products-hero__tagline p { margin: 0; font-size: 18px; line-height: 28px; }
.products-hero__image { flex: 0 0 56%; max-width: 56%; overflow: hidden; }
.products-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product Grid */
.products-grid-section { padding: 16px 0 80px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Subcategory groups */
.products-subgroup { margin-bottom: 48px; }
.products-subgroup:last-child { margin-bottom: 0; }
.products-subgroup__heading { font-family: 'Albania Bold'; font-size: 32px; line-height: 36px; color: #212529; margin: 0 0 24px; }

/* Product cards */
.product-card { background: #fff; border: 1px solid #d1d5dc; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px -1px rgba(0,0,0,0.1), 0 1px 3px 0 rgba(0,0,0,0.1); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 4px 12px -2px rgba(0,0,0,0.12), 0 4px 16px 0 rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-card a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1e2939; height: 100%; }
.product-card a:hover { text-decoration: none; color: #1e2939; }
.product-card__img { width: 100%; text-align: center; padding: 30px 26px 20px; }
.product-card__img img { max-width: 100%; height: 220px; object-fit: contain; transition: transform .2s; display: block; margin: 0 auto; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__title { font-family: 'Open Sans', sans-serif; font-size: 18px; line-height: 27px; text-align: left; margin: 0; font-weight: 400; color: #1e2939; padding: 0 20px 20px; width: 100%; }
.products-empty { padding: 40px 0; text-align: center; color: #666; }

/* Responsive — Products Archive */
@media screen and (max-width: 1199px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .products-hero__inner { gap: 32px; padding: 0 0 0 32px; }
    .products-hero__inner--no-image { padding: 32px; }
    .products-hero__text { padding: 32px 0; }
    .products-hero__image { flex: 0 0 50%; max-width: 50%; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product-card__title { font-size: 16px; line-height: 24px; }
    .product-card__img img { height: 180px; }
}
@media screen and (max-width: 767px) {
    .products-hero { padding: 12px 0 24px; }
    /* On mobile: strip card styling from outer wrapper; image gets the bordered card */
    .products-hero__inner { flex-direction: column; gap: 0; padding: 0; background: transparent; border: none; border-radius: 0; }
    .products-hero__image { order: 1; flex: 0 0 100%; max-width: 100%; width: 100%; background: #f6f6f6; border: 1px solid #d1d5dc; border-radius: 12px; padding: 0; overflow: hidden; }
    .products-hero__image img { height: 220px; object-fit: cover; }
    /* Text sits below the card */
    .products-hero__text { order: 2; text-align: left; padding: 20px 0 0; background: transparent; }
    .products-hero__text h1 { font-size: 32px; line-height: 32px; margin-bottom: 8px; }
    .products-hero__tagline { font-size: 16px; line-height: 24px; }
    .products-hero__tagline p { font-size: 16px; line-height: 24px; }
    /* Mobile filter: pill chips — override desktop tab style */
    .products-filter-nav { padding: 48px 0 16px; }
    .products-filter-nav__inner { gap: 10px; justify-content: flex-start; }
    .filter-btn { border: 1px solid #212529; border-bottom: 1px solid #212529; border-radius: 100px; padding: 8px 16px; margin-bottom: 0; font-size: 14px; line-height: 20px; font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 0.35px; color: #212529; background: #fff; transition: background .2s, color .2s, border-color .2s; }
    .filter-btn:hover { background: #212529; color: #fff; border-color: #212529; border-bottom-color: #212529; }
    .filter-btn.active { background: #27826b; color: #fff; border-color: #27826b; border-bottom-color: #27826b; }
    /* Mobile grid */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products-grid-section { padding: 8px 0 60px; }
    .products-subgroup { margin-bottom: 32px; }
    .products-subgroup__heading { font-size: 24px; line-height: 28px; margin-bottom: 16px; }
    /* Mobile card */
    .product-card { border-radius: 6px; }
    .product-card__img { padding: 17px 15px 10px; }
    .product-card__img img { height: 140px; }
    .product-card__title { font-size: 14px; line-height: 18px; padding: 0 12px 14px; }
}
@media screen and (max-width: 575px) {
    .products-grid { gap: 12px; }
    .product-card__img img { height: 120px; }
}


/* ============================================================
   Product Detail Page — single-halo_products.php
   ============================================================ */

/* Breadcrumb */
.product-breadcrumb { padding: 16px 0 0; }
.product-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: 'Open Sans', sans-serif; font-size: 13px; line-height: 20px; color: #6b7280; }
.product-breadcrumb__list li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #9ca3af; }
.product-breadcrumb__list a { color: #6b7280; text-decoration: none; }
.product-breadcrumb__list a:hover { color: #27826b; text-decoration: underline; }
.product-breadcrumb__list [aria-current="page"] { color: #212529; }

/* ── Hero ── */
.product-hero { padding: 24px 0 40px; }
.product-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Gallery */
.product-gallery { display: flex; gap: 16px; }
.product-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.product-gallery__thumbs > li { display: contents; }
.product-gallery__thumb { position: relative; width: 72px; height: 72px; padding: 6px; border: 1px solid #d1d5dc; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s; overflow: hidden; }
.product-gallery__thumb.is-active,
.product-gallery__thumb:hover { border-color: #27826b; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* White overlay on non-active thumbnails */
.product-gallery__thumb:not(.is-active)::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.55); border-radius: 4px; pointer-events: none; transition: opacity .15s; }
.product-gallery__thumb:hover:not(.is-active)::after { opacity: 0; }
.product-gallery__main { flex: 1; background: #f6f6f6; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.product-gallery__main-img { width: 100%; height: 100%; object-fit: contain; padding: 24px; display: none; }
.product-gallery__main-img.is-active { display: block; }
.product-gallery__placeholder { width: 100%; height: 100%; background: #e5e7eb; }

/* Hero info */
.product-hero__info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
/* DESIGN: Albania 700, 50px */
.product-hero__title { font-family: 'Albania Bold', serif; font-size: 50px; line-height: 54px; color: #212529; margin: 0; }
.product-hero__tagline { font-family: 'Open Sans', sans-serif; font-size: 18px; line-height: 28px; color: #212529; margin: 0; }
.product-hero__rating { min-height: 28px; }

/* Size selector — DESIGN: rounded-rect (radius 10), selected = dark #212529 */
.product-sizes__label,
.product-retailers__label { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.35px; text-transform: uppercase; color: #212529; margin: 0 0 10px; }
.product-sizes__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.product-size-pill { padding: 9px 22px; border: 2px solid #d1d5dc; border-radius: 10px; background: #fff; font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 400; color: #212529; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.product-size-pill:hover { border-color: #212529; }
.product-size-pill.is-active { border-color: #212529; background: #212529; color: #fff; font-weight: 700; font-size: 16px; }

/* Retailer grid — DESIGN: 2px border, radius 10, icon = 3 concentric circles #838383 */
.product-retailers { display: flex; flex-direction: column; gap: 0; }
.product-retailers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.product-retailers__grid[data-size-index]:not(.is-active) { display: none; }
.product-retailer-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; border: 2px solid #d1d5dc; border-radius: 10px; background: #fff; font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 600; color: #212529; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.product-retailer-btn:hover { border-color: #27826b; color: #27826b; background: #f0faf7; text-decoration: none; }
.product-retailer-btn svg { flex-shrink: 0; color: #838383; }
.product-retailer-btn:hover svg { color: #27826b; }
/* Find a Store — single-column width, green border */
.product-retailer-btn--find-store { border-color: #27826b; color: #27826b; }
.product-retailer-btn--find-store:hover { background: #27826b; color: #fff; border-color: #27826b; }
.product-retailer-btn--find-store svg { color: #27826b; }
.product-retailer-btn--find-store:hover svg { color: #fff; }

/* ── Content Tabs ── */
.product-tabs-section { padding: 0 0 48px; border-top: 1px solid #d1d5dc; }
.product-tabs__nav { display: flex; align-items: center; gap: 32px; border-bottom: 1px solid #d1d5dc; margin-bottom: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-tabs__nav::-webkit-scrollbar { display: none; }
.product-tab-btn { padding: 16px 0 17px; border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.35px; text-transform: uppercase; color: #6b7280; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: color .15s, border-color .15s; margin-bottom: -1px; }
.product-tab-btn:hover { color: #212529; border-bottom-color: #212529; }
.product-tab-btn.is-active { color: #27826b; border-bottom-color: #27826b; }
/* Body: panels take 50% (aligns with gallery), certs fill remaining space */
.product-tabs__body { display: flex; gap: 48px; align-items: flex-start; padding-top: 32px; }
.product-tabs__panels { flex: 0 0 50%; max-width: 50%; min-width: 0; }
.product-tab-panel { display: none; }
.product-tab-panel.is-active { display: block; }
.product-tab-panel__content { max-width: 100%; }
.product-tab-panel__content.wysiwyg p { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 26px; color: #212529; margin: 0 0 16px; }
.wysiwyg a { color: #000; text-decoration: underline; }
.wysiwyg a:hover, .wysiwyg a:focus { color: #000; text-decoration: underline; }
/* Cert logos — horizontal row to the right of tab content */
.product-tabs__certs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; flex-shrink: 0; padding-top: 4px; }
.product-tabs__certs img { height: 96px; width: auto; display: block; }


/* ── Category Story — DESIGN: white bg (no grey) ── */
.product-category-story { padding: 48px 0; }
.product-category-story__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-category-story__image img { width: 100%; height: auto; border-radius: 10px; display: block; }
.product-category-story__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #2d2d2d; margin: 0 0 16px; }
.product-category-story__text.wysiwyg p { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 26px; color: #364153; margin: 0 0 16px; }
.product-two-col-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; margin: 16px 0 0; padding: 0; }
.product-two-col-bullets li { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 22px; color: #364153; padding-left: 20px; position: relative; }
.product-two-col-bullets li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #27826b; }

/* ── Why Trayless ── */
.product-why-trayless { padding: 48px 0; }
.product-why-trayless__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.product-why-trayless__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0 0 16px; }
.product-why-trayless__text.wysiwyg p { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 26px; color: #364153; margin: 0 0 16px; }
.product-why-trayless__image img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* ── Recipe Ideas — DESIGN: white bg, image panel #f8f8f8, title 18/400 ── */
.product-recipes { padding: 48px 0; }
.product-recipes__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.product-recipes__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0; }
.product-recipes__view-all { font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 400; color: #27826b; text-decoration: none; }
.product-recipes__view-all:hover { text-decoration: underline; }
.product-recipes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.recipe-card { display: block; text-decoration: none; color: #1e2939; background: #fff; border: 1px solid #d1d5dc; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px -1px rgba(0,0,0,.10), 0 1px 3px 0 rgba(0,0,0,.10); transition: box-shadow .2s, transform .2s; }
.recipe-card:hover { box-shadow: 0 4px 12px -2px rgba(0,0,0,0.12); transform: translateY(-2px); text-decoration: none; color: #1e2939; }
.recipe-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #f8f8f8; }
.recipe-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.recipe-card:hover .recipe-card__img img { transform: scale(1.04); }
.recipe-card__title { font-family: 'Open Sans', sans-serif; font-size: 18px; line-height: 26px; font-weight: 400; color: #1e2939; padding: 16px; margin: 0; }

/* ── FAQs — DESIGN: separate bordered cards, green chevron ── */
.product-faqs { padding: 48px 0; }
.product-faqs__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0 0 24px; }
.product-faqs__list { display: flex; flex-direction: column; gap: 12px; }
.product-faq { border: 1px solid #d1d5dc; border-radius: 10px; padding: 0 20px; }
.product-faq__question { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; line-height: 24px; color: #212529; cursor: pointer; list-style: none; gap: 16px; }
.product-faq__question::-webkit-details-marker { display: none; }
/* Green chevron (points down, flips up when open) */
.product-faq__question::after { content: ''; width: 9px; height: 9px; border-right: 2px solid #27826b; border-bottom: 2px solid #27826b; transform: rotate(45deg); margin-top: -4px; flex-shrink: 0; transition: transform .2s; }
.product-faq[open] .product-faq__question::after { transform: rotate(225deg); margin-top: 2px; }
.product-faq__answer { padding: 0 0 18px; font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 24px; color: #364153; }
.product-faq__answer p { margin: 0 0 12px; }
.product-faq__answer p:last-child { margin-bottom: 0; }

/* ── Sustainability — DESIGN: rounded mint-gradient container ── */
.product-sustainability { padding: 48px 0; }
.product-sustainability .container { background: linear-gradient(135deg, #f0fffe 0%, #e6f9f7 100%); border-radius: 10px; padding: 48px 64px; }
.product-sustainability__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0 0 12px; text-align: center; }
.product-sustainability__text { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 26px; color: #212529; text-align: center; max-width: 640px; margin: 0 auto 32px; }
.product-sustainability__partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* DESIGN: image fills top ~66% of card, content below with left-aligned text */
.sustainability-partner { background: #fff; border: 1px solid #d1d5dc; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; box-shadow: 0 1px 2px -1px rgba(0,0,0,.10), 0 1px 3px 0 rgba(0,0,0,.10); }
.sustainability-partner__img { width: 100%; aspect-ratio: 302 / 218; overflow: hidden; }
.sustainability-partner__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sustainability-partner__title { font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 600; color: #1e2939; margin: 0 0 6px; padding: 16px 16px 0; }
.sustainability-partner__desc { font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; color: #4a5565; margin: 0; padding: 0 16px 16px; }

/* ── Shop Other Products — DESIGN: dark image panel, full-width button, left-aligned name ── */
.product-shop-others { padding: 48px 0; }
.product-shop-others__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0 0 24px; }
.product-shop-others__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shop-other-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid #d1d5dc; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; box-shadow: 0 1px 2px -1px rgba(0,0,0,.10), 0 1px 3px 0 rgba(0,0,0,.10); }
.shop-other-card__img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #212529; }
.shop-other-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-other-card__name { font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 400; color: #212529; margin: 0; padding: 16px 16px 12px; }
/* Full-width button: display block fills the 16px margins on each side */
.shop-other-card__btn { display: block; margin: 0 16px 16px; padding: 9px 0; text-align: center; background: #212529; color: #fff; border-radius: 10px; font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 400; text-decoration: none; transition: background .15s; }
.shop-other-card__btn:hover { background: #000; text-decoration: none; color: #fff; }

/* ── BazaarVoice Reviews ── */
.product-reviews { padding: 48px 0; }
.product-reviews__header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.product-reviews__heading { font-family: 'Albania Bold', serif; font-size: 32px; line-height: 36px; color: #212529; margin: 0; }
.product-reviews__view-all { font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; color: #27826b; text-decoration: none; }
.product-reviews__view-all:hover { text-decoration: underline; }
.product-reviews__stub { font-family: 'Open Sans', sans-serif; font-size: 15px; color: #9ca3af; font-style: italic; }

/* ── Nutrition Label (nutrition tab only) ── */
#tab-nutrition .product-tab-panel__content.wysiwyg ul { list-style: none; margin: 0; padding: 0; border: 2px solid #212529; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li:first-child ul { border: none; margin-top: 0; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #212529; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li:last-child { border-bottom: 2px solid #212529; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > p { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; margin: 0; font-size: 15px; line-height: 22px; color: #212529; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > p strong { font-weight: 700; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > p strong:last-child { text-align: right; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul { border: none; margin: 0; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul > li { border: none; padding-left: 32px; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul > li > p { padding: 8px 16px; font-size: 14px; color: #374151; font-weight: 400; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul > li > ul { border: none; margin: 0; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul > li > ul > li { border: none; padding-left: 48px; }
#tab-nutrition .product-tab-panel__content.wysiwyg ul > li > ul > li > ul > li > p { padding: 6px 16px; font-size: 13px; color: #4b5563; }
#tab-nutrition .product-tab-panel__content.wysiwyg > p { font-weight: 700; font-size: 16px; margin: 24px 0 12px; padding: 16px; border: 2px solid #212529; border-bottom: none; }
#tab-nutrition .product-tab-panel__content.wysiwyg > p:first-of-type { margin-top: 20px; }

/* ── Responsive — Product Detail ── */
@media screen and (max-width: 1199px) {
    .product-hero__inner { gap: 40px; }
    .product-recipes__grid { grid-template-columns: repeat(3, 1fr); }
    .product-shop-others__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .product-hero__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .product-hero__title { font-size: 40px; line-height: 44px; }
    .product-category-story__inner,
    .product-why-trayless__inner { gap: 32px; }
    .product-recipes__grid { grid-template-columns: repeat(2, 1fr); }
    .product-sustainability .container { padding: 40px 32px; }
    .product-sustainability__partners { grid-template-columns: 1fr 1fr; }
    .product-shop-others__grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 767px) {
    /* Breadcrumb */
    .product-breadcrumb { padding: 12px 0 0; }
    /* Hero */
    .product-hero { padding: 16px 0 32px; }
    .product-hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .product-hero__title { font-size: 32px; line-height: 36px; }
    .product-hero__tagline { font-size: 16px; line-height: 24px; }
    /* Gallery — thumbs go below main on mobile */
    .product-gallery { flex-direction: column-reverse; }
    .product-gallery__thumbs { flex-direction: row; }
    .product-gallery__thumb { width: 56px; height: 56px; }
    /* Retailer grid — single column */
    .product-retailers__grid { grid-template-columns: 1fr; }
    /* Tabs — stack certs below content on mobile */
    .product-tabs__nav { gap: 20px; }
    .product-tab-btn { font-size: 13px; padding: 14px 0 15px; }
    .product-tabs__body { flex-direction: column; gap: 24px; }
    .product-tabs__panels { flex: none; max-width: 100%; width: 100%; }
    .product-tab-panel__content, .product-tab-panel__content p, .product-tab-panel__content.wysiwyg p { text-align: left; }
    .product-tabs__certs { flex-direction: row; flex-wrap: wrap; max-width: 100%; gap: 12px; padding-top: 0; }
    .product-tabs__certs img { height: 72px; }
    /* Category story / Why Trayless — stack */
    .product-category-story__inner,
    .product-why-trayless__inner { grid-template-columns: 1fr; gap: 24px; }
    .product-category-story { padding: 32px 0; }
    .product-why-trayless { padding: 32px 0; }
    .product-category-story__heading,
    .product-why-trayless__heading { font-size: 28px; line-height: 32px; text-align: left; }
    /* Force left-align — theme global CSS centers text on mobile */
    .product-category-story__content,
    .product-category-story__text,
    .product-category-story__text p,
    .product-why-trayless__content,
    .product-why-trayless__text,
    .product-why-trayless__text p,
    .product-two-col-bullets,
    .product-two-col-bullets li { text-align: left; }
    /* Two-col bullets become single col */
    .product-two-col-bullets { grid-template-columns: 1fr; }
    /* Recipes — single col */
    .product-recipes { padding: 32px 0; }
    .product-recipes__grid { grid-template-columns: 1fr; }
    .product-recipes__heading { font-size: 24px; line-height: 28px; }
    /* FAQs */
    .product-faqs { padding: 32px 0; }
    .product-faqs__heading { font-size: 24px; line-height: 28px; }
    /* Sustainability */
    .product-sustainability { padding: 32px 0; }
    .product-sustainability .container { padding: 32px 20px; }
    .product-sustainability__partners { grid-template-columns: 1fr; gap: 16px; }
    .product-sustainability__heading { font-size: 24px; line-height: 28px; }
    /* Shop Others */
    .product-shop-others { padding: 32px 0; }
    .product-shop-others__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-shop-others__heading { font-size: 24px; line-height: 28px; }
    /* Reviews */
    .product-reviews { padding: 32px 0; }
    .product-reviews__heading { font-size: 24px; line-height: 28px; }
}
@media screen and (max-width: 575px) {
    .product-gallery__thumb { width: 48px; height: 48px; }
    .product-shop-others__grid { grid-template-columns: 1fr; }
    .product-sustainability__partners { grid-template-columns: 1fr; }
}

/* ── Nutrition Facts label ──────────────────────────────────────────────── */
/* FDA-style label, structure adapted from https://codepen.io/chriscoyier/pen/ApavyZ */
.nutrition-label-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.nutrition-label-group .nutrition-label__highlights {
    flex-basis: 100%;
}

.nutrition-label {
    max-width: 320px;
    margin: 0 0 24px;
    padding: 8px 12px 12px;
    border: 1px solid #000;
    font-family: Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
}

.nutrition-label__title {
    margin: 0 0 2px;
    padding-bottom: 6px;
    border-bottom: 10px solid #000;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nutrition-label__panel-label {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
}

.nutrition-label__servings-per-container {
    margin: 6px 0 0;
    padding-bottom: 4px;
    border-bottom: 4px solid #000;
    font-size: 14px;
}

.nutrition-label__serving-size {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 8px solid #000;
    font-size: 16px;
    font-weight: 700;
}

.nutrition-label__calories {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 4px 0;
    border-bottom: 4px solid #000;
}

.nutrition-label__calories-label {
    font-size: 12px;
    line-height: 1.3;
}

.nutrition-label__calories-label strong {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
    margin-top: 2px;
}

.nutrition-label__calories-value {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.nutrition-label__dv-heading {
    padding: 4px 0;
    border-bottom: 4px solid #000;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.nutrition-label__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.nutrition-label__table td,
.nutrition-label__table th {
    padding: 4px 0;
    border-bottom: 1px solid #000;
    vertical-align: baseline;
    text-align: left;
    font-weight: 400;
}

.nutrition-label__table tr:last-of-type td,
.nutrition-label__table tr:last-of-type th {
    border-bottom: 4px solid #000;
}

.nutrition-label__row--rule td {
    padding: 0;
    border-bottom: 4px solid #000;
}

.nutrition-label__row--bold th:first-child {
    font-weight: 700;
}

.nutrition-label__amount {
    margin-left: 4px;
    font-weight: 400;
}

.nutrition-label__row--indent-1 th:first-child { padding-left: 16px; }
.nutrition-label__row--indent-2 th:first-child { padding-left: 32px; }

.nutrition-label__dv {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 8px;
}

.nutrition-label__footnote {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.3;
}

.nutrition-label__highlights {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #000;
    font-size: 13px;
}

/* ── Ingredients list ───────────────────────────────────────────────────── */
.ingredients-list__component {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

.ingredients-list__label {
    display: block;
    margin-bottom: 2px;
}
