/*
 * Sweet BakeArt — unified site upgrade
 * Final public-page layer: one header system, compact responsive heroes,
 * clean link interactions and restrained premium motion.
 */

:root {
  --site-header-h: 104px;
  --site-logo-size: 100px;
  --site-gutter: clamp(18px, 4vw, 42px);
  --site-maroon: #852d38;
  --site-link: #8c3e49;
  --site-rose: #f5c5d9;
  --site-blue: #c5dbe9;
  --site-ease: cubic-bezier(.2,.72,.2,1);

  /* Feed the legacy high-specificity geometry rules the new unified values. */
  --final-header-height: var(--site-header-h);
  --final-logo-size: var(--site-logo-size);
  --final-page-gutter: var(--site-gutter);
}

/* --------------------------------------------------------------------------
   One header geometry everywhere
   -------------------------------------------------------------------------- */
body.page-index header.navbar,
body.page-about header.navbar,
body.page-shop header.navbar,
body.page-gallery header.navbar,
body.page-contact header.navbar,
body.page-product header.navbar,
body.page-cart header.navbar,
body.page-index header.navbar.scrolled,
body.page-about header.navbar.scrolled,
body.page-shop header.navbar.scrolled,
body.page-gallery header.navbar.scrolled,
body.page-contact header.navbar.scrolled,
body.page-product header.navbar.scrolled,
body.page-cart header.navbar.scrolled,
body.page-index header.navbar.polish-scrolled,
body.page-about header.navbar.polish-scrolled,
body.page-shop header.navbar.polish-scrolled,
body.page-gallery header.navbar.polish-scrolled,
body.page-contact header.navbar.polish-scrolled,
body.page-product header.navbar.polish-scrolled,
body.page-cart header.navbar.polish-scrolled {
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--site-header-h) !important;
  min-height: var(--site-header-h) !important;
  overflow: visible !important;
  z-index: 3000 !important;
}

body.page-index header.navbar:not(.polish-scrolled),
body.page-about header.navbar:not(.polish-scrolled),
body.page-shop header.navbar:not(.polish-scrolled),
body.page-gallery header.navbar:not(.polish-scrolled),
body.page-contact header.navbar:not(.polish-scrolled) {
  position: absolute !important;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-product header.navbar:not(.polish-scrolled),
body.page-cart header.navbar:not(.polish-scrolled) {
  position: absolute !important;
  background: rgba(255,250,251,.94) !important;
  border-bottom: 1px solid rgba(133,45,56,.08) !important;
  box-shadow: 0 12px 36px rgba(72,34,48,.08) !important;
  backdrop-filter: blur(16px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.05) !important;
}

header.navbar.polish-scrolled {
  position: fixed !important;
  background: rgba(255,250,251,.92) !important;
  border-bottom: 1px solid rgba(133,45,56,.09) !important;
  box-shadow: 0 14px 38px rgba(72,34,48,.10) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

header.navbar .nav-container,
header.navbar.scrolled .nav-container,
header.navbar.polish-scrolled .nav-container,
body.page-index header.navbar .nav-container,
body.page-about header.navbar .nav-container,
body.page-shop header.navbar .nav-container,
body.page-gallery header.navbar .nav-container,
body.page-contact header.navbar .nav-container,
body.page-product header.navbar .nav-container,
body.page-cart header.navbar .nav-container {
  position: relative !important;
  width: min(1200px, calc(100% - 40px)) !important;
  max-width: 1200px !important;
  height: var(--site-header-h) !important;
  min-height: var(--site-header-h) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  box-sizing: border-box !important;
}

header.navbar .logo,
header.navbar.scrolled .logo,
header.navbar.polish-scrolled .logo {
  position: relative !important;
  inset: auto !important;
  width: var(--site-logo-size) !important;
  height: var(--site-logo-size) !important;
  min-width: var(--site-logo-size) !important;
  min-height: var(--site-logo-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--site-logo-size) !important;
  z-index: 2 !important;
}

header.navbar .logo img,
header.navbar.scrolled .logo img,
header.navbar.polish-scrolled .logo img {
  width: var(--site-logo-size) !important;
  height: var(--site-logo-size) !important;
  max-width: var(--site-logo-size) !important;
  max-height: var(--site-logo-size) !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  transform: none !important;
  filter: drop-shadow(0 8px 18px rgba(81,38,52,.12)) !important;
}

header.navbar nav.nav-links {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(.3rem, 1vw, .75rem) !important;
  transform: translate(-50%, -50%) !important;
}

/* Clean text-only hover: removes both the oval and rectangular glass layers. */
header.navbar .nav-links a,
header.navbar .nav-links a:hover,
header.navbar .nav-links a:focus-visible,
header.navbar .nav-links a.active {
  position: relative !important;
  padding: .55rem .5rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--site-link) !important;
  text-shadow: 0 1px 10px rgba(255,255,255,.28) !important;
  transform: none !important;
  transition: color .22s ease, opacity .22s ease !important;
}

header.navbar .nav-links a::before {
  content: none !important;
  display: none !important;
}

header.navbar .nav-links a::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: .22rem !important;
  width: 0 !important;
  height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, var(--site-maroon), var(--site-rose)) !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  transition: width .25s var(--site-ease) !important;
}

header.navbar .nav-links a:hover,
header.navbar .nav-links a:focus-visible,
header.navbar .nav-links a.active {
  color: var(--site-maroon) !important;
}

header.navbar .nav-links a:hover::after,
header.navbar .nav-links a:focus-visible::after {
  width: 72% !important;
}

header.navbar .nav-links a.active::after {
  width: 58% !important;
}

header.navbar .nav-right,
header.navbar.scrolled .nav-right,
header.navbar.polish-scrolled .nav-right {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .65rem !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

header.navbar .cart-icon,
header.navbar .menu-toggle {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 50% !important;
}

/* --------------------------------------------------------------------------
   Consistent hero sizing and glass-panel alignment
   -------------------------------------------------------------------------- */
.hero-wrapper,
body.page-index > div[style*="position:relative"] {
  position: relative !important;
  overflow: hidden !important;
}

body.page-index .hero {
  height: clamp(650px, 90svh, 840px) !important;
  min-height: 650px !important;
}

body.page-about .hero,
body.page-shop .hero,
body.page-gallery .hero,
body.page-contact .hero {
  height: clamp(500px, 66svh, 620px) !important;
  min-height: 500px !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: calc(var(--site-header-h) + 24px) var(--site-gutter) 42px !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
}

body.page-index .hero-content,
body.page-about .hero-content,
body.page-shop .hero-content,
body.page-gallery .hero-content,
body.page-contact .hero-content,
.hero-content {
  position: relative !important;
  z-index: 5 !important;
  width: min(100%, 780px) !important;
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: clamp(1.45rem, 3vw, 2.35rem) clamp(1.2rem, 4vw, 3rem) !important;
  border: 1px solid rgba(255,255,255,.68) !important;
  border-radius: clamp(22px, 3vw, 32px) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.49), rgba(255,255,255,.22)) !important;
  box-shadow: 0 28px 70px rgba(78,39,52,.15), inset 0 1px 0 rgba(255,255,255,.72) !important;
  backdrop-filter: blur(12px) saturate(1.07) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.07) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  transform: none !important;
  animation: siteHeroPanelIn .72s var(--site-ease) both !important;
}

body.page-about .hero-content,
body.page-shop .hero-content,
body.page-gallery .hero-content,
body.page-contact .hero-content {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
}

/* Subtle animated light sweep on the top glass panel. */
.hero-content::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -90% !important;
  left: -35% !important;
  width: 34% !important;
  height: 270% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent) !important;
  opacity: .72 !important;
  transform: rotate(18deg) !important;
  animation: siteGlassSweep 8.5s ease-in-out 1.2s infinite !important;
  pointer-events: none !important;
}

.hero-content::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: radial-gradient(circle at 12% 12%, rgba(255,255,255,.28), transparent 28%),
              radial-gradient(circle at 92% 84%, rgba(197,219,233,.16), transparent 28%) !important;
  pointer-events: none !important;
}

.hero-title {
  margin-top: 0 !important;
  line-height: 1.06 !important;
}

.hero-subtitle {
  max-width: 650px !important;
  margin-inline: auto !important;
  line-height: 1.58 !important;
}

@keyframes siteHeroPanelIn {
  from { opacity: 0; transform: translate3d(0,16px,0) scale(.992); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@keyframes siteGlassSweep {
  0%, 62% { left: -42%; opacity: 0; }
  70% { opacity: .72; }
  86% { left: 118%; opacity: .38; }
  100% { left: 118%; opacity: 0; }
}

/* Utility pages start directly below the shared header. */
body.page-cart .cart-page {
  padding-top: calc(var(--site-header-h) + 24px) !important;
}

body.page-product .product-detail-section {
  padding-top: calc(var(--site-header-h) + 24px) !important;
}

/* --------------------------------------------------------------------------
   Tablet and mobile: compact first screen, unchanged responsive flow
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --site-header-h: 82px;
    --site-logo-size: 66px;
    --site-gutter: clamp(14px, 3.5vw, 24px);
  }

  header.navbar .nav-container,
  header.navbar.scrolled .nav-container,
  header.navbar.polish-scrolled .nav-container,
  body.page-index header.navbar .nav-container,
  body.page-about header.navbar .nav-container,
  body.page-shop header.navbar .nav-container,
  body.page-gallery header.navbar .nav-container,
  body.page-contact header.navbar .nav-container,
  body.page-product header.navbar .nav-container,
  body.page-cart header.navbar .nav-container {
    width: calc(100% - 24px) !important;
    max-width: 820px !important;
    margin-inline: auto !important;
  }

  header.navbar nav.nav-links {
    display: none !important;
  }

  header.navbar .logo,
  header.navbar.scrolled .logo,
  header.navbar.polish-scrolled .logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    inset: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  header.navbar .nav-right,
  header.navbar.scrolled .nav-right,
  header.navbar.polish-scrolled .nav-right {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
  }

  header.navbar .nav-right > * {
    pointer-events: auto !important;
  }

  header.navbar .menu-toggle {
    display: inline-flex !important;
  }

  body.page-index .hero {
    height: clamp(530px, 76svh, 620px) !important;
    min-height: 530px !important;
  }

  body.page-about .hero,
  body.page-shop .hero,
  body.page-gallery .hero,
  body.page-contact .hero {
    height: clamp(420px, 62svh, 500px) !important;
    min-height: 420px !important;
  }

  .hero-overlay {
    padding: calc(var(--site-header-h) + 14px) var(--site-gutter) 24px !important;
  }

  body.page-index .hero-content,
  body.page-about .hero-content,
  body.page-shop .hero-content,
  body.page-gallery .hero-content,
  body.page-contact .hero-content,
  .hero-content {
    width: min(100%, 700px) !important;
    max-width: 700px !important;
    padding: 1.35rem clamp(1rem, 4vw, 1.65rem) !important;
    border-radius: 22px !important;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(.95rem, 2.5vw, 1.08rem) !important;
    margin-bottom: 1.05rem !important;
  }

  .drawer-panel {
    width: min(88vw, 350px) !important;
    height: 100dvh !important;
    background: rgba(255,250,251,.94) !important;
    box-shadow: -24px 0 70px rgba(54,25,35,.2) !important;
    backdrop-filter: blur(20px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.05) !important;
  }

  .drawer-links a,
  .drawer-links a:hover,
  .drawer-links a:focus-visible {
    border-radius: 14px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --site-header-h: 76px;
    --site-logo-size: 60px;
    --site-gutter: 13px;
  }

  header.navbar .cart-icon,
  header.navbar .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }

  body.page-index .hero {
    height: clamp(510px, 72svh, 580px) !important;
    min-height: 510px !important;
  }

  body.page-about .hero,
  body.page-shop .hero,
  body.page-gallery .hero,
  body.page-contact .hero {
    height: clamp(390px, 58svh, 455px) !important;
    min-height: 390px !important;
  }

  .hero-overlay {
    padding-top: calc(var(--site-header-h) + 10px) !important;
    padding-bottom: 18px !important;
  }

  body.page-index .hero-content,
  body.page-about .hero-content,
  body.page-shop .hero-content,
  body.page-gallery .hero-content,
  body.page-contact .hero-content,
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.15rem .95rem !important;
    border-radius: 18px !important;
  }

  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.55rem) !important;
  }

  .hero-title::after {
    margin-top: .55rem !important;
  }

  .hero-subtitle {
    font-size: .94rem !important;
    line-height: 1.5 !important;
    margin-bottom: .9rem !important;
  }

  .hero-kicker {
    margin-bottom: .65rem !important;
  }

  .hero-actions {
    gap: .55rem !important;
  }

  .hero-actions .btn,
  .hero-actions .btn-hero,
  .hero-actions .btn-hero-ghost {
    min-height: 42px !important;
    padding-top: .68rem !important;
    padding-bottom: .68rem !important;
  }

  body.page-cart .cart-page,
  body.page-product .product-detail-section {
    padding-top: calc(var(--site-header-h) + 18px) !important;
  }
}

@media (max-width: 380px) {
  :root {
    --site-header-h: 72px;
    --site-logo-size: 56px;
  }

  body.page-index .hero {
    height: 500px !important;
    min-height: 500px !important;
  }

  body.page-about .hero,
  body.page-shop .hero,
  body.page-gallery .hero,
  body.page-contact .hero {
    height: 380px !important;
    min-height: 380px !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 9.5vw, 2.2rem) !important;
  }

  .hero-content {
    padding: 1rem .82rem !important;
  }
}

@media (max-width: 860px) and (max-height: 620px) and (orientation: landscape) {
  :root {
    --site-header-h: 68px;
    --site-logo-size: 54px;
  }

  body.page-index .hero,
  body.page-about .hero,
  body.page-shop .hero,
  body.page-gallery .hero,
  body.page-contact .hero {
    height: 500px !important;
    min-height: 500px !important;
  }

  .hero-overlay {
    padding-top: calc(var(--site-header-h) + 8px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-content::before {
    animation: none !important;
  }
}

/* Beat legacy page-level inline logo rules without changing page markup. */
body.page-index header.navbar .logo,
body.page-about header.navbar .logo,
body.page-shop header.navbar .logo,
body.page-gallery header.navbar .logo,
body.page-contact header.navbar .logo,
body.page-product header.navbar .logo,
body.page-cart header.navbar .logo,
body.page-index header.navbar.scrolled .logo,
body.page-about header.navbar.scrolled .logo,
body.page-shop header.navbar.scrolled .logo,
body.page-gallery header.navbar.scrolled .logo,
body.page-contact header.navbar.scrolled .logo,
body.page-product header.navbar.scrolled .logo,
body.page-cart header.navbar.scrolled .logo,
body.page-index header.navbar.polish-scrolled .logo,
body.page-about header.navbar.polish-scrolled .logo,
body.page-shop header.navbar.polish-scrolled .logo,
body.page-gallery header.navbar.polish-scrolled .logo,
body.page-contact header.navbar.polish-scrolled .logo,
body.page-product header.navbar.polish-scrolled .logo,
body.page-cart header.navbar.polish-scrolled .logo {
  width: var(--site-logo-size) !important;
  height: var(--site-logo-size) !important;
  min-width: var(--site-logo-size) !important;
  min-height: var(--site-logo-size) !important;
  flex-basis: var(--site-logo-size) !important;
}

body.page-index header.navbar .logo img,
body.page-about header.navbar .logo img,
body.page-shop header.navbar .logo img,
body.page-gallery header.navbar .logo img,
body.page-contact header.navbar .logo img,
body.page-product header.navbar .logo img,
body.page-cart header.navbar .logo img,
body.page-index header.navbar.scrolled .logo img,
body.page-about header.navbar.scrolled .logo img,
body.page-shop header.navbar.scrolled .logo img,
body.page-gallery header.navbar.scrolled .logo img,
body.page-contact header.navbar.scrolled .logo img,
body.page-product header.navbar.scrolled .logo img,
body.page-cart header.navbar.scrolled .logo img,
body.page-index header.navbar.polish-scrolled .logo img,
body.page-about header.navbar.polish-scrolled .logo img,
body.page-shop header.navbar.polish-scrolled .logo img,
body.page-gallery header.navbar.polish-scrolled .logo img,
body.page-contact header.navbar.polish-scrolled .logo img,
body.page-product header.navbar.polish-scrolled .logo img,
body.page-cart header.navbar.polish-scrolled .logo img {
  width: var(--site-logo-size) !important;
  height: var(--site-logo-size) !important;
  min-width: var(--site-logo-size) !important;
  min-height: var(--site-logo-size) !important;
  max-width: var(--site-logo-size) !important;
  max-height: var(--site-logo-size) !important;
}


/* ========================================================================== 
   August 2026 finishing patch
   - precise Discover Our Treats alignment
   - borderless premium benefit icons with controlled motion
   ========================================================================== */

/* Every category card uses the same internal rows. This prevents a heading
   from appearing a few pixels lower because another description wraps
   differently. */
body.page-index .features .feature-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  grid-auto-rows: auto !important;
}

body.page-index .features .feature-card {
  /* Restore the original premium vertical card composition: image first,
     then the complete heading, description and CTA underneath. */
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: clamp(230px, 22vw, 310px) minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

body.page-index .features .feature-card .media {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  overflow: hidden !important;
}

body.page-index .features .feature-card .media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

body.page-index .features .feature-card .tag {
  top: 12px !important;
  left: 12px !important;
  min-height: 34px;
  display: inline-flex !important;
  align-items: center !important;
  gap: .42rem;
  line-height: 1 !important;
  white-space: nowrap;
}

body.page-index .features .feature-card .content {
  display: grid !important;
  grid-template-rows: minmax(1.7em, auto) 1fr auto !important;
  align-content: stretch !important;
  justify-content: initial !important;
  gap: .72rem !important;
  padding: 1.35rem 1.4rem !important;
  text-align: left !important;
  min-width: 0 !important;
  height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

body.page-index .features .feature-card .content h3 {
  align-self: start;
  min-height: 1.55em;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

body.page-index .features .feature-card .content p {
  align-self: start;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-index .features .feature-card .content h3,
body.page-index .features .feature-card .content p,
body.page-index .features .feature-card .content .btn {
  opacity: 1 !important;
  visibility: visible !important;
}

body.page-index .features .feature-card .content .btn {
  align-self: end !important;
  justify-self: start;
  margin-top: .25rem !important;
}

/* The three benefit items no longer sit inside white boxes. Their hierarchy
   is created with spacing, subtle separators and animated line-art icons. */
.about-features {
  position: relative;
  align-items: stretch;
}

.about-feature-item,
.about-feature-item:hover {
  position: relative;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  padding: clamp(1.35rem, 2.8vw, 2.25rem) clamp(1.1rem, 2.4vw, 1.8rem) !important;
}

.about-feature-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16%;
  right: calc(var(--about-feature-gap, 1.4rem) / -2);
  width: 1px;
  height: 68%;
  background: linear-gradient(180deg, transparent, rgba(133,45,56,.25), transparent);
}

.about-feature-item i {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 76px !important;
  height: 76px !important;
  margin: 0 auto 1rem !important;
  display: inline-grid !important;
  place-items: center;
  color: var(--primary, #852d38) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50%;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 14px rgba(133,45,56,.18));
  transition: transform .55s cubic-bezier(.22,1,.36,1), filter .45s ease !important;
}

.about-feature-item i::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0 18%,
    rgba(168,116,118,.18) 27%,
    rgba(133,45,56,.72) 45%,
    rgba(212,193,199,.30) 62%,
    transparent 78% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  /* Rest by default; it performs one full orbit whenever the feature is hovered. */
  animation: none;
  transform: rotate(0deg);
  transform-origin: center;
  opacity: .9;
}

.about-feature-item h3 {
  margin-top: 0 !important;
  transition: color .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

@keyframes sweetBakeIconHoverOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine) {
  .about-feature-item:hover i::after {
    animation: sweetBakeIconHoverOrbit .9s cubic-bezier(.45, 0, .2, 1) 1;
  }

  .about-feature-item:hover i {
    transform: translateY(-7px) scale(1.06) rotate(-3deg) !important;
    filter: drop-shadow(0 16px 20px rgba(133,45,56,.24));
  }

  .about-feature-item:hover h3 {
    color: var(--primary, #852d38);
    transform: translateY(-2px);
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body.page-index .features .feature-grid {
    /* Preserve the existing one-card-per-row tablet alignment; only the
       card internals change back to image-above/text-below. */
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-index .features .feature-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(260px, 34vw, 340px) minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  body.page-index .features .feature-grid {
    grid-template-columns: 1fr !important;
  }

  body.page-index .features .feature-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(205px, 58vw, 270px) minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  body.page-index .features .feature-card .media,
  body.page-index .features .feature-card .media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  body.page-index .features .feature-card .content {
    grid-template-rows: auto auto auto !important;
    text-align: center !important;
    align-items: center !important;
  }

  body.page-index .features .feature-card .content .btn {
    justify-self: center;
  }

  .about-feature-item:not(:last-child)::after {
    top: auto;
    right: 12%;
    bottom: 0;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(133,45,56,.25), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-feature-item i::after {
    animation: none !important;
  }
  .about-feature-item i,
  .about-feature-item h3 {
    transition: none !important;
  }
}

/* ========================================================================== 
   August 2026 final benefits/button refinement
   - remove the glass panels behind the three Why Choose benefits
   - centre their icons precisely
   - ensure the Chocolate Sculptures CTA is fully readable
   ========================================================================== */
body.page-index .why-us .why-card,
body.page-index .why-us .why-card:hover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  text-align: center !important;
  padding: 1.45rem 1.25rem !important;
}

body.page-index .why-us .why-card::before {
  content: none !important;
  display: none !important;
}

body.page-index .why-us .why-icon {
  display: grid !important;
  place-items: center !important;
  width: 3.4rem !important;
  height: 3.4rem !important;
  margin: 0 auto 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

body.page-index .why-us .why-icon i {
  display: block !important;
  margin: 0 !important;
  line-height: 1 !important;
}

body.page-index .features .feature-card .content .btn[href*="chocolate-sculptures"] {
  width: auto !important;
  min-width: min(100%, 270px) !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding-inline: 1.15rem !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center !important;
  justify-content: center !important;
}

@media (max-width: 420px) {
  body.page-index .features .feature-card .content .btn[href*="chocolate-sculptures"] {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: .85rem !important;
    font-size: .84rem !important;
  }
}

/* ========================================================================== 
   Mobile benefit icon motion
   Touch devices do not have hover, so the six ingredient/craft/gifting icons
   receive a restrained staggered showcase animation instead.
   ========================================================================== */
@keyframes sweetBakeMobileIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter: drop-shadow(0 10px 14px rgba(133,45,56,.16));
  }
  28% {
    transform: translateY(-7px) scale(1.055) rotate(-2deg);
    filter: drop-shadow(0 17px 22px rgba(133,45,56,.28));
  }
  52% {
    transform: translateY(-2px) scale(1.02) rotate(1.5deg);
    filter: drop-shadow(0 13px 18px rgba(133,45,56,.22));
  }
  72% {
    transform: translateY(-5px) scale(1.04) rotate(-1deg);
    filter: drop-shadow(0 15px 20px rgba(133,45,56,.25));
  }
}

@keyframes sweetBakeMobileIconOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sweetBakeMobileIconHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(133,45,56,.03), inset 0 0 0 1px rgba(255,255,255,.72); }
  50% { box-shadow: 0 13px 28px rgba(133,45,56,.13), 0 0 0 8px rgba(133,45,56,.035), inset 0 0 0 1px rgba(255,255,255,.92); }
}

@media (max-width: 760px) and (hover: none),
       (max-width: 760px) and (pointer: coarse) {
  .about-feature-item i {
    width: 80px !important;
    height: 80px !important;
    background:
      radial-gradient(circle at 35% 28%, rgba(255,255,255,.98), rgba(248,238,240,.76) 58%, rgba(232,207,212,.42) 100%) !important;
    border: 1px solid rgba(133,45,56,.12) !important;
    animation:
      sweetBakeMobileIconFloat 4.8s cubic-bezier(.45,0,.2,1) infinite,
      sweetBakeMobileIconHalo 4.8s ease-in-out infinite;
    will-change: transform, filter;
  }

  .about-feature-item i::after {
    inset: -5px;
    opacity: .95;
    animation: sweetBakeMobileIconOrbit 5.8s linear infinite !important;
    will-change: transform;
  }

  .about-feature-item:nth-child(2) i,
  .about-feature-item:nth-child(2) i::after {
    animation-delay: -1.6s !important;
  }

  .about-feature-item:nth-child(3) i,
  .about-feature-item:nth-child(3) i::after {
    animation-delay: -3.2s !important;
  }

  .about-feature-item h3 {
    transition: color .35s ease, letter-spacing .35s ease !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-feature-item i,
  .about-feature-item i::after {
    animation: none !important;
  }
}
