﻿/* index2-only repair for the reference footer, search placement, and circular 3D carousel. */
html,
body.reference-header-enabled {
  overflow-x: hidden !important;
}

/* Footer navigation must not inherit the sticky header treatment. */
body.reference-header-enabled .premium-site-footer nav.premium-footer-col {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-height: 350px !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid #e4ddd8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

.premium-site-footer {
  margin-top: 28px !important;
  color: #302a27 !important;
  background: #fbf8f5 !important;
  background-image: none !important;
  border-top: 1px solid #eee5df !important;
}

.premium-site-footer::before {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,244,240,.55)) !important;
  opacity: 1 !important;
}

.premium-site-footer-inner {
  max-width: 1720px !important;
  padding: 28px clamp(30px, 4.6vw, 86px) 0 !important;
}

.premium-footer-main {
  display: grid !important;
  grid-template-columns: minmax(270px, 1.25fr) repeat(3, minmax(170px, .78fr)) minmax(300px, 1.2fr) !important;
  gap: clamp(18px, 1.8vw, 34px) !important;
  align-items: start !important;
}

.premium-footer-brand,
.premium-footer-col {
  min-height: 350px !important;
}

.premium-footer-brand {
  padding: 0 !important;
  text-align: center !important;
}

.premium-footer-col {
  padding-left: clamp(18px, 1.7vw, 30px) !important;
  border-left: 1px solid #e4ddd8 !important;
}

.premium-footer-logo {
  width: min(225px, 78%) !important;
  max-height: 135px !important;
  margin: 0 auto 2px !important;
  object-fit: contain !important;
  filter: none !important;
}

.premium-footer-since {
  margin: 3px 0 14px !important;
  color: #bd222c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .78rem !important;
  letter-spacing: .28em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.premium-footer-copy {
  max-width: 300px !important;
  margin: 0 auto !important;
  color: #37312e !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .82rem !important;
  line-height: 1.48 !important;
}

.premium-footer-heading {
  margin: 0 0 10px !important;
  color: #b7202a !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

.premium-footer-heading::after {
  width: 82px !important;
  height: 4px !important;
  margin-top: 5px !important;
  border-top: 0 !important;
  background: linear-gradient(90deg, rgba(198,43,52,.28), rgba(198,43,52,.08)) !important;
}

.premium-footer-list li {
  border-bottom: 1px dotted #e4ddd8 !important;
}

.premium-footer-link {
  min-height: 34px !important;
  gap: 8px !important;
  padding: 0 !important;
  color: #302a27 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .82rem !important;
}

.premium-footer-link:hover {
  color: #b7202a !important;
  transform: translateX(3px) !important;
}

.premium-footer-icon,
.premium-footer-arrow {
  width: 24px !important;
  height: 24px !important;
  color: #c62b34 !important;
  font-size: .88rem !important;
  border-color: #d86a71 !important;
  box-shadow: none !important;
}

.premium-contact-list {
  gap: 9px !important;
  margin-top: 10px !important;
}

.premium-contact-item {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding-bottom: 10px !important;
  color: #302a27 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .78rem !important;
  line-height: 1.3 !important;
  border-bottom: 1px dotted #e4ddd8 !important;
}

.premium-contact-icon,
.premium-contact-icon.material-symbols-outlined {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  color: #c62b34 !important;
  font-size: 19px !important;
  line-height: 1 !important;
  border: 1px solid #d86a71 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.premium-site-footer a.premium-contact-item,
.premium-site-footer a.premium-contact-item > span {
  color: #302a27 !important;
}

.premium-footer-bakery-art,
.premium-love-note,
.premium-footer-badges {
  display: none !important;
}

.premium-footer-bottom {
  width: 100% !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 9px clamp(30px, 4.6vw, 46px) !important;
  color: #fff !important;
  background: #b7202a !important;
  border-top: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .72rem !important;
  line-height: 1.2 !important;
}

.premium-footer-bottom > *,
.premium-footer-tagline {
  color: #fff !important;
}

/* Restore the Best Sellers section to a real circular 3D ring. */
#home-view .hero-shell {
  min-height: 0 !important;
  padding: clamp(54px, 6vw, 78px) 0 clamp(42px, 5vw, 66px) !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fffaf5 0%, #fff9f2 100%) !important;
}

#home-view .hero-stage {
  width: 100% !important;
  min-height: 600px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 26px !important;
  overflow: clip !important;
  perspective: 2000px !important;
  perspective-origin: 50% 50% !important;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

#home-view .hero-stage.is-dragging {
  cursor: grabbing !important;
}

#home-view .slider {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: 250px !important;
  height: 360px !important;
  display: block !important;
  flex: none !important;
  gap: 0 !important;
  padding: 0 !important;
  transform: rotateY(0deg);
  transform-style: preserve-3d !important;
  animation: none !important;
  transition: none !important;
  will-change: transform !important;
  pointer-events: auto !important;
}

#home-view .slider-item {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  cursor: pointer !important;
}

#home-view .slider-item:nth-child(1)  { transform: rotateY(0deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(2)  { transform: rotateY(30deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(3)  { transform: rotateY(60deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(4)  { transform: rotateY(90deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(5)  { transform: rotateY(120deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(6)  { transform: rotateY(150deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(7)  { transform: rotateY(180deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(8)  { transform: rotateY(210deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(9)  { transform: rotateY(240deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(10) { transform: rotateY(270deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(11) { transform: rotateY(300deg) translateZ(var(--ring-depth)) !important; }
#home-view .slider-item:nth-child(12) { transform: rotateY(330deg) translateZ(var(--ring-depth)) !important; }

#home-view .carousel-card-media {
  width: 100% !important;
  height: 300px !important;
  display: block !important;
  overflow: hidden !important;
  border: 4px solid rgba(255,255,255,.92) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(74,44,33,.18) !important;
}

#home-view .carousel-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  transform: none !important;
  transition: transform 280ms ease !important;
}

#home-view .slider-item:hover .carousel-card-media img {
  transform: scale(1.025) !important;
}

#home-view .product-text-overlay {
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 10px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(245,230,202,.34) !important;
  border-radius: 999px !important;
  background: rgba(75,56,50,.95) !important;
  color: #fffaf5 !important;
  box-shadow: 0 10px 22px rgba(75,56,50,.14) !important;
  font-size: .82rem !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-shadow: none !important;
}

@media (max-width: 1180px) {
  body.reference-header-enabled .premium-site-footer nav.premium-footer-col,
  .premium-footer-brand,
  .premium-footer-col {
    min-height: 0 !important;
  }

  .premium-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px !important;
  }

  :root { --ring-depth: 360px; }
  #home-view .hero-stage { min-height: 520px !important; }
}

@media (max-width: 680px) {
  .premium-site-footer-inner { padding: 22px 18px 0 !important; }
  .premium-footer-main { grid-template-columns: 1fr !important; gap: 12px !important; }
  body.reference-header-enabled .premium-site-footer nav.premium-footer-col,
  .premium-footer-col { padding: 14px 0 0 !important; border-left: 0 !important; border-top: 1px solid #e4ddd8 !important; }
  .premium-footer-logo { width: min(190px, 64%) !important; }
  .premium-footer-copy { max-width: 300px !important; }
  .premium-footer-bottom { justify-content: center !important; flex-wrap: wrap !important; text-align: center !important; }

  :root { --ring-depth: 210px; }
  #home-view .hero-stage { min-height: 430px !important; }
  #home-view .slider { width: 168px !important; height: 306px !important; }
  #home-view .carousel-card-media { height: 250px !important; border-radius: 15px !important; }
  #home-view .product-text-overlay { min-height: 40px !important; font-size: .68rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  #home-view .slider,
  #home-view .slider-item { animation: none !important; }
  #home-view .hero-stage { overflow: clip !important; }
}

