/* =====================================================================
   Miliya Collection — storefront
   A quieter, editorial "boutique atelier" look: warm ivory paper,
   espresso ink, a single terracotta accent, generous whitespace.
   ===================================================================== */

:root {
  --ivory: #faf6f1;
  --paper: #ffffff;
  --cream-alt: #f2ebe1;
  --ink: #2b2420;
  --ink-soft: #746b60;
  --line: #e7ddce;
  --terracotta: #e43079;
  --terracotta-dark: #63035d;
  --terracotta-tint: #f3e2d8;
  --sage: #7c8a68;
  --radius: 3px;
  --shadow: 0 16px 40px rgba(43, 36, 32, 0.08);
}

* { box-sizing: border-box; }

body {
    padding-top: 80px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

em { font-style: italic; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  width: 100%;
    z-index: 999;
    top: 0px;
    position:fixed;

  background: linear-gradient( 133deg, rgb(242, 65, 113) 0%, rgb(217, 35, 127) 7%, rgb(191, 4, 141) 15%, rgb(118, 3, 103) 32%, rgb(45, 2, 64) 50%, rgb(72, 20, 102) 63%, rgb(66 17 99) 75%);

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  height: 40px;
  
  display: flex; 
  
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 36px; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-weight: bold;
}
.site-nav a:hover { color: #e0c97a; border-color: var(--terracotta); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 88px 32px 96px;
}

.hero-eyebrow {
  color: var(--terracotta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-text h1 {
  font-size: 52px;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 34px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid var(--terracotta-tint);
  border-radius: 2px;
}

.hero-visual.has-photo::before {
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-mark {
  font-family: 'Fraunces', serif;
  font-size: 160px;
  font-weight: 300;
  color: var(--terracotta-tint);
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* ---------- Section headings ---------- */

.section-title {
  font-size: 28px;
  margin-bottom: 40px;
}

.featured, .shop, .about { padding: 72px 32px; }

.featured { border-top: 1px solid var(--line); }

.about {
  border-top: 1px solid var(--line);
  text-align: left;
}
.about-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- Product grid ---------- */

.grid {
  display: grid;
  gap: 40px 28px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  display: block;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--radius);
}

.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.placeholder {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  color: var(--terracotta-tint);
}
.placeholder.large { font-size: 72px; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
}
.badge.inline { position: static; display: inline-block; margin-bottom: 16px; }

.product-info { padding: 0; }

.category-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin: 0 0 6px;
}

.product-info h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}

.price {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.large-price { font-size: 24px; color: var(--ink); margin-bottom: 20px; font-family: 'Fraunces', serif; }

/* ---------- Filters (underline tabs) ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
  padding-bottom: 2px;
}

.filter-pill {
  padding: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover { color: var(--ink); }
.filter-pill.active {
  color: var(--ink);
  border-color: var(--terracotta);
}

.empty-state {
  color: var(--ink-soft);
  padding: 40px 0;
}
.empty-state a { color: var(--terracotta); text-decoration: underline; }

/* ---------- Product detail ---------- */

.product-detail { padding: 56px 32px 100px; }

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--terracotta-dark); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-detail-image {
  aspect-ratio: 1 / 1;
  background: var(--cream-alt);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

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

/* ---------- Photo gallery / carousel ---------- */

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 246, 241, 0.85);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-nav:hover { background: var(--paper); color: var(--terracotta-dark); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-alt);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--terracotta); }
.gallery-thumb:hover { border-color: var(--terracotta-tint); }

.product-detail-info h1 { font-size: 32px; margin-bottom: 14px; }

.material { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

.description {
  color: var(--ink-soft);
  margin-bottom: 32px;
  white-space: pre-line;
  max-width: 460px;
}

.enquire-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.share-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 460px;
}

@media (max-width: 860px) {
    body {
    padding-top: 0px;}
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 38px; }
  .header-inner { flex-direction: column; gap: 14px; }
  .site-nav { gap: 24px; display:none;}
  
  .site-header{position: relative;
   }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream-alt);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 56px 32px 28px;
}

.footer-brand p { color: var(--ink-soft); margin-top: 10px; font-size: 14px; }

.footer-contact p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
}
.footer-links a:hover { color: var(--terracotta-dark); border-color: var(--terracotta-dark); }

.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 120px 32px;
}
.not-found h1 { font-size: 72px; color: var(--terracotta); }
