/* SHOP page (index.html) ----------------------------------- */

html { overflow-x: clip; }

/* Hero — big word over paisley block-print, mandala watermark */
.shop-hero {
  padding: 20px 24px 16px;
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .shop-hero { padding: 24px 40px 20px; } }

/* Slowly turning mandala, like a chakra watermark */
.shop-hero .hero-mandala {
  position: absolute;
  top: -70px;
  right: -70px;
  width: clamp(180px, 22vw, 320px);
  opacity: 0.3;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: mandala-turn 90s linear infinite;
}
@keyframes mandala-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.shop-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 6vw, 100px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.shop-hero h1 .blood { color: var(--red); font-style: normal; }
.shop-hero h1 .hero-hindi {
  font-family: var(--deva);
  font-style: normal;
  font-size: clamp(16px, 2.6vw, 40px);
  color: var(--ink-2);
}

/* FEATURE BANNER — sindoor red, paisley, scallop trim */
.feature-banner {
  border-bottom: 2px solid var(--ink);
  background-color: var(--red);
  /* paisley block-print over the lac-dye texture */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23FFFBF0' stroke-opacity='0.12' stroke-width='1.3'><path d='M42 10c16 5 23 21 18 37-4 13-17 22-29 18-11-3-16-17-10-27 5-9 17-10 22-2 3 7-2 15-9 13'/><path d='M60 14c3-4 9-5 13-2'/><circle cx='35' cy='45' r='2.2'/></g></svg>"),
    url("../assets/tex-blood.jpg");
  background-size: 84px 84px, cover;
  background-position: top left, center;
  background-blend-mode: normal, multiply;
  position: relative;
  padding: 56px 24px;
}
@media (min-width: 900px) { .feature-banner { padding: 72px 40px; } }
.feature-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) { .feature-inner { grid-template-columns: auto 1fr auto; gap: 44px; } }

.feature-photo {
  width: 100%;
  height: 220px;
  color: rgba(255, 251, 240, 0.75);
}
@media (min-width: 900px) { .feature-photo { width: 200px; height: 260px; } }
.feature-banner .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-banner .eyebrow .hindi { font-family: var(--deva); font-size: 14px; text-transform: none; }
.feature-banner h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -0.03em;
}
.feature-banner h2 .tan { color: var(--tan); font-style: normal; }
.feature-banner .feature-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--tan);
  margin-top: 14px;
}
.feature-cta {
  font-size: 12px;
  padding: 16px 28px;
  background-color: var(--white) !important;
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg") !important;
  color: var(--red) !important;
  border-color: var(--ink) !important;
  white-space: nowrap;
}
.feature-cta:hover {
  background-color: var(--ink) !important;
  background-image: none !important;
  color: var(--white) !important;
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 64px;
  background: var(--tan);
  z-index: 15;
}
/* bandhani-dot rule below the filter bar */
.filter-bar::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0; right: 0;
  height: 10px;
  background-image: radial-gradient(circle, var(--red) 1.6px, transparent 1.9px);
  background-size: 14px 10px;
  background-position: center;
  background-repeat: repeat-x;
  pointer-events: none;
}
@media (min-width: 900px) { .filter-bar { padding: 14px 40px; } }

.filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.filter-sort select {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 4px 20px 4px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
/* iOS Safari auto-zooms the whole page when a focused form field renders
   under 16px — this is what was causing the "random zoom" on this page,
   not a touch gesture. 16px here sidesteps that entirely. */
@media (max-width: 640px) {
  .filter-sort select { font-size: 16px; }
}

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }

.shop-item {
  padding: 30px 26px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
  position: relative;
  overflow: visible;
}
/* Gond peacock perched on the top-right corner of every card — static, no
   hover animation. iOS treats a tap on a link as a "hover" and holds that
   state, so any hover-triggered scale/transform here fires on every tap on
   mobile and reads as the page jumping/zooming. Removed entirely rather
   than just gated, since this specific spot was the reported culprit. */
.shop-item::before {
  content: '';
  position: absolute;
  top: -24px;
  right: 0;
  width: clamp(78px, 10vw, 116px);
  aspect-ratio: 1;
  background-image: url("../assets/peacock-corner.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.2));
}
.shop-item:hover {
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,251,240,0.87), rgba(255,251,240,0.87)), url("../assets/tex-paper.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
}

@media (min-width: 1400px) { .shop-item:nth-child(4n) { border-right: none; } }
@media (min-width: 1000px) and (max-width: 1399px) { .shop-item:nth-child(3n) { border-right: none; } }
@media (min-width: 600px) and (max-width: 999px) { .shop-item:nth-child(2n) { border-right: none; } }
@media (max-width: 599px) { .shop-item { border-right: none; } }

.shop-item-num {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.shop-item-num .blood-tag { color: var(--red); }

/* Mughal arch media — ink frame through the arch mask, media inset */
.shop-item-media {
  aspect-ratio: 4/5;
  position: relative;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.shop-item-media .arch-frame {
  width: 100%;
  height: 100%;
}
.shop-item-media .arch-inner {
  background: var(--tan-2);
}
.shop-item-media image-slot { width: 100%; height: 100%; display: block; }

.real-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--tan-2);
  padding: 8px;
}

.shop-item-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  z-index: 3;
}
.shop-item-status.sold {
  background: var(--ink);
  color: var(--white);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.shop-item-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
  font-weight: 400;
}

.shop-item-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  border-top: 1.5px solid var(--ink);
  position: relative;
}
/* tiny buta between title and price row */
.shop-item-line::before {
  content: '❁';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1;
  color: var(--red);
  padding: 0 8px;
}
.shop-item-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--red);
  flex-shrink: 0;
  font-weight: 400;
}

/* Empty-filter note */
.shop-empty {
  padding: 60px 24px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  display: none;
}
.shop-empty .hindi { font-family: var(--deva); font-style: normal; color: var(--red); }

/* Info strip */
.info-strip {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--ink);
}
@media (min-width: 700px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }

.info-cell {
  padding: 44px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--tan);
}
@media (min-width: 700px) { .info-cell:last-child { border-right: none; } }
.info-cell h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--ink);
}
.info-cell h3 .blood { color: var(--red); font-style: normal; }
.info-cell p {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.02em;
}
.info-cell .num {
  font-family: var(--deva);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-cell .num::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--tan), 0 0 0 3.5px var(--gold);
}

/* SIMPLE PRODUCT — card grid standing in for the old shop grid. Everything
   stays inside the card's own box: no arch mask, no negative offsets, no
   element positioned outside its parent's bounds. The hover lift is gated
   to real-hover devices only, so it can never fire from an iOS tap. */
.simple-shop {
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .simple-shop { grid-template-columns: repeat(3, 1fr); }
}

.simple-product {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: var(--tan-2);
  transition: border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .simple-product {
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  .simple-product:hover {
    transform: translateY(-6px);
    box-shadow: 6px 10px 0 var(--red);
  }
}

.simple-product-media {
  position: relative;
  border-bottom: 1.5px solid var(--ink);
}
.simple-product-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--tan-2);
}

.simple-product-info {
  padding: 14px 18px 16px;
}
.simple-product-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.simple-product-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
}
.simple-product-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--red);
  white-space: nowrap;
}
.simple-product-punjabi {
  font-family: var(--deva);
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
}
