/* Hilene International — styles.css (mobile-first, no frameworks) */
:root {
  --navy: #1d2f7a;
  --navy-d: #121e52;
  --red: #e01e2b;
  --red-d: #b9141f;
  --ink: #141826;
  --muted: #5b6275;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --ok: #157a3c;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 30, 82, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-d); letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: #333a4d; }
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--red); margin-bottom: .6em; }

/* top bar + header */
.topbar { background: var(--navy-d); color: #fff; font-size: .85rem; text-align: center; padding: 6px 16px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.5) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand img { width: 100px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; color: var(--ink); border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); background: var(--bg-alt); }
.cart-link { position: relative; display: inline-flex; padding: 10px; color: var(--navy); border-radius: 50%; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-empty] { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .cart-link { margin-left: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .75em 1.4em; border-radius: 999px; border: 2px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-d); border-color: var(--navy-d); }
.btn.block, .block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.cta-col { display: grid; gap: 10px; }

/* hero */
.hero { background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 60%, #e8ecf8 100%); padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.trust li::before { content: "✓ "; color: var(--ok); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 64px 0 80px; } }

/* grids */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features h3 { color: var(--navy); }
.features p { margin: 0; color: var(--muted); }
.split { display: grid; gap: 32px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.grid-2, .grid-3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: .55em; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

/* product cards */
.product-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-body .btn { margin-top: auto; align-self: flex-start; }
.product-card h3 a { text-decoration: none; color: var(--navy-d); }
.product-card.promo { background: linear-gradient(150deg, var(--navy), var(--navy-d)); color: #fff; justify-content: center; }
.product-card.promo h3 { color: #fff; font-size: 1.5rem; }
.product-card.promo .btn-ghost { color: #fff; border-color: #fff; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--red); }
.compare { color: var(--muted); }

/* breadcrumbs + page head */
.crumbs ol { list-style: none; padding: 16px 0 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #aab; }
.crumbs a { color: var(--muted); }
.page-head { padding: 16px 0 32px; max-width: 760px; }
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius); margin: 1em 0 1.5em; }
.prose h2 { margin-top: 1.6em; }

/* product page */
.pdp { display: grid; gap: 32px; padding: 8px 0 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; align-items: start; } .buybox { position: sticky; top: 96px; } }
.gallery-main img { border-radius: var(--radius); width: 100%; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; width: 100%; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.pdp-price { font-size: 1.4rem; margin: .2em 0; }
.pdp-price .price { font-size: 1.8rem; }
.stock.in { color: var(--ok); font-weight: 600; }
.stock.out { color: var(--red); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; width: 100%; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: grid; place-items: center; min-width: 54px; height: 46px; padding: 0 12px; border: 2px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; }
.chip input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.field-error { color: var(--red); font-size: .9rem; margin: 6px 0 0; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-weight: 700; }
.qty { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--bg-alt); font-size: 1.2rem; cursor: pointer; }
.qty input { width: 54px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; padding: 8px 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.line-total { font-size: 1.1rem; }
.assurance { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.assurance li { padding: 3px 0; }
.size-dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(560px, 92vw); box-shadow: var(--shadow); }
.size-dialog::backdrop { background: rgba(10, 15, 40, .5); }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.size-table { width: 100%; border-collapse: collapse; text-align: center; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.size-table thead th { background: var(--navy); color: #fff; }

/* faq */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; position: relative; list-style: none; color: var(--navy-d); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--red); }
.faq[open] summary::after { content: "−"; }
.faq p { color: #333a4d; }

/* forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.form label, .checkout-form label:not(.check):not(.pay-option) { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #cdd2df; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.qty input[type="number"] { margin-top: 0; border: 0; border-radius: 0; width: 54px; box-shadow: none; padding: 8px 0; text-align: center; font-weight: 700; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(29, 47, 122, .15); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.form-status { margin: 10px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--red); }
.notice { background: #fff6dd; border: 1px solid #f0d78a; padding: 12px 16px; border-radius: 8px; }

/* cart / checkout */
.cart-layout { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } .summary { position: sticky; top: 96px; } }
.checkout-form fieldset.card { margin-bottom: 18px; }
.checkout-form legend { font-size: 1.15rem; color: var(--navy-d); padding: 0; float: left; margin-bottom: 14px; }
.checkout-form legend + * { clear: both; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { border-radius: 8px; }
.cart-item h3 { margin: 0 0 2px; font-size: 1rem; }
.cart-item .meta { color: var(--muted); font-size: .9rem; margin: 0; }
.cart-item .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .875rem; padding: 0; }
.link-btn:hover { color: var(--red); }
.mini-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { font-size: 1.2rem; color: var(--ink); font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--navy); background: #f6f8ff; }
.pay-option input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; }
.pay-option strong { display: block; }
.pay-option span span { color: var(--muted); font-size: .9rem; }
[data-paypal-container] { margin-top: 14px; }
.order-box { white-space: pre-line; background: var(--bg-alt); border-radius: 8px; padding: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }

/* footer */
.site-footer { background: var(--navy-d); color: #cfd5ea; margin-top: 48px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 12px; }
.social { margin-top: 12px !important; display: flex !important; gap: 12px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list.big li { margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
