/* ============ Taste & Tail — storefront ============ */

/* ---------- announcement + header ---------- */
.announce {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
  color: var(--navy-900); text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; line-height: 1.4;
}
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(22, 33, 62, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(226, 184, 102, .18);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.topnav { display: none; gap: 6px; margin-inline-start: 12px; }
.topnav a { color: #e9e3d6; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.topnav a:hover { background: rgba(255,255,255,.08); color: var(--gold-400); }
@media (min-width: 768px) { .topnav { display: flex; } }
.topbar__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.pill-btn {
  height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(226,184,102,.45);
  background: transparent; color: var(--gold-400); font-weight: 700; font-family: var(--font-en); font-size: 13px; letter-spacing: .04em;
}
.pill-btn:hover { background: rgba(226,184,102,.12); }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(207,157,69,.4);
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: #fff; color: var(--navy-800); font-size: 12px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--navy-800); font-family: var(--font-en);
}
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(226,184,102,.20), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(226,184,102,.12), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  padding: 36px 0 70px;
}
.hero::before { /* subtle dotted pattern */
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#e2b866 1px, transparent 1px); background-size: 22px 22px;
}
.hero__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.hero__text { text-align: center; }
.hero__script { font-family: var(--font-script); color: var(--gold-400); font-size: 44px; line-height: 1; margin: 0 0 6px; direction: ltr; }
.hero__title { font-family: var(--font-display-ar); font-size: clamp(30px, 7.5vw, 54px); line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
html[lang="en"] .hero__title { font-family: var(--font-serif); }
.hero__sub { color: #d7d3c8; font-size: clamp(15px, 3.8vw, 18px); max-width: 520px; margin: 0 auto 22px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__wa { color: #fff; border-color: rgba(255,255,255,.35); }
.hero__wa:hover { background: rgba(255,255,255,.08); }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; color: var(--cream-100); }

.hero__art { position: relative; height: 270px; max-width: 420px; width: 100%; margin: 0 auto; }
.hero__img {
  position: absolute; object-fit: cover; border-radius: 22px; border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(0,0,0,.35); background: var(--cream-200);
  animation: float 7s ease-in-out infinite;
}
.hero__img--1 { width: 56%; height: 46%; left: 22%; top: 50%; z-index: 3; animation-delay: -1s; }
.hero__img--2 { width: 26%; height: 52%; left: 0; top: 8%; z-index: 2; transform: rotate(-6deg); animation-delay: -3s; }
.hero__img--3 { width: 27%; height: 50%; right: 0; top: 4%; z-index: 2; transform: rotate(6deg); animation-delay: -2s; }
.hero__img--4 { width: 26%; height: 46%; left: 32%; top: 0; z-index: 1; animation-delay: -4s; }
.hero__img--5 { display: none; }
@keyframes float { 50% { translate: 0 -8px; } }

@media (min-width: 900px) {
  .hero { padding: 64px 0 110px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero__text { text-align: start; }
  .hero__sub { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__script { font-size: 60px; }
  .hero__art { height: 420px; max-width: 520px; }
  .hero__img--5 { display: block; width: 24%; height: 38%; right: 4%; bottom: 0; z-index: 4; transform: rotate(4deg); animation-delay: -5s; }
  .hero__img--1 { width: 50%; height: 42%; left: 18%; top: 54%; }
}

.closed-note { margin-top: 18px; }
.closed-note > div { background: #fff4e0; border: 1px solid var(--gold-200); color: #7a5414; padding: 12px 16px; border-radius: 14px; font-weight: 700; text-align: center; }

/* ---------- sections ---------- */
.section { padding: 34px 0 10px; }
.section--tight { padding-top: 18px; }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.section__kicker { font-family: var(--font-script); color: var(--gold-600); font-size: 26px; line-height: 1; direction: ltr; }
html[lang="ar"] .section__kicker { font-family: var(--font-ar); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--gold-600); }
.section__title {
  font-family: var(--font-display-ar); font-size: clamp(24px, 5.5vw, 34px); color: var(--navy-800); margin: 4px 0 0; font-weight: 700;
  display: flex; align-items: center; gap: 14px;
}
html[lang="en"] .section__title { font-family: var(--font-serif); }
.section__title::before, .section__title::after { content: ''; width: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-500)); border-radius: 2px; }
.section__title::after { transform: scaleX(-1); }

/* ---------- offers ---------- */
.offers-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.offer {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: stretch;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg);
  padding: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; text-align: start; border: 1px solid rgba(226,184,102,.25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.offer::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -60px; top: -80px; background: radial-gradient(rgba(226,184,102,.25), transparent 70%); }
.offer__img { width: 120px; height: 100%; min-height: 130px; border-radius: 16px; object-fit: cover; background: var(--navy-600); }
.offer__ph { width: 120px; min-height: 130px; border-radius: 16px; display: grid; place-items: center; font-size: 46px; background: rgba(255,255,255,.06); }
.offer__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.offer__tag { align-self: flex-start; background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.offer__title { font-weight: 800; font-size: 18px; margin: 2px 0 0; line-height: 1.3; }
.offer__desc { color: #cfd3df; font-size: 13.5px; margin: 0; line-height: 1.5; }
.offer__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.offer__price { font-weight: 800; color: var(--gold-400); font-size: 19px; font-family: var(--font-en); }
.offer__old { color: #9aa1b5; text-decoration: line-through; font-size: 13px; display: block; font-family: var(--font-en); }
.offer__add { background: var(--gold-500); color: var(--navy-900); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; }

/* ---------- featured row (horizontal scroller) ---------- */
.featured-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px;
}
.featured-row::-webkit-scrollbar { display: none; }
.featured-row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .featured-row { grid-auto-columns: minmax(180px, 30%); } }
@media (min-width: 1024px) { .featured-row { grid-auto-columns: calc((100% - 70px) / 6); margin-inline: 0; padding-inline: 2px; } }

/* ---------- sticky menu nav ---------- */
.menu { padding-top: 26px; }
.menu-nav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(251, 244, 234, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0 6px; border-bottom: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0 16px; height: 46px; transition: border-color .2s, box-shadow .2s; max-width: 560px; margin: 0 auto 10px;
}
.search:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(207,157,69,.15); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; height: 100%; font-size: 16px; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--navy-800); white-space: nowrap;
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-500); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 4px 12px rgba(22,33,62,.25); }
.chip__icon { font-size: 16px; }

/* ---------- category blocks + product cards ---------- */
.cat { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 118px); }
.cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--navy-800); box-shadow: inset 0 0 0 2px rgba(226,184,102,.5); flex: none; }
.cat__title { margin: 0; font-family: var(--font-display-ar); font-size: 23px; color: var(--navy-800); line-height: 1.2; }
html[lang="en"] .cat__title { font-family: var(--font-serif); }
.cat__sub { font-family: var(--font-script); color: var(--gold-600); font-size: 20px; line-height: 1; direction: ltr; display: block; }
html[lang="en"] .cat__sub { display: none; }
.cat__note { margin-inline-start: auto; font-size: 13px; color: var(--gold-600); font-weight: 700; background: #fff6e4; border: 1px solid var(--gold-200); padding: 4px 10px; border-radius: 999px; }
.cat__count { margin-inline-start: auto; color: var(--muted); font-size: 13px; font-weight: 700; }
.cat__note + .cat__count { margin-inline-start: 0; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid #f0e4d2; cursor: pointer; text-align: start;
  transition: transform .25s var(--ease), box-shadow .25s; padding: 0; width: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(145deg, #f8eddc, #efdcc2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.75), transparent 45%),
    linear-gradient(145deg, #f7ead6, #ecd6b8);
}
.card__ph span { font-size: clamp(40px, 12vw, 58px); filter: drop-shadow(0 6px 10px rgba(120, 80, 20, .2)); }
.card__ph::after { content: 'Taste & Tail'; position: absolute; bottom: 8px; font-family: var(--font-script); color: rgba(184,134,47,.55); font-size: 17px; }
.card__badge {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: var(--red); color: #fff; font-size: 11.5px;
  font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.card__badge--gold { background: var(--gold-500); color: var(--navy-900); }
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__name { font-weight: 800; font-size: 15px; line-height: 1.35; color: var(--navy-800); margin: 0; }
.card__en { font-family: var(--font-en); font-size: 12px; color: var(--muted); line-height: 1.3; direction: ltr; text-align: start; }
html[dir="rtl"] .card__en { text-align: right; }
.card__desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; color: var(--navy-800); font-size: 14.5px; font-family: var(--font-en); line-height: 1.2; }
.price small { display: block; font-family: var(--font-ar); font-weight: 500; font-size: 11px; color: var(--muted); }
.price del { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.price--sale { color: var(--red); }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-size: 22px; font-weight: 500; line-height: 1;
  transition: background .2s, transform .15s;
}
.card:hover .add-btn { background: var(--gold-500); color: var(--navy-900); }
.add-btn:active { transform: scale(.9); }
.card--off { opacity: .55; cursor: default; }
.card--off .add-btn { display: none; }

.featured-row .card__media { aspect-ratio: 4 / 5; }

.no-results { text-align: center; color: var(--muted); padding: 40px 16px; font-weight: 700; }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 26px; }
@media (min-width: 640px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }
.skeleton { aspect-ratio: 3/4; border-radius: var(--radius); background: linear-gradient(90deg, #f2e6d4, #faf2e6, #f2e6d4); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- product sheet ---------- */
.pd__media { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(145deg, #f8eddc, #efdcc2); }
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__media .card__ph span { font-size: 90px; }
.pd__body { padding: 18px 18px 6px; }
.pd__name { margin: 0; font-family: var(--font-display-ar); font-size: 25px; color: var(--navy-800); line-height: 1.25; }
html[lang="en"] .pd__name { font-family: var(--font-serif); }
.pd__en { color: var(--muted); font-family: var(--font-en); font-size: 14px; }
.pd__desc { color: var(--ink-soft); margin: 10px 0 0; }
.pd__section { margin-top: 18px; }
.pd__label { font-weight: 800; color: var(--navy-800); margin-bottom: 8px; display: block; font-size: 15px; }
.pd__foot {
  position: sticky; bottom: 0; background: linear-gradient(transparent, var(--cream-50) 22%); padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
}
.pd__foot .btn { flex: 1; justify-content: space-between; }
.offer-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offer-items li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.offer-items img, .offer-items .mini-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--cream-200); display: grid; place-items: center; font-size: 22px; }
.offer-items .q { margin-inline-start: auto; font-weight: 800; color: var(--gold-600); font-family: var(--font-en); }
.pd__price-big { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: var(--navy-800); margin-top: 8px; }
.pd__price-big del { color: var(--muted); font-size: 15px; font-weight: 500; margin-inline-start: 8px; }

/* ---------- cart drawer ---------- */
.cart { display: flex; flex-direction: column; }
.cart__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--cream-50); z-index: 2; }
.cart__head h3 { margin: 0; font-family: var(--font-display-ar); font-size: 22px; color: var(--navy-800); flex: 1; }
html[lang="en"] .cart__head h3 { font-family: var(--font-serif); }
.cart__list { padding: 8px 18px; flex: 1; }
.cline { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cline__img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--cream-200); display: grid; place-items: center; font-size: 28px; }
.cline__name { font-weight: 800; color: var(--navy-800); line-height: 1.3; font-size: 15px; }
.cline__meta { font-size: 12.5px; color: var(--ink-soft); }
.cline__price { font-family: var(--font-en); font-weight: 800; font-size: 14px; color: var(--navy-800); margin-top: 2px; }
.cline__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cline__rm { border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; padding: 0; }
.cart__empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart__empty .big { font-size: 64px; }
.cart__empty strong { display: block; font-size: 19px; color: var(--navy-800); margin-top: 8px; }
.cart__sum { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; position: sticky; bottom: 0; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--navy-800); font-size: 17px; margin-bottom: 4px; }
.sumrow span:last-child { font-family: var(--font-en); }
.sumrow--sub { font-weight: 500; font-size: 13.5px; color: var(--ink-soft); }
.cart__sum .btn { margin-top: 10px; }
.checkout { padding: 16px 18px; }
.checkout__summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.wa-hint { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 12.5px; justify-content: center; margin-top: 8px; }

/* ---------- floating cart bar ---------- */
.cart-bar {
  position: fixed; z-index: 60; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); height: 58px; border: 0; border-radius: 999px; padding: 0 8px 0 8px;
  display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); box-shadow: 0 12px 30px rgba(15, 24, 48, .35);
  animation: up .35s var(--ease);
}
.cart-bar__count { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-900); font-family: var(--font-en); }
.cart-bar__label { flex: 1; text-align: start; }
.cart-bar__total { font-family: var(--font-en); color: var(--gold-400); padding-inline-end: 14px; font-size: 15px; }
body.has-cart-bar .footer { padding-bottom: 100px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #cfd3df; margin-top: 50px; padding: 40px 0 30px; position: relative; }
.footer__grid { display: grid; gap: 26px; text-align: center; }
.footer__logo { height: 90px; width: auto; margin: 0 auto; }
.footer h4 { color: var(--gold-400); margin: 0 0 8px; font-size: 16px; }
.footer p { margin: 0 0 4px; }
.footer a:hover { color: var(--gold-400); }
.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(226,184,102,.35); color: var(--gold-400); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { text-align: center; font-size: 13px; color: #8b93a7; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; text-align: start; align-items: start; } .footer__logo { margin: 0; } .socials { justify-content: flex-start; } }
