/* Fourth iteration — calm, image-first storefront with touch-friendly controls. */
:root {
  --green: hsl(calc(var(--bh) + 4) min(100%, calc(52% * var(--bs))) calc(19% + var(--bd)));
  --green-deep: hsl(calc(var(--bh) + 5) min(100%, calc(56% * var(--bs))) calc(14% + var(--bd)));
  --text: hsl(calc(var(--bh) - 8) min(100%, calc(23% * var(--bs))) calc(15% + var(--bd)));
  --muted: hsl(calc(var(--bh) - 14) min(100%, calc(7% * var(--bs))) 48%);
  --border: hsl(calc(var(--bh) - 5) min(100%, calc(13% * var(--bs2))) 91%);
  --bg: hsl(calc(var(--bh) - 8) min(100%, calc(23% * var(--bs2))) 97%);
  --shadow: 0 16px 40px hsl(calc(var(--bh) - 10) min(100%, calc(43% * var(--bs))) calc(15% + var(--bd)) / .09);
}

html { scroll-padding-top: 18px; }
body { color: var(--text); line-height: 1.55; }
button, input { touch-action: manipulation; }
button:active { transition-duration: .1s; }
.container { max-width: 1180px; }
.site-header { box-shadow: 0 9px 24px hsl(calc(var(--bh) - 5) min(100%, calc(55% * var(--bs))) calc(16% + var(--bd)) / .07); }
.brand { gap: 11px; min-height: 60px; }
.yamak-logo { display: block; flex: 0 0 auto; width: 60px; height: 60px; object-fit: contain; padding: 4px; background: #fff; border: 1px solid rgba(255, 255, 255, .65); border-radius: 15px; box-shadow: 0 4px 14px hsl(calc(var(--bh) + 0) min(100%, calc(63% * var(--bs))) calc(7% + var(--bd)) / .17); }
.brand-name { font-size: 23px; font-weight: 700; line-height: 1.35; }
.header-greeting strong { font-weight: 500; }
.search-field { border: 1px solid hsl(calc(var(--bh) + 2) min(100%, calc(47% * var(--bs))) calc(17% + var(--bd)) / .08); }
.search-field input { font-weight: 400; }
.filter-button, .header-icon { transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.filter-button:active, .header-icon:active { transform: scale(.94); }
/* Explicit centering for SVG icons, including browsers that lay out RTL inline spans differently. */
:is(.header-icon, .filter-button, .favorite-button, .add-button, .qty-button, .sheet-close, .cart-qty button) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.add-button, .qty-button, .cart-qty button { position: relative; }
:is(.favorite-button, .add-button, .qty-button, .cart-qty button) > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
}
:is(.header-icon, .filter-button, .sheet-close) > [data-icon] {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
:is(.header-icon, .filter-button, .sheet-close) > [data-icon] > svg {
  display: block;
  margin: 0;
}
.nav-item > [data-icon] { display: flex; align-items: center; justify-content: center; min-height: 25px; line-height: 0; }
.eyebrow { color: hsl(calc(var(--bh) - 10) min(100%, calc(12% * var(--bs))) 53%); font-size: 12px; letter-spacing: 0; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(19px, 2vw, 22px); font-weight: 650; letter-spacing: 0; }
.section-hint { font-size: 12px; color: hsl(calc(var(--bh) - 17) min(100%, calc(8% * var(--bs))) 58%); }
.text-action { min-height: 42px; padding: 9px 4px; font-weight: 600; }
.text-action:active { opacity: .65; }
.hero-carousel { box-shadow: 0 14px 32px hsl(calc(var(--bh) - 7) min(100%, calc(29% * var(--bs))) calc(16% + var(--bd)) / .09); }
.hero-slide { transform: none !important; transition: opacity 1.15s ease-in-out, visibility 1.15s linear !important; }
.hero-slide.is-active { transform: none !important; }
.hero-only-button { min-height: 43px; border: 1px solid rgba(255, 255, 255, .9); background: #fff; color: hsl(calc(var(--bh) + 5) min(100%, calc(47% * var(--bs))) calc(16% + var(--bd))); font-size: 13px; box-shadow: 0 9px 26px hsl(calc(var(--bh) - 9) min(100%, calc(41% * var(--bs))) calc(12% + var(--bd)) / .2); }
.hero-only-button:active { transform: scale(.96); }
.hero-bottom-controls { left: 22px; right: auto; bottom: 17px; justify-content: flex-start; }
.carousel-dots { direction:ltr; }
.dot { background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .09); }
.trust-ribbon { padding-top: 18px; padding-bottom: 3px; }
.categories-section { padding-top: 33px; }
.category-scroll { overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
.category-pill { scroll-snap-align: start; min-height: 45px; padding: 10px 19px; font-weight: 600; border-color: hsl(calc(var(--bh) - 6) min(100%, calc(16% * var(--bs2))) 89%); box-shadow: 0 3px 12px hsl(calc(var(--bh) - 20) min(100%, calc(32% * var(--bs))) calc(17% + var(--bd)) / .025); }
.category-pill:active { transform: scale(.97); }
.category-pill.active { box-shadow: 0 5px 14px hsl(calc(var(--bh) - 6) min(100%, calc(48% * var(--bs))) calc(17% + var(--bd)) / .18); }
.products-section { padding-top: 32px; }
.header-main { animation: gentle-enter .6s cubic-bezier(.2,.7,.2,1) both; }
.header-bottom { animation: gentle-enter .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.product-card:active { transform: scale(.987); }
.nav-item:active, .filter-button:active, .category-pill:active { filter: brightness(.96); }
.product-badge { transition: transform .25s ease, background .25s ease; }
.product-card:hover .product-badge { transform: translateY(2px); }
.cart-count:not([hidden]), .nav-indicator:not([hidden]) { animation: count-pop .38s cubic-bezier(.2,.85,.2,1) both; }
@keyframes gentle-enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes count-pop { 0% { scale: .65; } 65% { scale: 1.17; } 100% { scale: 1; } }

/* Images fill the available card width at their intrinsic ratio, without artificial letterboxing. */
.product-grid { align-items: start; gap: 16px; }
.product-card { cursor: default; border: 1px solid hsl(calc(var(--bh) - 8) min(100%, calc(16% * var(--bs2))) 91%); box-shadow: 0 5px 19px hsl(calc(var(--bh) - 10) min(100%, calc(35% * var(--bs))) calc(15% + var(--bd)) / .035); }
.product-card:hover, .product-card:focus-within { box-shadow: 0 14px 27px hsl(calc(var(--bh) - 9) min(100%, calc(41% * var(--bs))) calc(17% + var(--bd)) / .10); transform: translateY(-3px); }
.product-media { height: auto; aspect-ratio: auto; overflow: hidden; background: #eee8df; }
.product-image-button { display: block; width: 100%; height: auto; padding: 0; margin: 0; border: 0; background: transparent; overflow: hidden; }
.product-media img { display: block; width: 100%; height: auto; max-width: none; object-fit: cover; aspect-ratio: auto; }
.product-image-button:hover img { transform: scale(1.03); }
.product-image-button:active img { transform: scale(.99); }
.product-badge { pointer-events: none; background: rgba(255, 255, 255, .93); color: hsl(calc(var(--bh) - 10) min(100%, calc(31% * var(--bs))) calc(34% + var(--bd))); border: 0; }
.product-name { margin: 1px 0 7px; min-height: 40px; font-size: 13px; font-weight: 650; }
.product-title-button { border: 0; padding: 0; text-align: right; color: inherit; font: inherit; line-height: inherit; background: transparent; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 100%; }
.product-title-button:hover { color: var(--green); }
.product-category { font-size: 11px; }
.product-body { padding: 12px 13px 13px; }
.product-rating { color: hsl(calc(var(--bh) - 17) min(100%, calc(8% * var(--bs))) calc(43% + var(--bd))); }
.product-bottom { align-items: flex-end; gap: 6px; min-height: 44px; }
.price-area { flex: 1 1 auto; min-width: 0; }
.price { white-space: normal; font-size: 15px; font-weight: 700; line-height: 1.25; }
.price small { display: block; font-size: 11px; margin-top: 2px; line-height: 1.3; }
.old-price { margin-top: 4px; text-align: right; }
.favorite-button { width: 36px; height: 36px; top: 9px; left: 9px; border-radius: 50%; }
.favorite-button:before { content: ''; position: absolute; inset: -4px; }
.favorite-button:active { transform: scale(.88); }
.favorite-button.is-favorite svg { animation: favorite-pop .35s ease both; }
.add-button { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; background: var(--green-s); border: 0; color: #fff; box-shadow: 0 4px 9px hsl(calc(var(--bh) - 8) min(100%, calc(49% * var(--bs))) calc(18% + var(--bd)) / .13); }
.add-button:hover { background: hsl(calc(var(--bh) - 2) min(100%, calc(49% * var(--bs))) calc(28% + var(--bds))); color: #fff; border: 0; transform: translateY(-2px); }
.add-button:active { transform: scale(.92); }
.add-button.added { background: hsl(calc(var(--bh) - 13) min(100%, calc(30% * var(--bs))) calc(37% + var(--bds))); color: #fff; }
.empty-state { padding: 35px 18px; }
.primary-button { min-height: 48px; border-radius: 13px; padding-inline: 21px; }

/* Comfortable bottom sheets, clear action hierarchy and accessible targets. */
.sheet { border-radius: 25px 25px 0 0; max-height: min(95dvh, 900px); }
.sheet-top { padding: 13px 19px 14px; }
.sheet-close { width: 42px; height: 42px; }
.sheet-close:active { transform: scale(.94); }
.sheet-body { padding: 16px 19px 21px; }
.sheet-footer { padding-inline: 19px; }
.sheet-product-image { width: 100%; max-width: none; max-height: none; aspect-ratio: auto; height: auto; object-fit: contain; background: transparent; border-radius: 15px; }
.sheet-product-tags { margin-top: 14px; flex-wrap: wrap; }
.sheet-product-name { font-size: 20px; line-height: 1.5; }
.sheet-description { color: hsl(calc(var(--bh) - 17) min(100%, calc(9% * var(--bs))) calc(43% + var(--bd))); line-height: 1.85; }
.delivery-note { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.delivery-note svg { width: 19px; height: 19px; color: hsl(calc(var(--bh) - 27) min(100%, calc(13% * var(--bs))) 55%); }
.sheet-primary { min-height: 52px; border-radius: 14px; font-size: 14px; }
.sheet-primary:active { transform: scale(.985); }
.qty-button { width: 43px; height: 43px; border-radius: 12px; background: hsl(calc(var(--bh) - 8) min(100%, calc(25% * var(--bs2))) 97%); }
.cart-qty button { width: 38px; height: 38px; border-radius: 10px; }
.cart-qty .remove-item { width: 39px; }
.filter-chip { min-height: 42px; padding-inline: 15px; }
.sort-option { min-height: 56px; }
.sheet-subtext { line-height: 1.6; }
.cart-delivery-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.cart-delivery-row label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-delivery-row select { width: min(62%, 255px); height: 43px; padding: 0 11px; border: 1px solid hsl(calc(var(--bh) - 4) min(100%, calc(16% * var(--bs2))) 87%); border-radius: 11px; color: var(--text); background: hsl(calc(var(--bh) - 5) min(100%, calc(23% * var(--bs2))) 97%); font: inherit; font-size: 12px; }
.order-costs { display: grid; gap: 9px; border-top: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(19% * var(--bs2))) 92%); padding-top: 12px; margin-bottom: 13px; }
.order-costs > div, .checkout-preview > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: hsl(calc(var(--bh) - 16) min(100%, calc(7% * var(--bs))) 45%); }
.order-costs strong, .checkout-preview strong { font-weight: 650; font-size: 13px; color: var(--text); text-align: left; }
.order-costs .grand-total, .checkout-preview-total { padding-top: 11px; border-top: 1px solid hsl(calc(var(--bh) - 6) min(100%, calc(17% * var(--bs2))) 91%); font-weight: 700; color: var(--text); }
.order-costs .grand-total strong, .checkout-preview-total strong { font-size: 17px; color: var(--green); }
.checkout-form { display: grid; gap: 17px; }
.checkout-intro { font-size: 13px; line-height: 1.75; color: hsl(calc(var(--bh) - 16) min(100%, calc(9% * var(--bs))) calc(43% + var(--bd))); margin: 0 0 2px; }
.checkout-field { display: grid; gap: 7px; }
.checkout-field label { font-size: 13px; font-weight: 650; color: hsl(calc(var(--bh) - 17) min(100%, calc(18% * var(--bs))) calc(25% + var(--bd))); }
.checkout-field label em { color: #c25e52; font-style: normal; }
.checkout-field label span { color: hsl(calc(var(--bh) - 21) min(100%, calc(8% * var(--bs))) 58%); font-size: 11px; font-weight: 400; }
.checkout-field :is(input,select,textarea) { min-width: 0; width: 100%; min-height: 48px; border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(16% * var(--bs2))) 89%); border-radius: 12px; padding: 12px 13px; font-family: inherit; font-size: 13px; line-height: 1.6; background: hsl(calc(var(--bh) - 10) min(100%, calc(25% * var(--bs2))) 98%); color: var(--text); outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.checkout-field textarea { min-height: 82px; resize: vertical; }
.checkout-field :is(input,select,textarea):focus { border-color: hsl(calc(var(--bh) - 14) min(100%, calc(21% * var(--bs))) 57%); background: #fff; box-shadow: 0 0 0 3px hsl(calc(var(--bh) - 22) min(100%, calc(23% * var(--bs))) 50% / .13); }
.checkout-field [dir="ltr"] { text-align: right; }
.checkout-preview { display: grid; gap: 12px; background: hsl(calc(var(--bh) - 7) min(100%, calc(28% * var(--bs2))) 95%); padding: 16px; border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(23% * var(--bs2))) 89%); border-radius: 14px; }
.checkout-preview > span { font-size: 13px; font-weight: 700; color: var(--green); }
.checkout-privacy { margin: 0; font-size: 11px; color: hsl(calc(var(--bh) - 20) min(100%, calc(7% * var(--bs))) 53%); line-height: 1.75; }
.checkout-back { display: block; width: 100%; min-height: 43px; padding: 9px; margin-top: 8px; border: none; background: transparent; color: var(--green); font-size: 13px; font-weight: 650; border-radius: 10px; }
.checkout-back:active { background: hsl(calc(var(--bh) - 6) min(100%, calc(27% * var(--bs2))) 94%); }
.sheet-primary:disabled { opacity: .55; background: hsl(calc(var(--bh) - 9) min(100%, calc(10% * var(--bs))) 47%); cursor: not-allowed; }
.toast { font-size: 13px; border-radius: 13px; white-space: normal; min-height: 45px; text-align: right; }

.reveal { transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes favorite-pop { 0% { scale: .72; } 65% { scale: 1.3; } 100% { scale: 1; } }

/* Interactive motion: reveal items as they enter view, then return to ordinary hover behavior. */
.product-grid.motion-ready .product-card { animation: none; transition: opacity .55s ease, transform .55s cubic-bezier(.17,.8,.27,1), box-shadow .28s ease; }
.product-grid.motion-ready .product-card:not(.is-in-view) { opacity: 0; transform: translate3d(0,18px,0) scale(.985); }
.product-grid.motion-ready .product-card.is-in-view { opacity: 1; transition-delay: var(--card-delay, 0ms), var(--card-delay, 0ms), 0ms; }
.product-grid.motion-ready .product-card.is-in-view:hover { transform: translateY(-3px); }
.product-grid.motion-ready .product-card.is-in-view:active { transform: scale(.987); }
.product-image-button img { transition: transform .45s cubic-bezier(.16,.7,.3,1); }
.product-card:focus-within { border-color: hsl(calc(var(--bh) - 3) min(100%, calc(23% * var(--bs2))) 83%); }

/* The pill response and header search affordance make navigation feel touch-responsive. */
.category-pill { transition: transform .18s ease, background .27s ease, color .27s ease, border-color .27s ease, box-shadow .27s ease; }
.category-pill.active { animation: category-select .35s cubic-bezier(.16,.85,.25,1); }
.search-field { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.search-field:focus-within { background: #fff; border-color: hsl(calc(var(--bh) - 3) min(100%, calc(23% * var(--bs2))) 78%); box-shadow: 0 0 0 3px hsl(calc(var(--bh) - 4) min(100%, calc(35% * var(--bs2))) 85% / .25), 0 8px 20px hsl(calc(var(--bh) - 7) min(100%, calc(50% * var(--bs))) calc(13% + var(--bd)) / .08); }
.filter-button:hover, .header-icon:hover { box-shadow: 0 5px 14px hsl(calc(var(--bh) - 6) min(100%, calc(69% * var(--bs))) calc(10% + var(--bd)) / .12); }
.hero-slide.is-active .hero-only-button { animation: cta-appear .65s .17s both cubic-bezier(.2,.75,.2,1); }
.hero-only-button { transition: background .22s ease, box-shadow .22s ease, transform .22s ease; }
.hero-only-button:hover { box-shadow: 0 13px 26px hsl(calc(var(--bh) - 2) min(100%, calc(63% * var(--bs))) calc(8% + var(--bd)) / .26); }
.hero-only-button:active { scale: .96; }

/* A quick visual path from the tapped product to the cart; no changes to the shopping flow. */
.cart-flight { position: fixed; z-index: 150; width: 42px; height: 42px; object-fit: cover; border: 2px solid #fff; border-radius: 13px; background: #fff; box-shadow: 0 5px 20px hsl(calc(var(--bh) - 1) min(100%, calc(56% * var(--bs))) calc(11% + var(--bd)) / .27); pointer-events: none; will-change: transform, opacity; }
.cart-attention > [data-icon] { animation: cart-arrival .46s cubic-bezier(.18,.85,.25,1); }
.cart-attention > [data-icon] svg { transform-origin: center; }
.favorite-button.heart-spark::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(202,101,114,.6); pointer-events: none; animation: favorite-ring .46s ease-out both; }
.number-bump { animation: number-bump .3s ease-out; }
.nav-item.active > [data-icon] { animation: nav-active .35s cubic-bezier(.18,.82,.25,1); }
.nav-item.active::before { animation: nav-line .35s ease-out both; }
.nav-item { transition: color .22s ease, background .2s ease, transform .2s ease; }
.nav-item:active { background: hsl(calc(var(--bh) - 8) min(100%, calc(52% * var(--bs))) calc(20% + var(--bds)) / .055); }

/* Content subtly settles into place after the bottom sheet opens or switches stage. */
.sheet { transition: transform .39s cubic-bezier(.16,.9,.24,1); }
.scrim { transition: opacity .35s ease; }
.sheet-body > :is(.sheet-product-image,.sheet-empty,.checkout-form,.filter-chips,.sort-options) { animation: sheet-content-in .43s both cubic-bezier(.2,.75,.25,1); }
.sheet-body > .sheet-product-name { animation: sheet-content-in .4s .06s both; }
.sheet-body > .sheet-description { animation: sheet-content-in .4s .09s both; }
.sheet-body > .cart-row { animation: sheet-content-in .4s both; }
.sheet-body > .cart-row:nth-child(2) { animation-delay: .045s; }
.sheet-body > .cart-row:nth-child(3) { animation-delay: .09s; }
.sheet-footer:not(:empty) { animation: footer-in .37s ease both; }
.sheet-primary:not(:disabled):active, .primary-button:active { scale: .985; }
.sort-option { transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.sort-option:active { transform: scale(.99); }
.filter-chip { transition: background .22s ease, color .22s ease, transform .18s ease, border-color .22s ease; }
.filter-chip:active { transform: scale(.96); }
.toast { transition: opacity .28s ease, transform .37s cubic-bezier(.15,.84,.23,1); }

:is(.category-pill,.filter-button,.header-icon,.hero-shop,.product-title-button,.product-image-button,.favorite-button,.add-button,.nav-item,.sheet-primary,.qty-button,.cart-qty button,.filter-chip,.sort-option):focus-visible { outline: 3px solid hsl(calc(var(--bh) + 1) min(100%, calc(40% * var(--bs2))) 62%); outline-offset: 3px; }

@keyframes category-select { 0% { scale: .96; } 60% { scale: 1.04; } 100% { scale: 1; } }
@keyframes cta-appear { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes cart-arrival { 0%,100% { scale: 1; } 48% { scale: 1.22; } }
@keyframes favorite-ring { from { opacity: .8; scale: .75; } to { opacity: 0; scale: 1.3; } }
@keyframes number-bump { 0%,100% { scale: 1; } 50% { scale: 1.12; } }
@keyframes nav-active { 0% { scale: .86; } 65% { scale: 1.11; } 100% { scale: 1; } }
@keyframes nav-line { from { scale: .4 1; opacity: .35; } to { scale: 1; opacity: 1; } }
@keyframes sheet-content-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes footer-in { from { opacity: .55; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }

@media (hover: none) {
  .product-card:hover, .product-grid.motion-ready .product-card.is-in-view:hover { transform: none; }
  .product-image-button:hover img { transform: none; }
  .add-button:hover { transform: none; }
}

@media (max-width: 860px) {
  .product-grid { gap: 13px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 15px; }
  .site-header { border-radius: 0 0 24px 24px; padding: 12px 0 18px; }
  .header-main { min-height: 54px; }
  .brand { gap: 9px; min-height: 54px; }
  .yamak-logo { width: 54px; height: 54px; padding: 3px; border-radius: 13px; }
  .brand-name { font-size: 20px; }
  .header-icon { width: 43px; height: 43px; }
  .header-bottom { margin-top: 12px; }
  .header-greeting strong { font-size: 15px; }
  .header-greeting { margin-bottom: 10px; }
  .search-field { height: 49px; padding-inline: 14px; border-radius: 14px; }
  .search-field input { font-size: 13px; }
  .filter-button { width: 49px; height: 49px; flex-basis: 49px; border-radius: 14px; }
  .main-content { padding-top: 22px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 18px; }
  .eyebrow { font-size: 11px; }
  .section-hint { font-size: 11px; }
  .hero-carousel { height: clamp(143px, 40vw, 185px); border-radius: 16px; }
  .hero-only-button { right: 11px; bottom: 12px; padding: 8px 14px; min-height: 40px; font-size: 11px; }
  .hero-bottom-controls { right: auto; left: 13px; bottom: 15px; }
  .trust-ribbon { display: none; }
  .categories-section { padding-top: 25px; }
  .category-pill { font-size: 12px; min-height: 44px; padding: 10px 18px; }
  .products-section { padding-top: 27px; }
  .product-grid { gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-body { padding: 10px 10px 12px; }
  .product-name { font-size: 12.5px; min-height: 39px; margin-bottom: 6px; }
  .product-category { font-size: 11px; }
  .product-badge { top: 7px; right: 7px; font-size: 9px; padding: 4px 7px; }
  .favorite-button { width: 35px; height: 35px; top: 6px; left: 6px; }
  .favorite-button svg { width: 17px; height: 17px; }
  .product-bottom { gap: 5px; min-height: 42px; }
  .price { font-size: 13px; }
  .price small { font-size: 10px; }
  .old-price { font-size: 10px; }
  .add-button { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .add-button svg { width: 19px; height: 19px; }
  .bottom-nav { min-height: 68px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 50px; gap: 4px; border-radius: 13px; }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-item span:not(.nav-indicator) { font-size: 10px; }
  .nav-item.active:before { top: -8px; }
  .sheet { max-height: calc(100dvh - 12px); }
  .sheet-top h2 { font-size: 17px; }
  .sheet-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cart-row img { width: 76px; height: 76px; object-fit: cover; }
  .cart-qty { gap: 7px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 365px) {
  .container { padding-inline: 12px; }
  .yamak-logo { width: 48px; height: 48px; }
  .brand { min-height: 48px; gap: 7px; }
  .brand-name { font-size: 18px; }
  .hero-only-button { right: 10px; }
  .trust-ribbon div { font-size: 9px; gap: 3px; }
  .trust-ribbon svg { width: 14px; height: 14px; }
  .product-grid { gap: 8px; }
  .product-body { padding-inline: 9px; }
  .price { font-size: 12px; }
  .add-button { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .favorite-button svg, .header-main, .header-bottom, .cart-count, .nav-indicator { animation: none !important; transition: none !important; translate: none !important; }
  .product-grid.motion-ready .product-card { opacity: 1 !important; transform: none !important; }
}

/* A short, app-like first-visit welcome. Hidden on later views in the same tab. */
.welcome-locked { overflow: hidden !important; }
.welcome-screen { display: none; position: fixed; inset: 0; z-index: 500; isolation: isolate; overflow: hidden; padding: 35px 24px; color: #fff; background: radial-gradient(ellipse at 50% 27%, hsl(calc(var(--bh) - 10) min(100%, calc(30% * var(--bs))) 46% / .26) 0, transparent 52%), linear-gradient(155deg,hsl(calc(var(--bh) + 10) min(100%, calc(63% * var(--bs))) calc(12% + var(--bds))),hsl(calc(var(--bh) + 2) min(100%, calc(55% * var(--bs))) calc(19% + var(--bds))) 53%,hsl(calc(var(--bh) + 6) min(100%, calc(64% * var(--bs))) calc(10% + var(--bds)))); place-items: center; text-align: center; opacity: 1; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.has-welcome .welcome-screen { display: grid; }
.welcome-screen[hidden] { display: none !important; }
.welcome-screen.is-exiting { opacity: 0; transform: scale(1.035); pointer-events: none; }
.welcome-orbit { position: absolute; width: min(98vw,680px); aspect-ratio: 1; border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(53% * var(--bs2))) 88% / .105); border-radius: 50%; pointer-events: none; }
.welcome-orbit-one { top: -36%; right: -34%; box-shadow: 0 0 0 70px hsl(calc(var(--bh) - 6) min(100%, calc(49% * var(--bs2))) 82% / .018),0 0 0 140px hsl(calc(var(--bh) - 6) min(100%, calc(49% * var(--bs2))) 82% / .015); animation: welcome-orbit 9s ease-in-out infinite alternate; }
.welcome-orbit-two { bottom: -46%; left: -42%; width: min(110vw,760px); box-shadow: 0 0 0 55px hsl(calc(var(--bh) - 6) min(100%, calc(49% * var(--bs2))) 82% / .025); animation: welcome-orbit 11s ease-in-out infinite alternate-reverse; }
.welcome-content { position: relative; z-index: 1; width: min(100%,430px); display: flex; align-items: center; flex-direction: column; padding: 10px 0 34px; }
.welcome-logo { width: 138px; height: 138px; display: grid; place-items: center; padding: 9px; border-radius: 36px; background: #fff; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 24px 65px hsl(calc(var(--bh) - 2) min(100%, calc(90% * var(--bs))) calc(4% + var(--bd)) / .27),0 0 0 12px rgba(255,255,255,.045); animation: welcome-logo-in .75s cubic-bezier(.18,.75,.24,1) both; }
.welcome-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.welcome-eyebrow { margin-top: 34px; font-size: 14px; font-weight: 500; color: hsl(calc(var(--bh) - 2) min(100%, calc(33% * var(--bs2))) 83%); letter-spacing: 0; animation: welcome-copy-in .64s .16s both; }
.welcome-content h1 { margin: 2px 0 8px; font-size: clamp(34px,7vw,46px); font-weight: 700; line-height: 1.5; color: #fff; animation: welcome-copy-in .64s .22s both; }
.welcome-content p { margin: 0; font-size: 14px; line-height: 2; color: hsl(calc(var(--bh) - 4) min(100%, calc(32% * var(--bs2))) 90%); font-weight: 400; animation: welcome-copy-in .64s .3s both; }
.welcome-start { margin-top: 34px; min-height: 53px; min-width: 214px; padding: 12px 24px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: #fff; color: hsl(calc(var(--bh) + 6) min(100%, calc(52% * var(--bs))) calc(18% + var(--bd))); box-shadow: 0 12px 30px hsl(calc(var(--bh) - 2) min(100%, calc(83% * var(--bs))) calc(5% + var(--bd)) / .22); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; animation: welcome-copy-in .64s .43s both; }
.welcome-start svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s ease; }
.welcome-start:hover { background: hsl(calc(var(--bh) - 5) min(100%, calc(47% * var(--bs2))) 97%); box-shadow: 0 16px 34px hsl(calc(var(--bh) - 2) min(100%, calc(83% * var(--bs))) calc(5% + var(--bd)) / .29); }
.welcome-start:hover svg { transform: translateX(-4px); }
.welcome-start:active { scale: .97; }
.welcome-start:focus-visible { outline: 3px solid hsl(calc(var(--bh) + 1) min(100%, calc(50% * var(--bs2))) 72%); outline-offset: 5px; }
.welcome-bottom { position: absolute; bottom: calc(29px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1; display: grid; justify-items: center; gap: 12px; width: 100%; color: hsl(calc(var(--bh) - 2) min(100%, calc(54% * var(--bs2))) 93% / .65); font-size: 11px; animation: welcome-copy-in .6s .5s both; }
.welcome-progress { width: min(160px,42vw); height: 3px; background: hsl(calc(var(--bh) - 7) min(100%, calc(100% * var(--bs2))) 98% / .17); border-radius: 10px; overflow: hidden; direction: ltr; }
.welcome-progress i { display: block; width: 100%; height: 100%; background: hsl(calc(var(--bh) - 9) min(100%, calc(45% * var(--bs2))) 89%); border-radius: 10px; transform-origin: left center; animation: welcome-progress 3.7s linear both; }
@keyframes welcome-logo-in { from { opacity: 0; transform: translateY(19px) scale(.83); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes welcome-copy-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes welcome-orbit { from { translate: 0 0; } to { translate: -16px 14px; } }
@keyframes welcome-progress { from { scale: 0 1; } to { scale: 1 1; } }
@media (max-width: 640px) {
  .welcome-screen { padding: 28px 20px; }
  .welcome-logo { width: 122px; height: 122px; border-radius: 31px; }
  .welcome-eyebrow { margin-top: 29px; font-size: 13px; }
  .welcome-content h1 { font-size: 35px; }
  .welcome-content p { font-size: 12.5px; line-height: 2; }
  .welcome-start { min-height: 52px; min-width: 202px; margin-top: 31px; }
}
@media (max-height: 620px) {
  .welcome-logo { width: 92px; height: 92px; border-radius: 24px; }
  .welcome-eyebrow { margin-top: 16px; }
  .welcome-content h1 { font-size: 29px; }
  .welcome-start { margin-top: 20px; min-height: 45px; }
  .welcome-bottom { bottom: calc(13px + env(safe-area-inset-bottom)); gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-screen, .welcome-screen *, .welcome-screen *::before, .welcome-screen *::after { animation: none !important; transition: none !important; }
  .welcome-progress i { scale: 1; }
}

/* Preserve the offer headlines near the right side when the banner is cropped on phones. */
@media (max-width: 640px) {
  .hero-slide { background-position: 82% center; }
}

/* Installable storefront: keep the download icon beside the cart and center its glyph. */
.header-install { border-radius: 50%; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.17); }
.header-install:hover { background: rgba(255,255,255,.2); }
.header-install svg { width: 19px; height: 19px; stroke-width: 1.8; }
.header-install[hidden] { display: none !important; }
.install-intro { display: flex; align-items: center; gap: 14px; padding: 15px; background: linear-gradient(120deg,hsl(calc(var(--bh) - 5) min(100%, calc(31% * var(--bs2))) 95%),hsl(calc(var(--bh) - 9) min(100%, calc(38% * var(--bs2))) 97%)); border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(19% * var(--bs2))) 90%); border-radius: 17px; margin-bottom: 20px; }
.install-intro img { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; border-radius: 16px; border: 1px solid hsl(calc(var(--bh) - 8) min(100%, calc(23% * var(--bs2))) 91%); background: #fff; }
.install-intro strong { display: block; color: hsl(calc(var(--bh) - 8) min(100%, calc(36% * var(--bs))) calc(22% + var(--bd))); font-size: 15px; font-weight: 700; }
.install-intro p { margin: 5px 0 0; color: hsl(calc(var(--bh) - 14) min(100%, calc(8% * var(--bs))) 48%); font-size: 12px; line-height: 1.75; }
.install-platform-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; background: hsl(calc(var(--bh) - 5) min(100%, calc(21% * var(--bs2))) 95%); border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(20% * var(--bs2))) 91%); border-radius: 14px; margin-bottom: 19px; }
.install-platform-tabs button { min-height: 45px; border: 0; border-radius: 10px; background: transparent; color: hsl(calc(var(--bh) - 21) min(100%, calc(9% * var(--bs))) 48%); font-family: inherit; font-size: 13px; font-weight: 650; transition: background .2s,color .2s,transform .18s,box-shadow .2s; }
.install-platform-tabs button.active { background: hsl(calc(var(--bh) + 2) min(100%, calc(51% * var(--bs))) calc(20% + var(--bds))); color: #fff; box-shadow: 0 5px 12px hsl(calc(var(--bh) - 11) min(100%, calc(48% * var(--bs))) calc(17% + var(--bd)) / .16); }
.install-platform-tabs button:active { transform: scale(.97); }
.install-platform-tabs button:focus-visible { outline: 3px solid hsl(calc(var(--bh) + 1) min(100%, calc(40% * var(--bs2))) 62%); outline-offset: 2px; }
.install-steps { display: grid; gap: 12px; }
.install-step { display: grid; grid-template-columns: 25px 43px minmax(0,1fr); gap: 10px; align-items: center; min-height: 76px; padding: 12px 11px; border: 1px solid hsl(calc(var(--bh) - 5) min(100%, calc(19% * var(--bs2))) 92%); background: #fff; border-radius: 14px; }
.install-step-number { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: hsl(calc(var(--bh) - 4) min(100%, calc(30% * var(--bs2))) 93%); color: hsl(calc(var(--bh) - 8) min(100%, calc(42% * var(--bs))) calc(30% + var(--bd))); font-size: 12px; font-weight: 700; }
.install-step-icon { display: flex; justify-content: center; align-items: center; width: 43px; height: 43px; background: hsl(calc(var(--bh) - 4) min(100%, calc(25% * var(--bs2))) 95%); color: hsl(calc(var(--bh) - 5) min(100%, calc(36% * var(--bs))) calc(34% + var(--bd))); border-radius: 12px; }
.install-step-icon svg { display: block; width: 20px; height: 20px; stroke-width: 1.8; }
.install-step strong { color: hsl(calc(var(--bh) - 6) min(100%, calc(25% * var(--bs))) calc(21% + var(--bd))); font-size: 13px; font-weight: 700; }
.install-step p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.8; color: hsl(calc(var(--bh) - 18) min(100%, calc(7% * var(--bs))) 49%); }
.install-tip { margin: 16px 4px 0; border-right: 3px solid hsl(calc(var(--bh) - 4) min(100%, calc(28% * var(--bs2))) 77%); padding: 8px 12px; color: hsl(calc(var(--bh) - 21) min(100%, calc(7% * var(--bs))) 50%); background: hsl(calc(var(--bh) - 8) min(100%, calc(29% * var(--bs2))) 97%); font-size: 11px; line-height: 1.8; border-radius: 8px; }
.install-done { width: 100%; min-height: 49px; border: 0; border-radius: 13px; color: #fff; background: var(--green-s); font-family: inherit; font-size: 14px; font-weight: 700; }
.install-done.secondary { min-height: 42px; margin-top: 8px; color: hsl(calc(var(--bh) - 13) min(100%, calc(15% * var(--bs))) calc(44% + var(--bd))); background: transparent; }
.install-done:active { scale: .985; }
.sheet-body > :is(.install-intro,.install-platform-tabs,.install-steps) { animation: sheet-content-in .42s both; }
@media(max-width: 640px) {
  .header-actions { gap: 7px; }
  .header-install { width: 43px; height: 43px; }
  .install-intro { gap: 12px; padding: 12px; }
  .install-intro img { width: 60px; height: 60px; flex-basis: 60px; }
  .install-step { grid-template-columns: 23px 39px minmax(0,1fr); gap: 9px; padding: 11px 9px; }
  .install-step-icon { width: 39px; height: 39px; }
}
@media(max-width: 365px) {
  .header-install { width: 38px; height: 38px; }
  .install-step { grid-template-columns: 22px 35px minmax(0,1fr); gap: 7px; }
  .install-step-icon { width: 35px; height: 35px; }
}
