/* Ahayu — Illimani photograph collection.
   Palette is pulled off the mountain itself:
     - ink        #1a1e28  (deep night sky above the snowline)
     - slate      #3d4557  (weathered rock in shadow)
     - snow       #f4f2ec  (glacier off-white, page background)
     - stone      #ded8cc  (limestone facades of La Paz at midday)
     - alpenglow  #d97534  (that ~10 minute window when the sunset lights up the west face)
     - moss       #6b7a4c  (terraced fields on the switchback slopes)
   Kept minimalist so the photographs do the work.
*/

:root {
  --ink: #1a1e28;
  --slate: #3d4557;
  --snow: #f4f2ec;
  --stone: #ded8cc;
  --alpenglow: #d97534;
  --moss: #6b7a4c;
  --border: rgba(26, 30, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--alpenglow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Nav / footer ---------- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--snow);
}

.site-nav .brand {
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.site-nav .brand:hover {
  text-decoration: none;
  color: var(--alpenglow);
}

.site-nav .links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .links a {
  color: var(--slate);
}

.site-nav .links a:hover {
  color: var(--alpenglow);
  text-decoration: none;
}

.cart-count {
  display: inline-block;
  min-width: 20px;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 10px;
  background: var(--alpenglow);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: baseline;
}

.cart-count.empty {
  background: transparent;
  color: var(--slate);
}

.site-footer {
  margin-top: 80px;
  padding: 40px;
  border-top: 1px solid var(--border);
  color: var(--slate);
  font-size: 13px;
  text-align: center;
}

.site-footer em {
  color: var(--alpenglow);
  font-style: normal;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--snow);
}

.hero-overlay h1 {
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: 0.14em;
  margin: 0 0 16px 0;
  font-weight: 400;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-overlay .tagline {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.08em;
  max-width: 680px;
  color: rgba(244, 242, 236, 0.9);
  font-style: italic;
}

/* ---------- Generic page container ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px;
}

.container.narrow {
  max-width: 780px;
}

h2.section-title {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  margin: 0 0 40px 0;
  font-style: italic;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--alpenglow);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 117, 52, 0.35);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--snow);
  text-decoration: none;
}

/* ---------- Home body ---------- */

.home-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 40px 40px;
  text-align: center;
}

.home-body p {
  margin: 0 0 22px 0;
  color: var(--slate);
}

.home-body p:first-of-type::first-letter {
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--alpenglow);
  font-family: Georgia, serif;
}

/* ---------- Collections grid ---------- */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 30, 40, 0.12);
}

.product-card a.card-link {
  color: inherit;
}

.product-card a.card-link:hover {
  text-decoration: none;
}

.product-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
}

.product-card .thumb.portrait {
  aspect-ratio: 3 / 4;
}

.product-card .body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--ink);
}

.product-card .body .teaser {
  font-size: 0.95rem;
  color: var(--slate);
  font-style: italic;
  margin: 0 0 20px 0;
  flex: 1;
}

.product-card .body .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-card .body .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.product-card .body a.view-btn {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.product-card .body a.view-btn:hover {
  background: var(--ink);
  color: var(--snow);
  text-decoration: none;
}

/* ---------- Product page ---------- */

.product-page {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 880px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.product-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--stone);
}

.product-info h1 {
  font-family: Georgia, serif;
  font-size: 2.3rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.product-info .product-size {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 20px 0;
}

.product-info .price-tag {
  font-size: 1.8rem;
  color: var(--alpenglow);
  font-weight: 700;
  margin: 0 0 24px 0;
}

.product-info .description {
  color: var(--slate);
  margin: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.65;
}

.fun-fact {
  margin: 32px 0;
  padding: 20px 24px;
  background: rgba(107, 122, 76, 0.08);
  border-left: 3px solid var(--moss);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.fun-fact .fact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 6px;
}

.added-msg {
  margin-top: 14px;
  color: var(--moss);
  font-size: 0.9rem;
  font-style: italic;
  min-height: 1.4em;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Cart ---------- */

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 1px solid var(--border);
}

.cart-item .thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--stone);
}

.cart-item .info h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
}

.cart-item .info .size {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item .price {
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-item .remove {
  background: transparent;
  border: 1px solid var(--slate);
  color: var(--slate);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-item .remove:hover {
  background: var(--slate);
  color: var(--snow);
}

.cart-summary {
  max-width: 400px;
  margin-left: auto;
  padding: 24px 0 0 0;
  font-size: 1rem;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--slate);
}

.cart-summary .row.total {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
}

.shipping-note {
  font-size: 12px;
  color: var(--slate);
  font-style: italic;
  margin-top: 8px;
  text-align: right;
  max-width: 400px;
  margin-left: auto;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate);
  font-style: italic;
  font-size: 1.1rem;
}

.cart-empty p {
  margin: 0 0 24px 0;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Mobile tweaks ---------- */

@media (max-width: 640px) {
  .site-nav {
    padding: 16px 20px;
  }
  .site-nav .links {
    gap: 16px;
  }
  .container {
    padding: 40px 20px;
  }
  .home-body {
    padding: 48px 20px 20px;
  }
  .hero {
    height: 70vh;
  }
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 16px;
  }
  .cart-item .thumb {
    width: 60px;
    height: 45px;
  }
  .cart-item .price {
    grid-column: 3;
    grid-row: 1;
  }
  .cart-item .remove {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: end;
  }
}
