/* ============================================================
   MYVT Store — Public Storefront Styles
   Themed to match Benefits / History pages
   ============================================================ */

:root {
  --store-bg: #e3e3db;
  --store-card: #d8d3c6;
  --store-card-dark: #c8c0ae;
  --store-border: rgba(58, 38, 24, 0.18);
  --store-gold: #c9a467;
  --store-gold-dim: rgba(201, 164, 103, 0.6);
  --store-text: #1a0f0a;
  --store-muted: rgba(26, 15, 10, 0.55);
  --store-accent: #9c0a0a;
  --store-radius: 10px;

}

/* ── Page layout ── */
body {
  background: var(--store-bg);
  color: var(--store-text);
  min-height: 100vh;
}

/* ── Texture wrapper (matches .middle-new) ── */
.store-page-wrap {
  position: relative;
  background-color: #e3e3db;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
  box-shadow: 0 0 40px 10px var(--store-gold);
  min-height: 100vh;
}

.store-page-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("Images/old-wall.png"),
    url("Images/asfalt-dark.png");
  background-blend-mode: multiply;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* Corner decorations */
.store-corner {
  position: absolute;
  width: 43vw;
  max-width: 350px;
  min-width: 150px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: darken;
  pointer-events: none;
  z-index: 1;
}

.store-corner.tl {
  top: 0;
  left: 0;
  transform: rotate(0deg) scaleY(-1);
}

.store-corner.tr {
  top: 0;
  right: 0;
  transform: rotate(180deg);
}

.store-corner.bl {
  bottom: 0;
  left: 0;
}

.store-corner.br {
  bottom: 0;
  right: 0;
  transform: rotate(180deg) scaleY(-1);
}

@media (max-width: 600px) {
  .store-corner {
    width: 45vw;
    max-width: 240px;
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  .store-corner {
    width: 32vw;
    max-width: 260px;
  }
}

/* All content above texture */
.store-inner-content {
  position: relative;
  z-index: 2;
}

/* ── Hero ── */
.store-hero {
  padding: 140px 2rem 60px;
  text-align: center;
}

.store-hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: #1a0f0a;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.4em;
  text-shadow: 0 2px 12px rgba(201, 164, 103, 0.25);
}

.store-hero p {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--store-muted);
  margin: 0 0 1.4em;
}

.pickup-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(156, 10, 10, 0.1);
  border: 1px solid rgba(156, 10, 10, 0.4);
  border-radius: 6px;
  padding: 0.55em 1.2em;
  font-size: 0.9rem;
  color: #7a0808;
}

.pickup-notice i {
  color: #9c0a0a;
}

/* ── Store section ── */
.store-section {
  padding: 2.5rem 0 5rem;
}

.store-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Controls ── */
.store-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.store-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.store-search-wrap i {
  position: absolute;
  left: 1rem;
  color: var(--store-muted);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  color: var(--store-text);
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.store-search-input:focus {
  border-color: var(--store-gold-dim);
  background: rgba(255, 255, 255, 0.7);
}

.store-search-input::placeholder {
  color: var(--store-muted);
}

.store-category-select {
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  color: var(--store-text);
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.store-category-select:focus {
  border-color: var(--store-gold-dim);
}

.store-category-select option {
  background: #e3e3db;
  color: #1a0f0a;
}

/* ── States ── */
.store-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  gap: 1rem;
  color: var(--store-muted);
}

.store-state h3 {
  font-size: 1.2rem;
  color: var(--store-text);
  font-family: "Cinzel", serif;
}

.store-state p {
  font-size: 0.95rem;
}

.store-state-icon {
  font-size: 3rem;
  color: var(--store-gold-dim);
}

.store-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--store-border);
  border-top-color: var(--store-gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.store-retry-btn {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--store-gold-dim);
  border-radius: 6px;
  color: #7a4a00;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: "Cinzel", serif;
  transition: background 0.2s, color 0.2s;
}

.store-retry-btn:hover {
  background: var(--store-gold);
  color: #1a0f0a;
}

.hidden {
  display: none !important;
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58, 38, 24, 0.08);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--store-gold-dim);
  box-shadow: 0 8px 28px rgba(58, 38, 24, 0.15);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(201, 164, 103, 0.1);
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

/* ── Card mini carousel ── */
.product-img-wrap.card-carousel {
  overflow: hidden;
}

.card-track {
  display: flex;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 15, 10, 0.52);
  border: 1px solid rgba(201, 164, 103, 0.35);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: #ede8dd;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 3;
}

.product-img-wrap.card-carousel:hover .card-arrow {
  opacity: 1;
}

.card-arrow.prev { left: 0.4rem; }
.card-arrow.next { right: 0.4rem; }

.card-arrow:hover {
  background: rgba(26, 15, 10, 0.8);
}

.card-dots {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237, 232, 221, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.card-dot.active {
  background: var(--store-gold);
  transform: scale(1.4);
}

/* Always show arrows on touch devices */
@media (hover: none) {
  .card-arrow { opacity: 0.85; }
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--store-border);
}

.product-info {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--store-gold-dim);
  font-family: "Cinzel", serif;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Cinzel", serif;
  color: var(--store-text);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--store-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Cinzel", serif;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--store-border);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Cinzel", serif;
  color: #7a4a00;
}

.product-add-btn {
  padding: 0.45rem 0.9rem;
  background: var(--store-accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.15s;
}

.product-add-btn:hover {
  background: #b81010;
  transform: scale(1.04);
}

.product-out-stock {
  font-size: 0.78rem;
  color: #9c0a0a;
  font-style: italic;
  font-family: "Cinzel", serif;
}

/* ── Cart Sidebar ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 10, 0.45);
  backdrop-filter: blur(3px);
  z-index: 3998;
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-overlay.visible {
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #e8e0d0;
  border-left: 1px solid var(--store-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 3999;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(58, 38, 24, 0.2);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--store-border);
  background: rgba(255, 255, 255, 0.3);
}

.cart-header h3 {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  color: #7a4a00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--store-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
}

.cart-close-btn:hover {
  color: var(--store-text);
}

.pickup-notice-cart {
  background: rgba(156, 10, 10, 0.08);
  border-bottom: 1px solid rgba(156, 10, 10, 0.25);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  font-family: "Cinzel", serif;
  color: #7a0808;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.8rem;
  color: var(--store-muted);
}

.cart-empty i {
  font-size: 2.5rem;
  color: var(--store-border);
}

.cart-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--store-border);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(201, 164, 103, 0.15);
  flex-shrink: 0;
  border: 1px solid var(--store-border);
}

.cart-item-img-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: rgba(201, 164, 103, 0.12);
  border: 1px solid var(--store-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-border);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--store-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  color: #7a4a00;
  margin-top: 0.15rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--store-border);
  border-radius: 4px;
  color: var(--store-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.15s;
}

.cart-qty-btn:hover {
  background: rgba(201, 164, 103, 0.3);
}

.cart-qty-val {
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
  font-family: "Cinzel", serif;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--store-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: #9c0a0a;
}

.cart-footer {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--store-border);
  background: rgba(255, 255, 255, 0.3);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--store-text);
  margin-bottom: 1rem;
}

.cart-total span:last-child {
  color: #7a4a00;
}

.cart-checkout-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--store-accent);
  border: none;
  border-radius: var(--store-radius);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.06em;
}

.cart-checkout-btn:hover:not(:disabled) {
  background: #b81010;
  transform: scale(1.01);
}

.cart-checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Floating cart button ── */
.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--store-accent);
  border: 2px solid rgba(201, 164, 103, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(156, 10, 10, 0.4), 0 0 0 0 rgba(156, 10, 10, 0.3);
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-fab:hover {
  transform: scale(1.1);
  background: #b81010;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--store-gold);
  color: #1a0f0a;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Product Detail Modal ── */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.product-modal.open {
  pointer-events: all;
  opacity: 1;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 10, 0.6);
  backdrop-filter: blur(4px);
}

.product-modal-content {
  position: relative;
  background: #ede8dd;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  width: min(740px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(58, 38, 24, 0.35);
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--store-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--store-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  z-index: 1;
}

.product-modal-close:hover {
  color: var(--store-text);
  background: rgba(255, 255, 255, 0.8);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-modal-grid.no-imgs {
  grid-template-columns: 1fr;
}

.product-modal-imgs {
  border-right: 1px solid var(--store-border);
}

/* ── Image Carousel ── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px 0 0 0;
  background: rgba(58, 38, 24, 0.05);
  user-select: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Expand / full-size button inside modal carousel */
.carousel-expand-btn {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  background: rgba(26, 15, 10, 0.55);
  border: 1px solid rgba(201, 164, 103, 0.4);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: #ede8dd;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 3;
}

.carousel-wrap:hover .carousel-expand-btn {
  opacity: 1;
}

.carousel-expand-btn:hover {
  background: rgba(26, 15, 10, 0.85);
}

/* Always visible on touch devices */
@media (hover: none) {
  .carousel-expand-btn { opacity: 0.85; }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 15, 10, 0.5);
  border: 1px solid rgba(201, 164, 103, 0.4);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #ede8dd;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
  opacity: 0.75;
}

.carousel-arrow:hover {
  background: rgba(26, 15, 10, 0.8);
  opacity: 1;
}

.carousel-arrow.prev {
  left: 0.55rem;
}

.carousel-arrow.next {
  right: 0.55rem;
}

.carousel-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(237, 232, 221, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--store-gold);
  transform: scale(1.3);
}

.product-modal-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-modal-cat {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--store-gold-dim);
}

.product-modal-name {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--store-text);
  line-height: 1.3;
}

.product-modal-price {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #7a4a00;
}

.product-modal-desc {
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  color: var(--store-muted);
  line-height: 1.65;
}

.product-modal-stock {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  color: var(--store-muted);
}

.product-modal-stock.low {
  color: #92400e;
}

.product-modal-stock.out {
  color: #9c0a0a;
}

.product-modal-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.modal-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-qty-btn {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--store-border);
  border-radius: 6px;
  color: var(--store-text);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-qty-btn:hover {
  background: rgba(201, 164, 103, 0.3);
}

.modal-qty-val {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.product-modal-add-btn {
  flex: 1;
  padding: 0.7rem;
  background: var(--store-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.product-modal-add-btn:hover:not(:disabled) {
  background: #b81010;
}

.product-modal-add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pickup-notice-modal {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(156, 10, 10, 0.08);
  border: 1px solid rgba(156, 10, 10, 0.25);
  border-radius: 6px;
  padding: 0.6em 1em;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  color: #7a0808;
  margin-top: 0.4rem;
}

/* ── Lightbox ── */
.store-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.store-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.store-lightbox img {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow.prev {
  left: 1.2rem;
}

.lightbox-arrow.next {
  right: 1.2rem;
}

/* ── Toast ── */
.store-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  background: #ede8dd;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: var(--store-text);
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(58, 38, 24, 0.2);
  z-index: 5000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .product-modal-grid {
    grid-template-columns: 1fr !important;
  }

  .product-modal-imgs {
    border-right: none;
    border-bottom: 1px solid var(--store-border);
  }

  .carousel-wrap {
    border-radius: 14px 14px 0 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}