/* ==========================================================================
   Responsive layer — tablet, laptop, desktop, large desktop.
   2026-09-26 refactor. The phone (< 768px) is the approved design and is owned
   by app.css + the plugin stylesheets; this file only ever adds rules inside
   min-width queries (plus the announcement ticker, which already applied to
   every width), so nothing here can change a phone.

   Breakpoints (same everywhere): 768 tablet · 1024 laptop · 1280 desktop ·
   1600 large desktop. Container, gutter and max width are the tokens in
   app.css (:root --y-pad / --y-maxw); every section below aligns to them.

   What changed vs. the previous desktop.css, and why:
   - It re-declared .y-container at 1440/32px while app.css said 1360/24px, so
     header, grids and footer sat on two different edges. One token now.
   - Cards had a second look on desktop (14px radius, #fafbfb body, frosted
     heart) — desktop is now the same card as mobile, only with hover.
   - The hero was forced to a 420–560px band with object-fit:cover, cropping
     every slide, and desktop.js painted a hard-coded headline over slide 1
     even though each slide's image carries its own copy (slider.css,
     2026-09-08). Both removed; the slider's real-ratio sizing is back.
   ========================================================================== */

.yd-search, .yd-nav, .yd-slide-control, .yd-audience, .yd-footer { display: none; }

/* --- announcement ticker (all widths — unchanged behaviour) --------------- */
.y-announce:has(> .yd-announcement), .yd-announcement { position: relative; height: 40px; padding: 0; overflow: hidden; background: #000; color: #fff; }
.yd-announcement__message { position: absolute; top: 50%; left: 16px; width: max-content; max-width: calc(100% - 32px); white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 1.5; transform: translateY(-50%); animation: yd-announcement-drift 18s ease-in-out infinite alternate; }
.yd-announcement:hover .yd-announcement__message, .yd-announcement:focus .yd-announcement__message { animation-play-state: paused; }
.yd-announcement:focus-visible { outline: 2px solid #66c7cc; outline-offset: -3px; }
@keyframes yd-announcement-drift {
  from { left: 16px; transform: translate(0, -50%); }
  to { left: calc(100% - 16px); transform: translate(-100%, -50%); }
}

/* ==========================================================================
   TABLET  ≥ 768px
   ========================================================================== */
@media (min-width: 768px) and (max-width: 767px) {
  /* Fluid type: phone sizes are the floor, nothing is simply doubled. */
  .y-section__title { font-size: clamp(1.0625rem, .8rem + .6vw, 1.5rem); }
  .yef-listing__title { font-size: clamp(1.125rem, .85rem + .7vw, 1.625rem); }
  .y-shop__title { font-size: clamp(1.125rem, .85rem + .7vw, 1.625rem); }

  /* Listing grid (categories/men/women/kids): 2 → 3 columns on tablet. */
  .yef-grid--2col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }

  /* Flash Deals: the slot keeps its phone width (clamp up to 200px) even after
     the track turns into a 4-column grid, overflowing its column at 768px and
     leaving tiny cards at 1440px. In grid mode the column decides. */
  .yps-fd__grid.y-grid--scroll { max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); margin-inline: auto; padding-inline: var(--y-pad); gap: 16px; }
  .yps-fd__grid.y-grid--scroll > .yps-fd__slot { width: auto; min-width: 0; }

  /* "تسوّق حسب الشكل" cards: an exact number per row instead of fixed-width
     cards that end mid-card at the viewport edge. Still a swipe/scroll row. */
  /* Margin, not padding: padding is inside the scrollport, so the next card
     would peek through the gutter as a sliver. */
  .y-scroller:has(> .yps-vcard) { --yd-vc-n: 4; width: min(100% - 2 * var(--y-pad), var(--y-maxw)); margin-inline: auto; padding-inline: 0; scroll-padding-inline: 0; gap: 16px; box-sizing: border-box; }
  .y-scroller:has(> .yps-vcard) > .yps-vcard { width: auto; flex: 0 0 calc((100% - (var(--yd-vc-n) - 1) * 16px) / var(--yd-vc-n)); min-width: 0; }

  /* Footer: the contact buttons were stretching to ~460px each on desktop. */
  .y-footer__buttons { max-width: 560px; margin-inline: auto; }
  .y-footer__benefits { gap: clamp(40px, 6vw, 96px); }

  /* Checkout map step: the bottom card spanned the full screen width. */
  /* Floats over the map as a card instead of a full-width bottom strip. */
  .yef-panel--map .yef-map-sheet { position: absolute; inset-inline: 0; bottom: 24px; width: min(100% - 32px, 560px); margin-inline: auto; box-sizing: border-box; border-radius: 24px; }
  .yef-panel--map .yef-map-search { inset-inline: max(16px, calc((100% - 560px) / 2)); }
}

/* ==========================================================================
   DESKTOP REDESIGN  ≥ 1024px   (2026-09-26, pass 2)
   Everything below 1024px is frozen: this block only overrides at ≥1024 and
   the few base rules above it only hide desktop-only markup.
   Breakpoints: 1024 laptop · 1280 desktop · 1600 large desktop.
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 767px) {
  :root {
    --y-maxw: 1400px;
    --y-pad: 32px;
    --y-header-h: 72px;
    --yd-section: 64px;              /* rhythm between major sections */
    --yd-radius: 18px;
    --yd-ease: 200ms cubic-bezier(.2, .7, .2, 1);
    --yd-ink-2: #17383b;              /* deep turquoise-ink for hovers   */
    --yd-tint: #eef8f8;               /* pale brand tint                 */
  }

  /* ---------- typography (desktop scale; phones never see these) -------- */
  .y-section__title { font-size: 1.625rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
  .y-section__link { font-size: .875rem; font-weight: 600; color: #345c60; text-decoration: none; }
  .y-section__link:hover { color: var(--yd-ink-2); text-decoration: underline; text-underline-offset: 4px; }
  .y-section__head { align-items: center; margin-bottom: 24px; }

  /* ---------- header: one compact row ----------------------------------- */
  .y-header { border-bottom: 1px solid #edf0f0; }
  .y-header > .y-container { max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); }
  .y-header__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; height: var(--y-header-h); gap: 28px; }
  .y-header__logo { font-size: 30px; line-height: 1; letter-spacing: 0; min-width: 0; }
  .y-header__side--end { margin-inline-start: 0; gap: 6px; }
  .y-header .y-iconbtn { width: 42px; height: 42px; border-radius: 50%; transition: background var(--yd-ease), color var(--yd-ease); }
  .y-header .y-iconbtn:hover { background: var(--yd-tint); color: var(--yd-ink-2); }
  .y-header .y-header__login { width: auto; border-radius: 999px; padding-inline: 14px; }
  .y-header .y-badge { top: 2px; inset-inline-end: 0; }

  .yd-nav { display: flex; align-items: center; justify-content: flex-start; gap: 4px; min-height: 0; border: 0; white-space: nowrap; }
  .yd-nav a { position: relative; display: inline-flex; align-items: center; height: 40px; padding-inline: 12px; border-radius: 999px; color: #1d2324; text-decoration: none; font-size: .9375rem; font-weight: 600; transition: background var(--yd-ease), color var(--yd-ease); }
  .yd-nav a:hover { background: var(--yd-tint); color: var(--yd-ink-2); }
  .yd-nav a[aria-current="page"] { color: var(--yd-ink-2); }
  .yd-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--y-accent); }

  .yd-search { display: flex; align-items: center; width: clamp(200px, 20vw, 300px); height: 42px; border: 1px solid #e1e8e8; border-radius: 999px; background: #f6f8f8; overflow: hidden; transition: border-color var(--yd-ease), background var(--yd-ease); }
  .yd-search:hover { border-color: #c9dcdc; }
  .yd-search:focus-within { background: #fff; border-color: var(--y-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--y-accent) 22%, transparent); }
  .yd-search input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent; color: #111; box-shadow: none; outline: none; font: inherit; font-size: .875rem; }
  .yd-search button { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border: 0; background: transparent; color: #34565a; cursor: pointer; }

  .y-header a:focus-visible, .y-header button:focus-visible, .yd-slide-control:focus-visible,
  .y-card a:focus-visible, .y-card button:focus-visible, .yd-audience__card:focus-visible { outline: 2px solid var(--yd-ink-2); outline-offset: 3px; }

  /* ---------- home: section order + rhythm ------------------------------ */
  .home main.wp-block-group { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
  .home main > * { margin-block: 0; }
  .home main > .y-header { order: -5; }
  .home main > .y-hero { order: -4; }
  .home main > .yd-audience { order: -3; }
  .home main > .y-brand-section { order: 1; }            /* promo after "وصل حديثًا" */
  .home main > .y-section--catrow { display: none; }     /* replaced by .yd-audience */
  .home main > .y-section { padding-block: var(--yd-section) 0; }
  .home main > .y-brand-section { padding-block: var(--yd-section); }

  /* ---------- hero: full-width band, framed uncropped slide ------------- */
  /* Slides are 2:1 artwork with copy baked in near the edges, so they are
     framed (max 1100×550) rather than cropped into a wider band. */
  .home .y-hero.yps-slider { padding-block: 28px 0; background: #fff; }
  .home .yps-slider .yps-slider__track { width: min(100% - 2 * var(--y-pad), 1100px); margin-inline: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px -24px #17383b55; }
  .home .yps-slider .yps-slider__picture { max-height: none; background: transparent; }
  /* The dot scrim is a full-width ::after on the slider — keep it on the framed slide. */
  .home .yps-slider[data-count]:not([data-count="1"])::after { inset-inline: 0; width: min(100% - 2 * var(--y-pad), 1100px); margin-inline: auto; border-radius: 0 0 22px 22px; }
  .home .yps-slider .yps-slider__dot { min-width: 8px; height: 8px; }
  .home .yps-slider .yps-slider__dot.is-active { width: 26px; }
  .yd-slide-control { display: flex; align-items: center; justify-content: center; position: absolute; top: calc(50% + 14px); transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border: 1px solid #dfe7e7; border-radius: 50%; background: #fff; color: var(--yd-ink-2); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px #17383b1f; transition: transform var(--yd-ease), background var(--yd-ease); }
  .yd-slide-control:hover { background: var(--yd-tint); }
  .yd-slide-control--prev { inset-inline-start: max(12px, calc((100% - 1100px) / 2 - 22px)); }
  .yd-slide-control--next { inset-inline-end: max(12px, calc((100% - 1100px) / 2 - 22px)); }

  /* ---------- shop by audience (رجالي / نسائي / أطفال) ------------------ */
  .yd-audience { display: block; padding-top: 40px; }
  .yd-audience__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .yd-audience__card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--yd-radius); overflow: hidden; background: #e9eff0; color: #fff; text-decoration: none; isolation: isolate; }
  .yd-audience__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
  .yd-audience__card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #0b2426cc 0%, #0b242633 42%, transparent 70%); }
  .yd-audience__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 24px; }
  .yd-audience__body strong { font-size: 1.625rem; font-weight: 800; line-height: 1.2; }
  .yd-audience__body span { font-size: .9375rem; opacity: .92; }
  .yd-audience__body em { margin-top: 10px; font-style: normal; font-size: .8125rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--yd-ink-2); transition: background var(--yd-ease), color var(--yd-ease); }

  /* ---------- product grids: controlled width, complete rows ------------ */
  .y-grid, .y-grid.y-grid--scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
  .home .y-grid.y-grid--scroll { max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); padding-inline: var(--y-pad); }
  /* 10 products into 4 columns leaves an orphan row of 2 — show whole rows. */

  /* ---------- product card (desktop presentation of the same card) ------ */
  .y-card { border-radius: var(--yd-radius); border-color: #ebeeee; transition: box-shadow var(--yd-ease), border-color var(--yd-ease), transform var(--yd-ease); }
  .y-card__media { aspect-ratio: 1 / 1; background: #fff; }
  .y-card__media img { padding: 8%; box-sizing: border-box; transition: transform 320ms cubic-bezier(.2, .7, .2, 1); }
  .y-card__body { padding: 14px 16px 16px; background: #f8f9f9; }
  .y-card__title { font-size: .9375rem; font-weight: 700; line-height: 1.45; }
  .y-card__brand { font-size: .75rem; }
  .y-card__colors { margin-top: 6px; }
  .y-card__price { font-size: 1.0625rem; font-weight: 800; }
  .y-card__price del { font-size: .8125rem; }
  .y-card__badge { top: 12px; inset-inline-start: 12px; font-size: .75rem; padding: 5px 9px; }
  .y-card__fav { top: 6px; inset-inline-end: 6px; transition: transform var(--yd-ease), color var(--yd-ease); }
  .y-card__addbtn { width: 40px; height: 40px; text-decoration: none; transition: background var(--yd-ease), border-color var(--yd-ease), color var(--yd-ease); }

  /* ---------- Flash Deals ------------------------------------------------ */
  .home .yps-fd { padding-top: var(--yd-section); }
  .yps-fd .yps-fd__banner { width: min(100% - 2 * var(--y-pad), var(--y-maxw)); margin-inline: auto; border-radius: var(--yd-radius); }
  .yps-fd .yps-fd__timer { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(100% - 2 * var(--y-pad), var(--y-maxw)); margin: 20px auto 0; padding: 12px 20px; box-sizing: border-box; border: 1px solid #f3d6d8; border-radius: 999px; background: #fff7f7; }
  .yps-fd .yps-fd__timer-title { margin: 0; font-size: 1rem; }
  .yps-fd .yps-fd__unit { flex-direction: row; align-items: baseline; gap: 4px; }
  .yps-fd .yps-fd__timer > .yps-fd__digits .yps-fd__unit b { font-size: 1.75rem; }
  .yps-fd .yps-fd__timer > .yps-fd__digits .yps-fd__sep { font-size: 1.5rem; }
  .yps-fd .yps-fd__unit small { font-size: .75rem; }
  .yps-fd__grid.y-grid--scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); }
  .yps-fd .yps-fdc { border-radius: var(--yd-radius); }
  .yps-fd .yps-fdc__media { border-radius: calc(var(--yd-radius) - 1.5px) calc(var(--yd-radius) - 1.5px) 0 0; aspect-ratio: 1 / 1; }
  .yps-fd .yps-fdc__body { padding: 12px 16px 16px; gap: 8px; }
  .yps-fd .yps-fdc__title { font-size: .9375rem; }
  .yps-fd .yps-fdc__now { font-size: 1.375rem; }
  .yps-fd .yps-fdc__was { font-size: .8125rem; }
  .yps-fd .yps-fdc__add { width: 40px; height: 40px; }

  /* ---------- shop by shape: one clean row ------------------------------ */
  .home .y-section:has(.yps-vcard) .y-section__head { justify-content: flex-start; text-align: start; }
  .y-scroller:has(> .yps-vcard) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; width: min(100% - 2 * var(--y-pad), var(--y-maxw)); overflow: visible; padding: 0; scroll-snap-type: none; }
  .y-scroller:has(> .yps-vcard) > .yps-vcard { width: auto; flex: none; border-radius: 16px; transition: transform var(--yd-ease), box-shadow var(--yd-ease); }
  .yps-vcard__body { padding: 12px 10px 8px; }
  .yps-vcard__title { font-size: .9375rem; }
  .yps-vcard__desc { display: none; }

  /* ---------- promo / brand banner ------------------------------------- */
  .home .y-brand-section .y-brand-banner { width: min(100% - 2 * var(--y-pad), var(--y-maxw)); max-width: none; margin: 0 auto; min-height: 180px; padding: 32px 56px; border-radius: var(--yd-radius); }
  .home .y-brand-section .y-brand-banner h2 { font-size: 2rem; }
  .home .y-brand-section .y-brand-logos { flex-basis: 34%; height: 80px; }
  .home .y-brand-section .y-brand-logo img { width: 220px; max-height: 70px; }

  /* ---------- archive / category pages --------------------------------- */
  .y-shop, .yef-listing { max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); margin-inline: auto; padding-inline: var(--y-pad); box-sizing: border-box; }
  .y-shop > .y-container { padding-inline: 0; max-width: none; }
  .y-layout, .yef-listing__body { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 36px; align-items: start; }
  .y-layout .y-grid, .yef-listing .yef-grid--2col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .y-filters__desktop, .yef-listing__sidebar { position: sticky; top: calc(var(--y-header-h) + 20px); max-height: calc(100vh - var(--y-header-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding: 18px; border: 1px solid #edf0f0; border-radius: var(--yd-radius); background: #fff; box-sizing: border-box; }
  .y-shop__title, .yef-listing__title { font-size: 1.875rem; font-weight: 800; }
  .y-toolbar { border-block: 0; border-bottom: 1px solid #edf0f0; padding-block: 14px; }
  .y-pagination { padding-block: 24px 8px; }
  .y-pagination .page-numbers { min-width: 40px; height: 40px; border-radius: 10px; }
  .y-pagination a.page-numbers:hover { border-color: var(--y-accent); color: var(--yd-ink-2); }

  /* ---------- categories hub (/categories/) ----------------------------- */
  body .yef-catalog--audience { max-width: min(1180px, 100%); }
  body .yef-catalog--audience .yef-type-rows { max-width: 960px; }

  /* ---------- single product: 55 / 45 ---------------------------------- */
  .y-pdp { padding-top: 12px; }
  .y-pdp__cols { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 56px; }
  .y-pdp__gallery { top: calc(var(--y-header-h) + 24px); }
  /* The gallery block carries the block layout's 512px content width. */
  .y-pdp__gallery .wp-block-woocommerce-product-image-gallery { max-width: none; width: 100%; }
  .woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder { border-radius: var(--yd-radius); }
  .wp-block-woocommerce-product-image-gallery .flex-control-thumbs { gap: 10px; margin-top: 14px; }
  .wp-block-woocommerce-product-image-gallery .flex-control-thumbs li { width: 84px; }
  .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img { width: 84px; height: 84px; border-radius: 12px; }
  .y-pdp__title { font-size: 1.875rem; font-weight: 800; }
  .y-pdp__price { font-size: 1.625rem; margin: 14px 0 20px; }
  .yallah-buybox { padding: 20px; border: 1px solid #edf0f0; border-radius: var(--yd-radius); background: #fbfcfc; }
  .yallah-buybox .single_add_to_cart_button { min-height: 52px; border-radius: 12px; font-size: 1rem; }
  .y-acc__toggle { font-size: .9375rem; padding-block: 18px; }

  /* ---------- cart: 65 / 35, sticky summary ---------------------------- */
  .yef-cart-page { max-width: calc(var(--y-maxw) + 2 * var(--y-pad)); padding: 32px var(--y-pad) 16px; }
  .yef-cart-page .yef-topbar { justify-content: flex-start; border: 0; padding-inline: 0; }
  .yef-cart-page .yef-topbar__back, .yef-cart-page .yef-topbar__spacer { display: none; }
  .yef-cart-page h1 { font-size: 1.875rem; font-weight: 800; }
  .yef-cart-shortcode-wrap { display: grid; grid-template-columns: minmax(0, 65fr) minmax(300px, 35fr); gap: 32px; align-items: start; }
  .yef-cart-shortcode-wrap > .woocommerce, .yef-cart-shortcode-wrap .woocommerce-cart-form { grid-column: 1; min-width: 0; width: 100%; }
  .yef-cart-shortcode-wrap .yef-cart-summary { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--y-header-h) + 24px); margin: 0; padding: 22px; border-radius: var(--yd-radius); box-sizing: border-box; }
  .yef-cart-page .product-thumbnail img { width: 104px; height: 80px; object-fit: contain; }
  /* The CTA lives outside the grid in the markup; line it up under the summary column. */
  .yef-cart-sticky { position: static; display: flex; justify-content: flex-end; max-width: var(--y-maxw); margin: 0 auto 48px; padding: 0 var(--y-pad); border: 0; background: transparent; box-shadow: none; }
  .yef-cart-sticky .yef-btn { width: calc((100% - 32px) * .35); min-width: 300px; min-height: 54px; border-radius: 14px; }

  /* ---------- checkout: stepped flow as a centred desktop card --------- */
  .yef-flow--checkout .yef-panel--form { max-width: 720px; margin: 32px auto 48px; padding: 8px 40px 40px; border: 1px solid #edf0f0; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px -30px #17383b40; }
  .yef-flow--checkout .yef-panel--form .yef-topbar { margin-inline: -40px; }

  /* ---------- footer: real columns ------------------------------------- */
  .y-footer { border-top: 1px solid #edf0f0; }
  .y-footer__support { display: none; }                 /* phone footer body */
  .y-footer__benefits { justify-content: center; gap: 72px; padding-block: 28px; border-bottom: 1px solid #edf0f0; }
  .y-footer__benefit { flex-direction: row; gap: 12px; text-align: start; }
  .yd-footer { display: block; background: #fbfcfc; }
  .yd-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 48px 40px; }
  .yd-footer__logo { font-size: 30px; font-weight: 800; color: var(--y-ink); text-decoration: none; }
  .yd-footer__brand p { margin: 14px 0 0; max-width: 300px; color: #5f6b6c; font-size: .875rem; line-height: 1.8; }
  .yd-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .yd-footer__col h4 { margin: 0 0 6px; font-size: .9375rem; font-weight: 800; color: var(--y-ink); }
  .yd-footer__col a { color: #5f6b6c; font-size: .875rem; text-decoration: none; transition: color var(--yd-ease); }
  .yd-footer__col a:hover { color: var(--yd-ink-2); }
  .yd-footer__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border: 1px solid #e3e8e8; border-radius: 999px; background: #fff; color: var(--y-ink) !important; font-weight: 600; }
  .yd-footer__btn--wa svg { color: #25d366; }
  .yd-footer__btn:hover { border-color: var(--y-accent); }
  .yd-footer__bottom { border-top: 1px solid #edf0f0; padding-block: 18px; font-size: .8125rem; color: #7a8586; text-align: center; }
}

/* ---------- 1024–1279: tighter laptop fit ------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) and (max-width: 767px) {
  .y-header__bar { gap: 16px; }
  .yd-nav a { padding-inline: 9px; font-size: .875rem; }
  .yd-search { width: 190px; }
  .y-header .y-header__login-label { display: none; }
  .y-header .y-header__login { width: 42px; padding: 0; }
  .yd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yd-footer__brand { grid-column: 1 / -1; }
  .y-scroller:has(> .yps-vcard) .yps-vcard__title { font-size: .8125rem; }
}

/* 1024–1599: 4 columns — show whole rows only (10 products → 8). */
@media (min-width: 1024px) and (max-width: 1599px) and (max-width: 767px) {
  .home .y-grid > :nth-child(n+9) { display: none; }
  .yps-fd__grid > :nth-child(n+5) { display: none; }
}

/* ---------- ≥1280: desktop -------------------------------------------- */
@media (min-width: 1280px) and (max-width: 767px) {
  :root { --y-pad: 40px; --yd-section: 72px; }
  .y-layout .y-grid, .yef-listing .yef-grid--2col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yps-vcard__desc { display: block; }
}

/* ---------- ≥1600: large desktop — centred, 5 up only on home rows ------ */
@media (min-width: 1600px) and (max-width: 767px) {
  .home .y-grid, .home .y-grid.y-grid--scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home .y-grid > :nth-child(n+11) { display: none; }
  .yps-fd__grid.y-grid--scroll { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .yps-fd__grid > :nth-child(n+6) { display: none; }
  .yps-slider .yps-slider__picture { max-height: none; }
}

/* ---------- pointer-only hover (never on touch) ------------------------ */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (max-width: 767px) {
  .y-card:hover { transform: translateY(-4px); border-color: #cfe3e4; box-shadow: 0 16px 34px -18px #17383b40; }
  .y-card:hover .y-card__media img { transform: scale(1.05); }
  .y-card__fav:hover { transform: scale(1.12); color: var(--yd-ink-2); }
  .y-card__addbtn:hover { background: var(--y-accent); border-color: var(--y-accent); color: #0f2c2e; }
  .yps-fd .yps-fdc:hover { box-shadow: 0 16px 34px -18px #b3121b55; }
  .yd-audience__card:hover .yd-audience__img { transform: scale(1.05); }
  .yd-audience__card:hover em { background: var(--y-accent); color: #0f2c2e; }
  .y-scroller:has(> .yps-vcard) > .yps-vcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px #17383b40; }
  .yd-slide-control:hover { transform: translateY(-50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .y-card, .y-card__media img, .yps-vcard, .yd-audience__img, .yd-slide-control { transition: none !important; }
  .y-card:hover, .yps-vcard:hover { transform: none !important; }
  .y-card:hover .y-card__media img, .yd-audience__card:hover .yd-audience__img { transform: none !important; }
  .yd-announcement__message { animation: none; left: 50%; transform: translate(-50%, -50%); }
}
