/* ---- HERO CTA ---- */
.hero-shop-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2.25rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.hero-shop-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ---- NAV EXTENSIONS (store pages) ---- */
.nav-inner--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-cart {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-cart:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- STORE MAIN LAYOUT ---- */
.store-main {
  padding-top: 72px; /* nav height */
  min-height: 100vh;
}

/* ---- SHOP HEADER ---- */
.shop-header {
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-warm) 100%);
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.shop-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.shop-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-top: 0.5rem;
}

/* ---- FILTER BAR ---- */
.filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 72px;
  z-index: 50;
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}
.pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover, .pill--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.search-form { flex-shrink: 0; }
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--fg-muted);
  pointer-events: none;
}
.search-input {
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 0.4rem 1rem 0.4rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--fg);
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--fg-muted); }

/* ---- SHOP CONTENT ---- */
.shop-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}
.shop-meta { margin-bottom: 1.5rem; }
.results-note {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 74, 62, 0.1);
}

/* ---- PRODUCT IMAGE PLACEHOLDERS ---- */
.product-image, .product-image-large, .cart-item-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image {
  height: 220px;
}
.product-image-large {
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  flex-shrink: 0;
}
.product-image[data-category="apparel"],
.product-image-large[data-category="apparel"],
.cart-item-img[data-category="apparel"] {
  background: linear-gradient(135deg, #2D4A3E 0%, #3D6555 100%);
}
.product-image[data-category="jewelry"],
.product-image-large[data-category="jewelry"],
.cart-item-img[data-category="jewelry"] {
  background: linear-gradient(135deg, #8B6040 0%, #C4956A 100%);
}
.product-image[data-category="home"],
.product-image-large[data-category="home"],
.cart-item-img[data-category="home"] {
  background: linear-gradient(135deg, #5B4A3A 0%, #8B6B52 100%);
}
.product-image[data-category="gifts"],
.product-image-large[data-category="gifts"],
.cart-item-img[data-category="gifts"] {
  background: linear-gradient(135deg, #4A3D6B 0%, #7B6BA0 100%);
}
.product-image-icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}
.product-image-icon-lg {
  font-size: 5rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}
.cart-item-img span {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
}
.featured-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ---- PRODUCT CARD BODY ---- */
.product-card-body {
  padding: 1.25rem 1.25rem 1rem;
}
.product-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.product-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.35rem 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.product-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
}
.product-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-msg {
  font-size: 1rem;
  color: var(--fg-muted);
}
.empty-msg a { color: var(--accent); }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--fg-muted);
  text-decoration: none;
}
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-inner span:last-child { color: var(--fg); font-weight: 500; }

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-info { padding-top: 0.5rem; }
.product-detail-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}
.product-detail-price {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.product-detail-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.product-details-box {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.product-details-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.product-details-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- ADD TO CART ---- */
.atc-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  background: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--bg-warm); }
.qty-display {
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 2.5rem;
  text-align: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.btn-atc {
  flex: 1;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-atc:hover { background: var(--accent-light); }
.atc-confirm {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.atc-confirm a { color: var(--gold); font-weight: 600; }
.product-guarantees {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.g-icon { color: var(--gold); font-size: 0.7rem; }

/* ---- RELATED PRODUCTS ---- */
.related-section {
  background: var(--bg-warm);
  padding: 3rem 2rem 4rem;
  border-top: 1px solid var(--border);
}
.related-header {
  max-width: 1200px;
  margin: 0 auto 1.75rem;
}
.related-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---- CART PAGE ---- */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.cart-header { margin-bottom: 2.5rem; }
.cart-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:first-child { border-top: 1px solid var(--border); }
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.cart-item-price {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cart-item-total {
  text-align: right;
  min-width: 80px;
}
.cart-item-total p {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.remove-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.remove-btn:hover { color: #c0392b; }
.cart-summary-inner {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: sticky;
  top: 140px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.summary-row--muted { color: var(--fg-muted); font-size: 0.875rem; }
.summary-row--total { font-weight: 600; font-size: 1.1rem; }
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background 0.2s;
}
.btn-checkout:hover { background: var(--accent-light); }
.btn-checkout:disabled { opacity: 0.7; cursor: default; }
.checkout-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.continue-shopping {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1rem;
}
.continue-shopping:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-image-large { min-height: 280px; }
}
@media (max-width: 768px) {
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .search-form { width: 100%; }
  .search-input { width: 100%; }
  .shop-header { padding: 3rem 1.5rem 2rem; }
  .shop-content { padding: 2rem 1.5rem 4rem; }
  .product-detail { padding: 2rem 1.5rem; }
  .cart-body { grid-template-columns: 1fr; }
  .cart-page { padding: 2rem 1.5rem 4rem; }
}
@media (max-width: 580px) {
  .product-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .atc-section { flex-direction: column; align-items: stretch; }
  .btn-atc { width: 100%; }
}
