:root {
  --aromatica-forest: #173b34;
  --aromatica-amber: #a66d3b;
  --aromatica-parchment: #f8f6ef;
  --aromatica-sage: #edf0e8;
  --aromatica-border: rgba(23, 59, 52, .14);
}

/* ===== Shared product layout ===== */
.single-product .aromatica-product-container {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.aromatica-product-breadcrumb { margin: 24px 0 20px; font-size: 12px; color: rgba(23, 59, 52, .62); }
.aromatica-breadcrumb-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.aromatica-product-layout { display: block; }
.aromatica-product-gallery, .aromatica-product-summary { width: auto !important; float: none !important; }
.aromatica-product-summary { margin-top: 24px; }
.aromatica-product-identity { margin: 10px 0 0; color: rgba(23, 59, 52, .62); font-size: 14px; }

.aromatica-scent-profile { margin: 24px 0; padding: 20px; border: 1px solid var(--aromatica-border); background: var(--aromatica-sage); }
.aromatica-eyebrow { margin: 0 0 8px; color: var(--aromatica-amber); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.aromatica-scent-profile h2 { margin: 0; color: var(--aromatica-forest); font-size: 20px; }
.aromatica-scent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aromatica-scent-chips span { padding: 6px 10px; border: 1px solid rgba(23,59,52,.2); border-radius: 999px; color: var(--aromatica-forest); font-size: 12px; }
.aromatica-scent-notes { margin: 14px 0 0; color: rgba(23,59,52,.72); line-height: 1.7; }
.aromatica-purchase-trust { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 0; color: rgba(23,59,52,.7); font-size: 12px; }
.aromatica-purchase-trust span::before { content: '✓ '; color: var(--aromatica-amber); }
.aromatica-purchase-trust a { color: var(--aromatica-forest); text-underline-offset: 3px; }

.aromatica-product-details { margin-top: 48px; }
.aromatica-accordion { border-top: 1px solid var(--aromatica-border); }
.aromatica-accordion:last-child { border-bottom: 1px solid var(--aromatica-border); }
.aromatica-accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; cursor: pointer; color: var(--aromatica-forest); font-weight: 600; list-style: none; }
.aromatica-accordion summary::-webkit-details-marker { display: none; }
.aromatica-accordion summary::after { content: '+'; color: var(--aromatica-amber); font-size: 24px; font-weight: 300; }
.aromatica-accordion[open] summary::after { content: '−'; }
.aromatica-accordion__content { padding: 0 0 24px; color: rgba(23,59,52,.78); line-height: 1.8; }
.aromatica-accordion--safety { background: #fff8ef; padding-inline: 16px; }
.aromatica-spec-list { display: grid; grid-template-columns: minmax(110px, .4fr) 1fr; gap: 12px 20px; margin: 0; }
.aromatica-spec-list dt { color: rgba(23,59,52,.55); }
.aromatica-spec-list dd { margin: 0; color: var(--aromatica-forest); }

/* ===== Mobile sticky bar & micro-interactions ===== */
.aromatica-mobile-cart-bar { display: none; }

@media (max-width: 767px) {
  .single-product .aromatica-product-container { width: min(100% - 32px, 600px); }
  .single-product .aromatica-product-gallery { margin-inline: -16px; }
  .single-product .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .single-product .aromatica-product-summary { margin-top: 22px; }
  .single-product .product_title { font-size: clamp(30px, 9vw, 38px); line-height: 1.18; }
  .single-product .aromatica-product-details { margin-top: 32px; padding-bottom: 132px; }

  .aromatica-mobile-cart-bar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--aromatica-border);
    background: rgba(248,246,239,.96);
    box-shadow: 0 -10px 32px rgba(23,59,52,.16);
    backdrop-filter: blur(12px);
    transform: translateY(0);
    transition: transform 200ms cubic-bezier(.23, 1, .32, 1), opacity 180ms ease-out;
  }
  .aromatica-mobile-cart-bar[hidden] { display: none; }
  .aromatica-mobile-cart-bar.is-loading { pointer-events: none; }
  .aromatica-mobile-cart-bar__content { display: flex; max-width: 560px; margin: 0 auto; align-items: center; gap: 12px; }
  .aromatica-mobile-cart-bar__price { min-width: 0; flex: 1; }
  .aromatica-mobile-cart-bar__name { display: block; overflow: hidden; color: rgba(23,59,52,.6); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .aromatica-mobile-cart-bar__amount { display: block; margin-top: 3px; color: var(--aromatica-forest); font-size: 16px; font-weight: 700; }
  .aromatica-mobile-cart-bar__button { min-height: 48px; padding: 0 20px; border: 0; background: var(--aromatica-forest); color: #fff; cursor: pointer; font-size: 14px; letter-spacing: .08em; transition: transform 160ms ease-out, background 160ms ease-out, opacity 160ms ease-out; }
  .aromatica-mobile-cart-bar__button:active { transform: scale(.98); }
  .aromatica-mobile-cart-bar__button:focus-visible { outline: 2px solid var(--aromatica-amber); outline-offset: 3px; }
  .aromatica-mobile-cart-bar__button:hover { background: var(--aromatica-amber); }
  .aromatica-mobile-cart-bar__button:disabled { cursor: not-allowed; opacity: .48; }

  .aromatica-quick-actions { max-width: 560px; margin: 10px auto 0; padding-top: 10px; border-top: 1px solid var(--aromatica-border); }
  .aromatica-quick-actions__message { margin: 0 0 10px; color: var(--aromatica-forest); font-size: 13px; }
  .aromatica-quick-actions__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .aromatica-quick-actions__secondary, .aromatica-quick-actions__primary { display: grid; min-height: 42px; place-items: center; font-size: 13px; text-decoration: none; }
  .aromatica-quick-actions__secondary { border: 1px solid var(--aromatica-forest); color: var(--aromatica-forest); }
  .aromatica-quick-actions__primary { background: var(--aromatica-amber); color: #fff; }
}

/* ===== Tablet/Desktop reflow ===== */
@media (min-width: 768px) {
  .aromatica-product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 40px; align-items: start; }
  .aromatica-product-summary { position: sticky; top: 104px; margin-top: 0; }
  .aromatica-product-details { margin-top: 56px; }
}

@media (min-width: 1024px) {
  .aromatica-product-layout { gap: 72px; }
  .aromatica-product-details { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .aromatica-mobile-cart-bar, .aromatica-mobile-cart-bar__button { transition: none; }
}
