/* TASAWEER — Soft storefront (Stage 6.2)
   Light pastel surfaces, generous rounding, no hard outlines. The colour comes
   from the products; motion is calm and always answers what the shopper does:
   things rise into view, cards lean toward the pointer, a sticker flies to the
   cart, and the product photo glides from the grid into its own page. */

:root {
  --ink: #1F3439;
  --ink-2: #5D7276;
  --ink-3: #8DA0A3;
  --teal: #0A8F88;
  --teal-dark: #087670;
  --teal-soft: #DDF3F0;
  --mint: #E8F6F2;
  --butter: #FFF5D6;
  --peach: #FFE8E1;
  --lilac: #EFEAFE;
  --sky: #E4F0FA;
  --coral: #F2836F;
  --sun: #F7D46A;
  --bg: #FAFCFB;
  --white: #FFFFFF;
  --line: #E7EFED;
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1220px;
  --font-head: 'Cairo', 'Tajawal', 'Segoe UI', 'Noto Kufi Arabic', Tahoma, sans-serif;
  --font-body: 'Tajawal', 'Cairo', 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;
  --font-num: 'Inter', 'Tajawal', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --lift: 0 18px 40px -22px rgba(31, 52, 57, .35);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-group(tw-product-photo) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; scroll-behavior: smooth; }
body.tw { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.02rem/1.75 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.tw img { max-width: 100%; display: block; }
.tw a { color: inherit; text-decoration: none; }
.tw button, .tw input, .tw select, .tw textarea { font: inherit; color: inherit; }
.tw button { cursor: pointer; }
.tw h1, .tw h2, .tw h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; font-weight: 800; }
.tw p { margin: 0; }
.tw [hidden] { display: none !important; }
.tw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tw-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tw-num { font-family: var(--font-num); font-feature-settings: "tnum" 1; }
.tw-muted { color: var(--ink-2); }
.tw-small { font-size: .875rem; }
.tw-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tw-wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.tw-skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.tw-skip:focus { top: 12px; }
.tw :focus-visible { outline: 3px solid rgba(10, 143, 136, .55); outline-offset: 3px; border-radius: 10px; }
main:focus { outline: none; }

/* ---------- Scroll reveal ---------- */
@property --ty { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --rx { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .tw-card:not(.is-in) { opacity: 0; --ty: 22px; }

/* ---------- Buttons ---------- */
.tw .tw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 26px;
  border-radius: 999px; border: 0; font: 700 1rem/1.2 var(--font-head); background: var(--white); color: var(--ink);
  transition: transform .25s var(--spring), background-color .2s, box-shadow .25s var(--ease);
}
.tw .tw-btn:hover { transform: translateY(-2px); }
.tw .tw-btn:active { transform: scale(.97); }
.tw .tw-btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 143, 136, .8); }
.tw .tw-btn-primary:hover { background: var(--teal-dark); box-shadow: 0 14px 28px -12px rgba(10, 143, 136, .85); }
.tw .tw-btn-soft, .tw .tw-btn-ghost { background: var(--teal-soft); color: var(--teal-dark); }
.tw .tw-btn-soft:hover, .tw .tw-btn-ghost:hover { background: #CDEDE9; }
.tw .tw-btn-block { width: 100%; }
.tw .tw-btn-lg { min-height: 56px; padding-inline: 30px; font-size: 1.06rem; }
.tw .tw-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.tw-link { font-weight: 700; color: var(--teal-dark); position: relative; }
.tw-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(.35); transform-origin: right; transition: transform .35s var(--ease); }
.tw-link:hover::after { transform: scaleX(1); }
.tw-icon-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mint); color: var(--ink); transition: background-color .2s, transform .25s var(--spring); }
.tw-icon-btn:hover { background: var(--teal-soft); transform: translateY(-2px); }

/* ---------- Header ---------- */
.tw-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 252, 251, .86); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); transition: box-shadow .3s var(--ease); }
.tw-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(31, 52, 57, .5); }
.tw-header-row { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.tw-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.tw-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 16px -8px rgba(31, 52, 57, .5); transition: transform .6s var(--spring); }
.tw-brand:hover img { transform: rotate(-12deg); }
.tw-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tw-brand-text strong { font: 800 1.5rem/1.15 var(--font-head); }
.tw-brand-text small { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.tw-search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.tw-search > .tw-icon { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.tw-search input { width: 100%; height: 50px; border-radius: 999px; border: 0; background: #EEF4F3; padding-inline: 52px 20px; outline: none; transition: background-color .2s, box-shadow .3s var(--ease); }
.tw-search input::placeholder { color: var(--ink-3); }
.tw-search input:focus-visible { outline: none; }
.tw-search input:focus { background: var(--white); box-shadow: 0 0 0 2px rgba(10, 143, 136, .35), 0 12px 30px -18px rgba(31, 52, 57, .4); }
.tw-suggest { position: absolute; inset-inline: 0; top: calc(100% + 10px); background: var(--white); border-radius: var(--r-md); box-shadow: 0 24px 60px -24px rgba(31, 52, 57, .45); padding: 8px; max-height: 70vh; overflow: auto; z-index: 50; transform-origin: top; animation: tw-drop .25s var(--ease); }
@keyframes tw-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.tw-suggest-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; transition: background-color .15s; }
.tw-suggest-item[aria-selected="true"], .tw-suggest-item:hover { background: var(--mint); }
.tw-suggest-item img, .tw-suggest-thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.tw-suggest-item strong { display: block; font-weight: 700; line-height: 1.35; }
.tw-suggest-item small { color: var(--ink-2); }
.tw-suggest-price { font: 700 .95rem var(--font-num); color: var(--teal-dark); white-space: nowrap; }
.tw-suggest-all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--teal-dark); border-top: 1px solid var(--line); margin-top: 6px; }
.tw-suggest-empty { padding: 14px; color: var(--ink-2); text-align: center; }
.tw-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.tw-dot-count { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 .72rem/20px var(--font-num); text-align: center; }
.tw-cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding-inline: 18px 8px; border-radius: 999px; background: var(--teal); color: #fff !important; font: 700 1rem var(--font-head); box-shadow: 0 10px 24px -14px rgba(10, 143, 136, .9); transition: transform .25s var(--spring), background-color .2s; }
.tw-cart-btn:hover { background: var(--teal-dark); transform: translateY(-2px); }
.tw-cart-count { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 999px; background: #fff; color: var(--teal-dark); display: inline-grid; place-items: center; font: 700 .92rem var(--font-num); }
.is-bump { animation: tw-bump .55s var(--spring); }
@keyframes tw-bump { 35% { transform: scale(1.3); } 100% { transform: none; } }

.tw-catbar-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 12px; }
.tw-catbar-row::-webkit-scrollbar { display: none; }
.tw-catbar a { flex: none; padding: 6px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.tw-catbar a:hover { background: var(--mint); color: var(--ink); }
.tw-catbar a.is-current { background: var(--ink); color: #fff; }

.tw-notices { padding-top: 16px; display: grid; gap: 8px; }
.tw-notice { padding: 12px 18px; border-radius: var(--r-md); background: var(--mint); color: var(--teal-dark); font-weight: 700; animation: tw-drop .4s var(--ease); }
.tw-notice.is-error { background: var(--peach); color: #A5402E; }

/* ---------- Hero ---------- */
.tw-hero { padding: 12px 0 8px; }
.tw-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; min-height: 540px; padding: 40px 56px; border-radius: var(--r-xl); background: linear-gradient(140deg, var(--mint) 0%, #F1F8F6 45%, var(--butter) 100%); overflow: hidden; }
.tw-hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.18; font-weight: 800; letter-spacing: -.3px; }
.tw-hero-copy h1 span { color: var(--teal); }
.tw-hero-copy > p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 28em; }
.tw-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tw-perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tw-perks li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-weight: 500; font-size: .95rem; }
.tw-perks .tw-icon { color: var(--teal); width: 20px; height: 20px; }

.tw-hero-art { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto; }
.tw-blob { position: absolute; border-radius: 50%; filter: blur(2px); animation: tw-morph 14s ease-in-out infinite; }
.tw-blob-a { inset: 6% 10% 14% 4%; background: #CDEFE9; }
.tw-blob-b { width: 46%; height: 46%; top: 0; inset-inline-end: 0; background: #FFE9B8; animation-delay: -5s; }
.tw-blob-c { width: 34%; height: 34%; bottom: 2%; inset-inline-start: 6%; background: #FFD9CF; animation-delay: -9s; }
@keyframes tw-morph {
  0%, 100% { border-radius: 58% 42% 46% 54% / 50% 56% 44% 50%; transform: translate(0, 0) rotate(0deg); }
  50% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; transform: translate(8px, -10px) rotate(8deg); }
}
.tw-hero-disc { position: absolute; inset: 16%; border-radius: 50%; padding: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(31, 52, 57, .45); animation: tw-in-pop .9s var(--spring) both; }
.tw-hero-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes tw-in-pop { from { opacity: 0; transform: scale(.88); } }
.tw-float { position: absolute; width: 22%; aspect-ratio: 1; padding: 6px; border-radius: 22px; background: #fff; box-shadow: 0 16px 30px -18px rgba(31, 52, 57, .5); translate: var(--px, 0) var(--py, 0); transition: translate .6s var(--ease); animation: tw-float 8s ease-in-out infinite, tw-in-pop .8s var(--spring) both; }
.tw-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.tw-float-1 { top: 2%; inset-inline-start: 6%; --r: -8deg; animation-delay: -1s, .15s; }
.tw-float-2 { top: 10%; inset-inline-end: 2%; --r: 7deg; width: 19%; animation-delay: -3s, .25s; border-radius: 50%; }
.tw-float-2 img { border-radius: 50%; }
.tw-float-3 { bottom: 6%; inset-inline-start: 0; --r: 6deg; animation-delay: -5s, .35s; }
.tw-float-4 { bottom: 0; inset-inline-end: 12%; --r: -5deg; width: 20%; animation-delay: -2s, .45s; }
.tw-float-5 { top: 46%; inset-inline-end: -4%; --r: 10deg; width: 15%; animation-delay: -6s, .55s; border-radius: 50%; }
.tw-float-5 img { border-radius: 50%; }
@keyframes tw-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * .3)); } }

/* ---------- Sections ---------- */
.tw-section { padding-top: 56px; }
.tw-section:last-of-type { padding-bottom: 72px; }
.tw-page { padding-block: 32px 80px; min-height: 55vh; }
.tw-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tw-section-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.tw-section-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.tw-section-head p { margin-top: 4px; }
.tw-count { color: var(--ink-2); font-size: .9rem; white-space: nowrap; }

.tw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tw .tw-chip { padding: 10px 22px; border-radius: 999px; font-weight: 700; background: var(--c, var(--mint)); color: var(--ink); transition: transform .3s var(--spring), background-color .2s, color .2s; }
.tw-chip:nth-child(5n+2) { --c: var(--butter); }
.tw-chip:nth-child(5n+3) { --c: var(--peach); }
.tw-chip:nth-child(5n+4) { --c: var(--lilac); }
.tw-chip:nth-child(5n) { --c: var(--sky); }
.tw-chip:hover { transform: translateY(-3px); }
.tw .tw-chip.is-current { background: var(--ink); color: #fff; }

/* ---------- Product grid & card ---------- */
.tw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tw-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 24px; margin-inline: -6px; scrollbar-width: none; }
.tw-rail::-webkit-scrollbar { display: none; }
.tw-rail > * { scroll-snap-align: start; }

.tw-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white);
  transform: perspective(900px) translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity .6s var(--ease) var(--d, 0ms), --ty .7s var(--ease) var(--d, 0ms), --rx .35s var(--ease), --ry .35s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) { .tw-card.is-in:hover { --ty: -6px; box-shadow: var(--lift); } }
.tw-card-media { position: relative; aspect-ratio: 1; margin: 8px; border-radius: 20px; background: var(--c, var(--mint)); display: grid; place-items: center; overflow: hidden; }
.tw-card:nth-child(5n+2) .tw-card-media { --c: var(--butter); }
.tw-card:nth-child(5n+3) .tw-card-media { --c: var(--peach); }
.tw-card:nth-child(5n+4) .tw-card-media { --c: var(--lilac); }
.tw-card:nth-child(5n) .tw-card-media { --c: var(--sky); }
.tw-sticker { display: grid; place-items: center; width: 78%; aspect-ratio: 1; transition: transform .6s var(--ease); }
.tw-sticker img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; filter: drop-shadow(0 12px 16px rgba(31, 52, 57, .16)); }
@media (hover: hover) { .tw-card:hover .tw-sticker { transform: scale(1.07) translateY(-4px); } }
.tw-sticker-empty { display: grid; place-items: center; width: 100%; height: 100%; font: 800 1.3rem var(--font-head); color: var(--teal); }
.tw-tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--teal-dark); font: 700 .78rem/1.6 var(--font-head); }
.tw-card-tools { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; gap: 8px; }
.tw .tw-tool { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(31, 52, 57, .4); transition: transform .3s var(--spring), opacity .3s var(--ease), color .2s; }
.tw-tool .tw-icon { width: 18px; height: 18px; }
.tw-tool:hover { transform: scale(1.1); color: var(--teal-dark); }
[data-fav-toggle][aria-pressed="true"] { color: var(--coral); }
[data-fav-toggle][aria-pressed="true"] .tw-icon { fill: var(--coral); stroke: var(--coral); }
[data-fav-toggle].is-pop .tw-icon { animation: tw-bump .55s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .tw-card-tools .tw-tool { opacity: 0; transform: translateY(-6px); }
  .tw-card:hover .tw-tool, .tw-card:focus-within .tw-tool, .tw-card-tools .tw-tool[aria-pressed="true"] { opacity: 1; transform: none; }
  .tw-card-tools .tw-tool:nth-child(2) { transition-delay: .04s; }
}
.tw-card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 18px 18px; }
.tw-card-cat { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.tw-card-title { font: 700 1.04rem/1.5 var(--font-head); margin: 2px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.tw-card-title a { transition: color .2s; }
.tw-card-title a:hover { color: var(--teal-dark); }
.tw-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tw-price { font: 700 1.18rem/1.2 var(--font-num); white-space: nowrap; }
.tw-price small { font: 500 .8rem var(--font-body); color: var(--ink-2); }
.tw-price-lg { font-size: 2.1rem; margin: 12px 0 18px; color: var(--teal-dark); }
.tw-add { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; }
.tw .tw-add-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -10px rgba(10, 143, 136, .9); transition: transform .3s var(--spring), background-color .2s; touch-action: manipulation; overflow: hidden; }
.tw-add-btn .tw-icon { width: 22px; height: 22px; stroke-width: 2.4; transition: transform .4s var(--spring); }
.tw-add-btn:hover { background: var(--teal-dark); transform: scale(1.06); }
.tw-add-btn:hover .tw-icon { transform: rotate(90deg); }
.tw-add-btn:active { transform: scale(.9); }
.tw-add-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); opacity: 1; pointer-events: none; }
.tw-add-btn.is-ripple::after { animation: tw-ripple .5s var(--ease); }
@keyframes tw-ripple { to { transform: scale(2.2); opacity: 0; } }
.tw-add-btn.is-max { background: var(--ink-3); animation: tw-shake .35s; }
@keyframes tw-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tw-qty-badge { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--butter); color: var(--ink); font-weight: 700; font-size: .9rem; animation: tw-in-pop .4s var(--spring); }
.tw-buy-btn .tw-qty-badge { height: 26px; min-width: 26px; font-size: .82rem; background: rgba(255, 255, 255, .25); color: #fff; }
.tw-soldout { font-weight: 700; color: #A5402E; font-size: .85rem; background: var(--peach); padding: 6px 14px; border-radius: 999px; }

.tw-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 20px; }
.tw-empty img { border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 16px 30px -18px rgba(31, 52, 57, .5); }
.tw-empty h2, .tw-empty h3 { font-size: 1.4rem; margin-top: 8px; }
.tw-empty p { color: var(--ink-2); margin-bottom: 8px; }
.tw-empty-sticker { width: 96px; height: 96px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; font: 700 3rem/1 var(--font-num); margin-bottom: 6px; }
.tw-empty-sticker .tw-icon { width: 40px; height: 40px; }
.tw-pages { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 40px; color: var(--ink-2); }

/* ---------- Product detail ---------- */
.tw-detail { padding-block: 22px 80px; }
.tw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-3); margin-bottom: 22px; }
.tw-crumbs a:hover { color: var(--teal-dark); }
.tw-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.tw-detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.tw-gallery { position: sticky; top: 150px; }
.tw-gallery-main { aspect-ratio: 1; border-radius: var(--r-xl); display: grid; place-items: center; padding: 10%; background: linear-gradient(150deg, var(--mint), var(--butter)); overflow: hidden; }
.tw-gallery-main img { width: 100%; height: 100%; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 22px 26px rgba(31, 52, 57, .2)); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tw-detail .tw-gallery-main img { view-transition-name: tw-product-photo; }
.tw-gallery-main img.is-swapping { opacity: 0; transform: scale(.97); }
.tw-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px; }
.tw-thumb { flex: none; width: 74px; height: 74px; padding: 6px; border-radius: 18px; background: var(--white); border: 2px solid transparent; transition: border-color .2s, transform .25s var(--spring); }
.tw-thumb:hover { transform: translateY(-2px); }
.tw-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.tw-thumb[aria-current="true"] { border-color: var(--teal); }
.tw-detail-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 6px; }
.tw-detail-info .tw-card-cat { font-size: .92rem; color: var(--teal-dark); font-weight: 700; }
.tw-desc { color: var(--ink-2); font-size: 1.05rem; max-width: 36em; }
.tw-desc p + p { margin-top: .7em; }
.tw-stock { margin-top: 20px; font-weight: 700; color: #1D8A5B; display: flex; align-items: center; gap: 8px; }
.tw-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(29, 138, 91, .15); }
.tw-stock.is-low { color: #B7791F; }
.tw-stock.is-low::before { box-shadow: 0 0 0 4px rgba(183, 121, 31, .15); }
.tw-stock.is-out { color: #A5402E; }
.tw-stock.is-out::before { box-shadow: 0 0 0 4px rgba(165, 64, 46, .15); }
.tw-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.tw .tw-buy-btn { flex: 1; min-width: 180px; min-height: 56px; }
.tw-fav-big { width: 56px; height: 56px; }
.tw-stepper { display: inline-flex; align-items: center; height: 56px; border-radius: 999px; background: #EEF4F3; overflow: hidden; }
.tw-stepper button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); transition: background-color .2s, color .2s; }
.tw-stepper button:hover:not(:disabled) { background: var(--teal-soft); color: var(--teal-dark); }
.tw-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.tw-stepper input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 1.1rem; background: none; -moz-appearance: textfield; }
.tw-stepper input::-webkit-inner-spin-button, .tw-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tw-stepper.is-small { height: 42px; }
.tw-stepper.is-small button { width: 38px; }
.tw-stepper.is-small form { height: 100%; margin: 0; }
.tw-stepper.is-small > span { min-width: 28px; text-align: center; font-weight: 700; }
.tw-detail-notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.tw-detail-notes li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--white); }
.tw-detail-notes .tw-icon { color: var(--teal); }

/* ---------- Cart & checkout ---------- */
.tw-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.tw-lines { list-style: none; margin: 0; padding: 6px 22px; background: var(--white); border-radius: var(--r-lg); }
.tw-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tw-line:last-child { border-bottom: 0; }
.tw-line-img { width: 92px; height: 92px; border-radius: 20px; background: var(--mint); display: grid; place-items: center; padding: 10px; }
.tw-line:nth-child(3n+2) .tw-line-img { background: var(--butter); }
.tw-line:nth-child(3n) .tw-line-img { background: var(--peach); }
.tw-line-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.tw-line-title { font-size: 1.05rem; margin: 2px 0; }
.tw-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tw-line-side strong { font-size: 1.1rem; white-space: nowrap; font-weight: 700; }
.tw-line-side strong small { font: 500 .8rem var(--font-body); color: var(--ink-2); }
.tw-remove { border: 0; background: none; color: var(--ink-3); font-size: .875rem; padding: 4px 6px; border-radius: 8px; transition: color .2s, background-color .2s; }
.tw-remove:hover { color: #A5402E; background: var(--peach); }
.tw-warn { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--peach); color: #8A3A2A; font-size: .875rem; font-weight: 500; }
.tw-summary { position: sticky; top: 150px; background: var(--white); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 12px; }
.tw-summary h2 { font-size: 1.3rem; }
.tw-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tw-sum strong { font-family: var(--font-num); white-space: nowrap; font-weight: 700; }
.tw-sum.is-total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.1rem; }
.tw-sum.is-total strong { font-size: 1.5rem; color: var(--teal-dark); }
.tw-fees { list-style: none; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); display: grid; gap: 6px; font-size: .92rem; }
.tw-fees li { display: flex; justify-content: space-between; gap: 10px; }
.tw-mini-lines { list-style: none; padding: 6px 0 0; margin: 0 0 6px; display: grid; gap: 14px; max-height: 320px; overflow: auto; }
.tw-mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; font-size: .95rem; }
.tw-mini-img { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); padding: 6px; }
.tw-mini-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.tw-mini-img b { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
.tw-mini-name { font-weight: 500; line-height: 1.4; }

.tw-form { background: var(--white); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 26px; }
.tw-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.tw-fieldset legend { font: 800 1.15rem var(--font-head); margin-bottom: 12px; padding: 0; }
.tw-field { display: grid; gap: 6px; }
.tw-field label { font-weight: 500; }
.tw .form-control { width: 100%; min-height: 54px; padding: 12px 18px; border-radius: var(--r-md); border: 0; background: #EEF4F3; outline: none; transition: background-color .2s, box-shadow .3s var(--ease); }
.tw textarea.form-control { min-height: 100px; resize: vertical; }
.tw .form-control:focus { background: var(--white); box-shadow: 0 0 0 2px rgba(10, 143, 136, .4); }
.tw input[name="phone"] { direction: ltr; text-align: right; font-family: var(--font-num); }
.tw-hint { font-size: .85rem; color: var(--ink-3); }
.tw-field-error { color: #B23B26; font-weight: 500; font-size: .9rem; animation: tw-drop .3s var(--ease); }
.tw-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tw-option { position: relative; cursor: pointer; }
.tw-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tw-option > span { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; min-height: 64px; border-radius: var(--r-md); background: #EEF4F3; font-weight: 700; box-shadow: inset 0 0 0 2px transparent; transition: background-color .25s, box-shadow .25s var(--ease), transform .3s var(--spring); }
.tw-option > span small { margin-inline-start: auto; color: var(--ink-2); font-weight: 500; }
.tw-option:hover > span { transform: translateY(-2px); }
.tw-option input:checked + span { background: var(--mint); box-shadow: inset 0 0 0 2px var(--teal); }
.tw-option input:checked + span .tw-icon { color: var(--teal); }
.tw-option input:focus-visible + span { outline: 3px solid rgba(10, 143, 136, .55); outline-offset: 3px; }
.tw-fieldset[data-delivery-only] { transition: opacity .3s var(--ease); }
.tw-pay { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); background: var(--butter); font-weight: 500; }

.tw-success { max-width: 620px; margin: 24px auto; padding: 52px 28px; text-align: center; background: linear-gradient(160deg, var(--mint), var(--white) 60%); border-radius: var(--r-xl); position: relative; overflow: hidden; }
.tw-success-logo { margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 20px 40px -20px rgba(31, 52, 57, .5); animation: tw-in-pop .8s var(--spring) both; }
.tw-success h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.tw-success > p { margin-top: 10px; color: var(--ink-2); }
.tw-order-ref { display: inline-flex; flex-direction: column; gap: 2px; margin: 26px auto; padding: 14px 32px; border-radius: var(--r-md); background: var(--white); box-shadow: 0 16px 30px -22px rgba(31, 52, 57, .5); }
.tw-order-ref span { font-size: .9rem; color: var(--ink-2); }
.tw-order-ref strong { font-size: 1.7rem; font-weight: 700; color: var(--teal-dark); }
.tw-success .tw-btn { margin-top: 20px; }
.tw-confetti { position: absolute; top: -12px; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }
.tw-confetti:nth-child(odd) { border-radius: 3px; width: 8px; height: 14px; }

/* ---------- Footer ---------- */
.tw-footer { background: var(--white); color: var(--ink-2); padding: 52px 0 24px; margin-top: 40px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.tw-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.tw-footer h2 { color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.tw-footer p { font-size: .95rem; }
.tw-footer a:hover { color: var(--teal-dark); }
.tw-footer-brand { display: flex; align-items: center; gap: 14px; }
.tw-footer-brand img { border-radius: 50%; }
.tw-footer-brand strong { font: 800 1.4rem var(--font-head); color: var(--ink); }
.tw-copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 .8rem var(--font-num); color: var(--ink-3); text-align: center; }

.tw-tabbar { display: none; }

/* ---------- Drawers & dialogs ---------- */
.tw dialog { color: var(--ink); }
.tw dialog::backdrop { background: rgba(31, 52, 57, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tw dialog[open]::backdrop { animation: tw-fade .3s var(--ease); }
@keyframes tw-fade { from { opacity: 0; } }
.tw-drawer { margin: 12px; margin-inline-start: auto; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); width: min(420px, calc(100vw - 24px)); max-width: 100vw; border: 0; padding: 0; background: var(--white); border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(31, 52, 57, .55); flex-direction: column; overflow: hidden; }
.tw-drawer[open] { display: flex; animation: tw-drawer-in .45s var(--ease); }
@keyframes tw-drawer-in { from { transform: translateX(-104%); } }
.tw-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.tw-drawer-head h2 { font-size: 1.35rem; }
.tw-drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px; overscroll-behavior: contain; }
.tw-drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--bg); }
.tw-drawer-note { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--ink-3); background: var(--bg); }
.tw-dline { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: tw-slide-in .4s var(--ease) both; }
.tw-dline:nth-child(2) { animation-delay: .04s; } .tw-dline:nth-child(3) { animation-delay: .08s; } .tw-dline:nth-child(4) { animation-delay: .12s; }
@keyframes tw-slide-in { from { opacity: 0; transform: translateX(-12px); } }
.tw-dline:last-child { border-bottom: 0; }
.tw-dline-img { width: 70px; height: 70px; border-radius: 18px; background: var(--mint); padding: 6px; }
.tw-dline-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.tw-dline-name { font-weight: 700; line-height: 1.4; display: block; }
.tw-dline-name:hover { color: var(--teal-dark); }
.tw-dline-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tw-dline-row strong { font-family: var(--font-num); font-weight: 700; }
.tw-dline.is-problem .tw-dline-name::after { content: " · الكمية غير متوفرة"; color: #A5402E; font-size: .8rem; font-weight: 500; }
.tw-dline .tw-stepper { height: 38px; }
.tw-dline .tw-stepper button { width: 34px; }
.tw-dline .tw-stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.tw-dline .tw-add-btn { width: 38px; height: 38px; }
.tw-dline-remove { border: 0; background: none; color: var(--ink-3); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: color .2s, background-color .2s; }
.tw-dline-remove:hover { color: #A5402E; background: var(--peach); }
.tw-dline-remove .tw-icon { width: 18px; height: 18px; }
.tw-drawer-empty { text-align: center; padding: 48px 8px; display: grid; justify-items: center; gap: 8px; color: var(--ink-2); }
.tw-drawer-empty strong { color: var(--ink); font: 800 1.15rem var(--font-head); }
.tw-drawer-empty .tw-empty-sticker { width: 80px; height: 80px; font-size: 2.4rem; }
.tw-drawer[aria-busy="true"] .tw-drawer-body { opacity: .6; transition: opacity .2s; }

.tw-quick { width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: var(--r-xl); padding: 0; background: var(--white); box-shadow: 0 40px 90px -30px rgba(31, 52, 57, .55); overflow: auto; }
.tw-quick[open] { animation: tw-quick-in .45s var(--spring); }
@keyframes tw-quick-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.tw-quick-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
.tw-quick-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; }
.tw-quick-body .tw-gallery { position: static; }
.tw-quick-body .tw-gallery-main { border-radius: var(--r-lg); }
.tw-quick-body h2 { font-size: 1.6rem; margin-top: 4px; }
.tw-quick-body .tw-price-lg { font-size: 1.8rem; margin: 10px 0 12px; }
.tw-quick-body .tw-desc { font-size: 1rem; }
.tw-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.tw-quick-actions .tw-btn-primary { flex: 1; }
.tw-quick-more { display: inline-block; margin-top: 18px; }
.tw-skeleton { min-height: 340px; display: grid; place-items: center; color: var(--ink-3); grid-column: 1 / -1; }
.tw-skeleton::before { content: ""; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--teal-soft); border-top-color: var(--teal); animation: tw-spin .8s linear infinite; margin-bottom: 10px; }
@keyframes tw-spin { to { transform: rotate(360deg); } }

.tw-toast { position: fixed; z-index: 90; bottom: 26px; inset-inline-start: 50%; translate: 50% 0; max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 20px 40px -20px rgba(31, 52, 57, .7); animation: tw-toast-in .45s var(--spring); }
.tw-toast.is-error { background: #B23B26; }
@keyframes tw-toast-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.tw-fly { position: fixed; z-index: 95; pointer-events: none; border-radius: 18px; background: #fff; padding: 4px; box-shadow: 0 16px 30px -12px rgba(31, 52, 57, .5); object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
  .tw-split { grid-template-columns: 1fr; }
  .tw-summary { position: static; }
  .tw-hero-grid { padding: 36px; }
}
@media (max-width: 860px) {
  .tw-header-row { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .tw-brand img { width: 46px; height: 46px; }
  .tw-brand-text strong { font-size: 1.3rem; }
  .tw-actions { margin-inline-start: auto; }
  .tw-search { order: 3; flex-basis: 100%; max-width: none; }
  .tw-search input { height: 48px; }
  .tw-hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 28px 20px 36px; gap: 8px; border-radius: 30px; }
  .tw-hero-copy > p { margin-inline: auto; }
  .tw-hero-cta, .tw-perks { justify-content: center; }
  .tw-hero-art { order: -1; width: min(82%, 340px); }
  .tw-detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .tw-gallery { position: static; }
  .tw-quick-body { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .tw-footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .tw-wrap { width: calc(100% - 24px); }
  .tw-cart-btn, .tw-actions .tw-icon-btn { display: none; }
  .tw-catbar { display: none; }
  .tw-hero { padding-top: 4px; }
  .tw-hero-copy h1 { font-size: 2.3rem; }
  .tw-hero-copy > p { font-size: 1.02rem; }
  .tw .tw-btn-lg { min-height: 50px; padding-inline: 24px; font-size: 1rem; }
  .tw-section { padding-top: 40px; }
  .tw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -12px; padding-inline: 12px; }
  .tw-chips::-webkit-scrollbar { display: none; }
  .tw .tw-chip { flex: none; padding: 9px 18px; }
  .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tw-rail { grid-auto-columns: 46%; gap: 12px; }
  .tw-card { border-radius: 22px; }
  .tw-card-media { margin: 6px; border-radius: 17px; }
  .tw-sticker { width: 82%; }
  .tw-card-body { padding: 4px 12px 14px; }
  .tw-card-title { font-size: .95rem; margin-bottom: 10px; }
  .tw-price { font-size: 1.02rem; }
  .tw .tw-add-btn { width: 40px; height: 40px; }
  .tw-qty-badge { min-width: 26px; height: 26px; font-size: .82rem; }
  .tw-card-foot { flex-wrap: wrap; }
  .tw .tw-tool { width: 34px; height: 34px; }
  .tw .tw-buy-btn { min-width: 0; }
  .tw-line { grid-template-columns: 72px 1fr; }
  .tw-line-img { width: 72px; height: 72px; }
  .tw-line-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tw-lines, .tw-form, .tw-summary { padding-inline: 18px; }
  .tw-form { padding-block: 24px; }
  .tw-drawer { margin: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .tw-quick { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .tw-quick[open] { animation: tw-sheet-in .45s var(--ease); }
  @keyframes tw-sheet-in { from { transform: translateY(100%); } }
  .tw-toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.tw { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tw-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; inset-inline: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; box-shadow: 0 16px 40px -18px rgba(31, 52, 57, .45); }
  .tw-tabbar > a, .tw-tabbar > button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; font-size: .72rem; font-weight: 500; color: var(--ink-2); border-radius: 18px; transition: background-color .2s, color .2s; }
  .tw-tabbar [aria-current="page"] { color: var(--teal-dark); background: var(--mint); }
  .tw-tabbar .tw-cart-count { position: absolute; top: 0; left: calc(50% - 30px); min-width: 20px; height: 20px; border-radius: 999px; font-size: .7rem; padding: 0 5px; background: var(--coral); color: #fff; }
}


/* ---------- 6.2: announcement bar ---------- */
.tw-announce { background: var(--teal); color: #fff; font-size: .92rem; font-weight: 500; }
.tw-announce.is-butter { background: var(--butter); color: var(--ink); }
.tw-announce.is-peach { background: var(--peach); color: #7A3324; }
.tw-announce.is-ink { background: var(--ink); color: #fff; }
.tw-announce-row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 6px; text-align: center; position: relative; }
.tw-announce-row > a, .tw-announce-row > p { flex: 1; }
.tw-announce-row > a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tw-announce-close { position: absolute; inset-inline-end: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .75; transition: opacity .2s, background-color .2s; }
.tw-announce-close:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.tw-announce-close .tw-icon { width: 16px; height: 16px; }
.tw-announce.is-closing { animation: tw-collapse .35s var(--ease) forwards; overflow: hidden; }
@keyframes tw-collapse { to { max-height: 0; min-height: 0; opacity: 0; } }

/* ---------- 6.2: sub-categories, sort & filter ---------- */
.tw-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.tw .tw-subcat { padding: 8px 18px; border-radius: 999px; background: var(--white); color: var(--ink-2); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s, box-shadow .2s, transform .3s var(--spring); }
.tw-subcat:hover { color: var(--ink); transform: translateY(-2px); }
.tw .tw-subcat.is-current { background: var(--teal); color: #fff; box-shadow: none; }
.tw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 0 22px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--white); }
.tw-sort { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.tw-sort select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: #EEF4F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D7276' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center; padding: 9px 16px 9px 38px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.tw-sort select:hover { background-color: var(--teal-soft); }
.tw-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; font-weight: 500; user-select: none; }
.tw-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tw-switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #D6E2E0; transition: background-color .25s var(--ease); }
.tw-switch-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(31, 52, 57, .25); transition: transform .3s var(--spring); }
.tw-switch input:checked + .tw-switch-track { background: var(--teal); }
.tw-switch input:checked + .tw-switch-track::after { transform: translateX(-18px); }
[dir="ltr"] .tw-switch input:checked + .tw-switch-track::after { transform: translateX(18px); }
.tw-switch input:focus-visible + .tw-switch-track { outline: 3px solid rgba(10, 143, 136, .55); outline-offset: 2px; }
.tw-grid.is-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }
.tw-section > .tw-crumbs { margin-bottom: 10px; }
main > .tw-section:first-child { padding-top: 26px; }

/* ---------- 6.2: share ---------- */
.tw-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tw-share-label { font-size: .9rem; color: var(--ink-2); margin-inline-end: 4px; }
.tw .tw-share-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring), background-color .2s, color .2s; }
.tw-share-btn svg { width: 20px; height: 20px; }
.tw-share-btn:hover { transform: translateY(-3px); }
.tw .tw-share-btn.is-wa:hover { background: #25D366; color: #fff; box-shadow: none; }
.tw .tw-share-btn.is-tg:hover { background: #2AABEE; color: #fff; box-shadow: none; }
.tw .tw-share-btn.is-done { background: var(--teal); color: #fff; box-shadow: none; }

@media (max-width: 640px) {
  .tw-toolbar { border-radius: 22px; padding: 10px 14px; }
  .tw-subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .tw-subcats::-webkit-scrollbar { display: none; }
  .tw .tw-subcat { flex: none; }
  .tw-announce-row { padding-inline-end: 34px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .tw-card:not(.is-in) { opacity: 1; transform: none; --ty: 0px; }
  @view-transition { navigation: none; }
}

/* 6.11: social links + whatsapp button */
.tw-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 14px 0 0; }
.tw-social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft, #e6f6f3); color: var(--teal-dark, #0a7f7a); transition: transform .2s, background .2s; }
.tw-social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw-social-link:hover { transform: translateY(-2px) scale(1.05); background: var(--teal-dark, #0a7f7a); color: #fff; }
.tw-btn-whatsapp { background: #25d366; color: #fff; margin-inline-end: 10px; }
.tw-btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.tw-success .tw-btn { margin-top: 8px; }

/* 6.15: coupons + free delivery */
.tw-sum.is-discount strong { color: #c2410c; }
.tw-coupon-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font: 700 .72rem var(--font-num); letter-spacing: .5px; }
.tw-coupon-row { display: flex; gap: 8px; }
.tw-coupon-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px dashed #cfe0dc; border-radius: 12px; padding: 8px 12px; font: 700 .95rem var(--font-num); background: var(--white); color: var(--ink); text-transform: uppercase; }
.tw-coupon-row input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-style: solid; }
.tw-btn-ghost { background: var(--mint); color: var(--teal-dark); min-height: 44px; padding: 8px 16px; }
.tw-btn-ghost:hover { background: var(--teal); color: #fff; }
.tw-coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--mint); font-size: .92rem; }
.tw-coupon-applied b { font-family: var(--font-num); }
.tw-free-ship { background: linear-gradient(90deg, #fff7e6, #fffdf7); border: 1px solid #fde6b8; border-radius: 12px; padding: 10px 12px; font-size: .92rem; color: #7a4e0a; }
.tw-free-ship p { margin: 0 0 6px; }
.tw-free-ship.is-reached { background: linear-gradient(90deg, var(--mint), #f4fbf9); border-color: #bfe8df; color: var(--teal-dark); font-weight: 700; }
.tw-free-track { height: 6px; border-radius: 6px; background: #f3e4c4; overflow: hidden; }
.tw-free-bar { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width .6s ease; }
.tw-free { color: var(--teal-dark); font-weight: 800; }
.tw-fees s { opacity: .55; margin-inline-end: 4px; }

/* 6.17: decrement / remove button on product cards */
.tw .tw-dec-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); background: var(--white); color: var(--teal-dark); display: grid; place-items: center; transition: transform .3s var(--spring), background-color .2s, border-color .2s, color .2s; touch-action: manipulation; animation: tw-in-pop .35s var(--spring); }
.tw-dec-btn .tw-icon { width: 20px; height: 20px; stroke-width: 2.4; }
.tw-dec-btn .tw-icon-trash { display: none; }
.tw-dec-btn.is-one { border-color: #f1b4ad; color: #c0392b; background: #fff5f4; }
.tw-dec-btn.is-one .tw-icon-minus { display: none; }
.tw-dec-btn.is-one .tw-icon-trash { display: block; stroke-width: 2; }
.tw-dec-btn:hover { transform: scale(1.06); background: var(--mint); }
.tw-dec-btn.is-one:hover { background: #fde8e6; }
.tw-dec-btn:active, .tw-dec-btn.is-pop { transform: scale(.88); }
.tw-dec-btn[hidden] { display: none; }
.tw-quick-add { display: inline-flex; align-items: center; gap: 10px; }
.tw-quick-add .tw-dec-btn { width: 44px; height: 44px; animation: none; }

/* 6.18: badges, about page, card share popover */
.tw-tag.is-best { background: linear-gradient(90deg, #ff8a3d, #ffb347); color: #fff; }
.tw-tag.is-new { background: var(--teal); color: #fff; }
.tw-about { max-width: 820px; display: grid; gap: 22px; }
.tw-about-hero { display: flex; align-items: center; gap: 18px; }
.tw-about-hero img { border-radius: 50%; box-shadow: 0 0 0 6px #fff; }
.tw-about-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.tw-about-card { background: var(--white); border-radius: var(--r-lg); padding: 28px; line-height: 1.9; }
.tw-about-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.tw-about-card p { margin: 0 0 12px; }
.tw-about-contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tw-share-pop { position: fixed; z-index: 90; display: flex; gap: 8px; padding: 8px; background: var(--white); border-radius: 999px; box-shadow: 0 16px 40px -16px rgba(31, 52, 57, .45); animation: tw-in-pop .25s var(--spring); }
.tw-share-pop[hidden] { display: none; }
.tw-share-pop .tw-share-btn { width: 42px; height: 42px; }
.tw-share-pop .tw-share-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw-share-btn.is-fb { color: #1877f2; }
.tw-share-btn.is-done { background: var(--mint); color: var(--teal-dark); }

