:root {
  --shop-ink: #0f172a;
  --shop-ink-soft: #334155;
  --shop-muted: #64748b;
  --shop-bg: #eef2f7;
  --shop-surface: rgba(255, 255, 255, 0.86);
  --shop-surface-solid: #ffffff;
  --shop-accent: #1d4ed8;
  --shop-accent-2: #2563eb;
  --shop-hot: #e11d48;
  --shop-gold: #b45309;
  --shop-line: rgba(15, 23, 42, 0.08);
  --shop-radius: 22px;
  --shop-radius-sm: 14px;
  --shop-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shop-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.14);
  --shop-font: "Tajawal", "Cairo", sans-serif;
  --shop-display: "Cairo", "Tajawal", sans-serif;
}

* { box-sizing: border-box; }

body.shop-body {
  margin: 0;
  font-family: var(--shop-font);
  color: var(--shop-ink);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(225, 29, 72, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--shop-bg) 45%, #e8eef8 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.shop-container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ========== Header ========== */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--shop-line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.shop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--shop-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.shop-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.18);
  background: #fff;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-nav > a,
.shop-nav .dropdown > a {
  color: var(--shop-ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.shop-nav > a:hover,
.shop-nav > a.active,
.shop-nav .dropdown > a:hover {
  color: var(--shop-accent);
  background: rgba(37, 99, 235, 0.08);
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--shop-line);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.shop-search:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.shop-search i { color: var(--shop-muted); }
.shop-search input {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 170px;
  font-family: inherit;
  font-size: 0.92rem;
}

.shop-icon-btn,
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.shop-icon-btn {
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--shop-line);
  position: relative;
  color: var(--shop-ink);
}

.shop-icon-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--shop-accent);
  transform: translateY(-1px);
}

.shop-btn {
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

.shop-btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.shop-btn-primary {
  background: linear-gradient(135deg, var(--shop-accent) 0%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28);
}

.shop-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.35);
  color: #fff;
}

.shop-btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--shop-ink);
  border: 1px solid var(--shop-line);
}

.shop-btn-outline:hover {
  border-color: rgba(29, 78, 216, 0.4);
  color: var(--shop-accent);
  background: #fff;
}

.shop-btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.shop-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.shop-btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
}

.shop-btn-whatsapp:hover {
  transform: translateY(-2px);
  color: #fff;
}

.shop-btn-sm,
.shop-btn.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.shop-cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  background: linear-gradient(135deg, var(--shop-hot), #be123c);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.35);
}

.shop-menu-toggle { display: none; }

.dropdown-menu {
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  box-shadow: var(--shop-shadow);
  padding: 0.5rem;
  overflow: hidden;
}

.dropdown-item {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--shop-accent);
}

/* ========== Hero ========== */
.shop-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
}

.shop-hero-glow {
  position: absolute;
  inset: auto -10% 10% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  animation: shopPulse 4s ease-in-out infinite;
}

.shop-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: shopHeroZoom 14s ease-in-out infinite alternate;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 15, 35, 0.82) 0%, rgba(8, 15, 35, 0.55) 48%, rgba(8, 15, 35, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 15, 35, 0.2) 0%, rgba(8, 15, 35, 0.75) 100%);
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2rem 0 1.75rem;
  max-width: 640px;
  animation: shopFadeUp .8s ease both;
}

.shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(8px);
}

.shop-hero-brand {
  font-family: var(--shop-display);
  font-size: clamp(1.85rem, 4.2vw, 2.8rem);
  font-weight: 900;
  margin: 0 0 0.4rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.shop-hero-title {
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.95);
}

.shop-hero-text {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 32rem;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== Sections ========== */
.shop-section {
  padding: 3.75rem 0;
  position: relative;
}

.shop-section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
}

.shop-section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

.shop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.9rem;
}

.shop-section-head-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 2.25rem;
}

.shop-section-head-center > div {
  max-width: 640px;
}

.shop-link-more {
  color: var(--shop-accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap .2s ease;
}

.shop-link-more:hover { gap: 0.55rem; }

.shop-trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.25rem;
  margin-bottom: 0.5rem;
}

.shop-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--shop-line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shop-shadow-lg);
  backdrop-filter: blur(12px);
}

.shop-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  transition: background .2s ease;
}

.shop-trust-item:hover {
  background: rgba(37, 99, 235, 0.06);
}

.shop-trust-item i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(29, 78, 216, 0.08));
  color: var(--shop-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.shop-trust-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.shop-trust-item span {
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.shop-grid-features-4 { grid-template-columns: repeat(4, 1fr); }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-section-kicker {
  display: inline-block;
  color: var(--shop-accent);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.shop-section-head h2 {
  margin: 0;
  font-family: var(--shop-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.shop-section-head p {
  margin: 0.4rem 0 0;
  color: var(--shop-muted);
}

.shop-grid {
  display: grid;
  gap: 1.35rem;
}

.shop-grid-cats { grid-template-columns: repeat(4, 1fr); }
.shop-grid-products { grid-template-columns: repeat(4, 1fr); }
.shop-grid-features { grid-template-columns: repeat(5, 1fr); }

/* ========== Category cards ========== */
.shop-cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--shop-radius);
  min-height: 220px;
  box-shadow: var(--shop-shadow);
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}

.shop-cat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shop-shadow-lg);
}

.shop-cat-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .55s ease;
}

.shop-cat-card:hover img { transform: scale(1.08); }

.shop-cat-card .body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 35, 0.85));
  z-index: 2;
}

.shop-cat-card .body strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.shop-cat-card .body .count {
  opacity: 0.82;
  font-size: 0.85rem;
}

/* ========== Product cards ========== */
.shop-product-card {
  background: var(--shop-surface-solid);
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shop-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: shopFadeUp .55s ease both;
}

.shop-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shop-shadow-lg);
}

.shop-product-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.shop-product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .5s ease, opacity .25s ease;
}

.shop-product-card:hover img { transform: scale(1.07); }

.shop-product-img.has-hover-image {
  transition: transform .35s ease, opacity .2s ease;
}

.shop-product-img.is-hovering {
  opacity: 1;
}

.shop-product-media .badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.shop-product-card .body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.shop-product-card .title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--shop-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.shop-product-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  align-items: stretch;
}

.shop-product-actions form.flex-fill,
.shop-product-actions .flex-fill {
  flex: 1;
}

.shop-product-actions .shop-btn-primary { width: 100%; }

.shop-product-quick {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 2;
  text-align: center;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(6px);
}

.shop-product-card:hover .shop-product-quick {
  opacity: 1;
  transform: translateY(0);
}

.shop-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shop-price .current {
  background: linear-gradient(135deg, var(--shop-accent), #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  font-size: 1.2rem;
}

.shop-price .old {
  color: var(--shop-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 600;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-badge-sale {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: var(--shop-hot);
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.shop-badge-stock {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.12);
}

.shop-badge-out {
  background: #fef2f2;
  color: #b91c1c;
}

/* ========== Features ========== */
.shop-feature {
  padding: 1.5rem 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease;
}

.shop-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.25);
}

.shop-feature .icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(225, 29, 72, 0.08));
  color: var(--shop-accent);
  font-size: 1.45rem;
}

.shop-feature h5 {
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.shop-feature p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== Panels / forms ========== */
.shop-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow);
  padding: 1.6rem;
  backdrop-filter: blur(10px);
}

.shop-contact-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.94), rgba(29, 78, 216, 0.88)),
    radial-gradient(circle at left top, rgba(225, 29, 72, 0.25), transparent 45%);
  color: #fff;
  box-shadow: var(--shop-shadow-lg);
  overflow: hidden;
  position: relative;
}

.shop-contact-banner h2 {
  font-family: var(--shop-display);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.shop-contact-banner p {
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.shop-form-control,
.shop-panel .form-control,
.shop-panel .form-select {
  border-radius: 12px;
  border-color: var(--shop-line);
  padding: 0.7rem 0.9rem;
}

.shop-form-control:focus,
.shop-panel .form-control:focus,
.shop-panel .form-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ========== Misc ========== */
.shop-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  z-index: 2000;
  box-shadow: var(--shop-shadow-lg);
  display: none;
  font-weight: 700;
}

.shop-toast.show { display: block; animation: shopFadeUp .35s ease; }

.shop-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e, #15803d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  z-index: 1500;
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.4);
  animation: shopPulse 2.4s ease-in-out infinite;
}

.shop-footer {
  margin-top: 3.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.25), transparent 40%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
  color: #cbd5e1;
  padding: 3.5rem 0 1.75rem;
}

.shop-footer a { color: #e2e8f0; transition: color .2s ease; }
.shop-footer a:hover { color: #93c5fd; }
.shop-footer h3,
.shop-footer h4 {
  color: #fff;
  font-family: var(--shop-display);
  font-weight: 900;
}

.shop-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.shop-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.15rem;
}

.shop-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--shop-line);
  padding: 0.75rem 1rem;
  z-index: 1400;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
}

.shop-filters {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.35rem;
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-table th,
.shop-table td {
  padding: 0.95rem;
  border-bottom: 1px solid var(--shop-line);
  vertical-align: middle;
}

.shop-alert {
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.shop-alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.shop-alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.shop-alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.shop-alert-warning { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

@keyframes shopFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopHeroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@keyframes shopPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (max-width: 992px) {
  .shop-grid-cats,
  .shop-grid-products { grid-template-columns: repeat(2, 1fr); }
  .shop-grid-features,
  .shop-grid-features-4,
  .shop-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-filters { grid-template-columns: 1fr; }
  .shop-footer-grid { grid-template-columns: 1fr; }
  .shop-contact-banner { grid-template-columns: 1fr; }
  .shop-nav, .shop-search { display: none; }
  .shop-menu-toggle { display: inline-flex; }
  .shop-trust-strip { margin-top: -1.25rem; }
  .shop-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 78px;
    inset-inline: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--shop-line);
    box-shadow: var(--shop-shadow);
  }
  .shop-search.open {
    display: flex;
    width: calc(100% - 2rem);
    margin: 0.75rem auto 0;
  }
}

@media (max-width: 576px) {
  .shop-grid-cats,
  .shop-grid-products,
  .shop-grid-features,
  .shop-grid-features-4,
  .shop-trust-grid { grid-template-columns: 1fr; }
  .shop-mobile-bar { display: flex; }
  body.shop-body { padding-bottom: 76px; }
  .shop-hero { min-height: 260px; }
  .shop-product-quick { display: none; }
}

/* Product gallery thumbs */
.shop-gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.shop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-gallery-thumb.is-active,
.shop-gallery-thumb:hover {
  border-color: var(--shop-accent);
}

.shop-main-image-wrap {
  position: relative;
  cursor: default;
}

.shop-main-image {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
  display: block;
}

.shop-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  z-index: 3;
}

.shop-gallery-prev { right: 12px; }
.shop-gallery-next { left: 12px; }

.shop-gallery-nav:hover {
  background: #111;
  color: #fff;
}

.shop-gallery-counter {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  z-index: 3;
}

.shop-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shop-variant-btn {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  color: #111;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  min-width: 2.6rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shop-variant-btn:hover {
  border-color: #111;
}

.shop-variant-btn.is-selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

.shop-variant-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shop-qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.shop-qty-btn {
  width: 40px;
  border: 0;
  background: #f7f7f7;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: #111;
}

.shop-qty-btn:hover {
  background: #eee;
}

.shop-qty-input {
  width: 56px;
  border: 0;
  border-left: 1px solid #cfcfcf;
  border-right: 1px solid #cfcfcf;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.shop-qty-input::-webkit-outer-spin-button,
.shop-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-product-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.shop-product-meta {
  color: var(--shop-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-product-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--shop-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-display-name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.shop-product-display-title {
  display: block;
  line-height: 1.4;
}

.shop-product-display-color {
  display: block;
  color: var(--shop-muted);
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.35;
}

.shop-product-page-title .shop-product-display-color {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.shop-product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shop-product-price-current {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--shop-ink);
}

.shop-product-price-old {
  color: var(--shop-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: 600;
}
