/* ========== HOMEPAGE ==========
   Loaded by index.html only. Shared pieces (header, footer, buttons, blog
   cards) stay in style.css. */
:root {
    --navy: #0B2233;
    --navy-2: #12324A;
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
}

/* ---------- top bar ---------- */
.topbar-home .container { gap: 16px; }
.topbar-trust { display: flex; gap: 18px; }
.topbar-trust span { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar-trust span + span::before { content: ''; width: 1px; height: 12px; background: rgba(255,255,255,.35); margin-right: 12px; }
.topbar-contact { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a { color: #fff; }

/* ---------- shared bits ---------- */
.h-section { padding: 56px 0; }
.h-section-tint { background: var(--brand-bg); }
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.h-eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.h-head h2 { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.2; letter-spacing: -.3px; }
.h-head p { color: var(--gray-500); margin-top: 6px; max-width: 560px; }
.h-link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.h-link-btn:hover { background: var(--brand); color: #fff; }

/* ---------- hero ---------- */
.h-hero { position: relative; color: #fff; background: var(--navy) url('../images/hero-bg.jpg') center/cover no-repeat; overflow: hidden; }
.h-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,22,33,.92) 0%, rgba(6,22,33,.72) 45%, rgba(6,22,33,.15) 100%); }
.h-hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.h-hero-copy { max-width: 580px; }
.h-hero .h-eyebrow { color: #7FE3E7; }
.h-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.8px; margin-bottom: 18px; }
.h-hero p { font-size: 17px; color: rgba(255,255,255,.82); margin-bottom: 30px; max-width: 520px; }
.h-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-hero-actions .btn { padding: 14px 24px; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.h-hero-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; font-size: 13px; color: rgba(255,255,255,.75); }
.h-hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.h-hero-points svg { color: #7FE3E7; }

/* ---------- category tiles ---------- */
.h-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.h-cat { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 12px 12px 16px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.h-cat:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(11,34,51,.08); transform: translateY(-2px); }
.h-cat-img { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, var(--brand-bg), var(--gray-100)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 12px; }
.h-cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.h-cat:hover .h-cat-img img { transform: scale(1.06); }
.h-cat h3 { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.h-cat .more { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); margin-top: 4px; }

/* ---------- product rails ---------- */
.h-rail-wrap { position: relative; }
.h-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 6px; }
.h-rail::-webkit-scrollbar { display: none; }
.h-rail > * { flex: 0 0 calc((100% - 5 * 16px) / 6); scroll-snap-align: start; min-width: 0; }
.h-rail-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 4px 12px rgba(0,0,0,.12); color: var(--gray-700); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .2s, color .2s, opacity .2s; }
.h-rail-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.h-rail-btn.prev { left: -19px; }
.h-rail-btn.next { right: -19px; }
.h-rail-btn:disabled { opacity: 0; pointer-events: none; }

.h-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.h-card:hover { box-shadow: 0 8px 22px rgba(11,34,51,.1); }
.h-card-img { display: block; aspect-ratio: 1; position: relative; background: linear-gradient(135deg, var(--brand-bg), var(--gray-100)); color: var(--gray-300); }
.h-card-img .placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.h-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-chip { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); background: rgba(255,255,255,.94); color: var(--brand-dark); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.h-card .sale-badge { position: absolute; right: 8px; bottom: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.h-card .out-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.h-card .out-overlay span { background: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.h-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.h-card h3 { font-size: 13.5px; font-weight: 600; color: var(--gray-800); line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.h-card h3 a:hover { color: var(--brand); }
.h-card .price { margin: 6px 0 10px; font-size: 16px; font-weight: 800; color: var(--brand-dark); }
.h-card .price .old { font-size: 12px; font-weight: 500; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; }
.h-card .h-add { margin-top: auto; width: 100%; padding: 9px 10px; font-size: 13px; }

/* ---------- featured, one row per category ---------- */
.h-frow { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.h-frow + .h-frow { margin-top: 12px; }
.h-frow.open { border-color: rgba(13,115,119,.35); box-shadow: 0 8px 24px rgba(11,34,51,.06); }
.h-frow-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; border-radius: var(--radius); }
.h-frow-head:hover { background: var(--brand-bg); }
.h-frow-head:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.h-frow-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-frow-name { font-size: 17px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-frow-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.h-frow-icon svg { width: 20px; height: 20px; }
.h-frow-count { flex: none; font-size: 12px; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid rgba(13,115,119,.25); padding: 2px 9px; border-radius: 20px; }
.h-frow-chev { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand); background: var(--brand-bg); transition: transform .25s; }
.h-frow.open .h-frow-chev { transform: rotate(90deg); }
.h-frow-body { padding: 4px 18px 18px; border-top: 1px solid var(--gray-100); }
.h-frow-body .h-rail-wrap { margin-top: 14px; }
.h-frow-all { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }
.h-frow-all:hover { text-decoration: underline; }

/* ---------- lighting promo ---------- */
.h-promo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 32px; background: radial-gradient(ellipse at 55% 40%, rgba(27,163,168,.35), transparent 60%), linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 18px; padding: 40px; overflow: hidden; }
.h-promo .h-eyebrow { color: #7FE3E7; }
.h-promo h2 { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.h-promo p { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.h-promo-visual { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.h-promo-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-promo-list { display: grid; gap: 18px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.15); }
.h-promo-list li { display: flex; gap: 12px; align-items: flex-start; }
.h-promo-list .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; color: #7FE3E7; }
.h-promo-list strong { display: block; font-size: 14px; }
.h-promo-list span { font-size: 12.5px; color: rgba(255,255,255,.65); }

/* ---------- why choose us ---------- */
.h-why { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.h-why-item { text-align: center; padding: 22px 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); }
.h-why-item .ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(13,115,119,.12); }
.h-why-item h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.h-why-item p { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }

/* ---------- visit the store ---------- */
.h-store { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--gray-100); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(11,34,51,.06); }
.h-store-map { min-height: 320px; background: var(--gray-100); }
.h-store-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.h-store-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.h-store-info h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 18px; line-height: 1.2; }
.h-store-line { display: flex; gap: 10px; align-items: flex-start; color: var(--gray-600); margin-bottom: 10px; font-size: 15px; }
.h-store-line svg { flex: none; color: var(--brand); margin-top: 3px; width: 18px; height: 18px; }
.h-store-line a:hover { color: var(--brand); }
.h-store-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- blog ---------- */
.h-blog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.h-blog .blog-card-body { padding: 16px; }
.h-blog .blog-card-body h3 { font-size: 15px; }

/* ---------- WhatsApp band ---------- */
.h-wa { background: linear-gradient(90deg, rgba(6,22,33,.9), rgba(9,83,85,.85)), url('../images/hero-bg.jpg') center 70%/cover no-repeat; color: #fff; padding: 36px 0; }
.h-wa .container { display: flex; align-items: center; justify-content: center; gap: 20px 28px; flex-wrap: wrap; text-align: left; }
.h-wa-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; flex: none; }
.h-wa h2 { font-size: 22px; font-weight: 800; }
.h-wa p { color: rgba(255,255,255,.75); font-size: 14px; }

/* ---------- loading / empty ---------- */
.h-skel { border-radius: var(--radius); min-height: 280px; }
.h-empty { color: var(--gray-500); padding: 24px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .h-cats, .h-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h-rail > * { flex-basis: calc((100% - 3 * 16px) / 4); }
    .h-promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .h-promo-visual { display: none; }
    .h-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar-trust { display: none; }
}
@media (max-width: 768px) {
    .h-section { padding: 40px 0; }
    .h-head h2 { font-size: 24px; }
    .h-hero .container { padding-top: 64px; padding-bottom: 64px; }
    .h-hero::before { background: linear-gradient(180deg, rgba(6,22,33,.78), rgba(6,22,33,.88)); }
    .h-hero p { font-size: 15px; }
    .h-rail > * { flex-basis: calc((100% - 2 * 12px) / 2.3); }
    .h-rail { gap: 12px; }
    .h-rail-btn { display: none; }
    .h-promo { grid-template-columns: 1fr; padding: 28px 22px; }
    .h-promo h2 { font-size: 24px; }
    .h-promo-list { padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
    .h-store { grid-template-columns: 1fr; }
    .h-store-info { padding: 28px 22px; }
    .h-frow-name { font-size: 15px; }
    .h-frow-head { padding: 12px 14px; }
    .h-frow-body { padding: 4px 14px 14px; }
}
@media (max-width: 520px) {
    .h-cats, .h-why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .h-blog { grid-template-columns: 1fr; }
    .h-hero-actions .btn { flex: 1 1 100%; }
    .h-hero-points { gap: 10px 18px; }
    .h-frow-count { display: none; }
    .topbar-home .topbar-ship { display: none; }
    .topbar-home .container { justify-content: center; }
}

/* ---------- featured: preview grid + by-category modal ---------- */
.h-fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.h-fgrid .h-chip { font-size: 12px; padding: 4px 11px; background: var(--brand); color: #fff; }
.h-fgrid-modal { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.h-fgrid-modal .h-chip { background: rgba(255,255,255,.94); color: var(--brand-dark); font-size: 11px; padding: 3px 9px; }
#featured-section .see-all { text-align: center; margin-top: 28px; }
/* The overlay has 32px padding; without this, cards peek out above the sticky header. */
#featured-modal .pmodal-head { flex-wrap: wrap; row-gap: 12px; top: -32px; }
.h-fcats { flex-basis: 100%; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.h-fcats::-webkit-scrollbar { display: none; }
.h-fcats button { flex: none; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: all .2s; }
.h-fcats button span { color: var(--brand); margin-left: 2px; }
.h-fcats button:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.h-fcats button:hover span { color: #fff; }
.h-fsec + .h-fsec { margin-top: 32px; }
.h-fsec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.h-fsec-head h3 { font-size: 18px; font-weight: 700; color: var(--dark); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-fsec-head .h-frow-all { margin: 0 0 0 auto; }
@media (max-width: 1024px) {
    .h-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h-fgrid-modal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .h-fgrid, .h-fgrid-modal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #featured-modal .pmodal-body { padding: 16px; }
}
