/* ── Shared shop pages ── */

body.shop-product,
body.shop-cart-page,
body.shop-checkout-page,
body.shop-listing {
  background: #fff;
  color: #222;
}

/* ── Shop nav ── */

.shop-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.shop-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.shop-nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000;
  text-decoration: none;
}

.shop-nav-title:hover {
  opacity: 0.6;
}

.shop-nav-links {
  display: flex;
  gap: 20px;
}

.shop-nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  text-decoration: none;
}

.shop-nav-link:hover {
  color: #000;
}

/* ── Footer ── */

.shop-footer {
  margin-top: 64px;
  border-top: 1px solid #e0e0e0;
}

.shop-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.02em;
}

.shop-footer-inner a {
  color: #999;
  text-decoration: none;
}

.shop-footer-inner a:hover {
  color: #222;
}

.shop-back-link {
  margin: 0 0 4px;
}

.shop-back-link a {
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.shop-back-link a:hover {
  color: #222;
}

.shop-breadcrumbs {
  margin: 0 0 12px;
}

.shop-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.02em;
}

.shop-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-breadcrumbs li + li::before {
  content: "/";
  color: #ccc;
}

.shop-breadcrumbs a {
  color: #888;
  text-decoration: none;
}

.shop-breadcrumbs a:hover {
  color: #222;
}

.shop-breadcrumbs [aria-current="page"] {
  color: #222;
  font-weight: 600;
}

.shop-page-intro {
  margin: 0 0 32px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 60ch;
}

.shop-index-list {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  border-top: 1px solid #e0e0e0;
}

.shop-index-list-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 0 24px;
}

.shop-index-row-header {
  display: flex;
}

.shop-index-link {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px;
  text-decoration: none;
  color: #222;
  transition: color 0.15s ease;
}

.shop-index-link-main {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap; /* optional: wrap on narrow screens */
  gap: 10px;
  margin-bottom: 1rem;
}

.shop-index-link-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 2rem;
}

.shop-index-link-action {
  color: #777;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-index-link-count {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shop-index-link:hover .shop-index-link-label {
  color: #000;
  text-decoration: underline;
}

.shop-index-link:hover .shop-index-link-action {
  color: #000;
}

.shop-index-link-description {
  margin: 2px 4px 12px;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  max-width: 65ch;
}

.shop-index-link-description p {
  margin: 0 0 0.65em;
}

.shop-index-link-description p:last-child {
  margin-bottom: 0;
}

.shop-index-preview {
  --shop-index-thumb-height: 180px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 4px 0;
}

.shop-index-preview-card,
.shop-index-preview-more {
  flex: 0 0 auto;
  height: var(--shop-index-thumb-height);
}

.shop-index-preview-card {
  display: block;
  position: relative;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
  width: calc(var(--shop-index-thumb-height) * 4 / 3);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.shop-index-preview-card.is-portrait {
  width: calc(var(--shop-index-thumb-height) * 3 / 4);
}

.shop-index-preview-card.is-square {
  width: var(--shop-index-thumb-height);
}

.shop-index-preview-image,
.shop-index-preview-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-index-preview-card:hover .shop-index-preview-image {
  transform: scale(1.06);
}

.shop-index-preview-more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f3f3f3;
  border: 1px dashed #ccc;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  padding: 8px;
  width: calc(var(--shop-index-thumb-height) * 4 / 3);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.shop-index-preview-more:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

@media (max-width: 720px) {
  .shop-index-preview {
    --shop-index-thumb-height: 132px;
  }

  .shop-index-list-item {
    padding: 12px 0 18px;
  }
}

.shop-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.shop-buy-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #222;
  background: #222;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.shop-buy-button:hover:not(:disabled) {
  background: #fff;
  color: #222;
}

.shop-buy-button:disabled {
  background: #e0e0e0;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

.shop-checkout-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid #c44;
  background: #fff;
  color: #222;
  font-size: 0.9rem;
}

.shop-divider {
  border: none;
  border-top: 2px solid #222;
  margin: 48px 0 32px;
}

.shop-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-details {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 720px) {
  .shop-nav-title {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .shop-nav-link {
    font-size: 0.65rem;
  }
}
