/* =========================================================
   MiniCart Store — Clean Consolidated Stylesheet
   ========================================================= */

/* ---------- Theme ---------- */

:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --ink: #132331;
  --muted: #637586;

  --primary: #118fc4;
  --primary-2: #0875a6;
  --primary-dark: #073f5b;

  --accent: #e7252d;
  --accent-dark: #bd151d;

  --line: #dce8ef;
  --green: #20a464;

  --soft-blue: #eaf7fc;
  --soft-red: #fff0f1;

  --shadow-sm: 0 10px 30px rgba(7, 63, 91, 0.07);
  --shadow-md: 0 16px 42px rgba(7, 63, 91, 0.11);
  --shadow-lg: 0 24px 70px rgba(7, 63, 91, 0.16);
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Cairo, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    linear-gradient(
      180deg,
      #f8fbfd 0%,
      #f3f8fb 45%,
      #eef5f8 100%
    );
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Header and Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 255, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(
      125deg,
      #063b56 0%,
      #087dab 52%,
      #15a4d6 100%
    );
}

.hero::before {
  position: absolute;
  right: -80px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  content: "";
  border: 78px solid rgba(231, 37, 45, 0.85);
  border-radius: 50%;
}

.hero::after {
  position: absolute;
  top: -210px;
  right: 120px;
  width: 330px;
  height: 330px;
  content: "";
  border: 54px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.topbar {
  position: relative;
  z-index: 2;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.brand-copy b {
  display: block;
  font-size: 20px;
  letter-spacing: 0.17em;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.pill-btn,
.cart-btn,
.primary-btn,
.whatsapp-btn {
  border: 0;
  transition: 0.2s ease;
}

.pill-btn {
  padding: 11px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px 10px 18px;
  color: var(--primary-dark);
  font-weight: 800;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cart-count {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  background: var(--accent);
  border-radius: 9px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 88px 0 112px;
  margin-inline:
    calc((100% - min(1180px, calc(100% - 28px))) / 2);
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-content > p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.72;
}

.primary-btn {
  display: inline-flex;
  margin-top: 20px;
  padding: 15px 24px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(179, 16, 23, 0.28);
}

.primary-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* =========================================================
   Category Navigation
   ========================================================= */

.category-strip-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 251, 253, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.category-strip {
  display: flex;
  gap: 10px;
  padding-block: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(7, 63, 91, 0.04);
}

.category-chip.active {
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-2)
    );
  border-color: transparent;
  box-shadow: 0 9px 20px rgba(17, 143, 196, 0.22);
}

.category-chip-media {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 18px;
  background: var(--soft-blue);
  border-radius: 9px;
}

.category-chip.active .category-chip-media {
  background: rgba(255, 255, 255, 0.2);
}

.category-chip-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-chip-all-icon {
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
}

.category-chip.active .category-chip-all-icon {
  color: #ffffff;
}

/* =========================================================
   Catalog Header
   ========================================================= */

.catalog-shell {
  padding: 68px 0 125px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 40px;
}

.section-heading .eyebrow,
.catalog-section .eyebrow {
  color: var(--accent);
}

.section-heading h2,
.catalog-section h3,
.drawer-header h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: 40px;
}

.search-box {
  width: min(350px, 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.search-box input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.catalog-section {
  margin-bottom: 62px;
  scroll-margin-top: 92px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.section-title::after {
  height: 2px;
  flex: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      var(--primary),
      transparent
    );
}

.catalog-section h3 {
  font-size: 28px;
}

.section-category-media {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 31px;
  background:
    linear-gradient(
      145deg,
      #eff9fd,
      #e2f2f8
    );
  border: 1px solid var(--line);
  border-radius: 16px;
}

.section-category-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================================
   Product Grid and Cards
   ========================================================= */

.items-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.product-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(7, 63, 91, 0.09);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font-size: 58px;
  font-family: inherit;
  background:
    radial-gradient(
      circle at 50% 35%,
      #ffffff 0%,
      #f0f9fc 52%,
      #dff2f8 100%
    );
  border: 0;
  cursor: zoom-in;
}

.product-art::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 5px;
  content: "";
  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent)
    );
  border-radius: 999px;
}

.product-art:focus-visible {
  outline: 3px solid rgba(17, 143, 196, 0.35);
  outline-offset: -3px;
}

.product-art img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.product-art > span {
  line-height: 1;
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.product-content h4 {
  min-height: 46px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.product-meta {
  margin: 6px 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.product-meta-empty {
  visibility: hidden;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 900;
}

.add-btn {
  padding: 9px 13px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-2)
    );
  border: 0;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(17, 143, 196, 0.2);
}

.add-btn:hover {
  background:
    linear-gradient(
      135deg,
      var(--primary-2),
      var(--primary-dark)
    );
}

.add-btn:disabled,
.qty-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

/* =========================================================
   Floating Mobile Cart
   ========================================================= */

.floating-cart {
  position: fixed;
  bottom: 17px;
  left: 50%;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      var(--primary-dark),
      var(--primary)
    );
  border: 0;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.floating-cart.show {
  display: flex;
}

.floating-cart b {
  color: #ffffff;
}

/* =========================================================
   Cart Drawer
   ========================================================= */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 43, 0.64);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(500px, 100%);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

[dir="rtl"] .drawer-panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.cart-drawer.open .drawer-backdrop {
  opacity: 1;
}

.cart-drawer.open .drawer-panel {
  transform: none;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      #f5fbfd,
      #fff4f4
    );
  border-bottom: 1px solid var(--line);
}

.drawer-header .eyebrow {
  color: var(--accent);
}

.drawer-header h2 {
  font-size: 28px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  color: var(--primary-dark);
  font-size: 24px;
  background: var(--soft-blue);
  border: 0;
  border-radius: 11px;
}

.cart-items {
  flex: 1;
  padding: 14px 24px;
  overflow-y: auto;
}

.empty-state {
  padding: 70px 20px;
  color: var(--muted);
  text-align: center;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.cart-row small {
  color: var(--muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.qty-controls button {
  width: 29px;
  height: 29px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.remove-btn {
  width: auto !important;
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: 0 !important;
}

.customer-fields {
  display: grid;
  gap: 12px;
  padding: 0 24px 16px;
}

.field-group {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field-group span b {
  color: var(--accent);
}

.customer-fields input,
.customer-fields textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.customer-fields input:focus,
.customer-fields textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 143, 196, 0.13);
}

.customer-fields .invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231, 37, 45, 0.11);
}

.drawer-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 18px;
}

.whatsapp-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 14px;
  color: #ffffff;
  font-weight: 900;
  background: var(--green);
  border-radius: 12px;
}

.drawer-footer small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   Product Image Viewer
   ========================================================= */

.image-viewer {
  position: fixed !important;
  top: var(--viewer-top, 0px) !important;
  left: var(--viewer-left, 0px) !important;
  z-index: 9999;
  width: var(--viewer-width, 100vw) !important;
  height: var(--viewer-height, 100dvh) !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left)) !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.image-viewer[hidden] {
  display: none !important;
}

.image-viewer-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(3, 20, 34, 0.91);
  border: 0;
  backdrop-filter: blur(4px);
}

.image-viewer-stage,
.image-viewer-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(94%, 1000px) !important;
  height: min(88%, 820px) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.image-viewer-media {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

.image-viewer-media img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.image-viewer-fallback {
  width: min(70vw, 520px);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: clamp(120px, 28vw, 260px);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.image-viewer-close {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 10001;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: none;
}

[dir="rtl"] .image-viewer-close {
  right: auto;
  left: max(10px, env(safe-area-inset-left));
}

.image-viewer-title {
  display: none !important;
}

/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 80;
  padding: 12px 17px;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   RTL
   ========================================================= */

[dir="rtl"] body {
  font-family: Cairo, Inter, sans-serif;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 490px;
  }

  .topbar {
    height: 106px;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
  }

  .brand-copy b {
    font-size: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-content {
    padding: 70px 0 88px;
    margin-inline: auto;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .search-box {
    width: 100%;
  }

  .catalog-shell {
    padding-top: 44px;
  }

  .catalog-section h3 {
    font-size: 23px;
  }

  .items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .product-art {
    font-size: 44px;
  }

  .product-art img {
    padding: 6px;
  }

  .product-content {
    padding: 12px;
  }

  .product-content h4 {
    min-height: 38px;
    font-size: 13px;
  }

  .product-meta {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .price {
    font-size: 15px;
  }

  .add-btn {
    width: 100%;
  }

  .pill-btn {
    padding: 9px 12px;
  }

  .cart-btn {
    padding: 8px 10px;
  }

  .floating-cart.show {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }

  .floating-cart {
    bottom: 12px;
    width: calc(100% - 24px);
    min-height: 64px;
    gap: 12px;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 18px;
  }

  .floating-cart > span:first-child {
    font-size: 24px;
  }

  .floating-cart b {
    font-size: 16px;
    text-align: end;
  }

  .image-viewer-stage,
  .image-viewer-card {
    width: 96% !important;
    height: 84% !important;
  }

  .image-viewer-close {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 18px), 1180px);
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .brand-copy {
    display: none;
  }

  .items-grid {
    gap: 8px;
  }

  .product-content {
    padding: 9px;
  }

  .product-art {
    font-size: 39px;
  }

  .cart-btn > span:first-child {
    display: none;
  }
}


/* =========================================================
   MiniCart V4 — Offers
   ========================================================= */

.category-chip-offers {
  color: #9f171d;
  border-color: rgba(231, 37, 45, 0.2);
  background: linear-gradient(135deg, #fff8f8, #fff0f1);
}

.category-chip-offers.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(231, 37, 45, 0.25);
}

.offer-chip-icon,
.offer-section-icon {
  background: #fff0f1;
}

.product-art {
  position: relative;
}

.product-offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(189, 21, 29, 0.28);
  pointer-events: none;
}

[dir="rtl"] .product-offer-badge {
  right: auto;
  left: 10px;
}

.product-card-offer {
  box-shadow: 0 14px 38px rgba(231, 37, 45, 0.12);
}

.product-card-offer:hover {
  box-shadow: 0 20px 50px rgba(231, 37, 45, 0.18);
}

.offer-section-title::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.catalog-empty-state {
  padding: 70px 24px;
  color: var(--muted);
  font-size: 54px;
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.catalog-empty-state p {
  margin: 14px 0 0;
  font-size: 16px;
}

@media (max-width: 700px) {
  .product-offer-badge {
    top: 7px;
    right: 7px;
    padding: 6px 8px;
    font-size: 9px;
  }

  [dir="rtl"] .product-offer-badge {
    right: auto;
    left: 7px;
  }
}


/* =========================================================
   MiniCart V5 — percentage offers
   ========================================================= */
.product-offer-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 6;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.22));
  pointer-events: none;
}
.product-offer-badge img { width: 100%; height: 100%; object-fit: contain; padding: 0; background: transparent; }
.product-offer-badge b { position: absolute; color: #111; font-size: 14px; font-weight: 950; transform: translateY(1px); }
[dir="rtl"] .product-offer-badge { right: auto; left: -4px; }
.offer-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.old-price { color: #8a98a5; font-size: 13px; text-decoration: line-through 2px var(--accent); }
.new-price { color: var(--accent-dark); font-size: 19px; font-weight: 950; }
.offer-saving { padding: 3px 7px; color: #7c5600; font-size: 10px; font-weight: 900; background: #ffefb8; border-radius: 999px; }
@media (max-width:700px) {
  .product-offer-badge { width: 62px; height: 62px; top: -2px; right: -2px; }
  [dir="rtl"] .product-offer-badge { right:auto; left:-2px; }
  .product-offer-badge b { font-size: 11px; }
  .new-price { font-size: 16px; }
}

.offer-chip-icon img,.offer-section-icon img{width:100%;height:100%;object-fit:contain;}


/* MiniCart V5.1 — clean offer logo without percentage overlay */
.product-offer-badge b { display: none !important; }


/* =========================================================
   MiniCart V6 — inline cart quantity controls
   ========================================================= */
.card-qty-control {
  min-width: 112px;
  display: grid;
  grid-template-columns: 36px minmax(28px, auto) 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  background: var(--soft-blue);
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(17, 143, 196, 0.12);
}
.card-qty-control button {
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(7, 63, 91, 0.08);
}
.card-qty-control button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.card-qty-control strong {
  min-width: 28px;
  color: var(--primary-dark);
  font-size: 15px;
  text-align: center;
}
@media (max-width: 700px) {
  .card-qty-control {
    width: 100%;
    grid-template-columns: 40px 1fr 40px;
  }
  .card-qty-control button {
    width: 40px;
    height: 40px;
  }
}


/* MiniCart performance and pagination */
img { content-visibility: auto; }
.product-card, .offer-admin-card { contain: layout paint style; }
.catalog-pagination, .admin-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin:28px 0 8px; }
.catalog-pagination button, .admin-pagination button { border:0; border-radius:12px; padding:10px 16px; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--primary,#118fc4),var(--primary-2,#0875a6)); }
.catalog-pagination button:disabled, .admin-pagination button:disabled { opacity:.45; cursor:not-allowed; }
.catalog-pagination span, .admin-pagination span { color:var(--muted,#637586); font-weight:700; }
