@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  /* core palette — dark, warm accent (matches the TWK landing page) */
  --bg: #111214;
  --bg2: #17191C;
  --card: #1C1F23;
  --line: #2A2E34;
  --fire: #FF6B2C;
  --gold: #FFC24B;
  --text: #F2F3F5;
  --good: #3DDC97;
  --bad: #FF5A5F;
  --grad: linear-gradient(100deg, var(--fire), var(--gold));

  /* legacy variable names — kept because several PHP templates reference
     these custom properties directly in inline styles; values are remapped
     to fit the dark theme so those templates don't need to change. */
  --cream: #F2F3F5;       /* light foreground text on a dark surface */
  --cream-line: #2A2E34;  /* subtle border on a dark surface */
  --navy: #1C1F23;        /* dark surface fill (buttons, dark sections) */
  --navy-line: #24282E;   /* slightly raised dark panel (e.g. payment info box) */
  --gold-dark: #FF6B2C;   /* accent text (eyebrows, step numbers) */
  --white: #1C1F23;       /* "card" surfaces */
  --text-muted: #9AA1AB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--text); }
a:hover { color: var(--fire); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.01em; margin: 0; }

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

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 18, 20, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo span { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text); }
.nav-links a:hover { color: var(--fire); }

/* Mobile nav: hamburger button + right-side sliding drawer */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; padding: 0;
}
.nav-close {
  display: none;
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent; color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.nav-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  z-index: 998; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
body.nav-lock { overflow: hidden; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-overlay { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: var(--card);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    gap: 4px; padding: 68px 18px 24px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 999; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text); padding: 12px 10px; border-radius: 8px; width: 100%; }
  .nav-links a:hover { background: var(--navy-line); color: var(--text); }
  .nav-links .btn { width: 100%; }
  .nav-links span { padding: 2px 10px; color: var(--text-muted) !important; }
  .nav-close { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav { padding: 16px 20px; }
  section { padding: 48px 20px; }
  .hero { padding: 40px 20px 56px; }
  .product-page { padding: 32px 20px 64px; }
  .form-page { padding: 40px 20px 72px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 16px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn-dark:hover { background: var(--navy-line); color: var(--text); }
.btn-gold { background: var(--grad); color: #1A0E05; box-shadow: 0 8px 26px rgba(255, 107, 44, .3); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(255, 107, 44, .48); color: #1A0E05; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn-block { width: 100%; }

.hero {
  padding: 56px 32px 80px;
  background: radial-gradient(520px 320px at 8% -10%, rgba(255, 107, 44, .16), transparent 65%),
              radial-gradient(420px 260px at 95% 10%, rgba(255, 194, 75, .10), transparent 65%);
}
.hero-flex { display: flex; align-items: center; gap: 56px; }
@media (max-width: 980px) { .hero-flex { flex-direction: column; } }
.hero h1 { font-size: 56px; line-height: 1.04; font-weight: 700; }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 520px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fire); }

.browser-mock { flex: 0 0 440px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 100%; }
.browser-mock .bar { display: flex; gap: 7px; padding: 14px 18px; background: var(--navy-line); }
.browser-mock .dot { width: 10px; height: 10px; border-radius: 6px; background: #3A3E46; }
.browser-mock .body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.browser-mock .shot { height: 160px; border-radius: 10px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }
.browser-mock .row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.browser-mock .row div { height: 48px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.browser-mock .row div.accent { background: var(--grad); border: none; }

.includes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 780px) { .includes-grid { grid-template-columns: 1fr; } }
.include-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.include-card svg { color: var(--fire); }

.clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .clients-grid { grid-template-columns: 1fr; } }
.client-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.client-shot { height: 180px; background: var(--line); overflow: hidden; }
.client-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-card-body { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.client-card-body h3 { font-size: 18px; }

.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 32px; }
.pill {
  min-height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); color: var(--text);
}
.pill:hover { border-color: var(--fire); }
.pill.active { background: var(--fire); color: #1A0E05; border-color: var(--fire); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-shot {
  height: 170px; background: var(--line); display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; flex-grow: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--gold); }

section { padding: 72px 32px; }
.section-dark { background: var(--bg2); color: var(--text); }
.section-dark p { color: var(--text-muted); }
.section-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--fire); padding-top: 20px; }
.step .num { font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 700; color: var(--fire); }

.form-page { max-width: 640px; margin: 0 auto; padding: 56px 32px 96px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; color: var(--text); }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 15px;
  background: var(--bg); color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--fire); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fire); }
textarea { resize: vertical; }
.pay-box { background: var(--navy-line); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 8px; font-size: 15px; }
.pay-box b { display: block; margin-bottom: 4px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }
.alert-error { background: rgba(255, 90, 95, .12); color: var(--bad); }
.alert-success { background: rgba(61, 220, 151, .12); color: var(--good); }

footer { padding: 32px; background: var(--bg2); color: var(--text-muted); border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Product detail page */
.product-page { max-width: 1100px; margin: 0 auto; padding: 48px 32px 96px; }
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.product-grid { display: flex; gap: 48px; align-items: flex-start; }
@media (max-width: 860px) { .product-grid { flex-direction: column; } }

.gallery { flex: 0 0 420px; max-width: 100%; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; background: var(--line); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; background: var(--line); }
.gallery-thumbs img.active { border-color: var(--fire); }

.product-info { flex-grow: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-info h1 { font-size: 34px; line-height: 1.15; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 19px; }
.price-row .now-price { font-family: 'Fraunces', Georgia, serif; font-size: 36px; font-weight: 700; color: var(--gold); }
.discount-badge { background: rgba(255, 90, 95, .14); color: var(--bad); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.stock-line { font-size: 15px; color: var(--text-muted); }
.stock-line.out { color: var(--bad); font-weight: 600; }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-call { background: var(--card); border: 1px solid var(--line); color: var(--text); }

.description-block { margin-top: 56px; max-width: 760px; }
.description-block h2 { font-size: 26px; margin-bottom: 14px; }
.description-block p { color: var(--text-muted); font-size: 16px; line-height: 1.75; white-space: pre-line; margin: 0; }

.description-html { color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.description-html h1, .description-html h2, .description-html h3, .description-html h4 { font-family: 'Fraunces', Georgia, serif; color: var(--text); margin: 28px 0 10px; }
.description-html h1:first-child, .description-html h2:first-child, .description-html h3:first-child, .description-html h4:first-child { margin-top: 0; }
.description-html p { margin: 0 0 16px; }
.description-html ul, .description-html ol { margin: 0 0 16px; padding-left: 22px; }
.description-html li { margin-bottom: 6px; }
.description-html a { color: var(--fire); text-decoration: underline; }
.description-html strong, .description-html b { color: var(--text); }
.description-html img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; display: block; }
.description-html table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.description-html th, .description-html td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.description-html blockquote { border-left: 3px solid var(--fire); margin: 0 0 16px; padding: 4px 0 4px 16px; color: var(--text-muted); font-style: italic; }
.description-html code { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 14px; }

/* Admin */
.admin-body { background: var(--bg); font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--text); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--bg2); color: var(--text); padding: 24px 16px; flex-shrink: 0; border-right: 1px solid var(--line); }
.admin-sidebar a { display: block; color: var(--text-muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--line); color: var(--text); }
.admin-main { flex-grow: 1; padding: 32px 40px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { white-space: nowrap; }
td { word-break: break-word; }
th { background: var(--bg2); font-weight: 600; color: var(--text); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending { background: rgba(255, 194, 75, .16); color: var(--gold); }
.badge-confirmed { background: rgba(92, 168, 242, .16); color: #5CA8F2; }
.badge-delivered { background: rgba(61, 220, 151, .16); color: var(--good); }
.badge-rejected { background: rgba(255, 90, 95, .16); color: var(--bad); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%; display: flex; align-items: center;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 16px; gap: 6px; white-space: nowrap;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .admin-sidebar > div:first-child { display: none; }
  .admin-sidebar a { margin-bottom: 0; flex-shrink: 0; }
  .admin-main { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .admin-main { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
