/**
 * GLOW Storefront 3.0
 * Dynamic product presentation, premium footer and motion details.
 */

.glow-scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 3px;
  pointer-events: none;
}

.glow-scroll-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #f2b6bd, var(--glow-wine), #d89a72);
  box-shadow: 0 0 14px rgba(143, 24, 56, 0.42);
  transition: width 0.08s linear;
}

.glow-header {
  transition: min-height 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.glow-header.is-scrolled {
  background: rgba(255, 250, 247, 0.985);
  box-shadow: 0 14px 40px rgba(82, 29, 43, 0.1);
}

.glow-hero-v3::before {
  width: 510px;
  height: 510px;
  background: radial-gradient(circle, rgba(200, 114, 123, 0.17), transparent 68%);
}

.glow-campaign-frame {
  background: linear-gradient(145deg, #f5d9d3, #f9ece8);
  border-radius: 44% 44% 34px 34px;
}

.glow-campaign-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(0deg, rgba(87, 24, 40, 0.08), transparent 34%);
  pointer-events: none;
}

.glow-campaign-frame img {
  object-position: center 54%;
}

.glow-hero-halo {
  position: absolute;
  inset: 11% 9% 4%;
  z-index: -1;
  border: 1px solid rgba(143, 24, 56, 0.14);
  border-radius: 50% 50% 28px 28px;
  transform: rotate(4deg);
  animation: glow-halo-breathe 6s ease-in-out infinite;
}

.glow-hero-graphic--three {
  right: 4%;
  top: 10%;
  width: 48px;
  height: 48px;
  color: #c98a63;
  animation: glow-graphic-orbit 7.2s ease-in-out -2.1s infinite;
}

.glow-trust-strip-v3 {
  box-shadow: 0 20px 50px rgba(85, 35, 43, 0.05);
}

.glow-dynamic-product {
  position: relative;
  isolation: isolate;
}

.glow-dynamic-product::before {
  content: "";
  position: absolute;
  top: 6%;
  right: -130px;
  z-index: -1;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(232, 189, 187, 0.24), transparent 68%);
  border-radius: 50%;
  filter: blur(2px);
}

.glow-home-gallery-main {
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #fff9f7 48%, #f8e9e5 100%);
}

.glow-home-gallery-main::before,
.glow-gallery-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}

.glow-home-gallery-main.is-image-loading::before,
.glow-gallery-main.is-image-loading::before {
  opacity: 1;
  animation: glow-image-shimmer 1.25s ease-in-out infinite;
}

.glow-home-gallery-main img,
.glow-gallery-main > img {
  transition: opacity 0.28s ease, transform 0.6s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.glow-home-gallery-main.is-image-loading img,
.glow-gallery-main.is-image-loading > img {
  opacity: 0.35;
}

.glow-home-gallery-main img {
  object-fit: contain;
}

.glow-home-product-gallery.is-single-image .glow-home-gallery-main img {
  padding: clamp(18px, 4vw, 40px);
}

.glow-gallery-new {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--glow-wine);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 24, 56, 0.11);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(77, 28, 40, 0.12);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(9px);
}

.glow-gallery-new .glow-icon {
  width: 16px;
  height: 16px;
}

.glow-home-rating {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 7px 10px;
  color: var(--glow-muted) !important;
  background: #fff8f6;
  border: 1px solid var(--glow-line);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.glow-home-rating .star-rating {
  margin: 0;
  color: #e6ad00;
}

.glow-home-rating:hover {
  color: var(--glow-wine) !important;
  border-color: rgba(143, 24, 56, 0.22);
}

.glow-products-showcase .glow-section-heading {
  max-width: 760px;
  margin-inline: auto;
}

.glow-home-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.glow-home-product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(225px, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(143, 24, 56, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(83, 31, 44, 0.1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glow-home-product-card:hover {
  border-color: rgba(143, 24, 56, 0.24);
  box-shadow: 0 30px 78px rgba(83, 31, 44, 0.15);
  transform: translateY(-7px);
}

.glow-home-product-card__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #fff9f7 48%, #f5dfda 100%);
  border-left: 1px solid rgba(143, 24, 56, 0.09);
}

.glow-home-product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 58%, rgba(92, 28, 43, 0.04));
  pointer-events: none;
}

.glow-home-product-card__media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  position: relative;
  z-index: 1;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transition: transform 0.65s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.glow-home-product-card:hover .glow-home-product-card__media img {
  transform: scale(1.035);
}

.glow-home-product-card__price,
.glow-home-product-card__label {
  position: absolute;
  z-index: 3;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(77, 28, 40, 0.13);
  backdrop-filter: blur(10px);
}

.glow-home-product-card__price {
  right: 20px;
  padding: 10px 15px;
  color: #fff;
  background: var(--glow-wine);
  font-size: 18px;
  font-weight: 900;
}

.glow-home-product-card__price small {
  font-size: 11px;
}

.glow-home-product-card__label {
  left: 20px;
  padding: 9px 12px;
  color: var(--glow-wine);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 24, 56, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.glow-home-product-card__label .glow-icon {
  width: 16px;
  height: 16px;
}

.glow-home-product-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(21px, 2.4vw, 29px);
}

.glow-home-product-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.glow-home-product-card__status > span:last-child {
  color: var(--glow-rose);
  font-size: 11px;
  font-weight: 900;
}

.glow-home-product-card h3 {
  min-height: 70px;
  margin: 0 0 12px;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.35;
}

.glow-home-product-card h3 a {
  color: var(--glow-ink);
}

.glow-home-product-card h3 a:hover {
  color: var(--glow-wine);
}

.glow-home-product-card .glow-home-rating {
  margin: 0 0 15px;
}

.glow-home-product-card__body > p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--glow-muted);
  font-size: 13px;
  line-height: 1.85;
}

.glow-home-product-card__features {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.glow-home-product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--glow-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.glow-home-product-card__features .glow-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: var(--glow-rose);
}

.glow-card-order-form {
  grid-template-columns: 105px minmax(0, 1fr);
  margin-top: auto;
}

.glow-home-product-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.glow-home-product-card__actions .glow-outline-button,
.glow-card-buy-now {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 13px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.glow-card-buy-now {
  color: var(--glow-wine) !important;
  background: linear-gradient(135deg, #fff3f1, #f8dfdf);
  border: 1px solid rgba(143, 24, 56, 0.12);
}

.glow-card-buy-now:hover {
  color: #fff !important;
  background: var(--glow-wine);
}

.glow-home-product-card:only-child {
  width: min(100%, 690px);
  justify-self: center;
  grid-column: 1 / -1;
}

.glow-gallery-main {
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #fff9f7 48%, #f7e7e4 100%);
}

.glow-gallery-main > img {
  padding: clamp(8px, 2.5vw, 24px);
  object-fit: contain;
}

.glow-review-note {
  margin-bottom: 18px;
  color: var(--glow-muted);
  font-size: 13px;
}

.glow-footer-v3 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 22px;
  color: var(--glow-ink);
  background:
    radial-gradient(circle at 7% 14%, rgba(224, 165, 166, 0.22), transparent 25%),
    radial-gradient(circle at 92% 66%, rgba(143, 24, 56, 0.08), transparent 24%),
    linear-gradient(180deg, #fff8f6 0%, #f9ebe8 100%);
  border-top: 1px solid rgba(143, 24, 56, 0.1);
}

.glow-footer-v3::before,
.glow-footer-v3::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(143, 24, 56, 0.08);
  border-radius: 50%;
}

.glow-footer-v3::before {
  top: 160px;
  right: -190px;
  width: 440px;
  height: 440px;
}

.glow-footer-v3::after {
  bottom: -210px;
  left: -150px;
  width: 390px;
  height: 390px;
}

.glow-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.95fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(52px, 7vw, 82px) 42px;
}

.glow-footer-brand-card,
.glow-footer-contact-card {
  min-width: 0;
}

.glow-footer-v3 .glow-footer-logo-window {
  position: relative;
  width: min(100%, 300px);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 15px;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.glow-footer-v3 .glow-footer-logo-window img {
  position: relative;
  top: auto;
  left: auto;
  width: 300px;
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: none;
  mix-blend-mode: multiply;
  filter: saturate(1.08) contrast(1.05);
}

.glow-footer-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--glow-wine);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.glow-footer-brand-card h2,
.glow-footer-contact-card h2 {
  margin: 0 0 10px;
  color: var(--glow-ink);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.45;
}

.glow-footer-brand-card p,
.glow-footer-contact-card p {
  margin: 0;
  color: var(--glow-muted);
  font-size: 13px;
  line-height: 1.9;
}

.glow-footer-brand-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.glow-footer-brand-actions a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--glow-wine) !important;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 24, 56, 0.1);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.glow-footer-brand-actions .glow-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.glow-footer-contact-link {
  unicode-bidi: isolate;
}

.glow-footer-phone-link span {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.glow-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.glow-footer-links h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--glow-wine);
  font-size: 14px;
  font-weight: 900;
}

.glow-footer-links h2 .glow-icon {
  width: 18px;
  height: 18px;
}

.glow-footer-links a {
  position: relative;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--glow-muted) !important;
  font-size: 12px;
  font-weight: 600;
}

.glow-footer-links a .glow-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--glow-rose);
}

.glow-footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--glow-wine);
  transition: width 0.25s ease;
}

.glow-footer-links a:hover {
  color: var(--glow-wine) !important;
}

.glow-footer-links a:hover::after {
  width: 100%;
}

.glow-footer-contact-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 24, 56, 0.11);
  border-radius: 23px;
  box-shadow: 0 18px 48px rgba(78, 31, 41, 0.08);
  backdrop-filter: blur(10px);
}

.glow-footer-contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: #25d366;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.22);
}

.glow-footer-contact-icon .glow-whatsapp-icon {
  width: 28px;
  height: 28px;
}

.glow-footer-contact-card .glow-footer-whatsapp,
.glow-footer-contact-card .glow-outline-button {
  width: 100%;
  min-height: 43px;
  justify-content: center;
  margin-top: 12px;
}

.glow-footer-contact-card .glow-footer-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  color: #fff !important;
  background: #20b957;
  border: 0;
}

.glow-footer-contact-card .glow-footer-whatsapp .glow-whatsapp-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #fff;
}

.glow-footer-contact-card .glow-outline-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--glow-wine) !important;
  background: transparent;
}

.glow-footer-contact-card .glow-outline-button .glow-icon {
  width: 18px;
  height: 18px;
}

.glow-footer-v3 .glow-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 0 0;
  color: var(--glow-muted);
  border-top: 1px solid rgba(143, 24, 56, 0.1);
  font-size: 10px;
}

.glow-footer-v3 .glow-footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.glow-footer-v3 .glow-footer-bottom .glow-icon {
  width: 15px;
  height: 15px;
  color: var(--glow-rose);
}

.glow-footer-orbit {
  position: absolute;
  z-index: -1;
  display: grid;
  place-items: center;
  color: rgba(143, 24, 56, 0.22);
  pointer-events: none;
}

.glow-footer-orbit .glow-icon {
  width: 100%;
  height: 100%;
}

.glow-footer-orbit--one {
  top: 34%;
  left: 3%;
  width: 46px;
  height: 46px;
  animation: glow-footer-float 7s ease-in-out infinite;
}

.glow-footer-orbit--two {
  top: 58%;
  right: 3%;
  width: 38px;
  height: 38px;
  animation: glow-footer-float 6s ease-in-out -1.8s infinite reverse;
}

.glow-footer-orbit--three {
  bottom: 10%;
  left: 13%;
  width: 32px;
  height: 32px;
  animation: glow-footer-float 8s ease-in-out -3s infinite;
}

.glow-back-to-top {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--glow-wine);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(104, 16, 39, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.glow-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.glow-back-to-top:hover {
  transform: translateY(-3px);
}

@keyframes glow-halo-breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: rotate(4deg) scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: rotate(1deg) scale(1.02);
  }
}

@keyframes glow-image-shimmer {
  from {
    transform: translateX(110%);
  }
  to {
    transform: translateX(-110%);
  }
}

@keyframes glow-footer-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  50% {
    transform: translate3d(7px, -12px, 0) rotate(9deg);
  }
}

@media (max-width: 1024px) {
  .glow-home-product-card {
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  }

  .glow-home-product-card h3 {
    min-height: 62px;
    font-size: 22px;
  }

  .glow-card-order-form,
  .glow-home-product-card__actions {
    grid-template-columns: 1fr;
  }

  .glow-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .glow-footer-brand-card {
    grid-column: 1 / -1;
  }

}

@media (max-width: 900px) {
  .glow-home-products-grid {
    width: min(100%, 680px);
    grid-template-columns: 1fr;
    margin-inline: auto;
  }

  .glow-home-product-card__media {
    min-height: 0;
  }

  .glow-home-product-card h3,
  .glow-home-product-card__body > p {
    min-height: 0;
  }

  .glow-card-order-form {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .glow-home-product-card__actions {
    grid-template-columns: minmax(125px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 700px) {
  .glow-hero-graphic--three {
    display: none;
  }

  .glow-home-product-card {
    grid-template-columns: minmax(185px, 0.82fr) minmax(0, 1.18fr);
    border-radius: 24px;
  }

  .glow-home-product-card__body {
    padding: 19px;
  }

  .glow-card-order-form,
  .glow-home-product-card__actions {
    grid-template-columns: 1fr;
  }

  .glow-gallery-new {
    top: 12px;
    left: 12px;
    padding: 6px 9px;
  }

  .glow-footer-main {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .glow-footer-brand-card {
    grid-column: auto;
    text-align: center;
  }

  .glow-footer-v3 .glow-footer-logo-window {
    margin-inline: auto;
  }

  .glow-footer-brand-actions {
    justify-content: center;
  }

  .glow-footer-links {
    gap: 20px;
  }

  .glow-footer-v3 .glow-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .glow-footer-orbit {
    display: none;
  }

  .glow-back-to-top {
    right: auto;
    left: 18px;
    bottom: 16px;
  }
}

@media (max-width: 600px) {
  .glow-home-product-card {
    grid-template-columns: 1fr;
  }

  .glow-home-product-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-left: 0;
    border-bottom: 1px solid rgba(143, 24, 56, 0.09);
  }

  .glow-home-product-card__media img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 420px) {
  .glow-home-product-card__media {
    min-height: 0;
  }

  .glow-home-product-card__price {
    top: 14px;
    right: 14px;
  }

  .glow-home-product-card__label {
    top: 14px;
    left: 14px;
  }

  .glow-home-product-card__status {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .glow-home-product-card h3 {
    min-height: 0;
    font-size: 25px;
  }

  .glow-footer-links {
    grid-template-columns: 1fr;
  }

  .glow-footer-v3 .glow-footer-logo-window {
    width: 260px;
    height: 194px;
  }

  .glow-footer-v3 .glow-footer-logo-window img {
    width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-hero-halo,
  .glow-footer-orbit {
    animation: none !important;
  }

  .glow-scroll-progress span {
    transition: none;
  }
}
