/* ═══════════════════════════════════════════════════════
   COMPONENTS.CSS
   Shared components that appear on multiple pages:
   announcement bar, navbar, hamburger, mobile menu,
   product cards, editorial, craftsmanship strip,
   testimonials, newsletter, footer
═══════════════════════════════════════════════════════ */

/* ─── ANNOUNCEMENT BAR ──────────────────────────────── */
.announcement {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 300;
}
.announcement span { opacity: 0.5; margin: 0 16px; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 200;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { display: block; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icons svg {
  width: 20px;
  height: 20px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
  cursor: pointer;
  transition: stroke 0.2s;
}
.nav-icons svg:hover { stroke: var(--gold); }

nav .language-selector-container select {
    background-color: transparent;
}

/* ─── HAMBURGER ──────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU OVERLAY ────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--warm-white);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 0 40px;
}

.mobile-nav {
  flex: 1;
  border-bottom: 1px solid var(--sand);
}
.mobile-nav ul { list-style: none; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link::after {
  content: '→';
  font-size: 16px;
  font-family: var(--font-sans);
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.mobile-nav-link:hover { color: var(--gold); padding-left: 32px; }
.mobile-nav-link:hover::after { opacity: 1; transform: translateX(4px); }

.mobile-menu-footer { padding: 32px 24px 0; }

.mobile-menu-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mobile-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--sand);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-icon-link:hover { border-color: var(--dark); color: var(--dark); }
.mobile-icon-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ─── PRODUCT CARDS ──────────────────────────────────── */
/* Used on home (featured) and collections page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card { 
    cursor: pointer;
    text-decoration: none;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 16px;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  font-weight: 500;
}

.product-wishlist {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist svg {
  width: 16px; height: 16px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
}

.product-quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-align: center;
  padding: 13px;
  transform: translateY(100%);
  transition: transform 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.product-card:hover .product-quick-add { transform: translateY(0); }

.product-collection {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-materials {
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 10px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.stars {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
}

/* ─── EDITORIAL BANNER ───────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.editorial-image {
  position: relative;
  overflow: hidden;
}

.editorial-image video,
.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-content {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.editorial-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 32px;
}

/* ─── CRAFTSMANSHIP STRIP ────────────────────────────── */
.craftsmanship {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.craft-item {
  padding: 48px 32px;
  border-right: 1px solid var(--sand);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.craft-item:last-child { border-right: none; }

.craft-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.craft-icon svg {
  width: 26px; height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.2;
}

.craft-label {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
}

.craft-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section {
  background: var(--dark);
  padding: 80px 48px;
  text-align: center;
}

.testimonials-section .section-eyebrow { color: rgba(255,255,255,0.4); }
.testimonials-section .section-title { color: #fff; margin-bottom: 56px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  text-align: left;
  padding: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.testimonial-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

/* ─── NEWSLETTER ─────────────────────────────────────── */
.newsletter-section {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--sand);
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.newsletter-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--taupe);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--dark);
  background: transparent;
  letter-spacing: 0.05em;
  min-width: 0;
}
.newsletter-input::placeholder { color: var(--taupe); }

.newsletter-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--gold); }

.newsletter-note {
  font-size: 11px;
  color: var(--taupe);
  margin-top: 12px;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 48px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo { color: #fff; display: block; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s;
}
.footer-social a:hover { border-color: rgba(255,255,255,0.5); }
.footer-social svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  stroke-width: 1.5;
}

/* ══════════════════════════════════════════════════════
   COMPONENTS RESPONSIVE
══════════════════════════════════════════════════════ */

/* ─── TABLET (≤1024px) ───────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .editorial-content { padding: 48px 48px; }
  .craftsmanship { grid-template-columns: repeat(2, 1fr); }
  .craft-item:nth-child(2) { border-right: none; }
  .craft-item:nth-child(3) { border-right: 1px solid var(--sand); }
  .craft-item:nth-child(3),
  .craft-item:nth-child(4) { border-top: 1px solid var(--sand); }
}

/* ─── MOBILE (≤768px) ────────────────────────────────── */
@media (max-width: 768px) {

  /* — Announcement — */
  .announcement { font-size: 11px; padding: 8px 16px; }
  .announcement span { margin: 0 8px; }

  /* — Nav — */
  :root { --nav-h: 60px; }
  nav { padding: 0 16px; height: var(--nav-h); }
  .logo img { width: 120px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .desktop-only { display: none; }
  .nav-icons { gap: 14px; }
  .nav-icons svg:nth-child(2) { display: none; }
  .mobile-menu { display: block; }

  /* — Products — */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-image-wrap { aspect-ratio: 1/1; margin-bottom: 12px; }
  .product-name { font-size: 16px; }
  .product-price { font-size: 18px; }
  .product-wishlist { opacity: 1; }
  .product-quick-add { transform: translateY(0); font-size: 10px; padding: 10px; }

  /* — Editorial — */
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { aspect-ratio: 16/9; }
  .editorial-content { padding: 40px 20px; }
  .editorial-title { font-size: 18px; }

  /* — Craftsmanship — */
  .craftsmanship { grid-template-columns: 1fr; }
  .craft-item { border-right: none !important; border-top: none; border-bottom: 1px solid var(--sand); padding: 28px 20px; }
  .craft-item:first-child { border-top: 1px solid var(--sand); }

  /* — Testimonials — */
  .testimonials-section { padding: 48px 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-section .section-title { margin-bottom: 32px; font-size: clamp(26px, 6vw, 40px); }
  .testimonial-card { padding: 24px; }
  .testimonial-text { font-size: 17px; }

  /* — Newsletter — */
  .newsletter-section { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px; }

  /* — Footer — */
  footer { padding: 48px 16px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 0; margin-bottom: 32px; }
  .footer-brand { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-col { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-heading {
    cursor: pointer;
    padding: 16px 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }
  .footer-heading::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    transition: transform 0.2s;
  }
  .footer-col.is-open .footer-heading::after { transform: rotate(45deg); }
  .footer-links { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .footer-col.is-open .footer-links { max-height: 300px; padding-bottom: 16px; }
  .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; padding-top: 24px; }
}

/* ─── SMALL MOBILE (≤400px) ──────────────────────────── */
@media (max-width: 400px) {
  .logo img { width: 100px; }
  .products-grid { gap: 10px; }
  .product-name { font-size: 15px; }
  .product-quick-add { display: none; }
}