/* Uyana — product carousel + "Our approach" (shared, theme fonts/colours) */
:root {
    --jad-primary: var(--e-global-color-secondary, #111111);
    --jad-secondary: var(--e-global-color-primary, #1a1a1a);
    --jad-muted: #8a8a8a;
    --jad-line: #e7e4de;
    --jad-bg-soft: #f6f4f0;
}

/* ── Our approach ── */
.uyana-approach { max-width: 1280px; margin: 40px auto 10px; padding: 0 24px; text-align: center; }
.uyana-approach-title { font-size: 36px; line-height: 1.1; color: var(--jad-secondary); margin: 0 0 36px; }
.uyana-approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.uyana-approach-col { text-align: center; }

/* Hide focus ring on mouse click, keep for keyboard (a11y). */
.uyana-carousel :focus:not(:focus-visible),
.uyana-collection :focus:not(:focus-visible) { outline: none; }

/* ── Collection pages (New Arrivals / Bestsellers / Last Chance / Sale) ── */
.uyana-collection-banner { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); height: 300px; background-size: cover; background-position: center; }
.uyana-collection-header { text-align: center; max-width: 760px; margin: 40px auto; padding: 0 20px; }
.uyana-collection-title { font-size: 46px; line-height: 1.1; color: var(--jad-secondary); margin: 0 0 16px; }
.uyana-collection-intro { font-size: 16px; line-height: 1.7; color: var(--jad-muted); }
.uyana-collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; max-width: 1440px; margin: 0 auto; padding: 0 32px 64px; }
.uyana-collection-empty { text-align: center; color: var(--jad-muted); padding: 40px 0 80px; }
@media (max-width: 1100px) { .uyana-collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
    .uyana-collection-banner { height: 180px; }
    .uyana-collection-title { font-size: 32px; }
    .uyana-collection-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; padding: 0 16px 56px; }
}

/* ── Carousel ── */
.uyana-carousel { margin: 0; width: 100%; }
/* Single-product "You'll also love" needs side padding (it's not in a box). */
.uyana-youll-love { padding: 0 32px; }
@media (max-width: 700px) { .uyana-youll-love { padding: 0 16px; } }
.uyana-carousel-head { display: flex; align-items: center; gap: 24px; margin-bottom: 6px; }
.uyana-carousel-title { font-size: 40px; line-height: 1; color: var(--jad-secondary); margin: 0; }
/* Arrows aligned left (next to the title) on laptop. */
.uyana-carousel-nav { display: flex; gap: 18px; margin-right: auto; }
.uyana-carousel-arrow { width: auto; height: auto; border: none; border-radius: 0; background: none; color: var(--jad-secondary); cursor: pointer; padding: 4px; display: grid; place-items: center; transition: opacity .15s; }
.uyana-carousel-arrow:hover { opacity: .6; }
.uyana-carousel-arrow svg { width: 34px; height: 22px; }
.uyana-carousel-arrow[disabled] { opacity: .3; cursor: default; }

/* 5 cards + ~20% peek of the next; track bleeds past the box to the viewport's right edge. */
.uyana-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--uy-gaps, 5) * 16px) / var(--uy-per, 5.2)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-right: calc((100% - 100vw) / 2); padding: 10px 4px 30px; }
.uyana-carousel-track::-webkit-scrollbar { display: none; }
/* Mouse drag-to-swipe affordance */
.uyana-carousel-track { cursor: grab; }
.uyana-carousel-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.uyana-carousel-track.is-dragging .uyana-ccard { pointer-events: none; }
.uyana-carousel-track img { -webkit-user-drag: none; user-select: none; }

/* Sliding progress line under the track (rounded grey track + darker thumb). */
.uyana-carousel-progress { position: relative; height: 5px; background: #e6e3dd; border-radius: 99px; margin-top: 0px; overflow: hidden; }
.uyana-carousel-progress-bar { position: absolute; top: 0; left: 0; height: 5px; width: 20%; background: #b7b3ac; border-radius: 99px; transition: left .15s ease, width .15s ease; }

.uyana-ccard { scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
/* Cream card container */
.uyana-ccard-inner { position: relative; background: #f3efe7; border-radius: 22px; padding: 16px; transition: box-shadow .25s ease, transform .25s ease; }
.uyana-ccard:hover .uyana-ccard-inner { box-shadow: 0 14px 34px rgba(60, 45, 30, .12); transform: translateY(-2px); }
/* NEW badge */
.uyana-ccard-badge { position: absolute; top: 26px; left: 26px; z-index: 2; background: #7c1f1f; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 7px 16px; border-radius: 99px; }
.uyana-ccard-media { position: relative; aspect-ratio: 4 / 5; background: var(--jad-bg-soft); overflow: hidden; border-radius: 14px; }
/* square="yes" → standardise every image to a 1:1 box */
.uyana-carousel--sq .uyana-ccard-media { aspect-ratio: 1 / 1; }
.uyana-ccard-media .uyana-ccard-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; transition: opacity .4s ease; }
.uyana-ccard-img--2 { opacity: 0; }
.uyana-ccard:hover .uyana-ccard-img--2 { opacity: 1; }
/* Body: name + subtitle, then "See more" (on hover) below */
.uyana-ccard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 6px 6px; }
.uyana-ccard-title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--jad-secondary); margin: 0 0 4px; }
.uyana-ccard-sub { font-size: 13px; color: var(--jad-muted); }
.uyana-ccard-more { font-size: 13px; letter-spacing: .03em; color: var(--jad-secondary); text-decoration: underline; text-underline-offset: 3px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.uyana-ccard:hover .uyana-ccard-more { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) {
    .uyana-ccard-badge { top: 24px; left: 24px; }
    /* Touch devices have no hover — always show See more. */
    .uyana-ccard-more { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    /* Setting the vars on the track overrides the per-instance section values. */
    .uyana-carousel-track { --uy-gaps: 3; --uy-per: 3.3; }
    .uyana-approach-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 700px) {
    .uyana-carousel-track { --uy-gaps: 1; --uy-per: 1.3; gap: 14px; }
    .uyana-carousel-title { font-size: 28px; }
    .uyana-carousel-arrow svg { width: 30px; height: 20px; }
    .uyana-approach-grid { grid-template-columns: 1fr 1fr; }
    .uyana-approach-title { font-size: 28px; }
    /* Arrows split to the left and right edges below the title on mobile. */
    .uyana-carousel-head { flex-wrap: wrap; }
    .uyana-carousel-nav { width: 100%; justify-content: space-between; margin: 0; }
}

/* ── Image carousel + lightbox ── */
.uyana-icard { cursor: zoom-in; }
.uyana-carousel--img .uyana-ccard-inner { padding: 10px; }
/* Image carousel: same viewport bleed as product carousel so the 4th card
   peeks outside the boxed container on the right, exactly like product carousel does.
   Mobile always snaps to 1 card + peek via !important. */
@media (max-width: 700px) {
    .uyana-carousel--img .uyana-carousel-track { --uy-per: 1.2 !important; --uy-gaps: 1 !important; gap: 14px; }
}

.uyana-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(22, 17, 12, .92); }
.uyana-lightbox.is-open { display: flex; }
.uyana-lb-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.uyana-lb-btn { position: absolute; background: none; border: none; color: #fff; cursor: pointer; line-height: 1; opacity: .85; transition: opacity .15s; }
.uyana-lb-btn:hover { opacity: 1; }
.uyana-lb-close { top: 22px; right: 30px; font-size: 38px; }
.uyana-lb-prev, .uyana-lb-next { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 8px 18px; }
.uyana-lb-prev { left: 18px; }
.uyana-lb-next { right: 18px; }
.uyana-lightbox.uyana-lb-solo .uyana-lb-prev, .uyana-lightbox.uyana-lb-solo .uyana-lb-next { display: none; }
@media (max-width: 700px) {
    .uyana-lb-prev, .uyana-lb-next { font-size: 40px; padding: 6px 12px; }
    .uyana-lb-close { top: 14px; right: 18px; }
}
