/* =============================================
   SK TEXTILE — Global Stylesheet
   Navy + Gold · Playfair Display + DM Sans
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --navy:       #1a2744;
  --navy-dark:  #111d36;
  --navy-mid:   #243560;
  --gold:       #c9a84c;
  --gold-light: #e8d49a;
  --gold-dark:  #b8973b;
  --white:      #ffffff;
  --off:        #f8f7f4;
  --muted:      #8899bb;
  --text:       #1a1a2e;
  --border:     #e0ddd5;
  --border-mid: #c9c5bc;
  --green-wa:   #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); }

/* ── TYPOGRAPHY ── */
.playfair { font-family: 'Playfair Display', serif; }
.eyebrow  { font-size: 10px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 500; color: var(--navy); margin-bottom: 24px; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 2px solid rgba(201,168,76,0.3);
}
.nav-logo { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 600; letter-spacing: 1px; text-decoration: none; }
.nav-logo span { color: #aab; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 3px; display: block; margin-top: 2px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #ccd; font-size: 13px; text-decoration: none; letter-spacing: 0.3px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-wa {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 500;
  transition: background .2s !important;
}
.nav-wa:hover { background: var(--gold-dark) !important; }

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold); color: var(--navy);
  padding: 13px 30px; border-radius: 4px; font-size: 14px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent; color: var(--gold);
  padding: 12px 30px; border-radius: 4px; font-size: 14px; font-weight: 500;
  text-decoration: none; border: 1.5px solid var(--gold); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy {
  background: var(--navy); color: var(--gold);
  padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-mid); }
.btn-wa {
  background: var(--green-wa); color: var(--white);
  padding: 11px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-wa:hover { background: #1fb558; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 72px 40px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 500;
  color: var(--white); line-height: 1.2; margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section { padding: 52px 40px; }
.section.bg-off { background: var(--off); }
.section.bg-navy { background: var(--navy); }
.section.bg-white { background: var(--white); }

/* ── PRODUCT CARD ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.prod-card {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  background: var(--white);
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,39,68,.1); }
.prod-img {
  background: var(--off); height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.prod-img svg { transition: transform .3s; }
.prod-card:hover .prod-img svg { transform: scale(1.05); }
.view-tabs { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.vtab { width: 8px; height: 8px; border-radius: 50%; background: #ccc; cursor: pointer; transition: background .2s; }
.vtab.active { background: var(--navy); }
.prod-info { padding: 14px 16px 10px; }
.prod-name { font-size: 14px; font-weight: 500; color: var(--navy); }
.prod-fab  { font-size: 12px; color: #888; margin-top: 3px; }
.prod-min  { font-size: 11px; color: var(--gold); font-weight: 500; margin-top: 5px; }
.prod-actions { padding: 0 14px 14px; display: flex; gap: 8px; }
.prod-actions .btn-navy { flex: 1; justify-content: center; padding: 9px; font-size: 12px; }
.prod-actions .btn-gold { flex: 1; justify-content: center; padding: 9px; font-size: 12px; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(17,29,54,.75);
  z-index: 999; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 16px; overflow: hidden;
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
}
.modal-hdr {
  background: var(--navy); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.modal-hdr-title { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 17px; }
.modal-close {
  background: var(--gold); border: none; border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer;
  color: var(--navy); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modal-views { display: flex; flex-direction: column; gap: 10px; }
.main-preview {
  background: var(--off); border-radius: 10px; height: 170px;
  display: flex; align-items: center; justify-content: center;
}
.thumb-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.thumb-item {
  background: var(--off); border-radius: 6px; height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; border: 1.5px solid transparent; transition: border-color .2s; gap: 2px;
}
.thumb-item.active { border-color: var(--gold); }
.thumb-item span { font-size: 9px; color: var(--muted); }
.modal-details { display: flex; flex-direction: column; gap: 12px; }
.modal-pname  { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--navy); }
.modal-pdesc  { font-size: 13px; color: #666; line-height: 1.6; }
.modal-pfab   { font-size: 12px; color: var(--gold); font-weight: 500; }
.qty-wrap     { display: flex; flex-direction: column; gap: 6px; }
.qty-wrap label { font-size: 12px; color: #888; }
.qty-ctrl     { display: flex; align-items: center; gap: 10px; }
.qty-btn      { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; background: var(--off); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.qty-num      { font-size: 18px; font-weight: 500; min-width: 36px; text-align: center; color: var(--navy); }

/* ── WA FLOAT BAR ── */
.wa-bar {
  background: var(--green-wa); padding: 16px 40px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; border: none; width: 100%; transition: background .2s;
}
.wa-bar:hover { background: #1fb558; }
.wa-bar span  { color: var(--white); font-size: 15px; font-weight: 500; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 24px 40px; text-align: center; }
footer p { color: #445; font-size: 12px; }
footer span { color: var(--gold); }

/* ── FORM ELEMENTS ── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.3px; color: #666; }
.field input, .field select, .field textarea {
  font-size: 13px; padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--off);
  color: var(--text); width: 100%; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: none; line-height: 1.5; }
.field-dark label { color: var(--muted); }
.field-dark input, .field-dark select, .field-dark textarea {
  background: var(--navy); border-color: rgba(201,168,76,.2); color: var(--white);
}
.field-dark select option { background: var(--navy); }
.field-dark input:focus, .field-dark select:focus, .field-dark textarea:focus {
  border-color: var(--gold);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ── SEC LABEL ── */
.sec-lbl {
  font-size: 10px; font-weight: 500; letter-spacing: 2px; color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,.2); padding-bottom: 6px; margin-top: 4px;
}

/* ── ORDER PREVIEW / JOB SHEET ── */
.order-preview-wrap { padding: 0 40px 48px; display: none; }
.order-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; max-width: 680px; margin: 0 auto;
}
.ocard-hdr {
  background: var(--navy); padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.ocard-brand { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 18px; }
.ocard-no    { color: var(--muted); font-size: 12px; }
.ocard-body  { padding: 24px; }
.info-title  { font-size: 10px; color: var(--gold); letter-spacing: 2px; font-weight: 500; margin-bottom: 8px; }
.info-row    { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 1px solid var(--off); }
.info-row .lbl { color: #888; }
.info-row .val { font-weight: 500; color: var(--navy); }
.items-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 12px 0; }
.items-table th { background: var(--navy); color: var(--gold); padding: 8px 10px; text-align: left; font-size: 11px; letter-spacing: 0.5px; }
.items-table td { padding: 8px 10px; border-bottom: 1px solid var(--off); }
.items-table tr:last-child td { border-bottom: none; }
.items-table .size-cell { text-align: center; font-weight: 500; }
.ocard-footer { background: var(--navy-dark); padding: 16px 24px; display: flex; gap: 12px; }

/* ── UPLOAD BOX ── */
.upload-box {
  border: 1.5px dashed rgba(201,168,76,.4); border-radius: 8px;
  padding: 18px; text-align: center; cursor: pointer; transition: border-color .2s;
}
.upload-box:hover { border-color: var(--gold); }
.upload-box p { font-size: 12px; color: #888; margin-top: 6px; line-height: 1.5; }

/* ── PRINT OPTS ── */
.print-opts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.popt {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 4px; text-align: center; cursor: pointer;
  font-size: 12px; color: #666; transition: all .2s;
}
.popt.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); }

/* ── INFO NOTE ── */
.info-note {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 6px; padding: 10px 14px;
  font-size: 12px; color: #9a7d30; line-height: 1.5;
}

/* ── MOBILE ── */
@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { gap: 0.8rem; flex-wrap: wrap; }
  .nav-links a { font-size: 0.75rem; letter-spacing: 1px; }
  .hero { padding: 48px 16px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 36px 16px; }
  .modal-body { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .order-preview-wrap { padding: 0 16px 32px; }
  .wa-bar { padding: 14px 16px; }
  footer { padding: 20px 16px; }
}
