/* Dahabaya («دهباية») — Ecomus home-jewerly, child of Modora (Fashion). Only what differs lives here. */

/* Jewelry photos are square (home-jewerly products 360×360), not Modora's tall fashion cards. */
body.dahabaya .card-product .card-product-wrapper { aspect-ratio: 1 / 1; border-radius: 0; }

/* Header: solid, logo and menu together (header-style-3). */
body.dahabaya #header.dh-header { background: #fff; border-bottom: 1px solid var(--line, #ebebeb); }
body.dahabaya #header.dh-header .wrap-header-left { display: flex; align-items: center; gap: 40px; }
body.dahabaya #header.dh-header .box-navigation { text-align: start; }

/* Hero: big centred white heading over the photo, outline button. */
body.dahabaya .dh-hero .wrap-slider { position: relative; }
body.dahabaya .dh-hero .wrap-slider img { width: 100%; height: clamp(360px, 44vw, 785px); object-fit: cover; display: block; }
body.dahabaya .dh-hero .wrap-slider .box-content { position: absolute; inset: 0; top: 0; transform: none; display: flex; align-items: center; justify-content: center; }
body.dahabaya .dh-hero .box-content .heading { font-size: clamp(34px, 5.2vw, 72px); line-height: 1.15; margin-bottom: 24px; }
body.dahabaya .dh-hero .box-content .heading br { display: none; }
body.dahabaya .dh-hero .box-content .tf-btn { min-width: 150px; height: 46px; }

/* Category list beside the photo. */
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .text { display: inline-flex; align-items: flex-start; gap: 4px; color: var(--main); }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .count { font-size: 12px; font-weight: 400; color: var(--text-3, #909090); }
body.dahabaya .dh-cats .tab-content .tab-pane { display: none; }
body.dahabaya .dh-cats .tab-content .tab-pane.active { display: block; }
body.dahabaya .dh-cats .tab-content img { width: 100%; aspect-ratio: 720 / 597; object-fit: cover; }

/* Best sellers on the brown band: light arrows, link and card text. */
body.dahabaya .dh-dark .flat-title .title,
body.dahabaya .dh-dark .card-product .title,
body.dahabaya .dh-dark .card-product .title a,
body.dahabaya .dh-dark .card-product .price,
body.dahabaya .dh-dark .card-product .price bdi { color: #fff; }
body.dahabaya .dh-dark .card-product .price del,
body.dahabaya .dh-dark .card-product .price del bdi { color: rgba(255, 255, 255, .65); }

/* Gift guides: the label box sits on the photo. */
body.dahabaya .dh-gifts .collection-title { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.dahabaya .dh-gifts .collection-image img { width: 100%; height: 100%; object-fit: cover; }

/* Marquee: large heavy text, sparkle in the text colour. */
body.dahabaya .tf-marquee.marquee-lg { padding: 30px 0; height: auto; border: 0; color: var(--main); }
body.dahabaya .tf-marquee.marquee-lg.bg_primary,
body.dahabaya .tf-marquee.marquee-lg.bg_dark,
body.dahabaya .tf-marquee.marquee-lg.ec-section-text-light { color: #fff; }
body.dahabaya .tf-marquee.marquee-lg p { color: inherit; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.2; }
body.dahabaya .tf-marquee.marquee-lg p.text-highlight { color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px var(--main); }
body.dahabaya .tf-marquee.marquee-lg.bg_primary p.text-highlight,
body.dahabaya .tf-marquee.marquee-lg.bg_dark p.text-highlight,
body.dahabaya .tf-marquee.marquee-lg.ec-section-text-light p.text-highlight { -webkit-text-stroke-color: #fff; }
body.dahabaya .tf-marquee.marquee-lg .dh-spark svg { width: 40px; height: 43px; color: inherit; }

/* Banner with the white card. */
body.dahabaya .banner-hero-collection-wrap .img-wrap img { width: 100%; height: clamp(320px, 41vw, 735px); object-fit: cover; display: block; }

/* Shop the look. */
body.dahabaya .dh-look-photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
body.dahabaya .dh-look .flat-title { align-items: flex-start; text-align: start; }

@media (max-width: 767px) {
    body.dahabaya .dh-look .col-md-6 + .col-md-6 { margin-top: 30px; }
}

@media (max-width: 767px) {
    /* Phones: the category names scroll sideways above the photo (home-jewerly's mobile layout). */
    body.dahabaya .dh-cats .widget-tab-4 { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    body.dahabaya .dh-cats .widget-tab-4 .nav-tab-item { scroll-snap-align: start; flex: 0 0 auto; }
}

/* ── Matched to the live demo (wpecomus.com/jewelry, measured at 1366px) ─────────────────── */

/* Hero: full screen, 80px heavy title, 160×48 outline button, dots stacked on the left. */
body.dahabaya .dh-hero .wrap-slider img { height: max(520px, calc(100vh - 0px)); max-height: 980px; }
body.dahabaya .dh-hero .box-content .heading { font-size: clamp(36px, 5.86vw, 80px); line-height: 1.2; margin-bottom: 30px; }
body.dahabaya .dh-hero .box-content .tf-btn { min-width: 160px; height: 48px; padding: 16px 33px; border: 1px solid #ebebeb; letter-spacing: 2px; background: transparent; color: #fff; }
body.dahabaya .dh-hero .box-content .tf-btn:hover { background: #fff; color: var(--main); }
body.dahabaya .dh-hero .wrap-pagination { position: absolute; inset: 0 auto 0 0; width: 132px; z-index: 3; display: flex; align-items: center; justify-content: center; }
body.dahabaya .dh-hero .wrap-pagination .container { padding: 0; width: auto; }
body.dahabaya .dh-hero .md-hero-dots { flex-direction: column; gap: 10px; position: static; }

/* Categories: 80px padding, 822×719 photo, 413px bordered list with 77px rows and 30px names. */
body.dahabaya .dh-cats { padding-top: 80px !important; padding-bottom: 80px !important; }
body.dahabaya .dh-cats .tf-grid-layout-v2 { display: grid; grid-template-columns: 413px 1fr; gap: 30px; align-items: stretch; }
body.dahabaya .dh-cats .tab-content { order: 2; }
body.dahabaya .dh-cats .widget-tab-4 { order: 1; border: 1px solid #000; padding: 46px 30px 56px; margin: 0; display: block; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-item { border-bottom: 1px solid rgba(0, 0, 0, .12); }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-item:first-child { border-bottom-color: #000; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-item:last-child { border-bottom: 0; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .text { font-size: 30px; font-weight: 800; line-height: 30px; color: #000; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .count { font-size: 14px; line-height: 14px; color: #000; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .icon { opacity: 0; transition: opacity .2s; }
body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link.active .icon { opacity: 1; }
body.dahabaya .dh-cats .tab-content img { aspect-ratio: 822 / 719; height: auto; }
body.dahabaya .dh-cats .tf-grid-layout-v2 { align-items: start; }
body.dahabaya .dh-cats .widget-tab-4 { align-self: stretch; }

/* Best sellers band: 96px top, 30px title, view-all 12px uppercase. */
body.dahabaya .dh-dark { padding-top: 96px !important; padding-bottom: 96px !important; }
body.dahabaya .dh-dark .flat-title .title,
body.dahabaya .flat-title.title-upper .title { font-size: 30px; font-weight: 800; }
body.dahabaya .dh-dark .flat-title { margin-bottom: 50px; gap: 14px; }
body.dahabaya .dh-dark .card-product .title { font-size: 16px; }

/* Gift guides: centred 30px heavy title, 510px tall tiles, 30px gaps; label boxes 18px. */
body.dahabaya .dh-gifts { grid-auto-rows: 510px; gap: 30px; }
body.dahabaya .dh-gifts .collection-inner,
body.dahabaya .dh-gifts .collection-image { height: 100%; display: block; }
body.dahabaya .dh-gifts .collection-title { font-size: 18px; font-weight: 500; padding: 13px 16px; background: #fff; color: #000; gap: 20px; }

/* Marquee: 80px heavy text, 100px above and below. */
body.dahabaya .tf-marquee.marquee-lg { padding: 126px 0; }
body.dahabaya .tf-marquee.marquee-lg p { font-size: clamp(36px, 5.86vw, 80px); line-height: 85px; }

/* Banner: full height photo, square white card 700×382. */
body.dahabaya .banner-hero-collection-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }
body.dahabaya .banner-hero-collection-wrap .img-wrap img { height: clamp(420px, 54.4vw, 743px); }
body.dahabaya .banner-hero-collection-wrap .card-box { border-radius: 0; width: 700px; max-width: 100%; padding: 60px 44px; }
body.dahabaya .banner-hero-collection-wrap .card-box .heading { font-size: 52px; line-height: 62px; }
body.dahabaya .banner-hero-collection-wrap .card-box .tf-btn { padding: 0 35px; height: 46px; line-height: 46px; display: inline-flex; align-items: center; }

/* Shop the look: 526×642 photo, centred 14px line + 40px title, 301px cards. */
body.dahabaya .dh-look { padding-top: 100px !important; padding-bottom: 100px !important; }
body.dahabaya .dh-look .row { align-items: flex-start !important; }
body.dahabaya .dh-look .col-md-6:first-child { flex: 0 0 41.5%; max-width: 41.5%; }
body.dahabaya .dh-look .col-md-6:last-child { flex: 1; max-width: none; padding-inline-end: 50px; }
body.dahabaya .dh-look-photo img { aspect-ratio: 526 / 642; }
body.dahabaya .dh-look .flat-title { align-items: center; text-align: center; margin: 50px 0 54px; }
body.dahabaya .dh-look .flat-title .title { font-size: 40px; font-weight: 800; line-height: 48px; }
body.dahabaya .dh-look .flat-title .sub-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; }

/* Features: 65px padding, round 72px outlined icon beside an uppercase title. */
body.dahabaya .dh-icons { padding-top: 65px !important; padding-bottom: 65px !important; border-top: 1px solid #ebebeb; }
body.dahabaya .dh-icons .wrap-iconbox { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 30px; transform: none !important; }
body.dahabaya .dh-icons .swiper-slide { width: auto !important; }
body.dahabaya .dh-icons .tf-icon-box { display: flex; align-items: center; gap: 22px; text-align: start; border: 0; padding: 0; }
body.dahabaya .dh-icons .tf-icon-box .icon { flex: 0 0 72px; width: 72px; height: 73px; border: 1px solid #ececec; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0; }
body.dahabaya .dh-icons .tf-icon-box .title { font-size: 14px; font-weight: 700; color: #212328; margin-bottom: 6px; }
body.dahabaya .dh-icons .tf-icon-box p { font-size: 14px; margin: 0; }

/* Footer: four columns between full-height lines, 14px heavy headings. */
body.dahabaya .dh-footer .footer-body { padding: 0; border-top: 1px solid #ebebeb; }
body.dahabaya .dh-footer .footer-body .row > [class*="col-"] { padding-top: 47px; padding-bottom: 30px; border-inline-start: 1px solid #ebebeb; }
body.dahabaya .dh-footer .footer-body .row > [class*="col-"]:first-child { border-inline-start: 0; }
body.dahabaya .dh-footer .footer-heading h6,
body.dahabaya .dh-footer .footer-heading { font-size: 14px; font-weight: 800; color: #000; }
body.dahabaya .dh-footer .footer-bottom { border-top: 1px solid #ebebeb; }

@media (max-width: 991px) {
    body.dahabaya .dh-cats .tf-grid-layout-v2 { grid-template-columns: 1fr; }
    body.dahabaya .dh-cats .widget-tab-4 { order: 0; padding: 0 16px; display: flex; }
    body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link { padding: 16px 12px; }
    body.dahabaya .dh-cats .widget-tab-4 .nav-tab-link .text { font-size: 20px; }
    body.dahabaya .dh-gifts { grid-auto-rows: 260px; gap: 15px; }
    body.dahabaya .dh-icons .wrap-iconbox { grid-template-columns: repeat(2, 1fr); }
    body.dahabaya .dh-look .col-md-6:first-child, body.dahabaya .dh-look .col-md-6:last-child { flex: 0 0 100%; max-width: 100%; padding-inline-end: 12px; }
    body.dahabaya .dh-hero .wrap-pagination { display: none; }
}
/* Section titles: 30px heavy (gift guides, reviews), with the line under it at 14px. */
body.dahabaya .flat-title .title { font-size: 30px; font-weight: 800; line-height: 36px; }
body.dahabaya .flat-title .sub-title { font-size: 14px; margin-top: 12px; }
body.dahabaya .dh-cats .tf-grid-layout-v2 > * { grid-column: auto !important; grid-row: 1; }
@media (max-width: 991px) { body.dahabaya .dh-cats .tf-grid-layout-v2 > * { grid-row: auto; } }
/* Gift labels sit in the start corner (right in RTL), arrow above the text. */
body.dahabaya .dh-gifts .collection-content { left: auto; right: auto; inset-inline-start: 20px; bottom: 20px; }

/* Reviews ("Love notes"): beige band, 100px padding, four square white cards. */
body.dahabaya .dh-reviews { padding-top: 100px !important; padding-bottom: 80px !important; }
body.dahabaya .dh-reviews .flat-title { margin-bottom: 50px; }
body.dahabaya .dh-review { background: #fff; padding: 25px 30px 30px; height: 100%; text-align: start; }
body.dahabaya .dh-review-head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 18px; }
body.dahabaya .dh-review-name { font-size: 14px; font-weight: 600; color: #000; }
body.dahabaya .dh-review-badge { background: #000; color: #fff; font-size: 12px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
body.dahabaya .dh-review-badge .icon { font-size: 9px; }
body.dahabaya .dh-review-stars { display: flex; gap: 4px; color: #000; font-size: 13px; margin-bottom: 18px; }
body.dahabaya .dh-review-title { font-size: 16px; font-weight: 700; color: #000; margin-bottom: 10px; }
body.dahabaya .dh-review-text { font-size: 14px; line-height: 22px; margin: 0; }
body.dahabaya .dh-reviews .dh-rev-dots { margin-top: 40px; }
@media (max-width: 991px) {
    /* Gift tiles on phones: two columns, the wide tiles across both. */
    body.dahabaya .dh-gifts { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-areas: none; grid-auto-rows: 240px; gap: 12px; }
    body.dahabaya .dh-gifts > [class*="item-"] { grid-area: auto !important; grid-column: auto !important; grid-row: auto !important; }
    body.dahabaya .dh-gifts > .item-1, body.dahabaya .dh-gifts > .item-6 { grid-column: 1 / -1 !important; }
    body.dahabaya .dh-gifts .collection-title { font-size: 14px; padding: 8px 10px; }
}
/* The band runs left-to-right (dir=ltr), so it takes the normal scroll, not rtl.css's reversed one
   that pulled the strip right and left a blank gap. */
body.dahabaya .tf-marquee.marquee-lg .wrap-marquee { animation-name: slide-har !important; }

/* ── Second pass against the live demo at 1366 and 2094px ─────────────────────────────────── */
/* Hero: the whole screen at any width (live is 100vh: 860 at 1366×860, 1287 at 2094×1287). */
body.dahabaya .dh-hero .wrap-slider img { height: 100vh; min-height: 520px; max-height: none; }
/* Categories: list column ≈33%, photo as tall as the list (live 822×719 at 1366, 938×778 at 2094). */
body.dahabaya .dh-cats .tf-grid-layout-v2 { grid-template-columns: 32.8% 1fr; align-items: stretch; }
body.dahabaya .dh-cats .tab-content, body.dahabaya .dh-cats .tab-pane.active, body.dahabaya .dh-cats .tab-pane.active a { height: 100%; display: block; }
body.dahabaya .dh-cats .tab-content img { height: 100%; min-height: clamp(719px, calc(719px + (100vw - 1366px) * .081), 778px); aspect-ratio: auto; object-fit: cover; }
/* Best sellers: a little more room under "view all". */
body.dahabaya .dh-dark .flat-title { margin-bottom: 56px; }
/* Banner: the template fixes the photo wrapper at 780px; let it follow the photo. */
body.dahabaya .banner-hero-collection-wrap .img-wrap { height: auto; display: block; }
/* Shop the look: two equal columns; photo 83% of its column; title near the top; cards fill the text column. */
body.dahabaya .dh-look { padding-top: 100px !important; padding-bottom: 100px !important; }
body.dahabaya .dh-look .col-md-6:first-child { flex: 0 0 50%; max-width: 50%; }
body.dahabaya .dh-look .col-md-6:last-child { flex: 0 0 50%; max-width: 50%; padding-inline-end: 12px; }
body.dahabaya .dh-look-photo { width: 83%; margin-inline-start: auto; }
body.dahabaya .dh-look .flat-title { margin: 20px 0 50px; }
body.dahabaya .dh-look .wrap-carousel { padding: 0; }
/* Reviews: room for the dots under the cards. */
body.dahabaya .dh-reviews { padding-bottom: 100px !important; }
@media (max-width: 991px) {
    body.dahabaya .dh-cats .tf-grid-layout-v2 { grid-template-columns: 1fr; }
    body.dahabaya .dh-cats .tab-content img { min-height: 0; aspect-ratio: 822 / 719; }
    body.dahabaya .dh-look .col-md-6:first-child, body.dahabaya .dh-look .col-md-6:last-child { flex: 0 0 100%; max-width: 100%; }
    body.dahabaya .dh-look-photo { width: 100%; }
}

/* ── Phones, matched to wpecomus.com/jewelry at 390px ──────────────────────────────────────── */
@media (max-width: 767px) {
    body.dahabaya .dh-hero .wrap-slider img { height: 350px; min-height: 0; }
    body.dahabaya .dh-hero .box-content .heading { font-size: 34px; margin-bottom: 16px; }
    body.dahabaya .dh-cats { padding-top: 30px !important; padding-bottom: 30px !important; }
    /* gift tiles one per row, as live */
    body.dahabaya .dh-gifts { grid-template-columns: 1fr; grid-auto-rows: 195px; gap: 12px; }
    body.dahabaya .dh-gifts > .item-1, body.dahabaya .dh-gifts > .item-6 { grid-column: auto !important; }
    /* marquee: 100px band */
    body.dahabaya .tf-marquee.marquee-lg { padding: 25px 0; }
    body.dahabaya .tf-marquee.marquee-lg p { font-size: 36px; line-height: 50px; }
    body.dahabaya .tf-marquee.marquee-lg .dh-spark svg { width: 24px; height: 26px; }
    /* banner: the white card alone, full width (live hides the photo on phones) */
    body.dahabaya .banner-hero-collection-wrap .img-wrap { display: none; }
    body.dahabaya .banner-hero-collection-wrap .box-content { position: static; transform: none; }
    body.dahabaya .banner-hero-collection-wrap .card-box { width: 100%; padding: 60px 16px; text-align: center; margin: 0; }
    body.dahabaya .banner-hero-collection-wrap .card-box .heading { font-size: 28px; line-height: 36px; }
    /* shop the look: title and products first, the photo after */
    body.dahabaya .dh-look { padding-top: 50px !important; padding-bottom: 30px !important; }
    body.dahabaya .dh-look .row { flex-direction: column-reverse !important; }
    body.dahabaya .dh-look .flat-title { align-items: center; text-align: center; margin: 0 0 24px; }
    body.dahabaya .dh-look .flat-title .title { font-size: 26px; line-height: 34px; }
    body.dahabaya .dh-look-photo { margin-top: 30px; }
    body.dahabaya .dh-look-photo img { aspect-ratio: 16 / 9; }
    body.dahabaya .dh-reviews { padding-top: 50px !important; padding-bottom: 40px !important; }
    /* features: one per view, swipe sideways */
    body.dahabaya .dh-icons { padding-top: 40px !important; padding-bottom: 40px !important; }
    body.dahabaya .dh-icons .wrap-iconbox { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; }
    body.dahabaya .dh-icons .swiper-slide { flex: 0 0 100%; scroll-snap-align: center; }
    body.dahabaya .dh-icons .tf-icon-box { flex-direction: column; text-align: center; }
    /* footer: compact accordion rows, no column lines */
    body.dahabaya .dh-footer .footer-body .row > [class*="col-"] { padding-top: 14px; padding-bottom: 14px; border-inline-start: 0; border-top: 1px solid #ebebeb; }
    body.dahabaya .dh-footer .footer-body .row > [class*="col-"]:first-child { border-top: 0; padding-top: 30px; }
}
@media (max-width: 767px) { body.dahabaya .dh-hero .wrap-slider { height: auto !important; min-height: 0 !important; } }
