/* =====================================================================
   Hararah Identity · storefront stylesheet
   v1.0.11 — anti-FOUC: hide the original product title BEFORE JS swaps it
   in. The body class .hh-identity-ready is added by identity.js once the
   replacement finishes. Until then, original titles are invisible (but
   still take their box space, so layout doesn't jump).
   ===================================================================== */
body[data-hh-pdp="1"] h1.title.page-title .page-title-text,
body[data-hh-pdp="1"] .product-details .title.page-title,
body[data-hh-pdp="1"] .product-details > .title,
body[data-hh-pdp="1"] .product-info > h1,
body[data-hh-pdp="1"] .product-info > h2.title {
    visibility: hidden;
}
body[data-hh-pdp="1"].hh-identity-ready h1.title.page-title .page-title-text,
body[data-hh-pdp="1"].hh-identity-ready .product-details .title.page-title,
body[data-hh-pdp="1"].hh-identity-ready .product-details > .title,
body[data-hh-pdp="1"].hh-identity-ready .product-info > h1,
body[data-hh-pdp="1"].hh-identity-ready .product-info > h2.title {
    visibility: visible;
}

/* === HERO (sits above the original product H1) ======================= */
#hh-identity-hero {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 0 22px;
    box-sizing: border-box;
    text-align: center;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#hh-identity-hero .hh-id-brandline {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b08641;
    font-weight: 600;
    margin-bottom: 8px;
}
#hh-identity-hero .hh-id-h1 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.18;
    color: #1f1b16;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}
#hh-identity-hero .hh-id-inspired {
    font-size: 16px;
    color: #6b5f52;
    margin: 0 0 14px;
    font-style: italic;
}
#hh-identity-hero .hh-id-inspired b {
    color: #8a3324;
    font-style: normal;
    font-weight: 600;
}
#hh-identity-hero .hh-id-tagline {
    color: #3b322a;
    font-size: 15px;
    margin: 0 0 12px;
    line-height: 1.5;
}
#hh-identity-hero .hh-id-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
#hh-identity-hero .hh-id-badge {
    background: #fdf6e7;
    color: #8a6614;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid #e9d8a8;
    text-transform: uppercase;
}
#hh-identity-hero .hh-id-badge.match {
    background: #fef0ec;
    color: #8a3324;
    border-color: #f1c8bd;
}
#hh-identity-hero .hh-id-strip {
    display: flex;
    gap: 14px;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    background: #fbf7ee;
    border: 1px solid #e7dfd2;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #6b5f52;
    margin: 14px auto 0;
}
#hh-identity-hero .hh-id-strip b { color: #1f1b16; }
#hh-identity-hero .hh-id-strip .vs { color: #b08641; font-weight: 700; align-self: center; }

/* Journal3 also renders a page-level product title above the image.
   Keep that identity title on the same centered rail as the JS hero. */
body[data-hh-pdp="1"] h1.title.page-title,
body[data-hh-pdp="1"] h1.page-title {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
    text-align: center;
}
body[data-hh-pdp="1"] .hh-id-inspired-line.hh-id-inspired-page {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
    text-align: center;
}

/* === COMPARISON BLOCK (below the product) ============================ */
#hh-identity-compare {
    margin: 36px 0;
}
#hh-identity-compare .hh-cmp-card {
    background: #fff;
    border: 1px solid #e7dfd2;
    border-radius: 10px;
    padding: 28px;
}
#hh-identity-compare .hh-cmp-h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: #1f1b16;
    margin: 0 0 8px;
}
#hh-identity-compare .hh-cmp-sum {
    color: #6b5f52;
    margin: 0 0 16px;
}
#hh-identity-compare .hh-cmp-table {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-top: 1px solid #e7dfd2;
}
#hh-identity-compare .hh-cmp-cell {
    padding: 14px 12px;
    border-bottom: 1px solid #e7dfd2;
    font-size: 14px;
    color: #1f1b16;
}
#hh-identity-compare .hh-cmp-h {
    font-weight: 700;
    color: #6b5f52;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#hh-identity-compare .hh-cmp-arabiva { background: #f3e8d0; }
#hh-identity-compare .hh-cmp-label { color: #6b5f52; }

/* === FIND YOUR MATCH CTA (after the comparison block) ================ */
#hh-identity-cta {
    margin: 40px 0;
}
#hh-identity-cta .hh-cta-card {
    background: linear-gradient(120deg, #1f1b16 0%, #3a2c1d 100%);
    color: #f7f3ec;
    border-radius: 10px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
#hh-identity-cta .hh-cta-h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    margin: 0 0 6px;
    color: #f3d27d;
}
#hh-identity-cta .hh-cta-sub {
    margin: 0;
    color: #d6c9b3;
    font-size: 14px;
}
#hh-identity-cta .hh-cta-form {
    display: flex;
    gap: 8px;
}
#hh-identity-cta .hh-cta-input {
    padding: 11px 14px;
    border-radius: 4px;
    border: none;
    width: 280px;
    font-size: 14px;
    color: #1f1b16;
}
#hh-identity-cta .hh-cta-btn {
    padding: 11px 20px;
    background: #b08641;
    color: #1f1b16;
    border: none;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

@media (max-width: 880px) {
    #hh-identity-hero { padding: 0 16px; }
    #hh-identity-hero .hh-id-h1 { font-size: 30px; }
    #hh-identity-compare .hh-cmp-table { grid-template-columns: 1fr; }
    #hh-identity-cta .hh-cta-card { flex-direction: column; align-items: stretch; text-align: center; }
    #hh-identity-cta .hh-cta-input { width: 100%; }
}

/* =====================================================================
   v1.0.12 — Product image scale-down on PDP.
   Journal3's default product gallery is set to a large dimension in
   theme settings; this CSS caps it visually without touching the
   underlying image asset (so zoom + lightbox still get the full res).
   Targets the main product image swiper + the additional thumb strip
   on the product details page only.
   ===================================================================== */
@media (min-width: 768px) {
    #product-product .product-images,
    #product-product .product-gallery,
    #product-product .product-page-gallery,
    .product-page .product-images {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    #product-product .product-images img,
    #product-product .product-gallery img,
    .product-page .product-images img {
        max-height: 520px;
        width: auto !important;
        height: auto;
        object-fit: contain;
    }
}
@media (max-width: 767px) {
    #product-product .product-images img,
    #product-product .product-gallery img {
        max-height: 360px;
        width: auto !important;
        height: auto;
        object-fit: contain;
    }
}
/* Hide the original duplicate title that Journal3 renders */
.hh-original-h1 { display: none !important; }

/* =====================================================================
   v1.0.13 — Storefront polish overrides
   Targets cross-plugin elements (trust strip + format-stations bundle)
   that ship with their own CSS but feel too heavy on Arabiva.
   ===================================================================== */

/* --- 1. arabiva_trust_badges "Same Spirit, Our Signature" --------------
   HIDDEN on mobile (<768px) because the 6-icon row at the bottom of the
   PDP was reported as freezing the screen / blocking content. Until the
   trust-badges plugin gets a proper mobile layout, we hide it on phones.
   Desktop unchanged. */
.arabiva-trust-strip {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
@media (max-width: 767px) {
    .arabiva-trust-strip { display: none !important; }
}

/* --- 1b. Quantity widget + cart icon button (Format Stations / Journal3)
   The "- 1 +" qty stepper and the orange circular "Auto-Add" icon are
   too small to tap. Bump them up. */
.product-form .qty-wrap,
.product-form .input-group,
.qty-wrap input,
.qty-wrap .qty-input,
input[name="quantity"],
button.fsl-auto-add,
button.fs-auto-add,
[class*="auto-add"] button,
button[aria-label*="Auto"],
button[title*="Auto"] {
    min-height: 44px !important;
}
input[name="quantity"],
.qty-wrap input {
    font-size: 16px !important;
    width: 56px !important;
    text-align: center !important;
}
.qty-wrap button,
.input-group .btn,
button.fsl-auto-add,
button.fs-auto-add,
[class*="auto-add"] button {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
}

/* --- 2. Format Stations "Often Bought Together" bundle (.fs-bundle) ----
   Softer + smaller. Only touches the CTA + outer padding, leaves the
   internal grid alone so Format Stations' own layout still works.
   Real class names confirmed from hararah_format_stations.js:
     .fs-bundle (root), .fs-bundle-cta (button), .fs-bundle-pair (items),
     .fs-bundle-img (thumbs), .fs-bundle-row--total (price line). */
.fs-bundle-host .fs-bundle {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin: 14px 0 !important;
}
.fs-bundle-header .fs-bundle-title,
.fs-bundle .fs-bundle-title {
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
}
.fs-bundle .fs-bundle-cta {
    padding: 10px 22px !important;
    font-size: 12.5px !important;
    letter-spacing: 1px !important;
    max-width: 240px !important;
    margin: 10px auto 4px !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(176,134,65,.18) !important;
}
.fs-bundle .fs-bundle-img {
    max-width: 44px !important;
    max-height: 64px !important;
}
.fs-bundle .fs-bundle-bottle {
    max-width: 60px !important;
}
.fs-bundle .fs-bundle-price {
    font-size: 18px !important;
}
@media (max-width: 767px) {
    .fs-bundle-host .fs-bundle {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    .fs-bundle .fs-bundle-cta {
        font-size: 11.5px !important;
        padding: 9px 18px !important;
    }
}

/* --- 3. Reduce mobile add-to-cart duplication --------------------------
   On mobile there's often TWO Add-to-cart buttons stacked at the bottom:
   the main product form's button AND the Format Stations sticky bar.
   Keep the sticky bar (always visible) and hide the in-form button when
   the sticky bar is rendered. */
@media (max-width: 767px) {
    .fs-floating-add,
    .fsp-floating-add,
    [class*="quick-add-fab"],
    .product-quick-add-fab {
        display: none !important;
    }
    /* Hide the in-product-form add-to-cart on mobile — the sticky bar
       (.fs-sticky / .fsp-sticky / [data-fs-sticky]) shows the same CTA
       at the bottom of the viewport and tapping either should be the
       same action. */
    body:has(.fs-sticky-bar) form#product .btn-cart,
    body:has(.fs-sticky-bar) form#product #button-cart,
    body:has(.fsp-sticky-bar) form#product .btn-cart,
    body:has(.fsp-sticky-bar) form#product #button-cart,
    body:has([class*="fs-sticky"]) form#product .btn-cart,
    body:has([class*="fs-sticky"]) form#product #button-cart {
        display: none !important;
    }
}
