/*
 * Shared store styles (all /store/ pages), loaded after each page's own
 * stylesheet: the deals banner, the cart button, the product details popup
 * and the order confirmation.
 *
 * The site header is 64px tall on desktop and 56px on phones (styles/header.css);
 * the banner sticks under it and the cart button sits inside the banner row.
 */

/* ---- Deals banner: G tint instead of mint green ---- */
.deals-banner {
  top: 64px;
  min-height: 52px;
  padding: var(--space-2) 112px var(--space-2) var(--space-6);
  background: var(--color-surface-tint);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border-soft);
}

.deals-banner-title {
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
}

.deals-banner-details {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* ---- Cart button: navy pill centered in the banner row ---- */
.cart-badge-link,
.cart-badge-link:hover,
.cart-badge-link:visited {
  top: 74px;
  right: var(--space-6);
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--space-3-5);
  box-sizing: border-box;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-sm);
}

/* Empty cart: outlined instead of a dull gray fill */
.cart-badge-link.cart-badge-empty {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

@media screen and (max-width: 1320px) {
  .deals-banner {
    top: 56px;
    padding-left: var(--space-5);
    padding-right: 104px;
  }

  .cart-badge-link,
  .cart-badge-link:hover,
  .cart-badge-link:visited {
    top: 66px;
    right: var(--space-4);
  }
}

/* ---- Product details popup: the round close button the other sheets use ---- */
.product-details-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: var(--font-size-3xl);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-details-close:hover {
  background: var(--color-surface-muted);
}

/* ---- Order confirmation: side margins on phones, a real button ---- */
.confirmation-container {
  margin-left: var(--space-4);
  margin-right: var(--space-4);
}

@media (min-width: 640px) {
  .confirmation-container {
    margin-left: auto;
    margin-right: auto;
  }
}

.store-btn,
.store-btn:visited,
.confirmation-container a.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-extrabold);
  text-decoration: none;
}

.store-btn:hover,
.confirmation-container a.store-btn:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

/* The mission's Amazon flag (store/flag-card.js): a "Complete the set" card
   under the order confirmation, and a quiet line under the cart's Checkout. */
.store-flag-slot { max-width: 544px; margin: -56px var(--space-4) 80px; }
@media (min-width: 640px) { .store-flag-slot { margin-left: auto; margin-right: auto; } }
.store-flag {
  padding: var(--space-6); background: var(--color-surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-soft); text-align: center; color: var(--color-text);
}
.store-flag__eyebrow { display: block; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.store-flag__art { display: block; width: 168px; margin: 0 auto var(--space-3); }
.store-flag__title { font-size: var(--font-size-xl); margin: 0 0 var(--space-1-5); color: var(--color-text); }
.store-flag__text { margin: 0 0 var(--space-4); color: var(--color-text-tertiary); line-height: 1.5; }
.store-flag a.store-flag__btn { color: var(--color-text-inverse); }
.store-flag__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-1); }
.store-flag__item, .store-flag__item:visited {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-3) var(--space-2);
  border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); color: var(--color-text); text-decoration: none;
}
.store-flag__item:hover { border-color: var(--color-primary); }
.store-flag__item .prep-wave { width: 84px; }
.store-flag__name { font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); }
.store-flag__shop { color: var(--color-primary); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.store-flag__note { margin: var(--space-3) 0 0; font-size: var(--font-size-xs); color: var(--color-text-muted); }

.cart-flag {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-1-5) var(--space-3);
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border-soft);
  font-size: var(--font-size-sm); color: var(--color-text-muted);
}
.cart-flag__link, .cart-flag__link:visited { display: inline-flex; align-items: center; gap: var(--space-1-5); color: var(--color-primary); font-weight: var(--font-weight-semibold); text-decoration: none; }
.cart-flag__link:hover { text-decoration: underline; }
.cart-flag__link .prep-wave { width: 30px; }
