/* =========================================================
   Gift Shop page hero
========================================================= */
.shop-hero {
  background: linear-gradient(180deg, #faf1dc 0%, var(--cream) 60%);
  padding: 4.5rem 0;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.16);
  color: #8a6a24;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.shop-hero-badge svg { width: 14px; height: 14px; }

.radio-hero-intro {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.radio-hero-avatar {
  margin: 0;
  max-width: 108px;
  flex: none;
}
.radio-hero-avatar .speech-bubble--small {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}
.radio-hero-avatar .avatar-gif { max-width: 88px; border-width: 3px; }
@media (max-width: 576px) {
  .radio-hero-intro { flex-wrap: wrap; }
  .radio-hero-avatar .speech-bubble--small { white-space: normal; }
}

.shop-hero-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px -22px rgba(20, 36, 32, 0.35);
}
.shop-hero-art img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.shop-hero-art-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.shop-hero-meta {
  display: flex;
  gap: 1.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.shop-hero-meta-item .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #8a6a24;
  line-height: 1;
}
.shop-hero-meta-item .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* =========================================================
   Product grid
========================================================= */
.shop-section {
  background: var(--cream);
  padding: 5rem 0 6rem;
}

.shop-section-head {
  max-width: 620px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.shop-section-head .dept-copy { margin-left: auto; margin-right: auto; }

.shop-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px -18px rgba(20, 36, 32, 0.25);
  border: 1px solid rgba(200, 155, 60, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -18px rgba(20, 36, 32, 0.32);
}

.shop-card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--cream-2);
}
.shop-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.shop-card:hover .shop-card-art img { transform: scale(1.05); }

.shop-card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(20, 36, 32, 0.75);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

.shop-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.shop-card-tag {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex: 1;
}

.shop-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.shop-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.shop-card-btn-group {
  display: flex;
  gap: 0.5rem;
}
.shop-card-btn-group .btn {
  flex: 1 1 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
}

.shop-card-btn {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.shop-card-btn:hover { background: var(--gold-light); color: var(--ink); }

.shop-card-btn-cart {
  background: none;
  color: var(--frost-dark);
  font-weight: 600;
  border: 1.5px solid var(--frost-dark);
  white-space: nowrap;
}
.shop-card-btn-cart:hover { background: var(--frost-dark); color: var(--cream); }

/* =========================================================
   Product categories
========================================================= */
.shop-category { margin-bottom: 3.5rem; }
.shop-category:last-child { margin-bottom: 0; }

.shop-category-head { margin-bottom: 1.5rem; }
.shop-category-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.shop-category-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Christmas Cards referral panel */
.shop-referral-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: #fff;
  border: 1px solid rgba(200, 155, 60, 0.16);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 14px 30px -18px rgba(20, 36, 32, 0.25);
  flex-wrap: wrap;
}
.shop-referral-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 122, 136, 0.12);
  color: var(--frost-dark);
}
.shop-referral-icon svg { width: 26px; height: 26px; }
.shop-referral-body { flex: 1 1 260px; }
.shop-referral-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.shop-referral-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.shop-referral-btn { flex: none; white-space: nowrap; }

/* Other Gifts — coming soon placeholder */
.shop-coming-soon-card {
  background: var(--cream-2);
  border: 1.5px dashed rgba(20, 36, 32, 0.2);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
  color: var(--ink-soft);
}
.shop-card-badge--soon {
  position: static;
  display: inline-block;
  background: rgba(20, 36, 32, 0.12);
  color: var(--ink);
  backdrop-filter: none;
  margin-bottom: 0.6rem;
}
.shop-coming-soon-card p { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================================
   Buy modal
========================================================= */
#buyModal .modal-dialog { max-width: 440px; }
#buyModal .modal-content { border-radius: 14px; border: none; }
#buyModal .modal-header { border-bottom: 1px solid rgba(76, 122, 136, 0.15); }
#buyModal .modal-title { font-family: var(--font-display); font-weight: 600; }

.buy-product-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream-2);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.1rem;
}
.buy-product-preview img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.buy-product-preview .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.buy-product-preview .sub { font-size: 0.8rem; color: var(--ink-soft); }

.modal-field-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.1rem 0 0.6rem;
}
.modal-field-section-label:first-of-type { margin-top: 0; }

.modal-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.modal-address-row .mb-3:last-child { margin-bottom: 0; }
@media (max-width: 420px) {
  .modal-address-row { grid-template-columns: 1fr; }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(76, 122, 136, 0.3);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: #fff;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.qty-stepper button:hover { background: var(--cream-2); }
.qty-stepper span {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.qty-line-total { color: var(--ink-soft); font-size: 0.9rem; }

.buy-submit-btn {
  background: var(--cranberry);
  color: var(--cream);
  font-weight: 600;
}
.buy-submit-btn:hover { background: var(--cranberry-dark); color: var(--cream); }

.buy-spinner { text-align: center; padding: 1.5rem 0; color: var(--ink-soft); }
.buy-spinner .spinner-border { color: var(--cranberry); margin-bottom: 0.75rem; }

.buy-success-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
#buySuccessText { text-align: center; color: var(--ink-soft); margin-bottom: 1.2rem; }

.buy-again-btn {
  background: var(--frost-dark);
  color: var(--cream);
  font-weight: 600;
}
.buy-again-btn:hover { background: var(--frost); color: var(--ink); }
/* =========================================================
   Queenie avatar in the Gift Shop hero — square and larger
   (overrides the small round avatar above and in style.css)
========================================================= */
.shop-hero .radio-hero-avatar { max-width: 170px; }

.shop-hero .radio-hero-avatar .avatar-gif {
  max-width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border-width: 4px;
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 576px) {
  .shop-hero .radio-hero-avatar .avatar-gif { max-width: 120px; }
}