/* ===========================================================
   SKY JEWELERS — STYLES
   Palette drawn from the logo: deep navy, rich gold, cream.
   =========================================================== */

:root {
  --navy-900: #06112A;   /* darkest background */
  --navy-800: #0A1B3D;   /* primary navy */
  --navy-700: #112452;   /* raised panels */
  --gold-300: #F4D77E;   /* light gold highlight */
  --gold-400: #E6C262;   /* gold */
  --gold-500: #C9A227;   /* deep gold */
  --cream:    #F8F5EF;   /* off-white text / light sections */
  --cream-2:  #ECE6DA;
  --ink:      #1A1A1A;
  --muted:    #9AA6C0;   /* muted text on navy */
  --gold-gradient: linear-gradient(135deg, #F4D77E 0%, #C9A227 50%, #9A7B1C 100%);
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }

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

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

.container { width: 92%; max-width: var(--max); margin: 0 auto; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(201,162,39,.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,162,39,.45); }
.btn-outline {
  background: transparent;
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.btn-outline:hover { background: var(--gold-400); color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,17,42,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 66px; width: auto; display: block; }
.nav-logo .brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.nav-logo .brand small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .3em; color: var(--gold-400); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--gold-300); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-400); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
/* Full-width rotating promo banners */
.hero-slider { position: relative; width: 100%; aspect-ratio: 3 / 1; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide a { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Slider controls (arrows + dots) */
.hero-nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-arrow {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201,162,39,.5); background: rgba(6,17,42,.4);
  color: var(--gold-300); font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--gold-gradient); color: var(--navy-900); border-color: transparent; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots {
  pointer-events: auto;
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center;
}
.hero-dots .dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(248,245,239,.45); transition: width .25s, background .25s, border-radius .25s;
}
.hero-dots .dot:hover { background: rgba(248,245,239,.8); }
.hero-dots .dot.active { background: var(--gold-gradient); width: 24px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .4s ease; }
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--navy-800);
  border-top: 1px solid rgba(201,162,39,.15);
  border-bottom: 1px solid rgba(201,162,39,.15);
}
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 26px 0; text-align: center; }
.trust-grid .item { }
.trust-grid .ic { font-size: 1.4rem; color: var(--gold-400); }
.trust-grid .t { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.trust-grid .s { font-size: .74rem; color: var(--muted); }

/* ---------- Section shell ---------- */
.section { padding: 86px 0; }
.section-tight { padding-top: 40px; padding-bottom: 60px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { letter-spacing: .35em; text-transform: uppercase; font-size: .72rem; color: var(--gold-400); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- Category chips ---------- */
.filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  background: transparent; border: 1px solid rgba(201,162,39,.35); color: var(--cream);
  padding: 9px 22px; border-radius: 40px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--gold-400); color: var(--gold-300); }
.chip.active { background: var(--gold-gradient); color: var(--navy-900); border-color: transparent; font-weight: 600; }
.chip small { font-size: .7em; opacity: .7; margin-left: 4px; }

/* ---------- Shop by Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-tile {
  position: relative; padding: 0; border: 1px solid rgba(201,162,39,.2);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--navy-800); color: var(--cream); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.5); }
.cat-thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cat-tile:hover .cat-thumb img { transform: scale(1.06); }
.cat-thumb .ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--font-display); color: var(--gold-400); font-size: 2rem; }
.cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(6,17,42,.92) 10%, rgba(6,17,42,0));
}
.cat-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-300); }
.cat-ct { font-size: .72rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* ---------- Catalog search / count / pagination ---------- */
.shop-search { max-width: 620px; margin: 0 auto 26px; }
.shop-search input {
  width: 100%; box-sizing: border-box;
  background: var(--navy-900); border: 1px solid rgba(201,162,39,.35);
  border-radius: 40px; color: var(--cream);
  padding: 15px 24px; font-size: .95rem; font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.shop-search input::placeholder { color: var(--muted); }
.shop-search input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }

.shop-count { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .08em; margin-bottom: 26px; }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 44px; }
.pagination .pg {
  min-width: 42px; height: 42px; padding: 0 12px;
  background: transparent; border: 1px solid rgba(201,162,39,.3); color: var(--cream);
  border-radius: 10px; font-size: .85rem; cursor: pointer; transition: .2s;
}
.pagination .pg:hover:not(:disabled):not(.active) { border-color: var(--gold-400); color: var(--gold-300); }
.pagination .pg.active { background: var(--gold-gradient); color: var(--navy-900); border-color: transparent; font-weight: 600; }
.pagination .pg:disabled { opacity: .35; cursor: default; }
.pagination .pg-gap { color: var(--muted); padding: 0 2px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: var(--navy-800);
  border: 1px solid rgba(201,162,39,.16);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.45); }
.card .thumb {
  aspect-ratio: 1/1; position: relative;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.09); }
.card .thumb .ph { font-family: var(--font-display); font-size: 3.4rem; color: rgba(201,162,39,.28); }
.card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(6,17,42,.8); color: var(--gold-300);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(201,162,39,.35);
}
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.card .name { font-family: var(--font-display); font-size: 1.3rem; }
.card .price { font-size: 1.05rem; color: var(--cream); margin-top: 2px; }
.card .price .inquire { color: var(--muted); font-style: italic; font-family: var(--font-display); }
.card .actions { margin-top: 14px; display: flex; gap: 10px; }
.card .actions .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: .68rem; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split ul { list-style: none; padding: 0; margin: 0 0 24px; }
.split ul li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--cream); }
.split ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-400); }

/* ---------- Instagram CTA ---------- */
.insta {
  text-align: center;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(201,162,39,.16), transparent 60%),
    var(--navy-800);
  border-top: 1px solid rgba(201,162,39,.15);
}
.insta .ig-icon { font-size: 2.2rem; }
.insta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 10px 0 14px; }
.insta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(201,162,39,.18); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { font-family: var(--font-display); font-size: 1.5rem; }
.footer-grid p { color: var(--muted); font-size: .9rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--cream); opacity: .8; font-size: .9rem; margin-bottom: 8px; transition: .2s; }
.footer-grid a:hover { opacity: 1; color: var(--gold-300); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); }

/* ---------- Product page (PDP) ---------- */
.pdp { padding: 36px 0 90px; }
.pdp-loading, .pdp-hint { color: var(--muted); font-size: .9rem; padding: 20px 0; }
.pdp-missing { text-align: center; padding: 80px 0; }
.pdp-missing h1 { margin-bottom: 12px; }
.pdp-missing p { color: var(--muted); margin-bottom: 24px; }
.pdp-back { display: inline-block; color: var(--gold-300); font-size: .85rem; letter-spacing: .08em; margin-bottom: 26px; }
.pdp-back:hover { color: var(--gold-400); }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 50px; align-items: start; }

.pdp-main { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(201,162,39,.18); }
.pdp-main-img { width: 100%; height: 100%; object-fit: contain; }
.pdp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(6,17,42,.55); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; z-index: 2; }
.pdp-arrow:hover { background: var(--gold-gradient); color: var(--navy-900); }
.pdp-arrow.prev { left: 12px; }
.pdp-arrow.next { right: 12px; }
.pdp-gallery .ph { font-family: var(--font-display); font-size: 5rem; color: rgba(201,162,39,.28); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 72px; height: 72px; padding: 0; background: #fff; border: 1.5px solid rgba(201,162,39,.3); border-radius: 8px; overflow: hidden; cursor: pointer; }
.pdp-thumb.active { border-color: var(--gold-400); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pdp-cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.pdp-info h1 { font-size: 2.1rem; line-height: 1.2; margin: 10px 0 14px; }
.pdp-price { font-size: 1.9rem; margin-bottom: 14px; }
.pdp-cond:not(:empty) { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-300); border: 1px solid rgba(201,162,39,.4); border-radius: 30px; padding: 4px 12px; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.pdp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.pdp-specs .spec { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.pdp-specs .spec span { color: var(--muted); }
.pdp-specs .spec b { color: var(--cream); font-weight: 500; text-align: right; }
.pdp-ebay { margin-top: 16px; }

.pdp-desc { margin-top: 54px; max-width: 860px; }
.pdp-desc h2 { font-size: 1.5rem; margin-bottom: 14px; }
.pdp-fulldesc { color: var(--cream-2); font-size: .92rem; line-height: 1.8; }
.pdp-fulldesc b, .pdp-fulldesc strong { color: var(--cream); }
.pdp-fulldesc ul, .pdp-fulldesc ol { margin: 10px 0 10px 20px; }
.pdp-fulldesc li { margin: 4px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-arrow { width: 34px; height: 34px; font-size: 1.3rem; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .hero-dots { bottom: 10px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 1px solid rgba(201,162,39,.2);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 16px 24px; width: 100%; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-links .btn { margin: 14px 24px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pdp-top { grid-template-columns: 1fr; gap: 28px; }
  .pdp-specs { grid-template-columns: 1fr; }
}
