/* ======================================================================
   Fursan — Build Your Box + Share Your Wishlist
   Uses the design tokens declared in site.css (:root).
   ====================================================================== */

/* ---------- Build Your Box ---------- */
/* The template gives .content-inner overflow:hidden, which turns sticky off for everything inside;
   clip keeps the same clipping without breaking the sticky box summary (visible = fallback). */
.bb-page { padding: 2.5rem 0 4rem; overflow: visible; overflow: clip; }
.bb-step-title { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); margin: .5rem 0 1.25rem; }
.bb-step-no { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-family: var(--font-body); flex-shrink: 0; }
.bb-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.bb-option { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bb-option:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.bb-option input { position: absolute; opacity: 0; pointer-events: none; }
.bb-option img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f2f0ee; border-radius: 10px; }
.bb-option-icon { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--sage-dark); background: var(--cream-soft); border-radius: 10px; }
.bb-option-name { font-weight: 600; color: var(--brand); }
.bb-option-price { color: var(--sage-dark); font-weight: 700; }
.bb-option-desc { font-size: .85rem; color: var(--muted); }
.bb-option-check { position: absolute; top: .6rem; inset-inline-end: .6rem; font-size: 1.5rem; color: var(--brand); opacity: 0; transition: opacity .2s; }
.bb-option:has(input:checked) { border-color: var(--brand); box-shadow: var(--shadow-md); }
.bb-option:has(input:checked) .bb-option-check { opacity: 1; }
.bb-option:has(input:focus-visible) { outline: 3px solid rgba(var(--brand-rgb), .35); outline-offset: 2px; }
.bb-divider { margin: 2.25rem 0; border-color: var(--line); opacity: 1; }

/* Desktop: the summary (fill %, chosen pieces, add button) follows the shopper down the page, just
   under the sticky header; a long piece list scrolls inside it so the button stays on screen. */
.bb-summary { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-soft); padding: 1.25rem; }
.bb-sum-box { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 600; color: var(--brand); margin-bottom: .75rem; }
.bb-progress { height: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bb-progress-sm { height: 8px; }
.bb-progress-bar { height: 100%; width: 0; background: var(--sage); border-radius: 999px; transition: width .25s ease; }
.bb-progress-bar.is-ready { background: #5c8a4a; }
.bb-progress-bar.is-over { background: var(--danger); }
.bb-progress-text { font-size: .85rem; color: var(--muted); margin-top: .45rem; }
.bb-status { margin-top: .6rem; font-size: .9rem; padding: .5rem .75rem; border-radius: 10px; background: #fff; color: var(--ink); }
.bb-status-ready { background: #e6f0df; color: #2f5a22; }
.bb-status-over { background: #f8e3e0; color: var(--danger); }
.bb-selected { list-style: none; padding: 0; margin: 1rem 0 0; max-height: 340px; overflow-y: auto; }
.bb-selected li { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.bb-selected img, .bb-selected .bi-gift { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--sage-dark); }
.bb-sel-info { flex: 1; min-width: 0; }
.bb-sel-name { font-weight: 600; font-size: .9rem; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-sel-meta { font-size: .8rem; color: var(--muted); }
.bb-sel-remove { border: 0; background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.bb-sel-remove:hover { background: #fff; color: var(--danger); }

.bb-product { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.bb-product.is-selected { border-color: var(--sage-dark); box-shadow: 0 0 0 2px rgba(var(--sage-rgb), .45); }
.bb-product.is-locked { opacity: .6; }
.bb-p-img { width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--cream-soft); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--sage-dark); }
.bb-p-img img { width: 100%; height: 100%; object-fit: contain; }
.bb-p-name { margin-top: .6rem; font-weight: 600; color: var(--brand); font-size: .95rem; line-height: 1.3; }
.bb-p-cat { margin-top: .55rem; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sage-dark); }
.bb-p-cat + .bb-p-name { margin-top: .1rem; }
.bb-p-weight {color: var(--sage-dark); font-weight: 500; font-size: .85rem; }
.bb-p-desc { font-size: .8rem; color: var(--muted); margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-p-out { font-size: .78rem; color: var(--danger); margin-top: .25rem; }
.bb-qty { margin-top: auto; padding-top: .65rem; display: inline-flex; align-items: center; gap: .5rem; }
.bb-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.bb-qty button:hover:not(:disabled) { background: var(--sage); }
.bb-qty button:disabled { opacity: .4; cursor: not-allowed; }
.bb-q { min-width: 24px; font-weight: 700; color: var(--brand); }
.bb-edit-note { border-radius: var(--radius); }
.bb-mobilebar { display: none; }

@media (max-width: 991.98px) {
    .bb-summary { position: static; max-height: none; overflow: visible; }
    .bb-mobilebar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; align-items: center; gap: .75rem; padding: .65rem 1rem; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(var(--brand-rgb), .10); }
    .bb-mobilebar-info { flex: 1; min-width: 0; }
    .bb-mobilebar small { display: block; margin-top: .25rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bb-page { padding-bottom: 6rem; }
    .bb-step-title { font-size: 1.3rem; }
}
@media (max-width: 575.98px) {
    .bb-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .bb-option { padding: .6rem; }
    .bb-option-desc { font-size: .75rem; }
    .bb-option-check { font-size: 1.2rem; top: .4rem; inset-inline-end: .4rem; }
}

/* Header: keep the desktop menu (now with "Build Your Box") clear of the centred logo on small laptops. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #cssmenu > ul > li > a { padding-left: 4px !important; padding-right: 4px !important; font-size: 13px !important; }
}

/* ---------- Custom boxes in the cart / checkout summary ---------- */
.min-w-0 { min-width: 0; }
.cart-box-row.is-invalid { background: #fdf3f1; }
.cart-box-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--cream-soft); color: var(--sage-dark); font-size: 1.6rem; }
.cart-box-items { list-style: none; padding: 0; margin: .35rem 0 .25rem; font-size: .85rem; color: var(--ink); }
.cart-box-items li { padding: 1px 0; }
.cart-box-problems { font-size: .82rem; color: var(--danger); margin: .25rem 0; }
.cart-box-edit { font-size: .85rem; color: var(--sage-dark); text-decoration: none; font-weight: 600; }
.cart-box-edit:hover { color: var(--brand); }
/* Cart on phones: each line becomes a card in a list instead of a wide table row —
   photo + name (delete in the corner), unit price under the name, then quantity · line total. */
@media (max-width: 767.98px) {
    #cartPage .table-responsive { overflow: visible; }
    #cartPage .cart-table, #cartPage .cart-table tbody { display: block; }
    #cartPage .cart-table thead { display: none; }
    #cartPage .cart-table tr.cart-row {
        display: grid; grid-template-columns: 1fr auto; grid-template-areas: "product remove" "price price" "qty total";
        align-items: center; gap: .55rem .75rem; margin-bottom: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: #fff;
    }
    #cartPage .cart-table tr.cart-box-row.is-invalid { background: #fdf3f1; }
    #cartPage .cart-table tr.cart-row > td { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: start; }
    #cartPage .ci-product { grid-area: product; min-width: 0; }
    #cartPage .ci-product .fw-bold { font-size: .95rem; line-height: 1.45; }
    #cartPage .ci-remove { grid-area: remove; align-self: start; }
    #cartPage .ci-remove .icon-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-soft); }
    #cartPage .ci-price { grid-area: price; padding-inline-start: calc(64px + 1rem) !important; margin-top: -.35rem; font-size: .85rem; color: var(--muted); text-align: start !important; }
    #cartPage .ci-price::before { content: attr(data-label) ": "; }
    #cartPage .ci-qty { grid-area: qty; padding-top: .6rem !important; border-top: 1px dashed var(--line) !important; }
    #cartPage .ci-total { grid-area: total; padding-top: .6rem !important; border-top: 1px dashed var(--line) !important; text-align: end !important; font-size: 1.05rem; line-height: 1.2; }
    #cartPage .ci-total::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 400; color: var(--muted); }
    #cartPage .cart-thumb, #cartPage .cart-box-icon { width: 64px !important; height: 64px !important; flex: 0 0 64px; }
}
.summary-card .s-box { align-items: flex-start; gap: .75rem; }
.s-box-detail { display: block; font-size: .78rem; color: var(--muted); max-width: 260px; }

/* ---------- Share your wishlist ---------- */
.share-wishlist { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-soft); padding: 1.25rem; }
.sw-head { display: flex; gap: .85rem; align-items: flex-start; }
.sw-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.sw-title { font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.sw-sub { color: var(--muted); font-size: .88rem; }
.sw-link .form-control { background: #fff; font-size: .9rem; }
.sw-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.sw-manage { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; }
.shared-wishlist-head .sw-icon { width: 54px; height: 54px; font-size: 1.4rem; display: flex; }

/* ---------- Footer: tighter spacing (all screens) ---------- */
.tmpl-body .footer { padding-top: 28px; }
.tmpl-body .footer .footer-title { margin: 14px 0 8px; font-weight: 700; }
.tmpl-body .footer ul { margin-bottom: 0; }
.tmpl-body .footer ul li { margin: 5px 0; }
.tmpl-body .footer .vcard { margin-top: 0; }
.tmpl-body .footer .vcard div { margin-bottom: 6px; }
.tmpl-body .footer .margin-footer { margin-top: 26px; margin-bottom: 22px; }
.tmpl-body .footer .footer-margin { margin-top: 4px; }
.tmpl-body .footer .copyright { margin-top: 18px; padding: 8px 0; }
.tmpl-body .footer .footer-payments { max-width: 100%; height: auto; }
/* Copyright line + developer credit: side by side with a dot, stacked on phones. */
.tmpl-body .footer .copyright-credit::before { content: "·"; margin: 0 .6rem; opacity: .6; }
.tmpl-body .footer .copyright-credit a { color: #e9e4de; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(233, 228, 222, .4); }
.tmpl-body .footer .copyright-credit a:hover { color: var(--sage); border-bottom-color: var(--sage); }
@media (max-width: 575.98px) {
    .tmpl-body .footer .copyright span { display: block; }
    .tmpl-body .footer .copyright-credit::before { content: none; }
}
@media (min-width: 576px) {
    .tmpl-body .footer .footer-social-col { text-align: end; }
    .tmpl-body .footer .footer-social-col .footer-socials ul { text-align: end; }
}

/* Hero slider: full width. Height = the photo's own height at full width (1920×1035 → width / 1.855),
   but never taller than the screen below the header (155px desktop, 78px below 992px), so there is
   nothing to scroll; when the screen is the limit the photo fills the width and trims top/bottom evenly. */
.tmpl-body #myCarousel { aspect-ratio: auto; min-height: 0 !important; max-height: none !important;
    height: max(200px, min(calc(100vw / 1.855), calc(100vh - 155px))) !important; }
@supports (height: 100svh) {
    .tmpl-body #myCarousel { height: max(200px, min(calc(100vw / 1.855), calc(100svh - 155px))) !important; }
}
@media (max-width: 991.98px) {
    .tmpl-body #myCarousel { height: max(180px, min(calc(100vw / 1.855), calc(100vh - 78px))) !important; }
    @supports (height: 100svh) {
        .tmpl-body #myCarousel { height: max(180px, min(calc(100vw / 1.855), calc(100svh - 78px))) !important; }
    }
}
.tmpl-body #myCarousel .carousel-inner, .tmpl-body #myCarousel .carousel-item, .tmpl-body #myCarousel .fill, .tmpl-body #myCarousel .fill-img { height: 100%; }
.tmpl-body #myCarousel .fill-img { position: relative; overflow: hidden; background-color: var(--brand); }
.tmpl-body #myCarousel .fill-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 767.98px) {
    /* 14 slides: small dots tucked into the bottom edge so they don't sit across the photo. */
    .tmpl-body #myCarousel .carousel-indicators { bottom: 0; margin: 0 0 4px; gap: 2px; }
    .tmpl-body #myCarousel .carousel-indicators [data-bs-target] { width: 7px; height: 7px; margin: 0 2px; border-width: 0; box-shadow: none; }
}

/* ---------- Product cards: the button label stays on one line on phones ---------- */
.product-card .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .product-card .btn.btn-sm { padding: .5rem .45rem; font-size: 12.5px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
    .product-card .btn.btn-sm .bi { margin: 0 !important; font-size: 1em; }
}
@media (max-width: 349.98px) {
    .product-card .btn.btn-sm { font-size: 11.5px; padding: .45rem .3rem; }
}

/* ---------- Shop filters: sidebar on desktop, drawer on phones/tablets ---------- */
.shop-filter-btn { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .4rem .9rem; font-weight: 600; }
.shop-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; }
.shop-filter-btn:hover .shop-filter-count { background: #fff; color: var(--brand); }
@media (max-width: 991.98px) {
    .shop-filters.offcanvas-lg { width: min(88vw, 360px); background: #fff; }
    .shop-filters .offcanvas-header { border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; }
    .shop-filters .offcanvas-title { font-family: var(--font-display); color: var(--brand); font-size: 1.2rem; margin: 0; }
    .shop-filters .offcanvas-body { padding: 0; }
    .shop-filters .filter-card { border: 0; border-radius: 0; padding: 1rem 1.1rem 0; position: static; }
    /* "Apply filters" stays reachable at the bottom of the drawer however long the list is. */
    .shop-filters .shop-filters-apply { position: sticky; bottom: 0; margin: 1rem -1.1rem 0; padding: .8rem 1.1rem; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(46, 29, 20, .06); }
    aside.col-lg-3:has(> .shop-filters) { padding: 0; margin: 0; }
}

/* ---------- Notifications (added to cart / wishlist): a clear card, never a tiny strip ---------- */
.swal2-container.fc-toast-wrap { z-index: 2000; }
.swal2-container.fc-toast-wrap.swal2-top-end, .swal2-container.fc-toast-wrap.swal2-top-start { top: 165px !important; padding: 0 16px; }
.swal2-popup.fc-toast { width: 360px; max-width: calc(100vw - 24px); padding: 14px 16px 12px !important; border-radius: 14px !important;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-inline-start: 4px solid var(--sage-dark);
    box-shadow: 0 14px 40px rgba(46, 29, 20, .22) !important; font-family: var(--font-body); display: grid !important; grid-template-columns: 1fr !important; }
.swal2-popup.fc-toast > * { grid-column: 1 / -1 !important; }
.swal2-popup.fc-toast .swal2-icon { display: none !important; }
.swal2-popup.fc-toast .fc-toast-title { margin: 0 !important; padding: 0 24px 0 0 !important; font-family: var(--font-body) !important; font-size: 15px !important; font-weight: 700; color: var(--brand); text-align: start; }
html[dir="rtl"] .swal2-popup.fc-toast .fc-toast-title { padding: 0 0 0 24px !important; }
.swal2-popup.fc-toast .fc-toast-title .bi { color: var(--sage-dark); margin-inline-end: 4px; }
.swal2-popup.fc-toast .swal2-icon { margin: 0 8px 0 0 !important; }
.swal2-popup.fc-toast .fc-toast-body { margin: 10px 0 0 !important; padding: 0 !important; text-align: start; }
.fc-cart-item { display: flex; align-items: center; gap: 12px; }
.fc-cart-item img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; background: var(--cream-soft); }
.fc-cart-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.swal2-popup.fc-toast .fc-toast-actions { margin: 12px 0 0 !important; padding: 0; display: flex !important; gap: 8px; justify-content: stretch; width: 100%; }
.swal2-popup.fc-toast .fc-toast-actions .btn { flex: 1 1 0; margin: 0; padding: .55rem .6rem; font-size: 13.5px; border-radius: 999px; white-space: nowrap; }
.swal2-popup.fc-toast .fc-toast-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; font-size: 22px; color: var(--muted); margin: 0; }
.swal2-popup.fc-toast .fc-toast-close:hover { color: var(--brand); }
.swal2-popup.fc-toast .swal2-timer-progress-bar { background: var(--sage-dark); }
@media (max-width: 575.98px) {
    /* Phones: full-width card at the bottom of the screen. */
    .swal2-container.fc-toast-wrap.swal2-bottom { padding: 0 10px 12px !important; }
    .swal2-popup.fc-toast { width: 100%; max-width: 100%; }
}

/* Home categories: the tile takes the photos' 3:2 shape and shows the whole image (no cropping),
   on every screen — the theme fixed its height per breakpoint and cropped with "cover". */
.tmpl-body .bg-Categories .box-category { height: auto !important; aspect-ratio: 3 / 2; padding: 0;
    background-size: contain !important; background-position: center; background-repeat: no-repeat; background-color: #fff; }
/* Photos close to the tile shape (full-bleed shots, e.g. 435×300) fill it instead of leaving thin
   bars (site.js adds .is-fill when the photo is within ~12% of 3:2); very different shapes stay whole. */
.tmpl-body .bg-Categories .box-category.is-fill { background-size: cover !important; }

/* Stock badge stays hidden while available; it shows only "Out of stock". */
#stockBadge.text-bg-secondary { display: inline-block !important; font-size: .9rem; padding: .45em .8em; }

/* Phone numbers are LTR: keep "+962 79 526 5877" in order inside Arabic text. */
a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Newsletter field: email inputs render LTR, so keep the text clear of the arrow button on both sides. */
.tmpl-body .footer .newletter .form-control { padding-inline-end: 48px; }
html[dir="rtl"] .tmpl-body .footer .newletter .form-control { padding-left: 48px; padding-right: 0; text-align: right; }
html[dir="rtl"] .tmpl-body .footer .newletter .form-control::placeholder { text-align: right; }

/* Empty states: the big icon is the decorative one only, not icons inside buttons. */
.empty-state .btn i { font-size: 1em; color: inherit; }

/* Inner-page banners: a darker veil so the white title and breadcrumb stay readable on any image. */
.tmpl-body .caption-inner::before { content: ""; position: absolute; inset: 0; background: rgba(46, 29, 20, .32); z-index: 1; pointer-events: none; }
.tmpl-body .caption-inner h3, .tmpl-body .caption-inner .breadcrumb, .tmpl-body .caption-inner .breadcrumb a { text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.tmpl-body .welcome-text { height: auto; overflow: visible; }
/* Story section: the decorative branch is tucked into the corner so it never crosses the title. */
html[dir="rtl"] .tmpl-body .welcome { background-position: left -190px top -70px; }
html:not([dir="rtl"]) .tmpl-body .welcome { background-position: right -190px top -70px; }

@media (max-width: 991.98px) {
    /* Fixed backgrounds break on phones (iOS scales them to the whole page). */
    .tmpl-body .inner-bg { background-attachment: scroll; }

    /* Hero: the caption sits on a soft cream panel instead of straight on the photo. */
    .tmpl-body .carousel-indicators { z-index: 3; bottom: 0; margin-bottom: 6px; }
    .tmpl-body .caption-carousel { top: 8%; bottom: 15%; left: 5%; right: 5%; padding: 14px 18px; background: rgba(244, 241, 236, .9); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
    .tmpl-body .caption-carousel h2, .tmpl-body .caption-carousel h3, .tmpl-body .caption-carousel p { color: var(--brand); text-shadow: none; }
}

@media (max-width: 767.98px) {
    /* Footer: the link columns sit two per row, each link on its own line. */
    .tmpl-body .footer { padding-top: 18px; background-size: 70%; }
    .tmpl-body .footer .footer-title { font-size: 16px; margin: 16px 0 8px; }
    .tmpl-body .footer .footer-col { overflow-wrap: anywhere; }
    .tmpl-body .footer ul li { display: block; margin: 0 0 7px; font-size: 14px; line-height: 1.45; }
    .tmpl-body .footer .footer-socials ul li { display: inline-block; margin: 0; margin-inline-end: 14px; }
    .tmpl-body .footer .vcard div { margin-bottom: 4px; font-size: 14px; }
    .tmpl-body .footer .margin-footer { margin-top: 18px; margin-bottom: 14px; }
    .tmpl-body .footer .text-gary { font-size: 12.5px; line-height: 1.6; }
    .tmpl-body .footer .newletter .form-control { padding-top: 12px; padding-bottom: 12px; }
    .tmpl-body .footer .newletter .btn { top: 4px; }
    .tmpl-body .footer .copyright { margin-top: 14px; font-size: 12px; line-height: 22px; }

    /* Story section: image, then the quote card, then the text — nothing stacked on top of anything. */
    .tmpl-body .welcome { padding: 36px 0; background-image: none; }
    .tmpl-body .welcome-img { width: 100%; margin: 0; }
    .tmpl-body .pic-welcome, html[dir="rtl"] .tmpl-body .pic-welcome { position: relative; z-index: 2; top: auto; left: auto; right: auto; width: auto; min-height: 0; margin: -28px 16px 0; padding: 22px 20px; font-size: 17px; background-image: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
    .tmpl-body .pic-welcome span { font-size: 14px; padding-top: 12px; margin-top: 12px; }
    .tmpl-body .welcome-top { margin-top: 24px; }
    .tmpl-body .welcome-years { font-size: 64px; margin-bottom: 0; }

    /* Categories: the decorative branch sits behind the heading on phones — drop it there. */
    .tmpl-body .bg-Categories { padding: 40px 0; background-image: none; }

    /* Hero caption sizes inside the panel */
    .tmpl-body .caption-carousel h3 { font-size: 15px; margin-bottom: 4px; }
    .tmpl-body .caption-carousel h2 { font-size: 26px; line-height: 1.25; margin-bottom: 6px; }
    .tmpl-body .caption-carousel p { font-size: 12.5px; line-height: 1.55; margin-bottom: 10px; }
    .tmpl-body .caption-carousel .btn-header { padding: 8px 22px; font-size: 14px; }
}

/* ---------- FAQs page (content lives in the page editor) ---------- */
.faq-page { max-width: 900px; margin: 0 auto; }
.faq-intro { text-align: center; color: var(--muted); font-size: 1.1rem; margin: .5rem 0 2rem; }
.faq-section { margin-bottom: 2.25rem; }
.faq-section-title { display: flex; align-items: center; gap: .75rem; font-family: var(--font-display); color: var(--brand); font-size: 1.5rem; margin: 0 0 1rem; }
.faq-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .5rem; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; }
.faq-page .accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--sage-rgb), .35); --bs-accordion-active-bg: var(--cream-soft); --bs-accordion-active-color: var(--brand); }
.faq-page .accordion-item { border-color: var(--line); }
.faq-page .accordion-button { font-weight: 600; color: var(--brand); font-size: 1.02rem; padding: 1rem 1.15rem; }
.faq-page .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--line); }
.faq-page .accordion-body { color: var(--ink); line-height: 1.85; padding: 1rem 1.15rem 1.15rem; }
.faq-page .accordion-body a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html[dir="rtl"] .faq-page .accordion-button::after { margin-left: 0; margin-right: auto; }
.faq-policies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.faq-policy { border: 1px solid var(--line); border-top: 3px solid var(--sage); border-radius: var(--radius); background: #fff; padding: 1.15rem 1.25rem; }
.faq-policy-title { font-weight: 700; color: var(--brand); font-size: 1.08rem; margin-bottom: .5rem; }
.faq-policy p { margin: 0 0 .5rem; color: var(--ink); }
.faq-policy ul { margin: 0; padding-inline-start: 1.15rem; }
.faq-policy li { margin: .3rem 0; line-height: 1.7; }
.faq-note { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--cream-soft); color: var(--muted); font-size: .95rem; }
.faq-note a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* The page theme gives every h2/h3 a top margin; inside the FAQ the headers sit flush. */
.page-content .faq-page .accordion-header { margin: 0; }
.page-content .faq-page .faq-section-title { margin: 0 0 1rem; }
.faq-page .accordion-button { font-family: var(--font-body); }
@media (max-width: 767.98px) {
    .faq-section-title { font-size: 1.25rem; }
    .faq-num { min-width: 38px; height: 38px; font-size: .85rem; }
    .faq-policies { grid-template-columns: 1fr; }
    .faq-page .accordion-button { font-size: .98rem; padding: .9rem 1rem; }
}

/* ---------- About Us page (content lives in the page editor; decorations are CSS-only so the
   editor never strips them) ---------- */
.about { max-width: 980px; margin: 0 auto; }
.about h2 { font-family: var(--font-display); color: var(--brand); font-size: 1.7rem; margin: 0 0 .9rem; }
.about p { margin: 0 0 1rem; }
.about-hero { text-align: center; padding: 1.5rem 0 2rem; }
.about-eyebrow { display: inline-block; color: var(--sage-dark); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-bottom: .6rem; }
.about-hero h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.about-hero p { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 auto; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.75rem; }
.about-stat { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; }
.about-stat-value { font-family: var(--font-display); color: var(--brand); font-size: 2.3rem; line-height: 1.1; }
.about-stat-label { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.about-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.about-block-title { font-family: var(--font-display); color: var(--brand); font-size: 1.55rem; line-height: 1.35; position: relative; padding-top: 1rem; }
.about-block-title::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--sage); }
.about-branches { display: flex; flex-wrap: wrap; gap: .6rem; margin: .25rem 0 1.1rem; padding: 0; list-style: none; }
.page-content .about ul.about-branches, .page-content .about ul.about-branches li { list-style: none; }
.about-branches li { background: #fff; border: 1px solid var(--sage); color: var(--brand); border-radius: 999px; padding: .35rem 1.1rem; font-weight: 600; font-size: .95rem; }
.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.about-pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; background: #fff; border-top: 3px solid var(--sage); }
.about-pillar-title { font-weight: 700; color: var(--brand); margin-bottom: .3rem; }
.about-pillar-text { color: var(--muted); font-size: .93rem; line-height: 1.7; }
.about-closing { margin: 1rem 0 .5rem; padding: 2.25rem 2rem; text-align: center; border-radius: var(--radius); background: var(--brand); color: #f4ede6; }
.about-closing p { max-width: 720px; margin: 0 auto 1rem; opacity: .92; }
.about-tagline { font-family: var(--font-display); font-size: 1.45rem; color: #fff; line-height: 1.5; }
.about-tagline::before, .about-tagline::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--sage); vertical-align: middle; margin: 0 .75rem; }
@media (max-width: 767.98px) {
    .about-hero h2 { font-size: 1.85rem; }
    .about-hero p { font-size: 1.05rem; }
    .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .about-stat { padding: 1rem .4rem; }
    .about-stat-value { font-size: 1.6rem; }
    .about-stat-label { font-size: .78rem; }
    .about-block { grid-template-columns: 1fr; gap: .75rem; padding: 1.75rem 0; }
    .about-pillars { grid-template-columns: 1fr; }
    .about-closing { padding: 1.75rem 1.1rem; }
    .about-tagline { font-size: 1.2rem; }
    .about-tagline::before, .about-tagline::after { display: none; }
}

/* ---- Alerts: one colour (#9DA17F) for every notice ----
   Success, error, warning and info messages all use the sage alert colour; the wording and
   icon say what kind of message it is. Dark chocolate text keeps the message readable. */
.alert, .alert-success, .alert-danger, .alert-warning, .alert-info,
.alert-light, .alert-primary, .alert-secondary, .alert-dark {
    --bs-alert-bg: #9da17f;
    --bs-alert-border-color: #9da17f;
    --bs-alert-color: var(--brand-dark);
    --bs-alert-link-color: var(--brand-dark);
}
.alert.border { border-color: #9da17f !important; }
/* SweetAlert popups and toasts: icon, its rings/marks and the timer bar. */
.swal2-popup .swal2-icon { color: #9da17f !important; border-color: #9da17f !important; }
.swal2-popup .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(157, 161, 127, .3) !important; }
.swal2-popup .swal2-icon.swal2-success [class^="swal2-success-line"],
.swal2-popup .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: #9da17f !important; }
.swal2-popup .swal2-timer-progress-bar { background: #9da17f !important; }

/* ---- Cart: in-place quantity updates ----
   While the cart refreshes in the background, the prices and totals dim so the shopper can see
   they are being recalculated. */
#cartPage .cart-table td.text-end, #cartPage .summary-card { transition: opacity .15s ease; }
#cartPage.is-updating .cart-table td.text-end, #cartPage.is-updating .summary-card { opacity: .5; }

/* ---- Checkout: pickup branch (shown under the delivery method when it is store pickup) ---- */
.pickup-branch { margin: .25rem 0 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream-soft); }
.pickup-branch .form-label { font-weight: 600; color: var(--brand); }

/* ---- Header: "Shop" mega menu of the product categories ----
   Hovering (or tabbing into) "Shop" opens a panel of the main categories with their photo and
   sub-categories; "Shop" itself still links to all products. Anchored to the menu row so it
   spans from the start of the header. */
#cssmenu > ul > li.has-mega { position: static; }
#cssmenu > ul > li.has-mega > a::after {
    content: ""; display: inline-block; position: static; width: 6px; height: 6px; margin-inline-start: 6px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6;
}
#cssmenu .mega-shop {
    display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 99999;
    width: min(940px, calc(100vw - 48px)); margin-top: 10px; padding: 18px 18px 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(72, 46, 32, .14);
    white-space: normal; text-align: start; line-height: 1.4;
}
/* Invisible bridge over the gap so the panel stays open while the pointer moves down to it. */
#cssmenu .mega-shop::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
#cssmenu li.has-mega:hover > .mega-shop,
#cssmenu li.has-mega:focus-within > .mega-shop { display: block; animation: megaShopIn .18s ease-out; }
@keyframes megaShopIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#cssmenu .mega-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 14px; }
#cssmenu .mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#cssmenu .mega-col-head { display: block; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.35; }
#cssmenu .mega-thumb { display: block; aspect-ratio: 3 / 2; margin-bottom: 8px; border-radius: 10px; overflow: hidden; background: #f2f0ee; }
#cssmenu .mega-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
#cssmenu .mega-col-head:hover .mega-thumb img { transform: scale(1.05); }
#cssmenu .mega-col-head:hover .mega-col-name { color: var(--sage-dark); }
#cssmenu .mega-sub { display: block; padding: 3px 0; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-decoration: none; }
#cssmenu .mega-sub::before { content: "–"; margin-inline-end: 6px; color: var(--sage-dark); }
#cssmenu .mega-sub:hover { color: var(--sage-dark); }
#cssmenu .mega-shop-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); text-align: end; }
#cssmenu .mega-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--brand); text-decoration: none; }
#cssmenu .mega-all:hover { color: var(--sage-dark); }

/* Mobile menu: sub-items (e.g. the product categories under "Shop") sit indented under their parent. */
.tmpl-offcanvas .mobile-nav > li.mobile-subitem > a { padding-top: .55rem; padding-bottom: .55rem; padding-inline-start: 1.1rem; font-size: .92rem; color: #6b5a4e; border-bottom-style: dashed; }
.tmpl-offcanvas .mobile-nav > li.mobile-subitem > a::before { content: "–"; margin-inline-end: .5rem; color: var(--sage-dark); }

/* ---- Hero slider animation: soft cross-fade + gentle zoom-out ----
   Each photo fades in while easing from a slight zoom back to its normal size, so it always
   settles on the whole image. The zoom runs through the fade (next/prev → active keep the same
   animation, so it does not restart). Reduced-motion visitors get a plain quick fade. */
.tmpl-body #myCarousel.carousel-fade .carousel-item { transition-duration: 1.2s; transition-timing-function: ease-in-out; }
.tmpl-body #myCarousel .carousel-item .fill-img img { transform-origin: center; will-change: transform; }
.tmpl-body #myCarousel .carousel-item.active .fill-img img,
.tmpl-body #myCarousel .carousel-item-next .fill-img img,
.tmpl-body #myCarousel .carousel-item-prev .fill-img img { animation: heroSettle 6.5s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes heroSettle { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .tmpl-body #myCarousel.carousel-fade .carousel-item { transition-duration: .4s; }
    .tmpl-body #myCarousel .carousel-item .fill-img img { animation: none !important; }
}

/* ---- Sticky header (desktop + mobile) ----
   The header stays at the top while the announcement bar scrolls away. Once the page is
   scrolled (site.js adds .is-stuck) it gains a soft shadow, and on desktop it compacts
   (logo 100 → 60px); the margin added below makes up for the lost height so the page
   content does not jump. */
/* The template sets body { height: 100% }, which caps sticky elements at one screen height. */
.tmpl-body { height: auto; min-height: 100%; }
.tmpl-body #myHeader { position: sticky; top: 0; z-index: 1020; transition: box-shadow .25s ease, padding .25s ease, margin .25s ease; }
.tmpl-body #myHeader.is-stuck { box-shadow: 0 6px 20px rgba(72, 46, 32, .09); }
@media (min-width: 992px) {
    .tmpl-body #myHeader .hdr-desktop .logo img { transition: height .25s ease; height: 100px; width: auto; }
    .tmpl-body #myHeader.is-stuck { padding-top: 6px; padding-bottom: 6px; margin-bottom: 40px; }
    .tmpl-body #myHeader.is-stuck .hdr-desktop .logo img { height: 60px; }
    /* Keep the "Added to cart" card just under the compact header. */
    body:has(#myHeader.is-stuck) .swal2-container.fc-toast-wrap.swal2-top-end,
    body:has(#myHeader.is-stuck) .swal2-container.fc-toast-wrap.swal2-top-start { top: 90px !important; }
}
/* In-page anchors land below the sticky header. */
html { scroll-padding-top: 96px; }

/* ---- Quantity stepper (− 1 +): product page and cart ----
   A white pill with round buttons that fill with the store green on hover; the number has no
   browser spinner; "−" greys out at the minimum (site.js). On the product page it matches the
   height of the "Add to cart" button beside it. */
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: visible; transition: border-color .15s ease, box-shadow .15s ease; }
.qty-stepper:focus-within { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(157, 161, 127, .2); }
.qty-stepper button { flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--cream-soft); color: var(--brand); font-size: 1.05rem; line-height: 1; transition: background .15s ease, color .15s ease, transform .1s ease, opacity .15s ease; }
.qty-stepper button:hover:not(:disabled) { background: var(--sage-dark); color: #fff; }
.qty-stepper button:active:not(:disabled) { transform: scale(.9); }
.qty-stepper button:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.qty-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.qty-stepper input { width: 44px; height: 34px; padding: 0; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--brand); -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; box-shadow: none; }
.qty-stepper:has(#qtyInput) { padding: 6px; }
.qty-stepper:has(#qtyInput) button { width: 40px; height: 40px; }
.qty-stepper:has(#qtyInput) input { width: 52px; height: 40px; font-size: 1.15rem; }

/* ---- Home page section titles: calmer sizes ----
   The template's .title is 50px (line-height 85px) on every screen, subtitle 25px. Home sections
   now scale from ~26px on phones to ~36px on desktop, with a lighter subtitle; category and
   featured-product names come down to match. */
.tmpl-body .products .title,
.tmpl-body .welcome .title,
.tmpl-body .bg-Categories .title {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
    line-height: 1.3;
    margin-bottom: clamp(1.1rem, .8rem + 1vw, 1.75rem);
}
.tmpl-body .products .title span,
.tmpl-body .welcome .title span,
.tmpl-body .bg-Categories .title span {
    font-size: clamp(.95rem, .85rem + .35vw, 1.15rem);
    line-height: 1.6;
    margin-top: .35rem;
}
.tmpl-body .bg-Categories h1 { font-size: clamp(1.05rem, .9rem + .55vw, 1.4rem) !important; line-height: 1.35; margin: 10px 0; padding: 12px 8px; }
.tmpl-body .products .product-content h5,
.tmpl-body .products .product-content h5 a { font-size: clamp(.95rem, .88rem + .3vw, 1.1rem); line-height: 1.45; }

/* Home categories: two per row on phones — tighter gutters and name spacing to suit the half width. */
@media (max-width: 575.98px) {
    .tmpl-body .bg-Categories .row > .col-6 { padding-inline: 6px; }
    .tmpl-body .bg-Categories .row:has(> .col-6) { margin-inline: -6px; }
    .tmpl-body .bg-Categories .box-category { border-radius: 12px; }
    .tmpl-body .bg-Categories h1 { margin: 6px 0 14px; padding: 6px 4px; }
}
