/* ==========================================================================
   ই-তাঁতি (E-TAATI) — photography layer for the client-preferred heritage design
   Loaded after store.css + etaati.css. Keeps the original header, navigation, colours
   (green / cream / gold) and typography; only adds: the client's logo emblem, photos in
   the hero arch, a compact auto-scrolling category row, refined product cards and
   photo collection banners. Remove its <link> in layouts/app.blade.php to roll back.
   ========================================================================== */

/* ---------- Client logo emblem in the original lockup ---------- */
.etaati-logo .etaati-emblem { display: block; line-height: 0; flex-shrink: 0; }
.etaati-logo .etaati-emblem img { width: 56px; height: 56px; border-radius: 8px; display: block; object-fit: contain;
    box-shadow: 0 0 0 1px rgba(197, 160, 90, .55), 0 8px 16px -10px rgba(7, 92, 53, .55); transition: transform .5s var(--ease); }
.etaati-logo:hover .etaati-emblem img { transform: scale(1.03); }
.site-footer .etaati-logo .etaati-emblem img { width: 64px; height: 64px; }
@media (max-width: 575.98px) {
    .etaati-logo .etaati-emblem img { width: 44px; height: 44px; border-radius: 6px; }
}

/* ---------- Hero: same cream layout, balanced type, photo in the gold arch ---------- */
.et-hero-title { font-size: clamp(2.1rem, 1.35rem + 2.5vw, 3.6rem); line-height: 1.1; }
.et-hero-desc { font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); }
.et-arch { width: min(100%, 460px); background: var(--ivory-deep); }
.et-arch img { object-fit: cover; object-position: center; transition: transform 6s ease-out; }
.et-hero .carousel-item.active .et-arch img { transform: scale(1.04); }
@media (max-width: 991.98px) {
    .et-arch { width: min(74vw, 340px); }
}
@media (max-width: 575.98px) {
    .et-arch { width: min(68vw, 280px); }
    .et-hero-title { font-size: clamp(1.85rem, 1.4rem + 2.4vw, 2.3rem); }
}

/* ---------- Shop by Category: compact arched photo cards, auto-scrolling row ---------- */
.section-categories .section-head { align-items: flex-end; }
.et-cat-nav { display: flex; gap: .45rem; margin-left: auto; margin-right: 1rem; }
.et-cat-nav[hidden] { display: none; }
.et-cat-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(var(--brand-rgb), .35); background: var(--paper); color: var(--brand-ink);
    display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.et-cat-nav button:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--ivory); }
.et-cat-nav button:disabled { opacity: .4; pointer-events: none; }
.et-cat-track { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
    overscroll-behavior-x: contain; padding: 4px 2px 10px; cursor: grab; }
.et-cat-track::-webkit-scrollbar { display: none; }
.et-cat-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.et-cat-track.is-dragging a { pointer-events: none; }
.et-cat-carousel.is-static .et-cat-track { cursor: default; justify-content: center; }
.et-cat-slide { flex: 0 0 clamp(150px, calc((100% - 4 * 20px) / 4.6), 230px); scroll-snap-align: start; }
.et-cat-slide .category-card { padding: .55rem .55rem .9rem; border-radius: 16px; }
.et-cat-slide .category-card .thumb { aspect-ratio: 4 / 5; border-radius: 120px 120px 10px 10px; margin-bottom: .7rem; }
.et-cat-slide .category-card .thumb img { -webkit-user-drag: none; user-select: none; transition: transform .8s var(--ease); }
.et-cat-slide .category-card:hover .thumb img { transform: scale(1.06); }
.et-cat-slide .category-card .cat-name { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); }
.et-cat-slide .category-card .cat-en { font-size: .64rem; margin-bottom: .2rem; }
.et-cat-slide .category-card small { font-size: .78rem; color: var(--muted); }
@media (max-width: 767.98px) {
    .et-cat-nav { display: none; }
    .et-cat-slide { flex-basis: 40vw; }
}

/* ---------- Product cards: consistent photos, calmer actions ---------- */
.theme-etaati .product-card .media img { object-fit: cover; }
.theme-etaati .product-card .title { font-size: .96rem; line-height: 1.35; }
.theme-etaati .product-card .card-btn { height: 40px; font-size: .8rem; font-weight: 600; }
.theme-etaati .product-card .card-actions { gap: .4rem; }
.theme-etaati .product-card .badges { gap: .3rem; }
@media (max-width: 575.98px) {
    .theme-etaati .product-card .card-btn { height: 36px; font-size: .74rem; }
}

/* ---------- Curated collections (promo cards): taller photo cards ---------- */
.promo-card { min-height: clamp(260px, 22vw, 330px); border-radius: 18px; padding: 1.6rem; border-color: var(--border); }
.promo-card::before { background: linear-gradient(90deg, rgba(255, 253, 248, .96) 0%, rgba(255, 253, 248, .82) 38%, rgba(255, 253, 248, 0) 70%); }
.promo-card h3 { font-family: var(--font-head); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); color: var(--brown); }
.promo-card .link { color: var(--brand-ink); border-bottom-color: var(--gold); }

/* ---------- Premium collection banner: photo with a deep green-brown veil ---------- */
.wide-promo { min-height: clamp(340px, 32vw, 440px); display: flex; align-items: center; border-radius: 24px; background-size: cover; background-position: center 60%;
    box-shadow: inset 0 0 0 1px rgba(197, 160, 90, .35); }
.wide-promo::before { background: linear-gradient(90deg, rgba(4, 57, 31, .92) 0%, rgba(4, 57, 31, .72) 40%, rgba(52, 43, 37, .15) 78%); }
.wide-promo h2 { font-family: var(--font-head); font-weight: 700; color: var(--ivory); }
.wide-promo .promo-pill { background: rgba(197, 160, 90, .22); color: #f3e2bd; }
@media (max-width: 767.98px) {
    .wide-promo::before { background: linear-gradient(0deg, rgba(4, 57, 31, .94) 0%, rgba(4, 57, 31, .7) 60%, rgba(4, 57, 31, .35) 100%); }
}

/* ---------- Brand story: photo instead of the woven art ---------- */
.et-story-visual > img { object-fit: cover; height: 100%; }

@media (prefers-reduced-motion: reduce) {
    .et-arch img, .et-hero .carousel-item.active .et-arch img, .et-cat-slide .category-card .thumb img { transition: none; transform: none; }
    .et-cat-track { scroll-behavior: auto; }
}

/* Section-head children are flex columns in etaati.css: keep the category arrows a row, hide them on phones. */
.theme-etaati .section-head > .et-cat-nav { flex-direction: row; order: 0; }
.theme-etaati .section-head > .et-cat-nav[hidden] { display: none; }
@media (max-width: 767.98px) { .theme-etaati .section-head > .et-cat-nav { display: none; } }
/* Hero controls on phones: no counter (dots + arrows only), nothing clipped. */
@media (max-width: 575.98px) {
    .et-hero .hero-counter { display: none; }
    .et-hero .hero-ui-row { gap: .5rem; }
    .et-hero .hero-pager { flex: 1 1 auto; min-width: 0; }
    .et-hero .hero-nav { flex-shrink: 0; gap: .35rem; }
    .et-hero .hero-btn { width: 38px; height: 38px; }
}

/* ---------- Hero photo slides (client photos): cream slide, photo on the right fading into it ---------- */
.et-hero-photo { min-height: clamp(470px, 34vw, 620px); display: flex; align-items: center; overflow: hidden; }
.et-hero-photo > .container { position: relative; z-index: 1; width: 100%; }
.et-hero-photo .et-hero-grid { grid-template-columns: minmax(0, 520px) 1fr; }
.et-hero-media { position: absolute; top: 0; right: 0; bottom: 8px; width: 60%; z-index: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 10%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 10%, #000 24%); }
.et-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center);
    transform: scale(1.04); transition: transform 7s ease-out; }
.et-hero .carousel-item.active .et-hero-media img { transform: scale(1); }
.et-hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(52, 43, 37, .18) 0%, rgba(52, 43, 37, 0) 30%); } /* keeps the slide controls readable */
.et-hero-photo::before { -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 45%); mask-image: linear-gradient(100deg, #000 0%, transparent 45%); }
@media (max-width: 1199.98px) and (min-width: 992px) {
    .et-hero-photo .et-hero-grid { grid-template-columns: minmax(0, 440px) 1fr; }
    .et-hero-media { width: 56%; }
}
@media (max-width: 991.98px) {
    .et-hero-photo { display: block; min-height: 0; padding-top: 0; }
    .et-hero-photo .et-hero-grid { grid-template-columns: 1fr; }
    .et-hero-media { position: relative; display: block; width: 100%; bottom: auto; aspect-ratio: 3 / 2; max-height: 62vh; margin-bottom: 1.6rem;
        -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 16%); mask-image: linear-gradient(0deg, transparent 0%, #000 16%); }
    .et-hero-media::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .et-hero-media img, .et-hero .carousel-item.active .et-hero-media img { transform: none; transition: none; }
}
@media (min-width: 992px) {
    .et-hero-photo .et-hero-grid { grid-template-columns: minmax(0, 470px) 1fr; }
    .et-hero-media { width: 57%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 7%, #000 15%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 7%, #000 15%); }
}
@media (min-width: 992px) { .et-hero-photo { min-height: clamp(500px, 36vw, 620px); } .et-hero-photo .et-hero-copy { padding-bottom: 3.4rem; } }
@media (min-width: 576px) and (max-width: 991.98px) { .et-hero-media { max-height: 50vh; } }

/* ---------- Category images: premium rounded rectangle (replaces the arch) — every category card ---------- */
.theme-etaati .category-card .thumb,
.theme-etaati .section-categories .category-card .thumb,
.et-cat-slide .category-card .thumb { border-radius: 12px; aspect-ratio: 4 / 5; overflow: hidden; }
.theme-etaati .category-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: inherit; }

/* ---------- Premium Collection: photo carries its own deep-green wall, so a lighter veil ---------- */
.wide-promo::before { background: linear-gradient(90deg, rgba(4, 45, 25, .78) 0%, rgba(4, 45, 25, .5) 30%, rgba(4, 45, 25, 0) 55%); }
@media (max-width: 767.98px) {
    .wide-promo { background-position: 72% center !important; }
    .wide-promo::before { background: linear-gradient(0deg, rgba(4, 45, 25, .9) 0%, rgba(4, 45, 25, .65) 55%, rgba(4, 45, 25, .3) 100%); }
}

/* ---------- Our Story photo: consistent radius, no distortion ---------- */
.et-story-visual > img { object-fit: cover; object-position: center; border-radius: 24px; }
