/* =============================================================
   IVORIC v3 — "young, dry, a bit odd"
   Layered ON TOP of ivoric-v2.css. Safe to load sitewide: it only adds
   new .iv3-* components and a few overrides scoped to body.iv-home
   (the homepage). Cart, checkout, account pages are untouched.
   Palette stays the brand's: ivory / ink / deep tan (+ burgundy line).
   Voice: dry, lowercase-leaning, no exclamation marks.
   ============================================================= */
:root {
  --iv3-tan: #A5612F;
  --iv3-star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- 1. Mood marquee: the five Drop 01 designs, as a band ---------- */
.iv3-moods {
  background: var(--iv-ink);
  color: var(--iv-cream);
  overflow: hidden;
  padding: clamp(12px, 2.2vw, 24px) 0;
}
.iv3-moods__track {
  display: flex;
  width: max-content;
  animation: iv3-slide 46s linear infinite;
  will-change: transform;
}
.iv3-moods:hover .iv3-moods__track { animation-play-state: paused; }
.iv3-moods__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding-right: clamp(18px, 3vw, 44px);
  font-family: var(--iv-font-display);
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.iv3-moods__item.is-out { color: transparent; -webkit-text-stroke: 1.2px var(--iv-cream); }
.iv3-moods__star {
  width: .55em; height: .55em;
  background: var(--iv-tan);
  clip-path: var(--iv3-star);
  flex: none;
}
@keyframes iv3-slide { to { transform: translateX(-50%); } }

/* ---------- 2. Homepage rhythm (scoped) ---------- */
body.iv-home .iv-trust {
  background: var(--iv-cream-soft);
  border-block: 1px solid var(--iv-line);
  padding: 22px 0;
  margin-bottom: 0 !important;
}
body.iv-home .home1-product-section { padding-top: clamp(40px, 6vw, 88px); margin-bottom: 0 !important; padding-bottom: clamp(40px, 6vw, 88px); }
body.iv-home .iv-section__head { text-align: left; max-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: clamp(18px, 3vw, 34px); }
body.iv-home .iv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border: 1px solid rgba(15,15,15,.25); border-radius: 999px;
  font: 600 12px/1 var(--iv-font-body); letter-spacing: .06em; text-transform: none;
  color: var(--iv-ink); background: rgba(255,255,255,.55);
}
body.iv-home .iv-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B5651D; }
body.iv-home .iv-section__title {
  font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .86; letter-spacing: .004em;
  text-transform: uppercase; margin: 0;
}
body.iv-home .iv-section__title .iv-hl { color: var(--iv3-tan); }
body.iv-home .iv-section__sub {
  font: 400 clamp(1rem, 1.3vw, 1.15rem)/1.6 var(--iv-font-body);
  color: rgba(15,15,15,.74); max-width: 34em; margin: 0;
}

/* Categories: tall tiles, big names */
body.iv-home .categori-section { background: var(--iv-cream); padding: clamp(48px, 7vw, 100px) 0 !important; }
.iv3-cathead { margin-bottom: clamp(20px, 3vw, 36px); }
.iv-cat { display: block; text-decoration: none; color: var(--iv-ink); }
.iv-cat__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #E9E2D4; border-radius: 2px; }
.iv-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.iv-cat:hover .iv-cat__img img { transform: scale(1.06); }
.iv-cat__name {
  display: block; margin-top: 12px;
  font-family: var(--iv-font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  display: inline-block; padding-bottom: 4px; transition: background-size .35s;
}
.iv-cat:hover .iv-cat__name { background-size: 100% 2px; }

/* ---------- 3. Instagram: the loud one ---------- */
.iv3-ig {
  background: var(--iv-ink); color: var(--iv-cream);
  padding: clamp(56px, 8vw, 120px) 0; position: relative; overflow: hidden;
}
.iv3-ig__wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.iv3-ig .iv3-ig__sticker {
  display: inline-block; margin: 0 0 clamp(14px, 2.4vw, 26px);
  padding: 8px 16px; background: var(--iv-tan); color: var(--iv-ink);
  font: 700 13px/1 var(--iv-font-body); letter-spacing: .04em;
  transform: rotate(-3deg); box-shadow: 3px 3px 0 rgba(245,240,232,.9);
}
.iv3-ig .iv3-ig__title {
  font-family: var(--iv-font-display); font-weight: 400; margin: 0 0 clamp(14px, 2.4vw, 24px);
  font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .82; letter-spacing: .004em; text-transform: uppercase;
  color: var(--iv-cream);
}
.iv3-ig__title span { display: block; }
.iv3-ig__title .iv3-ig__out { color: transparent; -webkit-text-stroke: 2px var(--iv-tan); }
.iv3-ig .iv3-ig__text { font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.55 var(--iv-font-body); color: rgba(245,240,232,.82); max-width: 24em; margin: 0 0 clamp(22px, 3.4vw, 36px); }
.iv3-ig__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.iv3-ig__btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px;
  background: var(--iv-cream); color: var(--iv-ink); border: 1.5px solid var(--iv-cream);
  font: 700 13px/1 var(--iv-font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.iv3-ig__btn svg { width: 20px; height: 20px; flex: none; }
.iv3-ig__btn:hover { background: var(--iv-tan); border-color: var(--iv-tan); color: var(--iv-ink); transform: translateY(-2px); }
.iv3-ig .iv3-ig__tag { font: 400 14px/1.5 var(--iv-font-body); color: rgba(245,240,232,.75); margin: 0; max-width: 17em; }
.iv3-ig__tag b { color: var(--iv-tan); font-weight: 600; }

.iv3-ig__collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; margin-left: auto; width: 100%; }
.iv3-ig__tile {
  position: absolute; width: 50%; aspect-ratio: 4 / 5; background: var(--iv-cream);
  padding: 7px 7px 0; box-shadow: 0 14px 34px rgba(0,0,0,.45);
  transform: rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.2,.7,.2,1), z-index 0s .2s;
  display: block;
}
.iv3-ig__tile img { width: 100%; height: calc(100% - 7px); object-fit: cover; display: block; background: #d8d2c6; }
.iv3-ig__tile::before { /* a strip of tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 38%; height: 20px;
  transform: translateX(-50%) rotate(-3deg); background: rgba(198,139,89,.75);
}
.iv3-ig__tile:hover { transform: rotate(0deg) scale(1.05); z-index: 5; transition-delay: 0s; }
.iv3-ig__tile:nth-child(1) { --r: -5deg; left: 0;   top: 2%; }
.iv3-ig__tile:nth-child(2) { --r: 3deg;  right: 0;  top: 0; }
.iv3-ig__tile:nth-child(3) { --r: 2deg;  left: 4%;  bottom: 0; }
.iv3-ig__tile:nth-child(4) { --r: -3deg; right: 3%; bottom: 3%; }
.iv3-ig__badge { /* spinning "follow" stamp */
  position: absolute; z-index: 6; left: 50%; top: 50%; width: clamp(96px, 16vw, 132px); aspect-ratio: 1;
  transform: translate(-50%, -50%); display: block; border-radius: 50%; background: var(--iv-tan);
  box-shadow: 0 8px 22px rgba(0,0,0,.4); text-decoration: none; color: var(--iv-ink);
}
.iv3-ig__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: iv3-spin 16s linear infinite; }
.iv3-ig__badge svg.ig { position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-50%, -50%); }
.iv3-ig__badge text { font: 700 10.4px var(--iv-font-body); letter-spacing: .24em; text-transform: uppercase; fill: currentColor; }
@keyframes iv3-spin { to { transform: rotate(360deg); } }

/* ---------- 4. The quiet nudge (sitewide, dismissible, once in a while) ---------- */
.iv3-nudge {
  position: fixed; z-index: 1200; right: 24px; bottom: 120px; width: min(320px, calc(100vw - 40px));   /* desktop: above the WhatsApp button, clear of the hero buttons */
  background: var(--iv-ink); color: var(--iv-cream); padding: 16px 18px 16px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); border: 1px solid rgba(245,240,232,.18);
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.iv3-nudge.is-in { opacity: 1; transform: none; pointer-events: auto; }
.iv3-nudge__icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--iv-tan); color: var(--iv-ink); border-radius: 50%; }
.iv3-nudge__icon svg { width: 22px; height: 22px; }
.iv3-nudge .iv3-nudge__title { margin: 0; font: 600 14px/1.35 var(--iv-font-body); color: var(--iv-cream); }
.iv3-nudge .iv3-nudge__sub { margin: 2px 0 0; font: 400 12.5px/1.4 var(--iv-font-body); color: rgba(245,240,232,.72); }
.iv3-nudge__row { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.iv3-nudge__go { flex: 1; text-align: center; padding: 11px 14px; background: var(--iv-cream); color: var(--iv-ink); font: 700 12px/1 var(--iv-font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.iv3-nudge__go:hover { background: var(--iv-tan); color: var(--iv-ink); }
.iv3-nudge__no { background: none; border: 0; color: rgba(245,240,232,.7); font: 500 12.5px var(--iv-font-body); padding: 10px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.iv3-nudge__no:hover { color: var(--iv-cream); }
@media (max-width: 768px) {
  .iv3-nudge { right: 12px; left: 84px; width: auto; bottom: calc(var(--iv-mobnav, 66px) + 12px); }   /* phones: WhatsApp sits bottom-left, so the card keeps clear of it */
}

/* ---------- 5. Footer + announcement ---------- */
.iv-announce a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(198,139,89,.7); }
.iv-announce a:hover { color: var(--iv-tan); }
.iv-footer-ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--iv-cream); text-decoration: none; font: 600 14px var(--iv-font-body); border-bottom: 1px solid var(--iv-tan); padding-bottom: 3px; }
.iv-footer-ig:hover { color: var(--iv-tan); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .iv3-ig__wrap { grid-template-columns: 1fr; }
  .iv3-ig__collage { margin: 8px auto 0; max-width: 440px; }
  .iv3-ig__ctas { flex-direction: column; align-items: stretch; }
  .iv3-ig__btn { justify-content: center; }
  .iv3-ig .iv3-ig__tag { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .iv3-moods__track, .iv3-ig__badge svg.ring { animation: none; }
  .iv3-moods__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .iv3-nudge, .iv-cat__img img, .iv3-ig__tile { transition: none; }
}
