/* Dragon Oak Storefront (collections, product cards, product pages).
   Uses the existing Forged Steel & Ice tokens from styles.css (:root variables). Kept in its own file so the
   production styles.css is unchanged. */

.nav-menu a[aria-current="page"] {
  color: var(--ice-bright);
}

/* Page header for shop pages */
.shop-hero {
  padding: clamp(48px, 7vw, 76px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(52, 189, 242, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(4, 11, 18, 0.9), rgba(5, 10, 15, 0.6));
}

.shop-title {
  margin-bottom: 16px;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: 1px;
}

.shop-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.shop-subhead {
  margin: clamp(44px, 6vw, 64px) 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.6px;
  color: var(--silver);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #8fa1af;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(128, 204, 240, 0.4);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ice);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--ice-bright);
}

/* Collections (home page section + shop index) */
.collections-section {
  position: relative;
  border-top: 1px solid rgba(125, 195, 225, 0.08);
  border-bottom: 1px solid rgba(125, 195, 225, 0.08);
  background:
    radial-gradient(circle at 15% 20%, rgba(52, 189, 242, 0.07), transparent 32%),
    linear-gradient(180deg, #05090d 0%, #08131c 60%, #05090d 100%);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 40px;
}

.collection-card {
  position: relative;
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(128, 204, 240, 0.26);
  background:
    linear-gradient(135deg, rgba(132, 175, 204, 0.12), transparent 24%),
    radial-gradient(circle at 70% 20%, rgba(49, 145, 190, 0.12), transparent 40%),
    linear-gradient(155deg, #111c26, #05090d);
  box-shadow:
    inset 0 1px 0 rgba(231, 244, 255, 0.045),
    0 14px 32px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.collection-card:hover,
.collection-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(111, 211, 252, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(231, 244, 255, 0.06),
    0 20px 44px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(52, 189, 242, 0.1);
}

.collection-count {
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
}

.collection-card h3 {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 1px;
  color: var(--silver);
}

.collection-card p {
  color: #95a7b5;
  font-size: 14px;
  line-height: 1.5;
}

.collection-cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--ice-bright);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.collections-all {
  margin-top: 36px;
}

/* Product cards and grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.shop-card {
  min-width: 0;
  border: 1px solid rgba(128, 204, 240, 0.26);
  background:
    linear-gradient(135deg, rgba(132, 175, 204, 0.12), transparent 20%),
    linear-gradient(155deg, #111c26, #05090d);
  box-shadow:
    inset 0 1px 0 rgba(231, 244, 255, 0.045),
    0 16px 38px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.shop-card[hidden] {
  display: none;
}

.shop-card:hover,
.shop-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(111, 211, 252, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(231, 244, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(52, 189, 242, 0.09);
}

.shop-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shop-card-art {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(52, 189, 242, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(2, 6, 9, 0.12));
}

.shop-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
  transition: transform 0.45s ease;
}

.shop-card:hover .shop-card-art img {
  transform: scale(1.035);
}

.shop-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(128, 204, 240, 0.18);
  background: linear-gradient(180deg, rgba(9, 22, 32, 0.94), rgba(2, 6, 9, 0.98));
}

.shop-card-body h3 {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: 0.8px;
  color: var(--silver);
}

.shop-card-price {
  margin-top: auto;
  color: var(--ice-bright);
  font-size: 14px;
  letter-spacing: 0.6px;
}

/* Product type badge (Digital Download vs Physical Product) */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(128, 204, 240, 0.3);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--silver-soft);
  background: rgba(52, 189, 242, 0.06);
}

.type-badge.type-digital {
  color: var(--ice-bright);
  border-color: rgba(128, 220, 255, 0.5);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(128, 204, 240, 0.3);
  border-radius: 3px;
  color: var(--silver-soft);
  background: rgba(255, 255, 255, 0.01);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--ice-bright);
  border-color: var(--ice-bright);
}

.filter-chip.is-active {
  color: #031018;
  border-color: transparent;
  background: linear-gradient(135deg, #6ed6fa, #2498d2);
}

.filter-status {
  color: #8fa1af;
  font-size: 13px;
}

.filter-empty {
  margin: 8px 0 24px;
  color: var(--text);
}

/* Empty collection */
.shop-empty {
  max-width: 640px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(128, 204, 240, 0.22);
  background: linear-gradient(155deg, rgba(17, 28, 38, 0.9), rgba(5, 9, 13, 0.95));
}

.shop-empty h2 {
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--silver);
}

.shop-empty p {
  color: var(--text);
  line-height: 1.75;
}

.shop-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* Product page */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-figure {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(128, 204, 240, 0.24);
  background:
    radial-gradient(circle at center, rgba(52, 189, 242, 0.09), transparent 42%),
    linear-gradient(155deg, #111c26, #05090d);
}

.product-figure.is-primary {
  grid-column: 1 / -1;
}

.product-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.38));
}

.product-info {
  min-width: 0;
}

.product-title {
  margin: 4px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.product-badges {
  margin-bottom: 14px;
}

.product-info .product-price {
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--ice-bright);
}

.product-info p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.product-info .product-price,
.product-info .product-badges,
.product-info .section-kicker {
  line-height: 1.3;
}

.product-info p + p {
  margin-top: 12px;
}

.product-meta {
  display: grid;
  gap: 8px;
  margin: 26px 0 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(128, 204, 240, 0.16);
  border-bottom: 1px solid rgba(128, 204, 240, 0.16);
}

.product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.product-meta dt {
  color: #8fa1af;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.product-meta dd {
  color: var(--silver);
  text-align: right;
  overflow-wrap: anywhere;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tag-list li {
  padding: 4px 10px;
  border: 1px solid rgba(128, 204, 240, 0.2);
  border-radius: 2px;
  color: #93a3b0;
  font-size: 12px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.product-actions .product-note {
  flex-basis: 100%;
  order: 3;
  font-size: 13px;
  color: #8fa1af;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-actions .btn,
  .shop-empty-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card,
  .shop-card,
  .shop-card-art img,
  .filter-chip {
    transition-duration: 0.01ms;
  }

  .collection-card:hover,
  .shop-card:hover {
    transform: none;
  }
}
