/* ===== SALT & SILK — Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --navy: #1B2B4B;
  --coral: #C8785A;
  --sand: #F5EFE6;
  --gold: #C9A96E;
  --white: #FAFAF7;
  --text: #333;
  --light-text: #777;
  --border: #E8E0D5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links a { color: var(--navy); transition: color 0.2s; }
.nav-links a:hover { color: var(--coral); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 1.5px; background: var(--navy); display: block; transition: 0.3s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
}
.btn-coral:hover { background: #b5674a; }

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, #1B2B4B 0%, #2d4a7a 60%, #C8785A 100%);
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://cdn.shopify.com/s/files/1/0711/3801/7442/files/8a6515b0de904c54811c1d7dcd8bf4d5-Max-Origin.webp') center/cover no-repeat;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  max-width: 620px;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
}

/* ===== PRODUCT GRID ===== */
.products-section {
  padding: 80px 5%;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,43,75,0.1);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card-img img { transform: scale(1.05); }

.sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--coral);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 500;
}

.product-card-body { padding: 1.2rem 1.4rem 1.6rem; }

.product-card-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.price-current { font-size: 1rem; font-weight: 500; color: var(--coral); }
.price-compare { font-size: 0.9rem; color: var(--light-text); text-decoration: line-through; }

/* ===== TRUST BADGES ===== */
.trust-section {
  background: var(--sand);
  padding: 50px 5%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.trust-item { padding: 1.5rem; }

.trust-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.trust-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.trust-text { font-size: 0.85rem; color: var(--light-text); }

/* ===== BANNER ===== */
.banner-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 5%;
  text-align: center;
}

.banner-section .section-title { color: var(--white); margin-bottom: 1rem; }
.banner-section p { font-size: 1rem; opacity: 0.8; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== PRODUCT PAGE ===== */
.product-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery { position: sticky; top: 90px; }

.main-image {
  aspect-ratio: 3/4;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.main-image img { width: 100%; height: 100%; object-fit: cover; }

.thumb-row {
  display: flex;
  gap: 0.5rem;
}

.thumb {
  width: 80px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumb:hover, .thumb.active { border-color: var(--navy); }

.product-info { padding-top: 0.5rem; }

.breadcrumb {
  font-size: 0.78rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.breadcrumb a:hover { color: var(--coral); }

.product-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-price { font-size: 1.5rem; font-weight: 500; color: var(--coral); }
.product-compare { font-size: 1.1rem; color: var(--light-text); text-decoration: line-through; }
.product-save { background: var(--coral); color: white; font-size: 0.75rem; padding: 3px 8px; font-weight: 500; }

.variant-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.variant-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2B4B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.variant-select:focus { outline: none; border-color: var(--navy); }

.product-desc {
  font-size: 0.9rem;
  color: var(--light-text);
  margin: 1.5rem 0;
  line-height: 1.8;
}

.product-desc ul { padding-left: 1.2rem; }
.product-desc li { margin-bottom: 0.3rem; }

.product-features {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--light-text);
}

.product-feature span:first-child { color: var(--coral); }

/* ===== SHOP PAGE ===== */
.shop-header {
  background: var(--sand);
  padding: 60px 5%;
  text-align: center;
}

.shop-body {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== TEXT PAGES (About, Shipping, etc.) ===== */
.text-page-header {
  background: var(--sand);
  padding: 60px 5%;
  text-align: center;
}

.text-page-body {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 5%;
}

.text-page-body h2 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5rem 0 0.8rem;
}

.text-page-body p, .text-page-body li {
  font-size: 0.95rem;
  color: var(--light-text);
  line-height: 1.9;
  margin-bottom: 0.6rem;
}

.text-page-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }

.text-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.text-page-body th, .text-page-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.text-page-body th {
  background: var(--sand);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq-question {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.15rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--coral); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.8;
}

.faq-item.open .faq-answer { max-height: 300px; padding-top: 0.8rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 280px; }

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
  background: var(--coral);
  color: white;
  text-align: center;
  padding: 8px 5%;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== CART BADGE ===== */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--coral);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
}

/* ===== TOAST ===== */
#cart-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  font-size: 0.85rem;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none;
}

#cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

#cart-toast a {
  color: var(--gold);
  margin-left: 12px;
  font-weight: 500;
}

/* ===== CART PAGE ===== */
.cart-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.cart-page h1 {
  font-family: 'Cormorant Garant', serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
  grid-column: 1 / -1;
}

.cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--light-text);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  background: var(--sand);
}

.cart-item-title {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--coral);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.qty-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
}

.qty-row button {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
  transition: background 0.2s;
}

.qty-row button:hover { background: var(--sand); }

.qty-row input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--navy);
}

.qty-row input:focus { outline: none; }

.remove-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--light-text);
  cursor: pointer;
  letter-spacing: 0.05em;
  text-decoration: underline;
  padding: 0;
}

.remove-btn:hover { color: var(--coral); }

.cart-summary {
  background: var(--sand);
  padding: 2rem;
  position: sticky;
  top: 90px;
}

.cart-summary h2 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.summary-row.savings { color: var(--coral); font-weight: 500; }
.summary-row.summary-note { font-size: 0.78rem; color: var(--light-text); border: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .cart-page { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }
  .nav-hamburger { display: flex; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ===== FEATURED ROTATOR DOTS ===== */
.rotator-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.rotator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}
.rotator-dot.active {
  background: var(--coral);
  transform: scale(1.2);
}
