/* =========================================================
   SEA HERITAGE — shared stylesheet
   Used by: index.html · catalogue.html · product.html
   Page-specific rules are scoped under body.page-home /
   body.page-catalogue / body.page-product so every page
   keeps its own layout even though the file is shared.
   ========================================================= */

:root{
  --page:#FFFDFC;
  --ink:#2A1416;
  --paper:#FEF9F9;
  --paper-deep:#F6E9E6;
  --navy:#6B2138;
  --navy-deep:#7A1414;
  --seafoam:#4F7C82;
  --pearl:#F0D9DF;
  --pearl-deep:#B98FA0;
  --coral:#C62828;
  --sand-gold:#9C7A2E;
  --line: rgba(42,20,22,0.14);
}

/* ---------- Base / reset ---------- */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--page);color:var(--ink);font-family:'Work Sans', sans-serif;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh;}
::selection{background:var(--pearl); color:var(--navy-deep);}
main{flex:1;}
a{color:inherit;}

/* ---------- Ripple divider ---------- */
.ripple{width:100%;height:20px;display:block;}
.ripple svg{width:100%;height:100%;display:block;}

/* ---------- Header / nav (shared across all pages) ---------- */
header.site{position:sticky; top:0; z-index:50; background:rgba(254,249,249,0.92); backdrop-filter: blur(6px); border-bottom:1px solid var(--line);}
.nav-wrap{max-width:1180px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:16px 28px; gap:20px; flex-wrap:wrap;}
.wordmark{font-family:'Fraunces', serif; font-weight:560; font-size:1.15rem; letter-spacing:0.01em; display:flex; align-items:center; gap:10px; text-decoration:none;}
.wordmark .dot{width:8px;height:8px;border-radius:50%;background:var(--coral);display:inline-block;}
.nav-right{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.nav-links{display:flex; gap:26px; font-size:0.82rem; letter-spacing:0.06em; text-transform:uppercase; font-weight:600;}
.nav-links a{text-decoration:none; color:var(--navy); opacity:0.75; transition:opacity .2s;}
.nav-links a:hover{opacity:1;}
.contact-btns{display:flex; gap:10px;}
.contact-btn{
  display:flex; align-items:center; gap:7px;
  border:1px solid var(--line); border-radius:999px;
  padding:7px 14px; font-size:0.78rem; font-weight:600;
  text-decoration:none; color:var(--navy-deep);
  background:transparent; transition:all .18s ease;
}
.contact-btn svg{width:14px;height:14px;flex-shrink:0;}
.contact-btn:hover{background:var(--navy-deep); color:var(--paper); border-color:var(--navy-deep);}
.contact-btn.solid{background:var(--coral); border-color:var(--coral); color:var(--paper);}
.contact-btn.solid:hover{background:var(--navy-deep); border-color:var(--navy-deep);}

/* ---------- Buttons (shared: used on Home + Product) ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:3px; text-decoration:none;
  font-weight:600; font-size:0.92rem; transition:all .18s ease;
}
.btn-primary{background:var(--navy-deep); color:var(--paper);}
.btn-primary:hover{background:var(--coral);}
.btn-ghost{border:1px solid var(--line); color:var(--navy-deep);}
.btn-ghost:hover{border-color:var(--navy-deep);}
.btn svg{width:14px;height:14px;}

/* ---------- Eyebrow label (shared: used on Home + Catalogue) ---------- */
.eyebrow{font-family:'Space Mono', monospace; font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--coral); margin-bottom:18px; display:flex; align-items:center; gap:10px;}
.eyebrow .rule{height:1px; width:34px; background:var(--coral); opacity:0.6;}

/* ---------- Footer (shared across all pages) ---------- */
footer.site-footer{background:var(--navy-deep); color:var(--paper);}
.footer-bar{
  max-width:1180px; margin:0 auto; padding:20px 28px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:0.82rem; color:rgba(254,249,249,0.7);
}
.footer-bar a{color:rgba(254,249,249,0.85); text-decoration:none;}
.footer-bar a:hover{color:var(--coral);}
.footer-links{display:flex; gap:6px; align-items:center;}

@media (max-width:820px){
  .footer-bar{flex-direction:column; align-items:flex-start;}
}

/* ---------- Fixed bottom footer ---------- */
footer.site-footer{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:40;
}

/* Chừa khoảng trống cuối trang để nội dung không bị footer che mất */
body{
  padding-bottom:60px;
}

@media (max-width:600px){
  /* Footer bar xuống dòng trên màn hình hẹp nên cần chừa nhiều hơn */
  body{
    padding-bottom:96px;
  }
}

/* =========================================================
   HOME PAGE  (index.html — body.page-home)
   ========================================================= */
.page-home .hero{max-width:1180px; margin:0 auto; padding:64px 28px 40px; display:grid; grid-template-columns: 1.3fr 0.9fr; gap:48px; align-items:center;}
.page-home h1{font-family:'Fraunces', serif; font-weight:500; font-style:italic; font-size:clamp(2.1rem, 4.3vw, 3.4rem); line-height:1.06; margin:0 0 22px; color:var(--navy-deep);}
.page-home h1 em{font-style:normal; font-weight:560;}
.page-home .hero p.lede{font-size:1.02rem; line-height:1.65; max-width:46ch; color:rgba(42,20,22,0.8); margin:0 0 30px;}
.page-home .hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}

.page-home .hero-art{position:relative; height:280px;}
.page-home .hero-art svg{width:100%; height:100%;}

.page-home .stat-strip{
  max-width:1180px; margin:0 auto; padding:10px 28px 50px;
  display:flex; gap:0; border-top:1px solid var(--line);
}
.page-home .stat{flex:1; padding:26px 20px 0; border-right:1px solid var(--line);}
.page-home .stat:last-child{border-right:none;}
.page-home .stat .num{font-family:'Fraunces', serif; font-size:2rem; font-weight:560; color:var(--navy);}
.page-home .stat .lbl{font-size:0.76rem; text-transform:uppercase; letter-spacing:0.08em; color:rgba(42,20,22,0.6); margin-top:4px;}

.page-home .about{max-width:1180px; margin:0 auto; padding:60px 28px; display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start;}
.page-home .about .kicker{font-family:'Space Mono', monospace; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:rgba(42,20,22,0.55); margin-bottom:14px;}
.page-home .about h2{font-family:'Fraunces', serif; font-weight:500; font-style:italic; font-size:1.9rem; margin:0; color:var(--navy-deep); line-height:1.2;}
.page-home .about p{font-size:0.98rem; line-height:1.7; color:rgba(42,20,22,0.78); margin:0 0 16px;}

.page-home .cat-preview{max-width:1180px; margin:0 auto; padding:20px 28px 80px;}
.page-home .cat-preview .kicker{font-family:'Space Mono', monospace; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:rgba(42,20,22,0.55); margin-bottom:20px;}
.page-home .cat-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:16px;}
.page-home .cat-card{
  display:flex; flex-direction:column; gap:14px;
  padding:26px 22px; border:1px solid var(--line); border-radius:4px;
  text-decoration:none; color:inherit; background:var(--paper);
  transition: all .18s ease;
}
.page-home .cat-card:hover{transform:translateY(-3px); border-color:rgba(42,20,22,0.28); box-shadow:0 10px 24px rgba(42,20,22,0.09);}
.page-home .cat-card svg{width:38px;height:38px;}
.page-home .cat-card .cname{font-family:'Fraunces', serif; font-weight:500; font-size:1.08rem; color:var(--navy-deep);}
.page-home .cat-card .ccount{font-size:0.8rem; color:rgba(42,20,22,0.55);}
.page-home .cat-card.c-conch svg{color:var(--navy);}
.page-home .cat-card.c-scallop svg{color:var(--coral);}
.page-home .cat-card.c-clam svg{color:var(--seafoam);}
.page-home .cat-card.c-mop svg{color:var(--pearl-deep);}
.page-home .cat-card.c-decor svg{color:var(--sand-gold);}

@media (max-width:820px){
  .page-home .hero{grid-template-columns:1fr; padding-top:44px;}
  .page-home .hero-art{height:190px; order:-1;}
  .page-home .stat-strip{flex-wrap:wrap;}
  .page-home .stat{flex:1 1 45%; border-right:none; border-bottom:1px solid var(--line); padding-bottom:16px;}
  .page-home .about{grid-template-columns:1fr;}
}


/* =========================================================
   CATALOGUE PAGE  (catalogue.html — body.page-catalogue)
   ========================================================= */
.page-catalogue .page-head{max-width:1180px; margin:0 auto; padding:52px 28px 8px;}
.page-catalogue .eyebrow{margin-bottom:16px;}
.page-catalogue h1{font-family:'Fraunces', serif; font-weight:500; font-style:italic; font-size:clamp(1.9rem, 3.6vw, 2.7rem); line-height:1.1; margin:0 0 14px; color:var(--navy-deep);}
.page-catalogue .page-head p{font-size:1rem; line-height:1.6; max-width:60ch; color:rgba(42,20,22,0.75); margin:0;}

.page-catalogue .tide-index{max-width:1180px; margin:0 auto; padding:28px 28px 8px;}
.page-catalogue .tide-caption{font-family:'Space Mono', monospace; font-size:0.7rem; letter-spacing:0.08em; color:rgba(42,20,22,0.55); text-transform:uppercase; margin-bottom:10px;}
.page-catalogue .tide-line{position:relative; height:56px; border-bottom:1px solid var(--line);}
.page-catalogue .tide-tick{position:absolute; bottom:0; width:2px; transform-origin:bottom;}
.page-catalogue .tide-tick.c-conch{background:var(--navy);}
.page-catalogue .tide-tick.c-scallop{background:var(--coral);}
.page-catalogue .tide-tick.c-clam{background:var(--seafoam);}
.page-catalogue .tide-tick.c-mop{background:var(--pearl-deep);}
.page-catalogue .tide-tick.c-decor{background:var(--sand-gold);}

.page-catalogue .filter-bar{max-width:1180px; margin:0 auto; padding:34px 28px 6px; display:flex; flex-wrap:wrap; gap:10px; align-items:center;}
.page-catalogue .filter-label{font-family:'Space Mono', monospace; font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(42,20,22,0.55); margin-right:8px;}
.page-catalogue .pill{border:1px solid var(--line); background:transparent; color:var(--navy); padding:8px 16px; border-radius:999px; font-family:'Work Sans', sans-serif; font-size:0.84rem; font-weight:500; cursor:pointer; transition: all .18s ease;}
.page-catalogue .pill .count{opacity:0.55; font-size:0.78rem; margin-left:4px;}
.page-catalogue .pill:hover{border-color:var(--navy);}
.page-catalogue .pill.active{background:var(--navy-deep); color:var(--paper); border-color:var(--navy-deep);}

.page-catalogue .grid-wrap{max-width:1180px; margin:0 auto; padding:24px 28px 80px;}
.page-catalogue .grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:18px;}
.page-catalogue .card{
  background:var(--paper); border:1px solid var(--line); border-radius:4px;
  overflow:hidden; display:flex; flex-direction:column;
  text-decoration:none; color:inherit; position:relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.page-catalogue .card:hover{transform:translateY(-3px); border-color:rgba(42,20,22,0.28); box-shadow:0 10px 24px rgba(42,20,22,0.09);}
.page-catalogue .card-media{width:100%; aspect-ratio:1/1; position:relative; background:var(--paper-deep); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.page-catalogue .card-media img{width:100%; height:100%; object-fit:cover; display:block;}
.page-catalogue .card-media.placeholder{border-bottom:1px dashed var(--line);}
.page-catalogue .card-media.placeholder svg{width:30px;height:30px; opacity:0.35;}
.page-catalogue .placeholder-label{position:absolute; bottom:8px; left:0; right:0; text-align:center; font-family:'Space Mono', monospace; font-size:0.6rem; letter-spacing:0.06em; text-transform:uppercase; color:rgba(42,20,22,0.4);}
.page-catalogue .card-body{padding:16px 18px 14px; display:flex; flex-direction:column; gap:8px; flex:1;}
.page-catalogue .card-tag{font-family:'Space Mono', monospace; font-size:0.64rem; letter-spacing:0.08em; text-transform:uppercase; color:rgba(42,20,22,0.5);}
.page-catalogue .card-name{font-family:'Fraunces', serif; font-weight:500; font-size:1.02rem; line-height:1.28; color:var(--navy-deep);}
.page-catalogue .card-foot{margin-top:auto; display:flex; align-items:center; justify-content:flex-end; font-size:0.78rem; padding-top:8px;}
.page-catalogue .card-cta{color:var(--coral); font-weight:600; display:flex; align-items:center; gap:4px;}
.page-catalogue .card-cta svg{width:12px;height:12px; transition:transform .18s;}
.page-catalogue .card:hover .card-cta svg{transform:translateX(3px);}
.page-catalogue .card.cat-conch .card-tag{color:var(--navy);}
.page-catalogue .card.cat-scallop .card-tag{color:var(--coral);}
.page-catalogue .card.cat-clam .card-tag{color:var(--seafoam);}
.page-catalogue .card.cat-mop .card-tag{color:var(--pearl-deep);}
.page-catalogue .card.cat-decor .card-tag{color:var(--sand-gold);}

.page-catalogue .empty-note{grid-column:1/-1; text-align:center; padding:60px 0; color:rgba(42,20,22,0.5); font-family:'Space Mono', monospace; font-size:0.85rem;}


/* =========================================================
   PRODUCT PAGE  (product.html — body.page-product)
   ========================================================= */
.page-product .breadcrumb{max-width:1180px; margin:0 auto; padding:22px 28px 0; font-size:0.82rem; color:rgba(42,20,22,0.55); display:flex; gap:8px; flex-wrap:wrap;}
.page-product .breadcrumb a{text-decoration:none; color:var(--navy);}
.page-product .breadcrumb a:hover{text-decoration:underline;}

.page-product .product{max-width:1180px; margin:0 auto; padding:26px 28px 20px; display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
.page-product .product-media{position:sticky; top:96px;}
.page-product .media-frame{position:relative; width:100%; aspect-ratio:1/1; border-radius:4px; overflow:hidden; background:var(--paper); border:1px solid var(--line);}
.page-product .slider-track{display:flex; height:100%; transition: transform .45s cubic-bezier(.65,0,.35,1);}
.page-product .slide{min-width:100%; height:100%; flex-shrink:0;overflow:hidden;}
.page-product .slide img{width:100%; height:100%; object-fit:cover; display:block;max-width:100%;max-height:100%;}

.page-product .slider-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  background:rgba(254,249,249,0.88); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .18s ease; z-index:5; padding:0;
}
.page-product .slider-btn:hover{background:var(--navy-deep); border-color:var(--navy-deep);}
.page-product .slider-btn:hover svg{color:var(--paper);}
.page-product .slider-btn.prev{left:14px;}
.page-product .slider-btn.next{right:14px;}
.page-product .slider-btn svg{width:18px; height:18px; color:var(--navy-deep); transition:color .18s ease;}

.page-product .slider-dots{display:flex; justify-content:center; align-items:center; gap:8px; margin-top:16px;}
.page-product .slider-dot{
  width:8px; height:8px; border-radius:50%; border:none; padding:0;
  background:rgba(42,20,22,0.25); cursor:pointer; transition:all .22s ease;
}
.page-product .slider-dot:hover{background:rgba(42,20,22,0.45);}
.page-product .slider-dot.active{background:var(--coral); width:22px; border-radius:4px;}

.page-product .product-tag{font-family:'Space Mono', monospace; font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--coral); margin-bottom:12px;}
.page-product h1{font-family:'Fraunces', serif; font-weight:500; font-style:italic; font-size:clamp(1.9rem, 3.4vw, 2.6rem); line-height:1.12; margin:0 0 8px; color:var(--navy-deep);}
.page-product .genus{font-family:'Fraunces', serif; font-style:italic; font-size:1rem; color:rgba(42,20,22,0.55); margin:0 0 22px;}
.page-product .lede{font-size:1.02rem; line-height:1.7; color:rgba(42,20,22,0.82); margin:0 0 26px; max-width:52ch;}

.page-product .cta-row{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:34px;}

.page-product .spec-table{border-top:1px solid var(--line); margin-bottom:28px;}
.page-product .spec-row{display:grid; grid-template-columns:140px 1fr; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); font-size:0.92rem;}
.page-product .spec-row .k{color:rgba(42,20,22,0.55); font-family:'Space Mono', monospace; font-size:0.76rem; letter-spacing:0.04em; text-transform:uppercase; padding-top:2px;}
.page-product .spec-row .v{color:var(--ink);}

.page-product .note-box{
  background:var(--paper); border:1px solid var(--line); border-radius:4px;
  padding:18px 20px; font-size:0.88rem; line-height:1.6; color:rgba(42,20,22,0.75);
}
.page-product .note-box strong{color:var(--navy-deep);}

.page-product .section-head{max-width:1180px; margin:0 auto; padding:64px 28px 6px; display:flex; align-items:baseline; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.page-product .section-head h2{font-family:'Fraunces', serif; font-weight:500; font-style:italic; font-size:1.5rem; margin:0; color:var(--navy-deep);}
.page-product .section-head a{font-size:0.85rem; font-weight:600; color:var(--coral); text-decoration:none; display:flex; align-items:center; gap:5px;}
.page-product .section-head a svg{width:12px;height:12px;}

.page-product .grid-wrap{max-width:1180px; margin:0 auto; padding:20px 28px 90px;}
.page-product .grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:18px;}
.page-product .card{
  background:var(--paper); border:1px solid var(--line); border-radius:4px;
  overflow:hidden; display:flex; flex-direction:column;
  text-decoration:none; color:inherit; position:relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.page-product .card:hover{transform:translateY(-3px); border-color:rgba(42,20,22,0.28); box-shadow:0 10px 24px rgba(42,20,22,0.09);}
.page-product .card-media{width:100%; aspect-ratio:1/1; position:relative; background:var(--paper-deep); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.page-product .card-media img{width:100%; height:100%; object-fit:cover; display:block;}
.page-product .card-media.placeholder svg{width:26px;height:26px; opacity:0.35;}
.page-product .placeholder-label{position:absolute; bottom:8px; left:0; right:0; text-align:center; font-family:'Space Mono', monospace; font-size:0.58rem; letter-spacing:0.06em; text-transform:uppercase; color:rgba(42,20,22,0.4);}
.page-product .card-body{padding:14px 16px 12px; display:flex; flex-direction:column; gap:6px; flex:1;}
.page-product .card-tag{font-family:'Space Mono', monospace; font-size:0.62rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--coral);}
.page-product .card-name{font-family:'Fraunces', serif; font-weight:500; font-size:0.96rem; line-height:1.28; color:var(--navy-deep);}

@media (max-width:820px){
  .page-product .product{grid-template-columns:1fr; gap:28px;}
  .page-product .product-media{position:static;}
}
