/* ==========================================================================
   CSS-drawn perfume bottle — placeholder artwork for products and hero.
   Colour it per product with --a / --b (glass) and --cap-a / --cap-b (cap).
   Real photos from assets/images/ fade in over this art (see js/images.js);
   when a photo file is missing, this art stays as the fallback.
   ========================================================================== */

.bottle {
  --w: 46%;
  --ar: 1 / 1.55;
  --a: #d8c7a3;              /* glass, top */
  --b: #8b6b3d;              /* glass, bottom */
  --cap-a: #3b3b42;          /* cap highlight */
  --cap-b: #0b0b0d;          /* cap shade */

  position: absolute;
  left: 0;
  right: 0;
  bottom: 13%;
  margin-inline: auto;
  width: var(--w);
  aspect-ratio: var(--ar);
  isolation: isolate;
  transition: transform 0.6s var(--ease);
}

/* soft floor shadow */
.bottle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5%;
  width: 135%;
  height: 11%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
  z-index: -1;
}

/* ---- cap ---- */
.bottle__cap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 36%;
  height: 13%;
  transform: translateX(-50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, var(--cap-b), var(--cap-a) 42%, var(--cap-b));
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---- neck ---- */
.bottle__neck {
  position: absolute;
  top: 12.2%;
  left: 50%;
  width: 20%;
  height: 7.5%;
  transform: translateX(-50%);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.4)),
    var(--a);
}

/* ---- glass body ---- */
.bottle__body {
  position: absolute;
  inset: 18% 0 0 0;
  border-radius: 11% / 7%;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(180deg, var(--a) 0%, var(--b) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -22px 30px -12px rgba(0, 0, 0, 0.3),
    0 24px 34px -20px rgba(0, 0, 0, 0.5);
}

/* thick glass base */
.bottle__body::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 3%;
  height: 9%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
}

/* specular streak */
.bottle__body::after {
  content: "";
  position: absolute;
  left: 9%;
  top: 8%;
  width: 7%;
  height: 66%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

/* ---- label ---- */
.bottle__label {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 36%;
  height: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9%;
  padding-inline: 12%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.bottle__label i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(15, 15, 17, 0.6);
}
.bottle__label i:nth-child(2) { width: 62%; align-self: center; opacity: 0.55; }

/* ---- shape variants ---- */
.bottle--tall  { --w: 37%; --ar: 1 / 2.05; }
.bottle--tall .bottle__body  { border-radius: 14% / 5%; }

.bottle--round { --w: 52%; --ar: 1 / 1.46; }
.bottle--round .bottle__body { border-radius: 46% / 34%; }
.bottle--round .bottle__label { top: 38%; left: 24%; right: 24%; border-radius: 50%; height: 28%; }

.bottle--flat  { --w: 56%; --ar: 1 / 1.28; }
.bottle--flat .bottle__body  { border-radius: 8% / 9%; }
.bottle--flat .bottle__cap   { width: 30%; height: 15%; }
.bottle--flat .bottle__neck  { top: 14%; }
.bottle--flat .bottle__body  { inset: 20% 0 0 0; }

/* ---- gold cap option ---- */
.bottle--gold { --cap-a: #e2c47f; --cap-b: #8d6a2a; }
.bottle--silver { --cap-a: #e6e6ea; --cap-b: #7d7d86; }
