/* =============================================================================
   EONYX LABS — components.css
   Announcement marquee, header + mega-menu, product cards, shop-by-need
   banners, promotional showcase, cart drawer, forms, footer.
   See base.css header comment for the full load-order index.
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. Sliding announcement bar (marquee)
   -------------------------------------------------------------------- */
.covert-marquee {
  background: var(--accent);
  color: var(--accent-contrast);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.covert-marquee__track {
  display: inline-flex;
  align-items: center;
  animation: covert-marquee-scroll 28s linear infinite;
  will-change: transform;
}

.covert-marquee:hover .covert-marquee__track,
.covert-marquee:focus-within .covert-marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .covert-marquee__track {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
  }
}

.covert-marquee__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-6);
}

.covert-marquee__item::after {
  content: '\2022';
  margin-left: var(--space-6);
  opacity: 0.6;
}

@keyframes covert-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -----------------------------------------------------------------------
   2. Header + mega-menu
   -------------------------------------------------------------------- */
.covert-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(15, 24, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.covert-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

.covert-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.covert-logo svg {
  height: 32px;
  width: auto;
  display: block;
}

.covert-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.covert-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.covert-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  position: relative;
}
.covert-nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease-out);
}
.covert-nav-link:hover::after,
.covert-has-mega:hover .covert-nav-link::after,
.covert-has-mega:focus-within .covert-nav-link::after {
  width: 100%;
}

.covert-has-mega {
  position: relative;
}

.covert-mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(900px, 92vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  z-index: var(--z-mega-menu);
}

.covert-has-mega:hover .covert-mega-panel,
.covert-has-mega:focus-within .covert-mega-panel,
.covert-mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.covert-mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-6);
}

.covert-mega-panel__grid li a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.covert-mega-panel__grid li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
}

.covert-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.covert-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.covert-icon-btn:hover {
  background: rgba(255,255,255,0.06);
}
.covert-icon-btn svg {
  width: 22px;
  height: 22px;
}

.covert-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.covert-hamburger {
  display: none;
}

@media (max-width: 1024px) {
  .covert-nav { display: none; }
  .covert-hamburger { display: inline-flex; }
}

/* Mobile menu drawer */
.covert-mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: var(--bg-elevated);
  z-index: var(--z-cart-drawer);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-6);
  border-left: 1px solid var(--border);
}
.covert-mobile-menu.is-open {
  transform: translateX(0);
}
.covert-mobile-menu__close {
  margin-bottom: var(--space-5);
}
.covert-mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.covert-mobile-menu li > a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-md);
  border-bottom: 1px solid var(--border);
}

.covert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out);
}
.covert-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* -----------------------------------------------------------------------
   3. Product card (hover-swap)
   -------------------------------------------------------------------- */
.covert-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .covert-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .covert-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .covert-product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}

.covert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.covert-card:hover,
.covert-card:focus-within {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.covert-card__media {
  position: relative;
  aspect-ratio: 720 / 1112;
  overflow: hidden;
  background: #05070A;
}

.covert-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.covert-card__img--front {
  opacity: 1;
  z-index: 2;
}
.covert-card__img--hover {
  opacity: 0;
  z-index: 1;
  transform: scale(1.04);
}

.covert-card:hover .covert-card__img--front,
.covert-card:focus-within .covert-card__img--front {
  opacity: 0;
}
.covert-card:hover .covert-card__img--hover,
.covert-card:focus-within .covert-card__img--hover {
  opacity: 1;
  transform: scale(1);
}

/* Touch-device fallback: no hover, so surface a small persistent "view"
   affordance instead of relying on :hover (see theme.js tap-to-reveal
   toggle .is-revealed for a second tap-triggered class alternative). */
@media (hover: none) {
  .covert-card__img--hover { display: none; }
  .covert-card__view-affordance { display: inline-flex; }
}
.covert-card__view-affordance {
  display: none;
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  background: rgba(15,24,18,0.85);
  color: var(--fg);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
}

.covert-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  background: rgba(15,24,18,0.85);
  border: 1px solid var(--border-strong);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.covert-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.covert-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.covert-card__name a {
  color: var(--fg);
}
.covert-card__name a:hover {
  color: var(--accent);
}

.covert-card__seq {
  font-size: var(--text-xs);
  color: var(--fg-dim);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.covert-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.covert-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--fg);
}
.covert-card__price del {
  color: var(--fg-dim);
  font-weight: 500;
  margin-right: var(--space-2);
}

.covert-card__add {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.covert-card__add:hover {
  background: #d3e64f;
  transform: translateY(-1px);
}
.covert-card__add.loading {
  opacity: 0.6;
  pointer-events: none;
}
.covert-card__add.added::after {
  content: ' \2713';
}

/* -----------------------------------------------------------------------
   4. Shop-by-need banner grid
   -------------------------------------------------------------------- */
.covert-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1024px) {
  .covert-banner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .covert-banner-grid { grid-template-columns: 1fr; }
}

.covert-banner-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  pointer-events: auto;
  transition: transform var(--dur-base) var(--ease-out);
}
.covert-banner-tile:hover {
  transform: translateY(-4px);
}

.covert-banner-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 0;
}
.covert-banner-tile:hover img {
  transform: scale(1.05);
}

.covert-banner-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,24,18,0.1) 0%, rgba(15,24,18,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.covert-banner-tile::after { pointer-events: none; }

.covert-banner-tile__label {
  position: absolute;
  left: var(--space-4);
  bottom: calc(var(--space-4) + 1.35rem);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.covert-banner-tile__cta {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.covert-banner-tile__arrow {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.covert-banner-tile:hover .covert-banner-tile__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.covert-banner-tile__arrow svg {
  width: 16px;
  height: 16px;
}

/* -----------------------------------------------------------------------
   5. Promotional showcase
   -------------------------------------------------------------------- */
.covert-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 768px) {
  .covert-showcase-grid { grid-template-columns: 1fr; }
}

.covert-showcase-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.covert-showcase-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.covert-showcase-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,24,18,0.85) 0%, rgba(15,24,18,0.15) 65%);
  z-index: 1;
}
.covert-showcase-tile__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  max-width: 60%;
}
.covert-showcase-tile__content h3 {
  margin-bottom: var(--space-3);
}
.covert-showcase-tile__content p {
  color: var(--fg);
  opacity: 0.85;
  margin-bottom: var(--space-4);
}
@media (max-width: 640px) {
  .covert-showcase-tile__content { max-width: 100%; }
}

/* -----------------------------------------------------------------------
   6. Cart drawer
   -------------------------------------------------------------------- */
.covert-cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--bg-elevated);
  z-index: var(--z-cart-drawer);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.covert-cart-drawer.is-open {
  transform: translateX(0);
}
.covert-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.covert-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}
.covert-cart-drawer__footer {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
}
.covert-cart-drawer .widget_shopping_cart_content,
.covert-cart-drawer .woocommerce-mini-cart {
  margin: 0;
}
.covert-cart-drawer .woocommerce-mini-cart-item {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.covert-cart-drawer .woocommerce-mini-cart-item img {
  width: 56px;
  border-radius: var(--radius-sm);
}
.covert-cart-drawer .remove {
  position: absolute;
  top: var(--space-3);
  right: 0;
  color: var(--fg-dim);
}
.covert-cart-drawer .total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.covert-cart-drawer .buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.covert-cart-empty {
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--fg-dim);
}

/* -----------------------------------------------------------------------
   7. Forms (newsletter, contact, WC quantity inputs)
   -------------------------------------------------------------------- */
.covert-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.covert-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
}
.covert-field input,
.covert-field textarea,
.covert-field select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.covert-field input:focus,
.covert-field textarea:focus,
.covert-field select:focus {
  border-color: var(--accent);
  outline: none;
}

.covert-inline-form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.covert-inline-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--fg);
}

.quantity .qty {
  width: 64px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  color: var(--fg);
  text-align: center;
}

/* -----------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------- */
.covert-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-top: var(--space-9);
}

.covert-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
@media (max-width: 1024px) {
  .covert-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .covert-footer__grid { grid-template-columns: 1fr; }
}

.covert-footer__brand .covert-logo svg { height: 30px; margin-bottom: var(--space-4); }
.covert-footer__brand p { max-width: 32ch; }

.footer-widget-title,
.covert-footer h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}

.covert-footer ul li {
  margin-bottom: var(--space-2);
}
.covert-footer ul li a:hover {
  color: var(--accent);
}

.covert-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.covert-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.covert-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.covert-footer__social svg {
  width: 16px;
  height: 16px;
}

.covert-footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--fg-dim);
}

/* -----------------------------------------------------------------------
   11. Collection quick-buy controls + digital fridge
   -------------------------------------------------------------------- */
.covert-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.covert-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.covert-card__image--front { opacity: 1; }
.covert-card__image--hover { opacity: 0; transform: scale(1.035); }

.covert-card__index,
.covert-card__collection,
.covert-card__view {
  position: absolute;
  z-index: 2;
  background: rgba(15, 24, 18, 0.84);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.covert-card__index { top: var(--space-3); left: var(--space-3); padding: 6px 8px; }
.covert-card__collection { top: var(--space-3); right: var(--space-3); padding: 6px 8px; color: var(--collection-color, var(--accent)); border-color: var(--collection-color, var(--border-strong)); box-shadow: 0 0 12px color-mix(in srgb, var(--collection-color, var(--accent)) 42%, transparent); }
.covert-card__view { right: var(--space-3); bottom: var(--space-3); padding: 8px 10px; opacity: 0; transform: translateY(5px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.covert-card:hover .covert-card__view,
.covert-card:focus-within .covert-card__view { opacity: 1; transform: translateY(0); }

.covert-card__body { gap: var(--space-3); }
.covert-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.covert-card__title { margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 1.2vw, 1.25rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.015em; }
.covert-card__title a { color: var(--fg); }
.covert-card__title a:hover { color: var(--accent); }
.covert-card__description { margin: 0; color: var(--fg-dim); font-size: var(--text-xs); line-height: 1.45; min-height: 2.9em; }
.covert-card__sale { flex: 0 0 auto; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.covert-card__price-note { color: var(--fg-dim); font-size: 9px; letter-spacing: 0.08em; text-align: right; text-transform: uppercase; }

.covert-quick-buy {
  width: calc(100% + var(--space-3));
  margin-top: var(--space-1);
  margin-left: calc(var(--space-3) * -0.5);
  padding: var(--space-3);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border: 0;
  border-radius: 14px;
}

.covert-quick-buy__heading,
.covert-quick-buy__summary,
.covert-quick-buy__quantity-row,
.covert-quick-buy__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.covert-quick-buy__heading { margin-bottom: var(--space-3); color: var(--fg); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.covert-quick-buy__heading small { color: var(--fg-dim); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.covert-quick-buy__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.covert-quick-buy__group legend,
.covert-quick-buy__group > label,
.covert-quick-buy__group > span { display: block; margin-bottom: 6px; color: var(--fg-dim); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.covert-quick-buy__variations { display: flex; flex-wrap: wrap; gap: 5px; }
.covert-quick-buy__variation,
.covert-quick-buy__presets button { min-height: 28px; padding: 5px 8px; background: transparent; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--fg-dim); font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.covert-quick-buy__variation:hover,
.covert-quick-buy__variation.is-active,
.covert-quick-buy__presets button:hover,
.covert-quick-buy__presets button.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translateY(-1px); }
.covert-quick-buy__quantity-row { align-items: flex-end; margin-top: var(--space-3); }
.covert-quick-buy__stepper { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--border-strong); border-radius: 3px; }
.covert-quick-buy__stepper button { width: 28px; height: 28px; padding: 0; background: transparent; border: 0; color: var(--fg); font-size: 17px; line-height: 1; cursor: pointer; }
.covert-quick-buy__stepper button:hover { color: var(--accent); }
.covert-quick-buy__stepper input { width: 32px; height: 28px; padding: 0; background: transparent; border: 0; color: var(--fg); font-family: var(--font-display); font-size: 12px; font-weight: 800; text-align: center; }
.covert-quick-buy__stepper input { -moz-appearance: textfield; appearance: none; }
.covert-quick-buy__stepper input::-webkit-inner-spin-button,
.covert-quick-buy__stepper input::-webkit-outer-spin-button { display: none; margin: 0; -webkit-appearance: none; appearance: none; }
.covert-quick-buy__stepper button { position: relative; z-index: 2; background: var(--bg-soft); color: var(--fg); }
.covert-quick-buy__group--presets { flex: 1 1 auto; }
.covert-quick-buy__presets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.covert-quick-buy__presets button { min-width: 31px; min-height: 27px; padding-inline: 5px; font-size: 9px; }
.covert-quick-buy__summary { align-items: flex-end; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.covert-quick-buy__unit { color: var(--fg-dim); font-size: 10px; }
.covert-quick-buy__unit strong { color: var(--fg); font-weight: 800; }
.covert-quick-buy__total { margin-left: 0; color: var(--accent); font-family: var(--font-display); font-size: 18px; line-height: 1; }
.covert-quick-buy__summary small { width: 100%; color: var(--accent); font-size: 9px; text-align: right; }
.covert-quick-buy__quantity { color: var(--accent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.covert-quick-buy__quantity strong { font-size: 1.15em; }
.covert-quick-buy__actions { align-items: stretch; margin-top: var(--space-3); }
.covert-quick-buy__submit { position: relative; flex: 1 1 auto; min-height: 36px; padding: 8px 10px; overflow: hidden; background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; color: var(--bg); font-family: var(--font-display); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.covert-quick-buy__submit:hover { background: var(--fg); border-color: var(--fg); transform: translateY(-1px); }
.covert-quick-buy__submit.is-loading { cursor: wait; opacity: 0.75; }
.covert-quick-buy__submit.is-loading::after { position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ''; animation: covert-fridge-spin 0.7s linear infinite; }
.covert-quick-buy__submit.is-added { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.covert-quick-buy__details { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--fg-dim); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.covert-quick-buy__details:hover { border-color: var(--accent); color: var(--accent); }
.covert-quick-buy__error { margin: var(--space-2) 0 0; color: #ff7c7c; font-size: 10px; line-height: 1.35; }
.covert-quick-buy__error[hidden] { display: none; }

.covert-fridge-icon { width: 22px; height: 22px; }
.covert-cart-count.is-bumped { animation: covert-cart-count-bump 0.65s var(--ease-out); }
.covert-cart-drawer { width: min(420px, 100vw); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.28); }
.covert-cart-drawer__header { min-height: 82px; }
.covert-cart-drawer__header h4 { margin: 3px 0 0; font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; }
.covert-cart-drawer__eyebrow { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.covert-fridge-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); padding: 8px 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--fg-dim); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.covert-fridge-status span { display: inline-flex; align-items: center; gap: 7px; }
.covert-fridge-status i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); animation: covert-fridge-pulse 1.8s ease-in-out infinite; }
.covert-fridge-status strong { color: var(--accent); font-size: 9px; }
.covert-cart-animation { position: relative; display: grid; place-items: center; min-height: 0; max-height: 0; margin: 0 0 var(--space-4); overflow: hidden; opacity: 0; transform: translateY(-10px); transition: max-height var(--dur-med) var(--ease-out), opacity var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out); }
.covert-cart-animation.is-playing { max-height: 190px; padding: var(--space-3); opacity: 1; transform: translateY(0); border: 1px solid var(--accent); background: linear-gradient(135deg, rgba(191, 210, 48, 0.12), transparent 60%); }
.covert-cart-animation::before { position: absolute; inset: 0 12%; height: 2px; background: var(--accent); box-shadow: 0 0 18px var(--accent); content: ''; opacity: 0; }
.covert-cart-animation.is-playing::before { opacity: 0.85; animation: covert-fridge-scan 1.6s ease-in-out infinite; }
.covert-cart-animation img { width: 120px; max-width: 55%; opacity: 0; transform: scale(0.78) translateY(8px); }
.covert-cart-animation.is-playing img { opacity: 1; animation: covert-fridge-drop 1.1s var(--ease-out) both; }
.covert-cart-animation span { margin-top: 4px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }

@keyframes covert-fridge-spin { to { transform: rotate(360deg); } }
@keyframes covert-cart-count-bump { 0%, 100% { transform: scale(1); } 45% { color: var(--accent); transform: scale(1.35); } }
@keyframes covert-fridge-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes covert-fridge-scan { 0% { top: 12%; } 50% { top: 84%; } 100% { top: 12%; } }
@keyframes covert-fridge-drop { 0% { opacity: 0; transform: scale(0.72) translateY(-18px); } 65% { opacity: 1; transform: scale(1.03) translateY(2px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 760px) {
  .covert-quick-buy { padding: 10px; }
  .covert-quick-buy__quantity-row { align-items: flex-start; flex-direction: column; }
  .covert-quick-buy__group--presets { width: 100%; }
  .covert-quick-buy__presets { justify-content: flex-start; }
  .covert-quick-buy__summary { flex-wrap: wrap; }
  .covert-quick-buy__summary small { order: 3; }
}

@media (max-width: 480px) {
  .covert-card__body { padding: var(--space-3); }
  .covert-card__title { font-size: 0.93rem; }
  .covert-card__description { font-size: 10px; }
  .covert-card__price-note { font-size: 8px; }
  .covert-quick-buy__heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .covert-quick-buy__heading small { font-size: 8px; }
  .covert-quick-buy__submit { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .covert-quick-buy__submit.is-loading::after,
  .covert-fridge-status i,
  .covert-cart-animation.is-playing::before,
  .covert-cart-animation.is-playing img,
  .covert-cart-count.is-bumped { animation: none; }
}
