/* ============================================================
   SHOP ROWS — Elevated Editorial Design
   ============================================================ */

:root {
  --page-bg:      #f5f2ee;
  --card-bg:      #ffffff;
  --text-dark:    #111008;
  --text-mid:     #7a7368;
  --text-light:   #a8a39c;
  --gold:         #c9a84c;
  --gold-dim:     rgba(201,168,76,0.15);
  --divider:      rgba(17,16,8,0.1);
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.10);
  --radius:       8px;
  --ease:         cubic-bezier(0.16,1,0.3,1);
}

body.homepage { background: var(--page-bg); }

/* ============================================================
   SHOP MAIN
   ============================================================ */
.shop-main {
  background: var(--page-bg);
}

/* ============================================================
   ROW
   ============================================================ */
.shop-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 64px 56px;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}
.shop-row:last-child { border-bottom: none; }

/* ============================================================
   LEFT LABEL
   ============================================================ */
.shop-row-label {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}

.shop-row-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.shop-row-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}

.shop-row-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
  margin-top: 4px;
}
.shop-row-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.shop-row-link:hover::after { width: 100%; }
.shop-row-link:hover { color: var(--text-dark); }

/* ============================================================
   CARDS GRID
   ============================================================ */
.shop-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.shop-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Image */
.shop-card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--page-bg);
  flex-shrink: 0;
}
.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
  display: block;
}
.shop-card:hover .shop-card-image img { transform: scale(1.04); }

/* Badge */
.shop-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--text-dark);
  color: #f5f2ee;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
}

/* Card body */
.shop-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.shop-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
}

.shop-card-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* ATC Button */
.shop-atc-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  background: var(--text-dark);
  color: #f5f2ee;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--text-dark);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}
.shop-atc-btn:hover {
  background: transparent;
  color: var(--text-dark);
}

/* Card fade-in */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.shop-card { animation: cardFadeIn 0.4s ease both; }
.shop-card:nth-child(2) { animation-delay: 0.07s; }
.shop-card:nth-child(3) { animation-delay: 0.14s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .shop-row { grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 40px; }
}

@media (max-width: 900px) {
  .shop-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
  .shop-row-label {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 24px;
    border-left: none;
    border-bottom: 1px solid var(--divider);
    padding-left: 0;
    padding-bottom: 20px;
  }
  .shop-row-title { font-size: 2.2rem; }
  .shop-row-desc { display: none; }
  .shop-row-link { margin-top: 0; margin-left: auto; }
}

@media (max-width: 640px) {
  .shop-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shop-card:nth-child(3) { display: none; }
  .shop-card-image { height: 220px; }
}
