:root {
  --bg: #efeadf;
  --bg-soft: #f7f2e8;
  --card: #fbf7ee;
  --ink: #11100d;
  --muted: #746b5e;
  --line: rgba(17, 16, 13, 0.12);
  --accent: #1a1712;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Kufi Arabic", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fbf8ef 0, var(--bg) 48%, #e7dfcf 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px clamp(18px, 4vw, 64px);
  background: rgba(239, 234, 223, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 54px; height: 54px; object-fit: contain; }
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
nav a:hover { color: var(--ink); }
#cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-soft);
  font-size: 0.75rem;
}

main { padding: 0 clamp(18px, 4vw, 64px) 64px; }
.hero {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 80px 20px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: #9b7a55;
  margin: 0 0 1rem;
  font-size: 2.1rem;
}

.hero h1 {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.5rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 620px;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.intro { border-block: 1px solid var(--line); padding: 28px 0; text-align: center; display: grid; place-items: center; }

.products-section { padding-top: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .checkout-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); font-family: "Noto Naskh Arabic", serif; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 230px));
  justify-content: center;
  gap: 16px;}

.product-card {
  max-width: 230px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, .72);
  box-shadow: 0 18px 44px rgba(32, 24, 15, .06);
}
.product-image-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-image-zoom {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  color: inherit;
}
.product-image-zoom:focus-visible {
  outline: 3px solid rgba(61, 48, 35, 0.45);
  outline-offset: -3px;
}
.product-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
body.lightbox-open { overflow: hidden; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 16, 13, 0.82);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.image-lightbox img {
  max-width: min(92vw, 980px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.image-lightbox-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(247, 242, 232, 0.35);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.12);
  color: #f7f2e8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox-close:hover { background: rgba(247, 242, 232, 0.22); }
.product-card:hover 
.product-image-wrap img { transform: scale(1.04); }
.product-image-wrap span {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(17,16,13,.75);
  color: var(--bg-soft);
  padding: 8px 12px;
  font-size: .8rem;
}
.product-info { padding: 14px; }
.latin { margin: 0 0 6px; color: var(--muted); font-family: Georgia, serif; letter-spacing: .08em; direction: ltr; text-align: right; }
.product-info h3 { font-size: 1rem; }
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.add-to-cart {
  background: #3d3023;
  color: #f7f2e8;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.add-to-cart:hover {
  background: #2f2419;
  transform: translateY(-2px);
}

.checkout-page { max-width: 1180px; margin-inline: auto; }
.checkout-hero { padding: 56px 0 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cart-panel, .order-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, .76);
  padding: 24px;
}
.cart-items { display: grid; gap: 12px; margin: 20px 0; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; }
.qty-controls { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qty-controls button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; margin: 16px 0; }
.order-form { display: grid; gap: 14px; }
.order-form label { display: grid; gap: 8px; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
  padding: 13px 14px;
  color: var(--ink);
}
textarea { min-height: 100px; resize: vertical; }
.small-note { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.empty-cart { color: var(--muted); line-height: 2; }
footer { text-align: center; padding: 40px 20px; color: var(--muted); border-top: 1px solid var(--line); }
footer img { width: 56px; margin: 0 auto 10px; }

@media (max-width: 980px) {
  .hero, .checkout-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-logo-card { min-height: 300px; }
}
@media (max-width: 560px) {
  nav { gap: 10px; font-size: .82rem; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 62px 1fr; }
  .cart-row > strong { grid-column: 2; }
}
.center-title {
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
/* Main action buttons */
.primary,
.ghost-button,
.add-to-cart {
  background: #3d3023;
  color: #f7f2e8;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.primary:hover,
.ghost-button:hover,
.add-to-cart:hover {
  background: #2f2419;
  transform: translateY(-2px);
}

/* Quantity +/- buttons stay ghost style */
.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-controls button:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(17,16,13,0.25);
}
/* Dynamic category/product browser */
.section-heading-center {
  display: grid;
  place-items: center;
  text-align: center;
  justify-content: center;
}

.store-hint {
  margin: -0.7rem 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.store-status {
  min-height: 2rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

.hidden { display: none !important; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 260px));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, .72);
  box-shadow: 0 18px 44px rgba(32, 24, 15, .06);
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(32, 24, 15, .09);
}

.category-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
}

.category-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.category-card:hover .category-image-wrap img { transform: scale(1.04); }

.category-image-wrap span {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(17,16,13,.75);
  color: var(--bg-soft);
  padding: 7px 11px;
  font-size: .75rem;
}

.category-info { padding: 16px; }
.category-info h3 { font-size: 1.05rem; margin: 0; }

.store-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.back-to-categories {
  border: 1px solid #3d3023;
  border-radius: 999px;
  background: transparent;
  color: #3d3023;
  padding: 12px 20px;
  cursor: pointer;
  transition: all .25s ease;
}

.back-to-categories:hover {
  background: #3d3023;
  color: #f7f2e8;
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .category-info { padding: 12px; }
  .category-info h3 { font-size: .92rem; }
  .category-info .latin { font-size: .68rem; }
  .category-image-wrap span { font-size: .65rem; padding: 6px 9px; }
}
.ribbon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: #3d3023;
  color: #f7f2e8;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(61, 48, 35, 0.22);
  z-index: 2;
}

.details-link{
margin-top:8px;
font-size:.85rem;
color:#9b7a55;
font-weight:600;
}

.product-card{
cursor:pointer;
transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
transform:translateY(-4px);
}

.product-modal-card{
background:var(--card);
max-width:700px;
width:min(92vw,700px);
border-radius:28px;
overflow:auto;
max-height:90vh;
cursor:default;
}
.product-modal-card img{
width:100%;
max-height:420px;
object-fit:cover;
}
.product-modal-content{
padding:24px;
}


/* Product details modal fixes */
#product-modal.image-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

#product-modal.hidden {
  display: none;
}

.product-modal-card {
  position: relative;
  margin: auto;
  background: var(--card);
  width: min(92vw, 680px);
  max-height: 90vh;
  border-radius: 28px;
  overflow: auto;
  cursor: default;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.product-modal-card .image-lightbox-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #3d3023;
  color: #f7f2e8;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(61, 48, 35, 0.25);
}

.product-modal-card .image-lightbox-close:hover {
  background: #2f2419;
}

.product-modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 242, 232, 0.72);
  padding: 22px;
}

.product-modal-card .product-modal-image-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 430px;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: none;
}

.product-modal-content {
  padding: 22px 24px 24px;
}

.product-modal-content h2 {
  margin: 0 0 8px;
}

.product-modal-description {
  color: var(--muted);
  line-height: 1.8;
  margin: 14px 0 18px;
}

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

.product-modal-bottom .add-to-cart {
  min-width: 132px;
}

@media (max-width: 640px) {
  #product-modal.image-lightbox {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .product-modal-card {
    width: calc(100vw - 24px);
    max-height: 88vh;
    border-radius: 24px;
    margin: 0 auto;
  }

  .product-modal-image-wrap {
    padding: 18px 16px 12px;
  }

  .product-modal-card .product-modal-image-wrap img {
    max-height: 320px;
  }

  .product-modal-content {
    padding: 18px;
  }

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

  .product-modal-bottom .add-to-cart {
    width: 100%;
  }
}


/* Final mobile/store layout refinements */
.hero {
  min-height: 60vh;
  padding-top: 54px;
  padding-bottom: 34px;
}

.products-section {
  padding-top: 36px;
}

.section-heading {
  margin-bottom: 14px;
}

.center-title {
  margin-bottom: 0.75rem;
}

.store-hint {
  margin-top: -0.35rem;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(150px, 260px));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto;
}

.product-card {
  max-width: none;
  width: 100%;
  height: 100%;
}

.product-info .latin {
  display: none;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  margin: 0;
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
}

.store-actions {
  justify-content: flex-start;
  max-width: 620px;
  margin: 0 auto 14px;
}

/* Breadcrumb-style category back button */
.back-to-categories {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #3d3023;
  padding: 0;
  font-weight: 700;
  box-shadow: none;
}

.back-to-categories::before {
  content: "← ";
}

.back-to-categories:hover {
  background: transparent;
  color: #2f2419;
  transform: none;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .hero {
    min-height: 50vh;
    padding-top: 34px;
    padding-bottom: 22px;
  }

  .hero-logo {
    width: 112px;
    margin-bottom: 1rem;
  }

  .eyebrow {
    font-size: 1.65rem;
    margin-bottom: 0.65rem;
  }

  .hero-subtitle {
    margin-top: 1rem;
  }

  .products-section {
    padding-top: 24px;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .store-status {
    margin-bottom: 0.8rem;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: .92rem;
  }

  .product-description {
    font-size: .76rem;
    line-height: 1.45;
    min-height: 2.9em;
  }

  .details-link {
    font-size: .76rem;
    margin-top: 6px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .product-bottom strong {
    font-size: .86rem;
  }

  .product-bottom .add-to-cart {
    width: 100%;
    padding: 9px 8px;
    font-size: .78rem;
  }

  .store-actions {
    max-width: 100%;
    margin: 0 0 12px;
    justify-content: flex-start;
  }

  .back-to-categories {
    font-size: .9rem;
  }
}


.floating-social{
  position:fixed;
  left:18px;
  bottom:24px;
  z-index:1200;
}

.social-trigger{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#3d3023;
  color:#f7f2e8;
  border:1px solid rgba(247,242,232,.3);
  box-shadow:0 14px 32px rgba(61,48,35,.24);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.social-trigger:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(61,48,35,.3);
}

.social-trigger svg{
  width:31px;
  height:31px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.social-trigger.social-tilt{
  animation:socialTilt .42s ease;
}

@keyframes socialTilt{
  0%{transform:rotate(0deg) scale(1);}
  30%{transform:rotate(-12deg) scale(1.06);}
  60%{transform:rotate(7deg) scale(1.03);}
  100%{transform:rotate(0deg) scale(1);}
}

.social-menu{
  position:absolute;
  bottom:76px;
  left:5px;
  display:flex;
  flex-direction:column;
  gap:11px;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px) scale(.96);
  transition:opacity .25s ease, transform .25s ease;
}

.floating-social.open .social-menu{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.social-link{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#f7f2e8;
  color:#3d3023;
  border:1px solid rgba(61,48,35,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(61,48,35,.18);
  transition:transform .2s ease, background .2s ease, color .2s ease;
}

.social-link:hover{
  transform:translateY(-2px);
  background:#3d3023;
  color:#f7f2e8;
}

.social-link svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media (max-width:700px){
  .floating-social{
    left:18px;
    bottom:22px;
  }
  .social-trigger{
    width:60px;
    height:60px;
  }
}


/* Full-photo landing hero */
.landing-hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 96px);
  background: var(--bg);
  overflow: hidden;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: calc(100svh - 96px);
  object-fit: cover;
  object-position: center top;
}

/* Mobile bottom navigation panel */
.mobile-bottom-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1100;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-radius: 24px;
  background: rgba(251,247,238,.94);
  border: 1px solid rgba(61,48,35,.12);
  box-shadow: 0 18px 44px rgba(61,48,35,.16);
  backdrop-filter: blur(16px);
}

.mobile-bottom-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  color: #3d3023;
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
}

.mobile-bottom-link svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-cart-badge {
  position: absolute;
  top: -2px;
  transform: translateX(-16px);
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #3d3023;
  color: #f7f2e8;
  font-size: .72rem;
  line-height: 1;
}

@media (max-width: 700px) {
  body {
    padding-bottom: 104px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .site-header nav {
    display: none;
  }

  .mobile-bottom-panel {
    display: grid;
  }

  .landing-hero {
    min-height: calc(100svh - 72px);
  }

  .landing-hero-image {
    height: calc(100svh - 72px);
    object-position: center top;
  }

  .floating-social {
    left: 18px !important;
    bottom: 118px !important;
    top: auto !important;
  }
}

@media (min-width: 701px) {
  .floating-social {
    bottom: 24px !important;
    top: auto !important;
  }
}


/* Final hero/header fixes */
.site-header {
  position: relative;
  top: auto;
  z-index: 30;
  background: rgba(239, 234, 223, 0.82);
}

.desktop-nav {
  display: flex;
}

.mobile-top-panel {
  display: none;
}

.landing-hero {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: auto !important;
  height: auto !important;
  background: var(--bg);
  overflow: hidden;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 701px) {
  .landing-hero {
    width: min(100vw, 1200px);
    margin-inline: auto;
    background: var(--bg);
  }

  .landing-hero-image {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
  }
}

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 0 !important;
  }

  main {
    width: 100%;
    padding-inline: 0 !important;
  }

  .site-header {
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    border-bottom: 0;
    background: #3d3023;
    backdrop-filter: none;
  }

  .site-header .brand,
  .site-header .desktop-nav,
  .site-header > nav:not(.mobile-bottom-panel) {
    display: none !important;
  }

  .mobile-top-panel {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #4a3523 0%, #2f2118 100%);
    color: #f7f2e8;
  }

  .mobile-menu-button,
  .mobile-cart-top {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #f7f2e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
  }

  .mobile-menu-button {
    justify-self: end;
  }

  .mobile-cart-top {
    justify-self: start;
  }

  .mobile-menu-button svg,
  .mobile-cart-top svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-logo {
    justify-self: center;
    color: #f7f2e8;
    text-decoration: none;
    font-family: "Noto Naskh Arabic", serif;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
  }

  .mobile-top-badge {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: #f7f2e8;
    color: #3d3023;
    font-size: .72rem;
    font-weight: 700;
  }

  .landing-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .landing-hero-image {
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  .mobile-bottom-panel {
    display: none !important;
  }

  .floating-social {
    left: 18px !important;
    bottom: 22px !important;
    top: auto !important;
  }
}


/* V2 refinement: thinner panels, full hero, no scroll-jump */
:root {
  --jamal-brown: #3d3023;
  --jamal-brown-dark: #2f2118;
  --jamal-brown-soft: #4a3523;
}

/* Use normal viewport units, not svh/dvh, to avoid iOS/phone scroll snapping/jumping */
.landing-hero {
  width: 100vw !important;
  margin-inline: calc(50% - 50vw) !important;
  height: calc(100vh - 72px) !important;
  min-height: 680px !important;
  background: var(--bg) !important;
  overflow: hidden !important;
}

.landing-hero-image {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.site-header {
  background: linear-gradient(180deg, var(--jamal-brown-soft) 0%, var(--jamal-brown-dark) 100%) !important;
  border-bottom: 0 !important;
  padding: 10px clamp(18px, 4vw, 64px) !important;
}

.site-header .desktop-nav {
  color: #f7f2e8 !important;
}

.site-header .desktop-nav a {
  color: rgba(247,242,232,.86) !important;
}

.site-header .desktop-nav a:hover {
  color: #fff !important;
}

#cart-count {
  background: #f7f2e8 !important;
  color: var(--jamal-brown) !important;
}

@media (min-width: 701px) {
  .site-header {
    min-height: 56px !important;
  }

  .landing-hero {
    width: 100vw !important;
    height: 50vh;        /* adjust 75-85vh to taste */
    overflow: hidden;
  }

  .landing-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
  }

  .site-header {
    position: relative !important;
    top: auto !important;
    min-height: 54px !important;
    padding: 0 !important;
    background: linear-gradient(180deg, var(--jamal-brown-soft) 0%, var(--jamal-brown-dark) 100%) !important;
  }

  .mobile-top-panel {
    min-height: 54px !important;
    height: 54px !important;
    padding: 6px 13px !important;
    grid-template-columns: 48px 1fr 48px !important;
    background: transparent !important;
  }

  .mobile-menu-button,
  .mobile-cart-top {
    width: 38px !important;
    height: 38px !important;
    color: #f7f2e8 !important;
  }

  .mobile-menu-button svg,
  .mobile-cart-top svg {
    width: 27px !important;
    height: 27px !important;
  }

  .mobile-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 44px !important;
  }

  .mobile-logo img {
    display: block !important;
    height: 44px !important;
    width: auto !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }

  .mobile-top-badge {
    top: -1px !important;
    right: -2px !important;
    min-width: 19px !important;
    height: 19px !important;
    font-size: .68rem !important;
    background: #f7f2e8 !important;
    color: var(--jamal-brown) !important;
  }

  .landing-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    height: calc(100vh - 54px) !important;
    min-height: 760px !important;
    max-height: none !important;
  }

  .landing-hero-image {
    width: 100vw !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .floating-social {
    bottom: 22px !important;
  }
}


/* Final polish: header buttons, restored bottom panel, favicon/hero layout */
@media (min-width: 701px) {
  .site-header {
    min-height: 46px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: linear-gradient(180deg, #4a3523 0%, #2f2118 100%) !important;
  }

  .desktop-nav {
    gap: 30px !important;
    font-size: .92rem !important;
  }

  .landing-hero {
    width: 100vw !important;
    height: calc(100vh - 46px) !important;
    min-height: 680px !important;
    background-image: url("/brand/jamal-hero-desktop.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .landing-hero-image {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 104px !important;
  }

  .mobile-menu-button,
  .mobile-cart-top {
    border: 1px solid rgba(247,242,232,.28) !important;
    border-radius: 14px !important;
    background: rgba(247,242,232,.08) !important;
    box-shadow: inset 0 0 0 1px rgba(61,48,35,.12) !important;
  }

  .mobile-menu-button:active,
  .mobile-cart-top:active {
    transform: scale(.97);
    background: rgba(247,242,232,.16) !important;
  }

  .mobile-logo img {
    height: 50px !important;
    max-width: 220px !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
  }

  .mobile-bottom-panel {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 14px !important;
    z-index: 1100 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: 24px !important;
    background: rgba(251,247,238,.94) !important;
    border: 1px solid rgba(61,48,35,.12) !important;
    box-shadow: 0 18px 44px rgba(61,48,35,.16) !important;
    backdrop-filter: blur(16px) !important;
  }

  .mobile-bottom-link {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 58px !important;
    color: #3d3023 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: .86rem !important;
  }

  .mobile-bottom-link svg {
    width: 28px !important;
    height: 28px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .mobile-cart-badge {
    position: absolute !important;
    top: -2px !important;
    transform: translateX(-16px) !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: #3d3023 !important;
    color: #f7f2e8 !important;
    font-size: .72rem !important;
    line-height: 1 !important;
  }

  .floating-social {
    bottom: 118px !important;
  }
}


/* ===== CLEAN FINAL HEADER / HERO / MOBILE NAV OVERRIDES ===== */
:root {
  --jamal-brown: #3d3023;
  --jamal-brown-dark: #2f2118;
  --jamal-brown-soft: #4a3523;
  --jamal-cream: #f7f2e8;
}

.site-header {
  position: relative !important;
  top: auto !important;
  z-index: 30 !important;
  min-height: 42px !important;
  padding: 5px clamp(18px, 4vw, 64px) !important;
  background: linear-gradient(180deg, var(--jamal-brown-soft) 0%, var(--jamal-brown-dark) 100%) !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
}

.desktop-nav {
  display: flex !important;
  gap: 28px !important;
  font-size: .9rem !important;
  color: var(--jamal-cream) !important;
}

.desktop-nav a {
  color: rgba(247,242,232,.88) !important;
}

.desktop-nav a:hover {
  color: #fff !important;
}

#cart-count {
  background: var(--jamal-cream) !important;
  color: var(--jamal-brown) !important;
}

.mobile-top-panel {
  display: none !important;
}

.landing-hero {
  width: 100vw !important;
  margin-inline: calc(50% - 50vw) !important;
  height: calc(100vh - 42px) !important;
  min-height: 640px !important;
  overflow: hidden !important;
  background: url("/brand/jamal-hero-desktop-clean.webp") center center / cover no-repeat !important;
}

.landing-hero-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hidden by default on desktop */
.mobile-bottom-panel {
  display: none !important;
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
  }

  body {
    padding-bottom: 104px !important;
  }

  .site-header {
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 !important;
  }

  .site-header .brand,
  .site-header .desktop-nav,
  .site-header > nav:not(.mobile-bottom-panel) {
    display: none !important;
  }

  .mobile-top-panel {
    display: grid !important;
    grid-template-columns: 48px 1fr 48px !important;
    align-items: center !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 6px 13px !important;
    background: transparent !important;
    color: var(--jamal-cream) !important;
  }

  .mobile-menu-button,
  .mobile-cart-top {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(247,242,232,.30) !important;
    border-radius: 14px !important;
    background: rgba(247,242,232,.08) !important;
    color: var(--jamal-cream) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  .mobile-menu-button {
    justify-self: end !important;
  }

  .mobile-cart-top {
    justify-self: start !important;
    position: relative !important;
  }

  .mobile-menu-button svg,
  .mobile-cart-top svg {
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .mobile-logo {
    justify-self: center !important;
    color: var(--jamal-cream) !important;
    text-decoration: none !important;
    font-family: "Noto Naskh Arabic", serif !important;
    font-size: 1.72rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-shadow: 0 2px 6px rgba(0,0,0,.22) !important;
  }

  .mobile-logo img {
    display: none !important;
  }

  .mobile-top-badge {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 19px !important;
    height: 19px !important;
    border-radius: 999px !important;
    background: var(--jamal-cream) !important;
    color: var(--jamal-brown) !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
  }

  .landing-hero {
    width: 100vw !important;
    height: 50vh;        /* adjust 75-85vh to taste */
    overflow: hidden;
  }

  .landing-hero-image {
    width: 100%;
    height: 70%;
    object-fit: contain;
    object-position: center top;
  }

}

  .landing-hero-image {
    opacity: 1 !important;
    width: 100vw !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    pointer-events: auto !important;
  }

  .mobile-bottom-panel {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 14px !important;
    z-index: 9999 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: 24px !important;
    background: rgba(251,247,238,.96) !important;
    border: 1px solid rgba(61,48,35,.12) !important;
    box-shadow: 0 18px 44px rgba(61,48,35,.18) !important;
    backdrop-filter: blur(16px) !important;
  }

  .mobile-bottom-link {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 58px !important;
    color: var(--jamal-brown) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: .86rem !important;
  }

  .mobile-bottom-link svg {
    width: 28px !important;
    height: 28px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .mobile-cart-badge {
    position: absolute !important;
    top: -2px !important;
    transform: translateX(-16px) !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: var(--jamal-brown) !important;
    color: var(--jamal-cream) !important;
    font-size: .72rem !important;
    line-height: 1 !important;
  }

  .floating-social {
    bottom: 118px !important;
    left: 18px !important;
    top: auto !important;
    z-index: 10000 !important;
  }
}


/* Desktop hero image replacement — mobile remains unchanged */
@media (min-width: 701px) {
  .landing-hero {
    width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    height: calc(100vh - 42px) !important;
    min-height: 680px !important;
    background-image: url("/brand/jamal-hero-desktop-wide.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* Final mobile header wordmark: thin elegant text, no image */
@media (max-width: 700px) {
  .mobile-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f7f2e8 !important;
    text-decoration: none !important;
    font-family: "Noto Naskh Arabic", serif !important;
    font-size: 1.55rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.18) !important;
  }

  .mobile-logo img {
    display: none !important;
  }
}


/* ===== Requested final layout/pricing changes ===== */
:root {
  --jamal-soft-beige: #efeadd;
  --jamal-soft-beige-2: #e8deca;
  --jamal-brown: #3d3023;
  --jamal-muted-brown: #8b7b66;
}

/* Site-wide top panel: light beige like page background */
.site-header {
  background: linear-gradient(180deg, var(--jamal-soft-beige) 0%, var(--jamal-soft-beige-2) 100%) !important;
  border-bottom: 1px solid rgba(61,48,35,.10) !important;
  backdrop-filter: none !important;
}

.desktop-nav,
.desktop-nav a,
.site-header nav,
.site-header nav a {
  color: var(--jamal-brown) !important;
}

#cart-count {
  background: var(--jamal-brown) !important;
  color: #f7f2e8 !important;
}

/* Before / after price */
.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.old-price {
  color: #9a8f81;
  font-size: .78rem;
  text-decoration: line-through;
  text-decoration-thickness: 1.4px;
  opacity: .9;
}

.current-price {
  color: var(--jamal-brown);
  font-size: 1rem;
  font-weight: 800;
}

.product-modal-bottom .old-price {
  font-size: .95rem;
}

.product-modal-bottom .current-price {
  font-size: 1.25rem;
}

/* Slight margins around category/product grids */
.store-browser,
.products-section {
  padding-inline: clamp(16px, 4vw, 42px) !important;
}

.category-grid,
.product-grid {
  max-width: 680px !important;
  margin-inline: auto !important;
}

@media (max-width: 700px) {
  /* Mobile top panel: no hamburger; cart only, no badge */
  .site-header {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, var(--jamal-soft-beige) 0%, var(--jamal-soft-beige-2) 100%) !important;
  }

  .site-header .brand,
  .site-header .desktop-nav,
  .site-header > nav:not(.mobile-bottom-panel),
  .mobile-menu-button,
  .mobile-top-badge {
    display: none !important;
  }

  .mobile-top-panel {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 7px 14px !important;
    align-items: center !important;
    direction: rtl !important;
    background: transparent !important;
  }

  .mobile-top-spacer {
    display: block !important;
    grid-column: 1 !important;
    width: 40px !important;
    height: 40px !important;
    justify-self: end !important;
  }

  .mobile-logo {
    grid-column: 2 !important;
    justify-self: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: var(--jamal-brown) !important;
    text-decoration: none !important;
    font-family: "Noto Naskh Arabic", serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    white-space: nowrap !important;
    text-shadow: none !important;
  }

  .mobile-logo img {
    display: none !important;
  }

  .mobile-cart-top {
    grid-column: 3 !important;
    justify-self: start !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(61,48,35,.20) !important;
    border-radius: 14px !important;
    background: rgba(247,242,232,.34) !important;
    color: var(--jamal-brown) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
  }

  .mobile-cart-top svg {
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  /* Thinner, more compact bottom panel */
  body {
    padding-bottom: 78px !important;
  }

  .mobile-bottom-panel {
    position: fixed !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 12px !important;
    z-index: 9999 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 7px 10px !important;
    border-radius: 20px !important;
    background: rgba(251,247,238,.96) !important;
    border: 1px solid rgba(61,48,35,.12) !important;
    box-shadow: 0 14px 34px rgba(61,48,35,.16) !important;
    backdrop-filter: blur(14px) !important;
  }

  .mobile-bottom-link {
    min-height: 44px !important;
    gap: 3px !important;
    font-size: .74rem !important;
    color: var(--jamal-brown) !important;
  }

  .mobile-bottom-link svg {
    width: 23px !important;
    height: 23px !important;
  }

  /* Smaller cart badge, moved to the left corner away from cart icon */
  .mobile-cart-badge {
    top: -6px !important;
    left: 18px !important;
    right: auto !important;
    transform: none !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: .58rem !important;
    border: 2px solid rgba(251,247,238,.96) !important;
    background: var(--jamal-brown) !important;
    color: #f7f2e8 !important;
  }

  .floating-social {
    bottom: 92px !important;
  }

  /* Margins + smaller cards but still 2 per row */
  .store-browser,
  .products-section {
    padding-inline: 18px !important;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .category-card,
  .product-card {
    border-radius: 20px !important;
  }

  .category-info,
  .product-info {
    padding: 10px !important;
  }

  .category-info h3,
  .product-info h3 {
    font-size: .88rem !important;
  }

  .product-description {
    font-size: .72rem !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
  }

  .details-link {
    font-size: .72rem !important;
  }

  .product-bottom {
    gap: 7px !important;
  }

  .product-bottom .add-to-cart {
    padding: 8px 6px !important;
    font-size: .73rem !important;
  }

  .price-stack {
    align-items: center !important;
  }

  .old-price {
    font-size: .66rem !important;
  }

  .current-price {
    font-size: .86rem !important;
  }
}


/* ===== Final landing/desktop/header cleanup ===== */

/* Desktop header: light beige bar with dark brown text */
@media (min-width: 701px) {
  .site-header {
    background: linear-gradient(180deg, #efeadd 0%, #e8deca 100%) !important;
    border-bottom: 1px solid rgba(61,48,35,.10) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 44px !important;
  }

  .desktop-nav,
  .desktop-nav a,
  .site-header nav,
  .site-header nav a {
    color: #3d3023 !important;
  }

  .desktop-nav a:hover,
  .site-header nav a:hover {
    color: #1f1710 !important;
  }

  #cart-count {
    background: #3d3023 !important;
    color: #f7f2e8 !important;
  }

  /* Desktop hero: no super-wide stretch; keep tasteful side margins */
  .landing-hero {
    width: min(100vw - 48px, 1500px) !important;
    margin-inline: auto !important;
    height: calc(100vh - 44px) !important;
    min-height: 620px !important;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Mobile hero: zoom out slightly without changing the image file */
@media (max-width: 700px) {
  .landing-hero {
    background: #efeadd !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    transform: scale(.92) !important;
    transform-origin: center top !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}

/* Keep the mobile header as clean thin text, never as an image */
@media (max-width: 700px) {
  .mobile-logo {
    color: #3d3023 !important;
    font-family: "Noto Naskh Arabic", serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
    text-shadow: none !important;
  }

  .mobile-logo img {
    display: none !important;
  }
}


/* ===== Exact uploaded hero images + old price display fix ===== */

/* Pricing */
.price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  line-height: 1.15 !important;
}

.old-price {
  color: #9a8f81 !important;
  font-size: .78rem !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.4px !important;
  opacity: .9 !important;
}

.current-price {
  color: #3d3023 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

@media (max-width: 700px) {
  .price-stack {
    align-items: center !important;
  }

  .old-price {
    font-size: .66rem !important;
  }

  .current-price {
    font-size: .86rem !important;
  }
}

/* Mobile: use exact vertical uploaded image, stretched horizontally, no side margins */
@media (max-width: 700px) {
  .landing-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    height: calc(100vh - 58px) !important;
    min-height: 680px !important;
    overflow: hidden !important;
    background: #efeadd !important;
  }

  .landing-hero-image {
    content: url("/brand/hero-mobile-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100vw !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center top !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Desktop: use exact wide uploaded image, no stretching, with margins */
@media (min-width: 701px) {
  .landing-hero {
    width: min(100vw - 64px, 1650px) !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    background: none !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    content: url("/brand/hero-desktop-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
  }
}


/* ===== Final desktop/mobile hero + header fixes ===== */

/* Desktop: remove weird top gap on very large monitors, improve header contrast */
@media (min-width: 701px) {
  html,
  body {
    margin: 0 !important;
    padding-top: 0 !important;
  }

  .site-header {
    margin: 0 !important;
    background: linear-gradient(180deg, #3d3023 0%, #2f2118 100%) !important;
    border-bottom: 0 !important;
    min-height: 44px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .desktop-nav,
  .desktop-nav a,
  .site-header nav,
  .site-header nav a {
    color: #f7f2e8 !important;
    opacity: 1 !important;
  }

  .desktop-nav a:hover,
  .site-header nav a:hover {
    color: #ffffff !important;
  }

  #cart-count {
    background: #f7f2e8 !important;
    color: #3d3023 !important;
  }

  .landing-hero {
    display: block !important;
    width: min(100vw - 64px, 1650px) !important;
    margin: 24px auto 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    background: none !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    content: url("/brand/hero-desktop-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Mobile: stop dynamic viewport resize/jump and remove vertical stretching */
@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .landing-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    /* fixed viewport fallback first; avoids iOS browser-bar resizing jumps */
    height: 660px !important;
    min-height: 0 !important;
    max-height: none !important;

    background: #efeadd !important;
    overflow: hidden !important;
  }

  @supports (height: 100svh) {
    .landing-hero {
      height: min(660px, calc(100svh - 58px)) !important;
    }
  }

  .landing-hero-image {
    content: url("/brand/hero-mobile-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100vw !important;
    height: 100% !important;

    /* cover keeps full-width without vertically stretching the photo */
    object-fit: cover !important;
    object-position: center top !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}


/* ===== Final gap / Firefox mobile / old price fixes ===== */

/* Old price visual */
.price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  line-height: 1.15 !important;
}

.old-price {
  color: #9a8f81 !important;
  font-size: .78rem !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.4px !important;
  opacity: .9 !important;
}

.current-price {
  color: #3d3023 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

/* Desktop: remove top gap completely and keep image with margins */
@media (min-width: 701px) {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .site-header {
    margin: 0 !important;
  }

  .landing-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: min(100vw - 64px, 1650px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    background: none !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    content: url("/brand/hero-desktop-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Mobile Firefox: avoid dynamic viewport resizing; use fixed hero height + no transform */
@media (max-width: 700px) {
  .landing-hero {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    height: 660px !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #efeadd !important;
    overflow: hidden !important;
  }

  .landing-hero-image {
    content: url("/brand/hero-mobile-exact.webp") !important;
    display: block !important;
    opacity: 1 !important;
    width: 100vw !important;
    height: 660px !important;
    object-fit: cover !important;
    object-position: center top !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .price-stack {
    align-items: center !important;
  }

  .old-price {
    font-size: .66rem !important;
  }

  .current-price {
    font-size: .86rem !important;
  }
}


/* ===== Checkout spacing, desktop 4-column grids, old price styles ===== */

.price-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  line-height: 1.15 !important;
}

.old-price {
  color: #9a8f81 !important;
  font-size: .78rem !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.4px !important;
  opacity: .9 !important;
}

.current-price {
  color: #3d3023 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

/* Desktop: 4 columns per row for categories/products */
@media (min-width: 901px) {
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1120px !important;
    gap: 18px !important;
    margin-inline: auto !important;
  }

  .category-card,
  .product-card {
    max-width: none !important;
    width: 100% !important;
  }
}

/* Mobile checkout: give content breathing room */
@media (max-width: 700px) {
  .checkout-page {
    padding-inline: 18px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .checkout-hero,
  .checkout-grid,
  .checkout-card,
  .card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .checkout-card,
  .card {
    padding-inline: 16px !important;
  }

  .checkout-page input,
  .checkout-page textarea,
  .checkout-page button {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .price-stack {
    align-items: center !important;
  }

  .old-price {
    font-size: .66rem !important;
  }

  .current-price {
    font-size: .86rem !important;
  }
}


/* Add-to-cart sparkle animation */
.cart-sparkle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20000;
  pointer-events: none;
  transform: translate(var(--start-x), var(--start-y));
  animation: cartSparkleFly 1.25s cubic-bezier(.22,.75,.18,1) forwards;
}

.cart-sparkle span {
  position: absolute;
  color: #3d3023;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(61,48,35,.18));
  animation: cartSparkleTwinkle 1.25s ease forwards;
}

.cart-sparkle span:nth-child(1) {
  transform: translate(-6px, -8px);
}

.cart-sparkle span:nth-child(2) {
  transform: translate(8px, -2px);
  font-size: 14px;
  animation-delay: .05s;
}

.cart-sparkle span:nth-child(3) {
  transform: translate(-1px, 8px);
  font-size: 12px;
  animation-delay: .1s;
}





@keyframes cartSparkleFly {
  0% {
    opacity: 0;
    transform: translate(var(--start-x), var(--start-y)) scale(.7);
  }

  10% {
    opacity: 1;
    transform: translate(
      var(--start-x),
      calc(var(--start-y) - 55px)
    ) scale(1.2);
  }

  35% {
    opacity: 1;
    transform: translate(
      calc(var(--start-x) - 25px),
      calc(var(--start-y) - 80px)
    ) scale(1.05);
  }

  75% {
    opacity: 1;
    transform: translate(
      calc(var(--end-x) + 10px),
      calc(var(--end-y) - 45px)
    ) scale(.7);
  }

  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) scale(.25);
  }
}

@keyframes cartSparkleTwinkle {
  0% { opacity: 0; rotate: 0deg; }
  20% { opacity: 1; }
  100% { opacity: 0; rotate: 180deg; }
}

.cart-bump {
  animation: cartBump .32s ease;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}


/* Product thumbnail/card fly-to-cart comparison animation */
.cart-sparkle {
  display: none !important;
}

.cart-fly-product {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20000;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  background: #fbf7ee;
  box-shadow: 0 12px 30px rgba(61,48,35,.26);
  transform: translate(var(--start-x), var(--start-y)) translate(-50%, -50%) scale(.65);
  animation: cartProductFly 1.15s cubic-bezier(.22,.78,.18,1) forwards;
}

.cart-fly-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-fly-product span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #3d3023;
  font-size: 24px;
}

@keyframes cartProductFly {
  0% {
    opacity: 0;
    transform: translate(var(--start-x), var(--start-y)) translate(-50%, -50%) scale(.55) rotate(0deg);
  }

  12% {
    opacity: 1;
    transform: translate(var(--start-x), calc(var(--start-y) - 44px)) translate(-50%, -50%) scale(.82) rotate(-3deg);
  }

  35% {
    opacity: 1;
    transform: translate(calc(var(--start-x) - 10px), calc(var(--start-y) - 72px)) translate(-50%, -50%) scale(.78) rotate(2deg);
  }

  75% {
    opacity: 1;
    transform: translate(calc(var(--end-x) + 8px), calc(var(--end-y) - 62px)) translate(-50%, -50%) scale(.45) rotate(-6deg);
  }

  94% {
    opacity: 1;
    transform: translate(var(--end-x), calc(var(--end-y) - 8px)) translate(-50%, -50%) scale(.28) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(var(--end-x), var(--end-y)) translate(-50%, -50%) scale(.12) rotate(0deg);
  }
}

.cart-bump {
  animation: cartBump .34s ease;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
