@font-face {
  font-family: "Baloo Bhaijaan 2";
  src: url("/uploads/redaa/brand/BalooBhaijaan2-Medium.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  --primary: #583a80;
  --primary-dark: #3b215d;
  --sale: #d51f26;
  --footer: #23190e;
  --surface: #fff;
  --text: #2a2430;
  --muted: #777277;
  --line: #e9e5eb;
  --soft: #f7f5f8;
  --shadow: 0 5px 16px rgba(65, 37, 83, .13);
  --font-ar: "Baloo Bhaijaan 2", "Noto Sans Arabic", Arial, sans-serif;
  --font-en: Inter, Arial, sans-serif;
  --container: 1170px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 14px;
  letter-spacing: 0;
}
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.desktop-only { display: initial; }
.mobile-only { display: none !important; }
.icon { width: 20px; height: 20px; stroke-width: 1.8; }

.store-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--primary); }
.loading-mark { width: 46px; height: 46px; border: 3px solid #e4dce9; border-top-color: var(--primary); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.announcement {
  height: 31px;
  padding: 0 16px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.announcement-track { position: relative; width: 100%; height: 100%; }
.announcement-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s ease, transform .32s ease;
}
.announcement-message.active { opacity: 1; visibility: visible; pointer-events: auto; }
.announcement.slide .announcement-message { transform: translateY(100%); }
.announcement.slide .announcement-message.active { transform: translateY(0); }
.announcement a { text-decoration: underline; font-weight: 700; }
.store-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.store-header.is-sticky { position: sticky; top: 0; }
.header-main {
  min-height: 110px;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr) 390px;
  align-items: center;
  gap: 0;
}
.header-actions { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.header-actions.start { justify-content: flex-end; }
.login-button {
  width: 197px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.round-action {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.round-action:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.cart-count {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--font-en);
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 34px; white-space: nowrap; }
.main-nav a { position: relative; padding: 43px 0 38px; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 24px; height: 3px; border-radius: 4px; background: var(--primary); transform: scaleX(0); transition: transform .18s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--sale); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-logo { display: flex; justify-content: flex-start; padding-inline: 15px; }
.header-logo img { width: 80px; height: 90px; object-fit: contain; }

.category-strip { background: #e9e9e9; }
.category-strip-inner { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 92px); overflow: hidden; }
.category-shortcut { display: flex; align-items: center; gap: 10px; min-width: max-content; font-weight: 700; }
.category-shortcut img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }

.page-main { min-height: 55vh; }
.breadcrumbs { padding: 24px 0; color: var(--primary); font-size: 14px; }
.breadcrumbs span { color: var(--sale); }

.hero { position: relative; overflow: hidden; margin: 26px 8px 0; background: #2f1b47; }
.hero-stage { position: relative; aspect-ratio: 1950 / 807; min-height: 390px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide > a, .hero-slide picture, .hero-slide img { width: 100%; height: 100%; display: block; }
.hero-slide img { object-fit: cover; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; padding: 7% 9%; color: #fff; pointer-events: none; }
.hero-copy > div { max-width: 430px; }
.hero-copy h1 { font-size: clamp(30px, 4vw, 58px); line-height: 1.15; margin: 0 0 12px; }
.hero-copy p { font-size: clamp(14px, 1.5vw, 19px); line-height: 1.9; margin: 0 0 22px; }
.hero-copy a { pointer-events: auto; }
.hero-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 7px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.hero-dot.active { background: #fff; }

.home-content { background: #f6f6f6; }
.home-content .section { background: #f6f6f6; }
.home-content .section-head { min-height: 70px; margin-bottom: 20px; }
.home-content .section-head h2 { color: #2f1e45; font-size: 28px; line-height: 1.4; }
.home-content .section-link { color: #2f1e45; font-size: 18px; }
.home-offers { padding: 50px 0 62px; }
.home-categories { padding: 24px 0 58px; }
.home-latest { padding: 50px 0 72px; }
.home-rail-shell { position: relative; }
.home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 255px;
  gap: 15px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding-inline: 52px;
}
.home-rail::-webkit-scrollbar { display: none; }
.home-rail > * { scroll-snap-align: start; }
.rail-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #a09aa2;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 14px rgba(31, 22, 37, .12);
  opacity: 0;
  transition: opacity .2s ease, color .2s ease, transform .2s ease;
}
.rail-prev { right: -24px; }
.rail-next { left: -24px; }
.home-rail-shell:hover .rail-arrow { opacity: 1; }
.rail-arrow:hover { color: var(--primary); transform: scale(1.05); }

.section { padding: 58px 0; }
.section.soft { background: #f7f7f7; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { margin: 0; color: var(--primary-dark); font-size: 27px; }
.section-link { color: var(--primary); font-weight: 700; text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-grid.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.product-card { min-width: 0; text-align: right; }
.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f3f4;
  border-radius: 11px 11px 0 0;
  box-shadow: var(--shadow);
}
.product-media > a, .product-media img { width: 100%; height: 100%; }
.product-media img { object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.sale-badge { position: absolute; z-index: 2; top: 14px; inset-inline-start: 0; min-width: 58px; min-height: 28px; padding: 5px 10px; background: var(--sale); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.wish-button { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--primary); display: grid; place-items: center; opacity: 0; transform: translateY(-5px); transition: opacity .18s, transform .18s; }
.product-card:hover .wish-button { opacity: 1; transform: none; }
.product-info { padding: 12px 5px 0; }
.swatch-row { min-height: 21px; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.swatch-row small { font: 600 10px var(--font-en); color: var(--muted); }
.mini-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); }
.product-meta { color: #a09aa2; font-size: 12px; margin-bottom: 4px; }
.product-title { display: block; min-height: 48px; color: #2e2931; font-size: 15px; line-height: 1.65; font-weight: 700; }
.price { display: flex; align-items: center; gap: 8px; color: var(--primary); margin-top: 5px; }
.price strong { font: 700 15px var(--font-ar); }
.price del { color: #9c989d; font-size: 12px; }
.card-add { width: 100%; min-height: 36px; margin-top: 9px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.product-card:hover .card-add { opacity: 1; transform: none; }

.home-rail .product-card {
  min-height: 402px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(48, 32, 58, .035);
  transition: transform .22s ease, box-shadow .22s ease;
}
.home-rail .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(48, 32, 58, .12); }
.home-rail .product-media { border-radius: 0; box-shadow: none; }
.home-rail .product-info { padding: 12px 0 0; text-align: center; }
.home-rail .swatch-row { display: none; }
.home-rail .product-meta { font-size: 13px; line-height: 18px; }
.home-rail .product-title { min-height: 31px; font-size: 20px; line-height: 31px; color: #747474; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-rail .price { min-height: 32px; justify-content: center; font-size: 17px; line-height: 32px; }
.home-rail .price strong { font-size: 24px; line-height: 32px; }
.home-rail .price del { font-size: 20px; line-height: 32px; }
.home-rail .card-add { width: 128px; min-height: 36px; margin: 10px auto 0; opacity: 1; transform: none; }
.home-rail .wish-button { opacity: 0; transform: translateY(-7px); }
.home-rail .product-card:hover .wish-button { opacity: 1; transform: none; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card { position: relative; overflow: hidden; min-height: 320px; border-radius: 8px; background: #eee; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.04); }
.category-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(24,16,28,.7)); }
.category-card span { position: absolute; z-index: 2; bottom: 22px; inset-inline: 20px; color: #fff; font-size: 19px; font-weight: 700; }
.home-categories .home-rail { grid-auto-columns: 255px; }
.home-categories .category-card { min-height: 0; aspect-ratio: 1; border-radius: 50%; }
.home-categories .category-card::after { display: none; }
.home-categories .category-card span { inset-inline: 0; bottom: 18px; text-align: center; text-shadow: 0 1px 5px rgba(0,0,0,.6); }

.eid-showcase { display: grid; grid-template-columns: 265px 835px; gap: 20px; justify-content: center; direction: ltr; }
.eid-promos { display: grid; grid-template-rows: 625px 307px; gap: 20px; direction: rtl; }
.eid-promo { position: relative; overflow: hidden; border-radius: 10px; background: #ddd var(--promo-image) center/cover no-repeat; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 28px; padding: 42px 24px; text-align: center; }
.eid-promo::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(26,16,30,.42)); }
.eid-promo > * { position: relative; z-index: 1; }
.eid-promo span { font-size: 30px; font-weight: 700; line-height: 1.9; }
.eid-promo b { min-width: 132px; min-height: 43px; padding: 8px 22px; border-radius: 999px; background: #fff; color: var(--primary); font-size: 17px; }
.eid-promo-short { padding-bottom: 38px; gap: 20px; }
.eid-promo-short span { font-size: 27px; line-height: 1.55; }
.eid-promo-short b { background: var(--primary); color: #fff; }
.eid-products { display: grid; grid-template-columns: repeat(3, 265px); gap: 20px; direction: rtl; }
.featured-product-card { min-height: 466px; padding: 16px; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 2px 10px rgba(48,32,58,.035); transition: transform .22s ease, box-shadow .22s ease; }
.featured-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(48,32,58,.12); }
.featured-product-image { display: block; width: 233px; height: 233px; overflow: hidden; }
.featured-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-product-card:hover .featured-product-image img { transform: scale(1.035); }
.featured-product-info { padding-top: 12px; }
.featured-product-title { display: -webkit-box; min-height: 64px; overflow: hidden; color: #747474; font-size: 20px; font-weight: 700; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.featured-stars { height: 24px; color: #ddd; font: 700 18px/24px Arial, sans-serif; letter-spacing: 0; }
.featured-product-card .price { min-height: 37px; justify-content: center; margin: 7px 0; }
.featured-product-card .price strong { font-size: 24px; }
.featured-product-card .price del { font-size: 20px; }
.featured-buy { display: inline-flex; min-width: 128px; min-height: 36px; padding: 6px 20px; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; }

.promo-band { padding: 0 8px; background: #f6f6f6; }
.promo-band img { width: 100%; max-height: 570px; object-fit: cover; }

.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.shop-head h1 { margin: 0; color: var(--primary); font-size: 26px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; align-items: start; padding-bottom: 80px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.view-tools, .sort-tools { display: flex; align-items: center; gap: 11px; }
.store-select { min-height: 40px; border: 1px solid #ded9e1; border-radius: 4px; background: #fff; color: var(--text); padding: 0 12px; }
.view-button { border: 0; background: transparent; color: #aaa4ab; padding: 5px; }
.view-button.active { color: var(--primary); }
.filter-sidebar { position: sticky; top: 150px; }
.filter-panel { margin-bottom: 34px; }
.filter-title { margin: 0 0 14px; padding: 10px 14px; background: var(--primary); color: #fff; font-size: 16px; border-radius: 4px; text-align: center; }
.filter-list { display: grid; gap: 12px; }
.filter-list button { border: 0; background: transparent; color: #777277; text-align: right; padding: 0; }
.filter-list button.active, .filter-list button:hover { color: var(--primary); font-weight: 700; }
.price-range { width: 100%; accent-color: var(--primary); }
.price-filter-copy { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.filter-apply { min-height: 35px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0 0; }
.page-button { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.page-button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.no-results { min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); }

.product-page { padding-bottom: 80px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr); gap: 55px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; direction: ltr; }
.gallery-thumbs { display: grid; align-content: start; gap: 10px; max-height: 650px; overflow-y: auto; }
.gallery-thumb { width: 84px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #fff; }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(88,58,128,.13); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 8px; background: #f5f3f4; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.zoom-hint { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); display: grid; place-items: center; }
.product-summary { padding-top: 8px; }
.product-summary .product-meta { font-size: 13px; }
.product-summary h1 { color: var(--text); font-size: clamp(25px, 3vw, 36px); line-height: 1.45; margin: 8px 0 14px; }
.detail-price { font-size: 23px; margin-bottom: 20px; }
.detail-price strong { font-size: 24px; }
.short-description { color: #665f69; line-height: 2; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.variant-group { padding: 18px 0 0; }
.variant-group-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; font-weight: 700; }
.variant-options { display: flex; flex-wrap: wrap; gap: 9px; }
.color-option { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfc9d2; padding: 0; background: var(--color); }
.color-option.selected { box-shadow: 0 0 0 2px var(--primary); }
.text-option { min-height: 40px; padding: 0 14px; border: 1px solid #dcd6df; border-radius: 4px; background: #fff; color: var(--text); }
.text-option.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.purchase-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin-top: 25px; }
.quantity-control { min-height: 48px; display: grid; grid-template-columns: 34px 1fr 34px; border: 1px solid #ddd7e1; border-radius: 4px; overflow: hidden; }
.quantity-control button { border: 0; background: #f6f4f7; color: var(--primary); }
.quantity-control strong { display: grid; place-items: center; }
.primary-button, .secondary-button {
  min-height: 48px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}
.primary-button { background: var(--primary); color: #fff; }
.primary-button:hover { background: var(--primary-dark); }
.secondary-button { background: #fff; color: var(--primary); }
.buy-now { width: 100%; margin-top: 10px; }
.product-trust { margin-top: 22px; padding: 15px; background: var(--soft); border-radius: 6px; display: grid; gap: 8px; color: #615a63; font-size: 13px; }
.product-trust span { display: flex; align-items: center; gap: 8px; }
.detail-description { margin-top: 55px; border-top: 1px solid var(--line); padding-top: 30px; }
.detail-description h2 { color: var(--primary); }
.detail-description p { color: #625c65; line-height: 2.1; }

.cart-page { padding-bottom: 80px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 30px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; }
.cart-item h3 { margin: 0 0 7px; font-size: 16px; }
.cart-variant { color: var(--muted); font-size: 12px; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.remove-link { border: 0; background: transparent; color: var(--sale); padding: 6px; }
.cart-summary { position: sticky; top: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 4px 18px rgba(44,31,52,.06); }
.cart-summary h2 { color: var(--primary); margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-row.discount { color: #14845d; }
.summary-row.shipping strong { color: #14845d; }
.summary-row.shipping span { display: grid; gap: 3px; }
.summary-row.shipping small { color: var(--muted); font-size: 10px; font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: 20px; color: var(--primary-dark); }
.coupon-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.coupon-row input, .checkout-form input, .checkout-form textarea { min-height: 43px; border: 1px solid #ddd7e1; border-radius: 4px; padding: 0 11px; width: 100%; }
.coupon-row button { min-height: 43px; border: 0; border-radius: 4px; background: var(--primary); color: #fff; padding: 0 15px; }
.coupon-message { min-height: 22px; padding-top: 5px; font-size: 12px; color: var(--muted); }
.coupon-message.success { color: #14845d; }
.coupon-message.error { color: var(--sale); }
.empty-cart { min-height: 460px; display: grid; place-items: center; text-align: center; }
.empty-cart .icon { width: 58px; height: 58px; color: var(--primary); margin: 0 auto 15px; }
.checkout-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 25px; }
.checkout-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.checkout-form label.full { grid-column: 1 / -1; }
.checkout-form textarea { min-height: 90px; padding: 10px; resize: vertical; }

.store-footer { background: var(--footer); color: #fff; }
.footer-main { min-height: 591px; padding: 56px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; align-items: start; }
.footer-main > section { padding-inline: 15px; }
.footer-brand img { width: 98px; height: 111px; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.8); line-height: 2; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social-link { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; }
.footer-column h3 { margin: 0 0 20px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 17px; }
.footer-column div, .footer-column nav { display: grid; gap: 13px; color: rgba(255,255,255,.82); }
.footer-contact-row { display: flex !important; align-items: center; gap: 9px !important; }
.footer-business { text-align: center; }
.business-logo { width: 237px; height: 252px; object-fit: contain; margin: 0 auto 20px; }
.payment-methods { width: 300px; height: 63px; object-fit: contain; margin: 42px auto 0; }
.footer-bottom { min-height: 59px; padding: 14px 20px; display: flex; align-items: center; justify-content: center; background: var(--primary-dark); color: rgba(255,255,255,.8); font-size: 12px; text-align: center; }
.whatsapp-float { position: fixed; z-index: 25; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 5px 18px rgba(0,0,0,.18); }

.drawer-backdrop { position: fixed; z-index: 50; inset: 0; border: 0; background: rgba(26,18,31,.46); backdrop-filter: blur(2px); }
.side-drawer { position: fixed; z-index: 51; inset-block: 0; inset-inline-start: 0; width: min(390px, 92vw); background: #fff; box-shadow: 15px 0 40px rgba(0,0,0,.18); display: grid; grid-template-rows: auto 1fr auto; animation: drawerIn .22s ease; }
@keyframes drawerIn { from { transform: translateX(105%); } }
.drawer-head { min-height: 74px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 60px; height: 50px; object-fit: contain; }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.drawer-body { overflow-y: auto; padding: 18px; }
.drawer-menu { display: grid; }
.drawer-menu a { padding: 15px 5px; border-bottom: 1px solid var(--line); font-weight: 700; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); }
.search-dialog { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(680px, calc(100vw - 30px)); background: #fff; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.25); padding: 24px; }
.search-input-wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-input-wrap input { min-height: 50px; border: 1px solid #d9d3dc; border-radius: 4px; padding: 0 14px; }
.search-results { max-height: 380px; overflow-y: auto; display: grid; gap: 8px; margin-top: 15px; }
.search-result { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.search-result img { width: 60px; height: 60px; object-fit: cover; }
.lightbox { position: fixed; z-index: 60; inset: 0; background: rgba(15,10,18,.94); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox .close-button { position: absolute; top: 20px; inset-inline-end: 20px; color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }
.toast { position: fixed; z-index: 80; bottom: 22px; inset-inline-start: 22px; max-width: min(370px, calc(100vw - 44px)); padding: 13px 16px; border-radius: 6px; background: var(--primary-dark); color: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.2); animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1020px) {
  .header-main { grid-template-columns: 150px 1fr 300px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .login-button { padding-inline: 15px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-main { gap: 35px; }
  .eid-showcase { grid-template-columns: 230px minmax(0,1fr); gap: 15px; }
  .eid-products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
  .featured-product-image { width: 100%; height: auto; aspect-ratio: 1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, var(--container)); }
  .desktop-only { display: none !important; }
  .mobile-only { display: grid !important; }
  .announcement { min-height: 29px; font-size: 10px; }
  .store-header.is-sticky { top: 0; }
  .header-main { min-height: 76px; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .header-main > .header-logo { grid-column: 2; grid-row: 1; }
  .header-main > [data-menu-open] { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-main > .header-actions.mobile-only { grid-column: 3; grid-row: 1; justify-self: end; }
  .header-logo { justify-content: center; }
  .header-logo img { width: 62px; height: 64px; }
  .header-actions { gap: 6px; }
  .round-action { width: 36px; height: 36px; }
  .round-action .icon { width: 18px; height: 18px; }
  .category-strip-inner { justify-content: flex-start; overflow-x: auto; min-height: 62px; gap: 22px; scrollbar-width: none; }
  .category-strip-inner::-webkit-scrollbar { display: none; }
  .category-shortcut { font-size: 11px; }
  .category-shortcut img { width: 40px; height: 40px; }
  .breadcrumbs { padding: 17px 0; font-size: 12px; }
  .hero { margin: 12px 0 0; }
  .hero-stage { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-slide img { object-position: center; }
  .hero-copy { align-items: flex-end; padding: 25px 20px 42px; background: linear-gradient(transparent 45%,rgba(27,14,38,.55)); }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy p { font-size: 12px; line-height: 1.7; }
  .section { padding: 38px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 21px; }
  .home-content .section-head { min-height: 46px; margin-bottom: 14px; }
  .home-content .section-head h2 { font-size: 20px; }
  .home-content .section-link { font-size: 13px; }
  .home-offers, .home-latest { padding: 30px 0 42px; }
  .home-categories { padding: 20px 0 38px; }
  .home-rail, .home-categories .home-rail { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; padding-inline: 0; }
  .home-rail .product-card { min-height: 0; padding: 7px; border-radius: 7px; }
  .home-rail .product-title { min-height: 52px; font-size: 12px; line-height: 1.65; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .home-rail .price strong { font-size: 13px; }
  .home-rail .card-add { display: none; }
  .home-rail .wish-button { opacity: 1; transform: none; }
  .rail-arrow { display: none; }
  .eid-showcase { grid-template-columns: 1fr; gap: 12px; }
  .eid-promos { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 260px; gap: 10px; }
  .eid-promo { min-height: 260px; padding: 22px 12px; gap: 16px; }
  .eid-promo span, .eid-promo-short span { font-size: 18px; line-height: 1.55; }
  .eid-promo b { min-width: 104px; min-height: 36px; padding: 6px 14px; font-size: 13px; }
  .eid-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .featured-product-card { min-height: 0; padding: 7px; }
  .featured-product-image { width: 100%; height: auto; aspect-ratio: 1; }
  .featured-product-title { min-height: 53px; font-size: 12px; line-height: 1.7; }
  .featured-stars { height: 18px; font-size: 13px; line-height: 18px; }
  .featured-product-card .price { min-height: 28px; margin: 4px 0; }
  .featured-product-card .price strong { font-size: 14px; }
  .featured-product-card .price del { font-size: 12px; }
  .featured-buy { min-width: 96px; min-height: 33px; font-size: 12px; }
  .product-grid, .product-grid.shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 10px; }
  .product-media { border-radius: 7px 7px 0 0; }
  .sale-badge { top: 8px; min-width: 48px; min-height: 24px; font-size: 9px; }
  .wish-button { opacity: 1; transform: none; width: 29px; height: 29px; top: 7px; inset-inline-end: 7px; }
  .product-info { padding: 8px 2px 0; }
  .product-meta { font-size: 10px; }
  .product-title { min-height: 58px; font-size: 12px; line-height: 1.75; }
  .price { gap: 5px; }
  .price strong { font-size: 12px; }
  .price del { font-size: 10px; }
  .card-add { display: none; }
  .mini-swatch { width: 10px; height: 10px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .category-card { min-height: 220px; }
  .category-card span { bottom: 14px; inset-inline: 12px; font-size: 14px; }
  .promo-band { padding: 0; }
  .promo-band img { min-height: 230px; object-fit: cover; }
  .shop-head { margin-bottom: 12px; }
  .shop-head h1 { font-size: 21px; }
  .shop-layout { display: block; padding-bottom: 50px; }
  .shop-toolbar { margin-bottom: 14px; }
  .sort-tools label { display: none; }
  .store-select { max-width: 165px; font-size: 11px; }
  .mobile-filter-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--primary); border-radius: 4px; background: #fff; color: var(--primary); display: flex !important; align-items: center; gap: 6px; }
  .filter-sidebar { display: none; }
  .filter-sidebar.mobile-open { display: block; position: fixed; z-index: 55; inset-block: 0; inset-inline-start: 0; width: min(330px,88vw); overflow-y: auto; background: #fff; padding: 20px; box-shadow: 12px 0 42px rgba(0,0,0,.22); }
  .mobile-filter-close { display: flex !important; margin-bottom: 20px; justify-content: flex-end; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-main { grid-row: 1; }
  .gallery-thumbs { grid-row: 2; display: flex; max-height: none; overflow-x: auto; }
  .gallery-thumb { flex: 0 0 68px; width: 68px; }
  .product-summary { padding-top: 0; }
  .product-summary h1 { font-size: 23px; }
  .purchase-row { grid-template-columns: 96px 1fr; }
  .detail-description { margin-top: 38px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px minmax(0,1fr); gap: 12px; }
  .cart-item img { width: 84px; height: 84px; }
  .cart-item-actions { grid-column: 1 / -1; justify-content: space-between; }
  .cart-summary { position: static; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form label.full { grid-column: auto; }
  .footer-main { min-height: 0; padding: 45px 0; grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-brand p { margin-inline: auto; }
  .socials { justify-content: center; }
  .footer-column { text-align: center; }
  .footer-contact-row { justify-content: center; }
  .business-logo { width: 180px; height: 190px; }
  .payment-methods { width: 260px; height: auto; margin-top: 28px; }
  .whatsapp-float { width: 43px; height: 43px; right: 15px; bottom: 15px; }
}
