/* ============================================================
   ZONA — mobile & small-screen polish
   Loaded after app-new.css (head + footer) so it wins at equal specificity.
   Breakpoints follow Bootstrap: <576 phone, <768 large phone, <992 tablet.
   ============================================================ */

/* ── Readable filled buttons (all screens) ──
   The store colour #d7cabc is very light: white text on it is ~1.6:1 contrast.
   Dark brown text keeps the brand colour and reads at ~10:1. */
.btn-primary,
.btn-secondary,
.button-style,
.explore-more-btn,
.sticky-compare-bar .btn-compare,
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.button-style:hover,
.button-style:focus,
.explore-more-btn:hover,
.explore-more-btn:focus-visible {
    color: #2d1f0e !important;
}
.btn-primary:hover,
.btn-primary:focus,
.button-style:hover,
.button-style:focus {
    border-color: #2d1f0e;
}
.button-style i,
.button-style .hdr-icon {
    color: inherit !important;
}

/* Card prices: the current price was beige-on-white, hard to read */
.product-box .product-price .price:not(.old-price) {
    color: #2d1f0e;
    font-weight: 600;
}
.product-box .product-price .old-price {
    color: #9a8f85;
}

/* ============================================================
   TABLET & PHONE  (< 992px — the bottom menubar is visible)
   ============================================================ */
@media (max-width: 991.98px) {

    /* Keep the last bit of every page clear of the fixed bottom menubar */
    body {
        padding-bottom: 56px;
    }

    /* Bottom menubar: taller tap targets, safe-area aware */
    .menubar-mobile {
        height: auto;
        min-height: 56px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid #efe7de;
        box-shadow: 0 -4px 16px rgba(45, 31, 14, 0.06);
    }
    .menubar-mobile .menubar-item > a {
        min-height: 44px;
        padding-left: 4px;
        padding-right: 4px;
        color: #2d1f0e;
    }
    .menubar-mobile .menubar-icon {
        font-size: 18px;
    }
    .menubar-mobile .counter {
        right: -12px;
    }

    /* Floating chat / back-to-top: sit above the menubar instead of on it */
    .sticky-btn-box {
        right: 14px;
        bottom: calc(68px + env(safe-area-inset-bottom));
    }
    .sticky-btn-box #site-scroll,
    .sticky-btn-box .chat-btn {
        width: 40px;
        height: 40px;
    }

    /* ── Header: one tidy row  [menu][search]  LOGO  [cart] ── */
    .header-7 .header-main {
        padding: 10px 0 !important;
    }
    .header-7 .icons-col {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .header-7 .icons-col.text-right {
        justify-content: flex-end;
    }
    .header-7 .icons-col > .iconset {
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-7 .icon-link,
    .header-7 .icon-link.clr-none,
    .header-7 .account-link,
    .header-7 .menu-icon {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header-7 .menu-icon .iconCot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Account and cart live in the bottom menubar on these screens;
       search moves to the right, so the header reads [menu]  LOGO  [search] */
    .header-7 .icons-col.text-left .account-parent,
    .header-7 .icons-col.text-left .search-parent,
    .header-7 .icons-col.text-right .header-cart {
        display: none !important;
    }
    .header-7 .logo .logoImg img {
        max-height: 48px !important;
    }
    .hdr-botanical {
        opacity: 0.25;
    }

    /* ── Home hero: height follows the banner (was a fixed 400–500px box on tablets) ── */
    .tiny-slider,
    .slideshow-medium .slideshow-wrap {
        height: auto !important;
    }
    .home-slideshow .slick-dots {
        top: auto !important;
        bottom: 10px !important;
    }

    /* ── Home: Shop by Category (several per row instead of one giant tile) ── */
    /* keeps the brand's diamond-cut image, just sized to the slide */
    .home_theme_two_category_card {
        height: auto !important;
        padding: 4px 0;
    }
    .home_theme_two_category_card .home_theme_two_category_image {
        width: 100%;
        max-width: 110px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .home_theme_two_category_card .details {
        margin-top: 8px !important;
    }
    .home_theme_two_category_card .category-title {
        font-size: 12px !important;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .home-theme-2-category-mySwiper .swiper-button-next,
    .home-theme-2-category-mySwiper .swiper-button-prev {
        display: none;
    }

    /* ── Mobile slide-out menu ── */
    .mobile-nav-wrapper {
        width: min(86vw, 340px) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }
    .mobile-nav .lvl1 > a {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        font-size: 13px !important;
        line-height: 18px !important;
        letter-spacing: 1px;
        color: #2d1f0e !important;
    }
    /* arrow cell = height of its own row, not of the opened submenu below it */
    .mobile-nav .submenu-toggle {
        height: 48px;
        width: 48px;
        background-color: transparent;
        border-left: 1px solid #f1ebe4;
    }
    .mobile-nav .submenu-toggle:hover {
        background-color: #f7f0ea;
    }
    .mobile-nav .has-submenu.active > a {
        background-color: #f7f0ea;
        font-weight: 600;
    }
    .mobile-nav .lvl-2,
    .mobile-nav .lvl-3 {
        background-color: #fbf8f5;
    }
    .mobile-nav .lvl-2 > li {
        border-top-color: #f1ebe4;
    }
    .mobile-nav .lvl-2 .submenu-toggle {
        height: 42px;
    }
    .mobile-nav .lvl-2 > li > a {
        padding: 12px 50px 12px 26px;
        line-height: 18px;
        color: #4a3b2c;
    }
    .mobile-nav .lvl-3 > li > a {
        padding: 11px 16px 11px 40px;
        background-color: transparent;
        color: #6a5a4a;
    }
    .mobile-nav .lvl-3 > li {
        border-top-color: #f3eee8;
    }
}

/* ============================================================
   PHONES  (< 768px)
   ============================================================ */
@media (max-width: 767.98px) {

    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Home blocks: a bit tighter than desktop's 40px */
    .section.home-block {
        margin-top: 28px !important;
    }

    /* ── Section headings: title can wrap, "view all" arrow stays clear of it ── */
    .section-header.style2 {
        padding: 0 44px;
    }
    .section-title-with-lines h1,
    .section-title-with-lines h2 {
        white-space: normal;
        font-size: 20px !important;
        line-height: 1.25;
        text-align: center;
    }
    .section-title-with-lines::before,
    .section-title-with-lines::after {
        max-width: 28px;
        min-width: 16px;
    }
    .section-title-with-lines::before { margin-right: 10px; }
    .section-title-with-lines::after  { margin-left: 10px; }
    .section-header-centered p {
        font-size: 13px;
        margin-bottom: 0;
    }
    .section-header-right.arrow-end {
        right: 0;
    }
    .section-header-right.arrow-end .view_more_icon {
        width: 34px;
        height: 34px;
    }
    .explore-more-btn {
        padding: 10px 24px;
        margin-top: 10px;
    }

    /* ── Product cards ── */
    .product-box {
        padding: 0 8px 10px;
    }
    .product-box .button-set.style1 .btn-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px;
    }
    .product-box .product-details {
        padding-top: 8px;
    }
    .product-box .product-vendor {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .product-box .product-name {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .product-box .product-price {
        font-size: 13px;
        margin: 2px 0;
    }
    .product-box .button-action .button-style {
        width: 100%;
        justify-content: center;
        min-height: 38px;
        font-size: 11px;
        letter-spacing: 0.5px;
        padding: 6px 4px !important;
    }
    .product-box .button-action .button-style .hdr-icon {
        margin-right: 6px !important;
    }

    /* ── Breadcrumb: one line, the long product name is truncated ── */
    .page-header .breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
        min-width: 0;
    }
    .page-header .breadcrumbs > * {
        flex: 0 0 auto;
    }
    .page-header .breadcrumbs > :last-child {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Product details: thumbnails go under the main photo ── */
    .product-thumb-left-style {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .product-thumb-left-style .product-thumb,
    .product-thumb-left-style .zoompro-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .product-thumb-left-style .product-thumb .product-thumb-vertical {
        height: auto !important;
    }
    .product-thumb-left-style .product-thumb-vertical:not(.slick-vertical) div.slick-slide {
        padding: 0 4px;
    }
    .product-thumb-left-style .product-thumb .slick-slide img {
        width: 100%;
        height: auto;
        border: 1px solid #efe7de;
        border-radius: 8px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #fff;
    }
    .product-thumb-left-style .product-thumb .slick-current img,
    .product-thumb-left-style .product-thumb .active.slick-current img {
        border-color: #2d1f0e;
    }
    .product-single .product-main-title {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Larger tap targets for forms */
    input.form-control,
    select.form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* stops iOS zooming into the field */
    }

    /* Footer */
    .footer .footer-top {
        padding-top: 40px;
    }
    .footer-tagline,
    .footer-links a,
    .footer-check-label,
    .footer-contact-list li,
    .footer-newsletter-col .footer-newsletter-desc {
        text-align: left;
    }
}

/* ============================================================
   SMALL PHONES  (< 400px — iPhone SE / mini, small Androids)
   ============================================================ */
@media (max-width: 399.98px) {
    .header-7 .icons-col {
        gap: 6px;
    }
    .header-7 .icon-link,
    .header-7 .icon-link.clr-none,
    .header-7 .menu-icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px;
    }
    .header-7 .logo .logoImg img {
        max-height: 42px !important;
    }
    .section-title-with-lines h1,
    .section-title-with-lines h2 {
        font-size: 18px !important;
    }
    .product-box .button-action .button-style {
        font-size: 10px;
    }
    .product-box .button-action .button-style .hdr-icon {
        display: none;
    }
}
