/* Store elements: announcement bar, cart icon, trust strip, product grid, quick view */
.announcement {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 51;
  height: var(--announce-h);
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  overflow: hidden;
}

.announcement-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.announcement-msg.is-active { opacity: 1; transform: none; }

.cart-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.cart-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 19px;
}

.cart-count.is-bumped { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }

.trust-inner p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 22px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-inner p + p { border-left: 1px solid var(--line); }
.trust-inner strong { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

.shop-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.shop-head h2 { margin: 0; }
.shop-head small { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--muted); }

.sort { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }

.sort select,
.filter-tab {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-tab { transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filter-tab:hover { border-color: var(--accent); }
.filter-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 18px; }

.product-card { display: flex; flex-direction: column; }

.product-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.product-media-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.product-card:hover .product-media img { transform: scale(1.06); opacity: 0.9; }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
}

.product-info { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.product-format { margin: 0 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-info h3 { flex: 1; margin: 0 0 6px; font-size: 1.08rem; line-height: 1.3; }
.product-info h3 button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.product-info h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }

.price { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--accent-dark); }
.price small { margin-left: 4px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 400; color: var(--muted); }

.add-btn {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.add-btn:hover { background: var(--ink); color: #fff; }
.add-btn.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }

.quick-view { width: min(900px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(15, 27, 45, 0.5); }
.quick-view::backdrop { background: rgba(15, 27, 45, 0.6); }
.quick-view-inner { display: grid; grid-template-columns: 1fr 1fr; }
.quick-view-media img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-copy { padding: 44px 40px; }
.quick-view-copy .price { font-size: 1.6rem; }
.quick-view-copy > p:not(.eyebrow):not(.price):not(.product-format) { color: var(--muted); }
.quick-view-copy .product-list { display: grid; gap: 8px; margin: 18px 0 28px; }
.quick-view-copy .product-list li { position: relative; padding-left: 22px; }
.quick-view-copy .product-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: var(--accent); }
.quick-view-copy .add-btn { background: var(--accent); border-color: var(--accent); color: #fff; padding: 14px; }
.quick-view-copy .add-btn:hover { background: var(--accent-dark); }

.icon-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.icon-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.quick-view .icon-close { position: absolute; top: 12px; right: 12px; }

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 820px) {
  .site-nav { margin-left: 0; }
  .cart-toggle { margin-left: auto; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-inner p:nth-child(3) { border-left: 0; }
  .trust-inner p:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .quick-view-inner { grid-template-columns: 1fr; }
  .quick-view-media img { max-height: 280px; }
  .quick-view-copy { padding: 28px 22px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 28px; padding: 0 24px; scrollbar-width: none; }
  .filter-tab { flex-shrink: 0; }
  .product-info h3 { font-size: 0.98rem; }
  .product-format { font-size: 0.64rem; }
  .announcement { font-size: 0.7rem; letter-spacing: 0.01em; }
  .announcement-msg { white-space: nowrap; padding: 0 8px; }
  .header-inner { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.05rem; }
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
}
