/* Shop — matches site palette */
:root {
  --blue-dark: #0d1b2a;
  --blue-navy: #1a3349;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #fdf8f2;
  --font-serif: 'Cormorant Garamond', serif;
  --font-caps: 'Cinzel', serif;
  --font-body: 'Jost', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.shop-body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--blue-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--blue-dark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-brand img {
  border-radius: 50%;
  object-fit: cover;
}

.shop-brand em {
  font-style: normal;
  opacity: 0.45;
}

.shop-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.shop-links a {
  color: rgba(253, 248, 242, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-links a:hover,
.shop-links a.active {
  color: var(--gold-light);
}

.shop-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: stretch;
}

.shop-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(13, 27, 42, 0.55);
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.shop-footer a {
  color: var(--blue-navy);
}

.shop-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.shop-hero h1 {
  font-family: var(--font-caps);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.shop-hero p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(13, 27, 42, 0.55);
}

.shop-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}

.shop-search-input {
  min-width: min(520px, 100%);
  flex: 1;
  border: 1px solid rgba(13, 27, 42, 0.16);
  border-radius: 8px;
  padding: 0.56rem 0.7rem;
  font: inherit;
  background: #fff;
}

.shop-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.shop-cat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(13, 27, 42, 0.15);
  color: rgba(13, 27, 42, 0.74);
  background: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.shop-cat-tab:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--gold);
}

.shop-cat-tab.active {
  border-color: rgba(201, 168, 76, 0.95);
  background: linear-gradient(135deg, rgba(245, 228, 176, 0.65), rgba(201, 168, 76, 0.35));
  color: var(--blue-dark);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.12);
}

.shop-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-card-img {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #e8eef2, #f5f0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-img img.shop-card-img-el {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shop-card-img img.shop-card-img-el.is-loaded {
  opacity: 1;
}

.shop-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.shop-card-body h2 {
  font-family: var(--font-caps);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.shop-card-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(13, 27, 42, 0.45);
  margin-bottom: 0.5rem;
}

.shop-price {
  font-family: var(--font-caps);
  color: var(--gold);
  font-size: 1.05rem;
}

.shop-variant-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.shop-variant-label {
  color: rgba(13, 27, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.shop-variant-value {
  color: rgba(13, 27, 42, 0.75);
  text-align: right;
  font-size: 0.78rem;
}

.shop-variant-pill {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 51, 73, 0.08);
  border: 1px solid rgba(26, 51, 73, 0.15);
  color: rgba(13, 27, 42, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(13, 27, 42, 0.55);
}

.shop-detail {
  display: grid;
  gap: 2rem;
}

.shop-detail-media {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 800px) {
  .shop-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.shop-detail-img {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.2);
  aspect-ratio: 1;
}

.shop-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-sub-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 0.5rem;
}

.shop-sub-image-thumb {
  aspect-ratio: 1;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.shop-sub-image-thumb:hover {
  border-color: rgba(201, 168, 76, 0.6);
  transform: translateY(-1px);
}

.shop-sub-image-thumb.active {
  border-color: #c9547a;
  box-shadow: 0 0 0 2px rgba(201, 84, 122, 0.22);
}

.shop-sub-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-detail h1 {
  font-family: var(--font-caps);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.shop-detail-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(13, 27, 42, 0.75);
  margin-bottom: 1.25rem;
}

.shop-variant-block {
  margin: 0 0 1rem;
}

.shop-variant-block-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.55);
}

.shop-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(13, 27, 42, 0.16);
  background: #fff;
  color: rgba(13, 27, 42, 0.8);
}

.shop-chip.in {
  border-color: rgba(60, 140, 80, 0.35);
  background: rgba(60, 140, 80, 0.08);
  color: #2d6a3e;
}

.shop-chip.out {
  border-color: rgba(200, 60, 80, 0.35);
  background: rgba(200, 60, 80, 0.09);
  color: #8b2840;
}

.shop-form-row {
  margin-bottom: 1rem;
}

.shop-form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: rgba(13, 27, 42, 0.55);
}

.shop-form-row select,
.shop-form-row input[type="number"],
.shop-form-row input[type="text"],
.shop-form-row input[type="email"],
.shop-form-row input[type="tel"],
.shop-form-row textarea {
  width: 100%;
  max-width: 320px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(13, 27, 42, 0.15);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}

.shop-form-row textarea {
  max-width: 100%;
  min-height: 88px;
  resize: vertical;
}

.btn-shop {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-shop-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--blue-dark);
}

.btn-shop-primary:hover {
  filter: brightness(1.05);
}

.btn-shop-ghost {
  background: transparent;
  color: var(--blue-navy);
  border: 1px solid rgba(13, 27, 42, 0.2);
}

.btn-shop-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.shop-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.shop-alert-error {
  background: rgba(200, 60, 80, 0.12);
  color: #8b2840;
  border: 1px solid rgba(200, 60, 80, 0.25);
}

.shop-alert-ok {
  background: rgba(60, 140, 80, 0.12);
  color: #2d6a3e;
  border: 1px solid rgba(60, 140, 80, 0.25);
}

.shop-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13, 27, 42, 0.06);
}

.shop-table th,
.shop-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}

.shop-table th {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--blue-dark);
  color: var(--cream);
}

.shop-table tr:last-child td {
  border-bottom: none;
}

.shop-checkout-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .shop-checkout-grid {
    grid-template-columns: 1fr 340px;
  }
}

.shop-summary {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  height: fit-content;
}

.shop-summary h3 {
  font-family: var(--font-caps);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.shop-summary-total {
  font-family: var(--font-caps);
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(13, 27, 42, 0.1);
}

.plp-placeholder {
  font-size: 3rem;
  opacity: 0.2;
}

/* Tablet and iPad */
@media (max-width: 1024px) {
  .shop-main {
    padding: 1.4rem 1rem 2.2rem;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .shop-detail {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .shop-checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .shop-summary {
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
  }

  .shop-brand {
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .shop-links {
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .shop-links a {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .shop-main {
    padding: 0.45rem 0.75rem 1.55rem;
  }

  .shop-hero {
    margin: 0.25rem 0 1rem;
  }

  .shop-hero h1 {
    letter-spacing: 0.05em;
  }

  .shop-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    margin-bottom: 0.7rem;
    scrollbar-width: none; /* Firefox */
  }

  .shop-category-tabs::-webkit-scrollbar {
    height: 0; /* Hide mobile scrollbar track gap */
  }

  .shop-cat-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .shop-card-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .shop-variant-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .shop-variant-value {
    text-align: left;
  }

  .shop-sub-images {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-detail h1 {
    font-size: 1.25rem;
  }

  .shop-detail {
    gap: 0.95rem;
  }

  .shop-main > .shop-detail:first-child {
    margin-top: 0;
  }

  .shop-detail-desc {
    font-size: 0.96rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
  }

  .shop-form-row select,
  .shop-form-row input[type="number"],
  .shop-form-row input[type="text"],
  .shop-form-row input[type="email"],
  .shop-form-row input[type="tel"],
  .shop-form-row textarea {
    max-width: 100%;
  }

  .btn-shop {
    width: 100%;
    text-align: center;
    padding: 0.72rem 0.9rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .shop-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shop-table {
    min-width: 620px;
  }

  .shop-summary-row {
    font-size: 0.85rem;
    gap: 0.6rem;
  }

  .shop-summary-row span:first-child {
    max-width: 68%;
  }

  .shop-footer {
    padding: 1.1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .shop-main {
    padding: 0.35rem 0.6rem 1.3rem;
  }

  .shop-brand img {
    width: 34px;
    height: 34px;
  }

  .shop-brand span {
    font-size: 0.68rem;
  }

  .shop-sub-images {
    gap: 0.4rem;
  }

  .shop-sub-image-thumb {
    border-radius: 7px;
  }

  .shop-table {
    min-width: 560px;
  }
}

/* PLP pagination & smooth list appearance */
.shop-plp-anchor {
  scroll-margin-top: 5.5rem;
}

.shop-pagination-meta {
  font-size: 0.82rem;
  color: rgba(13, 27, 42, 0.55);
  margin: 0 0 1rem;
  font-family: var(--font-body);
}

.shop-grid--plp {
  animation: shop-plp-in 0.5s ease-out;
}

@keyframes shop-plp-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.shop-page-link {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-navy);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.shop-page-link:hover:not(.is-disabled) {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--gold);
}

.shop-page-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.shop-page-nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.shop-page-num {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--blue-navy);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

a.shop-page-num:hover {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.12);
}

.shop-page-num.is-current {
  background: var(--blue-dark);
  color: var(--cream);
  font-weight: 500;
}

.shop-page-ellipsis {
  color: rgba(13, 27, 42, 0.35);
  font-size: 0.85rem;
  padding: 0 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shop-grid--plp {
    animation: none;
  }

  .shop-card-img img.shop-card-img-el {
    opacity: 1;
    transition: none;
  }
}
