/* Best Tech Reformers — storefront theme (on top of Bootstrap 5) */
:root {
    --brand: #15873a;
    --brand-dark: #0c5c26;
    --brand-light: #e8f5ec;
    --globe: #1f4fbf;
    --globe-light: #eaf0fc;
    --ink: #13231a;
    --muted: #5d6b63;
    --line: #e2e8e4;
    --bg: #f6f8f7;
    --radius: 14px;
    --bs-primary: var(--brand);
    --bs-primary-rgb: 21, 135, 58;
    --bs-link-color: var(--brand-dark);
    --bs-link-hover-color: var(--brand);
    --bs-body-font-family: "Barlow", system-ui, sans-serif;
    --bs-body-color: var(--ink);
}

body { background: var(--bg); font-size: 16px; }
h1, h2, h3, h4, h5, .display-font { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; letter-spacing: .01em; }
a { text-decoration: none; }
.text-brand { color: var(--brand) !important; }
.text-globe { color: var(--globe) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-light { background: var(--brand-light) !important; }
.text-muted-2 { color: var(--muted) !important; }

.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); font-weight: 600; }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); font-weight: 600; }
.btn-globe { --bs-btn-bg: var(--globe); --bs-btn-border-color: var(--globe); --bs-btn-color: #fff;
    --bs-btn-hover-bg: #173d96; --bs-btn-hover-border-color: #173d96; --bs-btn-hover-color: #fff; font-weight: 600; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(21,135,58,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.page-link { color: var(--brand-dark); }
.active > .page-link, .page-link.active { background: var(--brand); border-color: var(--brand); }

/* Top bar & header ---------------------------------------------------- */
.topbar { background: var(--brand-dark); color: #d5eedc; font-size: .875rem; }
.topbar a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.brand-lockup { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-lockup img { height: 52px; width: auto; }
.brand-lockup .name { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--brand-dark); }
.brand-lockup .tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.header-search { position: relative; flex: 1; max-width: 620px; }
.header-search .form-control { border-radius: 999px; padding: .7rem 3.2rem .7rem 1.2rem; background: var(--bg); border-color: var(--line); }
.header-search button { position: absolute; right: 5px; top: 5px; bottom: 5px; border-radius: 999px; width: 42px; padding: 0; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.08); z-index: 1050; overflow: hidden; display: none; }
.search-suggest a { display: flex; gap: .75rem; align-items: center; padding: .55rem .9rem; color: var(--ink); }
.search-suggest a:hover { background: var(--brand-light); }
.search-suggest img { width: 44px; height: 34px; object-fit: contain; }
.header-icon { position: relative; display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); font-size: .75rem; padding: 0 .55rem; }
.header-icon i { font-size: 1.35rem; }
.header-icon:hover { color: var(--brand); }
.header-icon .count { position: absolute; top: -6px; right: 2px; background: var(--brand); color: #fff; border-radius: 999px;
    font-size: .65rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.main-nav .nav-link { color: var(--ink); font-weight: 600; padding: .8rem 1rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }
.main-nav .dropdown-menu { border-radius: 12px; border-color: var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.cat-toggle { background: var(--brand); color: #fff !important; border-radius: 0; }

/* Hero ----------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 400px at 80% 0%, #dff2e5 0%, transparent 60%), linear-gradient(135deg, #fff 0%, var(--brand-light) 100%); }
.hero-slide { min-height: 420px; display: flex; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; }
.hero .eyebrow { display: inline-flex; gap: .4rem; align-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; color: var(--brand-dark); }
.hero-img { max-height: 360px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.12)); }
.cycle-badges span { display: inline-block; font-family: "Barlow Condensed"; font-weight: 700; letter-spacing: .08em; font-size: .85rem;
    background: var(--brand); color: #fff; padding: .25rem .7rem; border-radius: 6px; margin-right: .3rem; }

/* Sections & cards ---------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.5rem; gap: 1rem; }
.section-title h2 { margin: 0; font-size: 2rem; }
.section-title .kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.usp { display: flex; gap: .9rem; align-items: center; }
.usp i { font-size: 1.6rem; color: var(--brand); background: var(--brand-light); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.usp strong { display: block; font-family: "Barlow Condensed"; font-size: 1.15rem; }
.usp small { color: var(--muted); }

.cat-tile { display: block; text-align: center; padding: 1.25rem .75rem; color: var(--ink); transition: .2s; height: 100%; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-3px); color: var(--brand-dark); }
.cat-tile img { width: 100%; height: 90px; object-fit: contain; margin-bottom: .6rem; }
.cat-tile .name { font-weight: 700; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; display: flex; flex-direction: column;
    transition: box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.product-card:hover { box-shadow: 0 14px 32px rgba(19,35,26,.09); border-color: #cfe3d6; }
.product-card .thumb { aspect-ratio: 4/3; display: grid; place-items: center; padding: 1rem; background: linear-gradient(180deg, #fbfcfb, #f2f6f3); }
.product-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--globe); font-weight: 700; }
.product-card .title { font-weight: 600; color: var(--ink); line-height: 1.25; margin: .2rem 0 .45rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-card .specs { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.product-card .specs span:not(:last-child)::after { content: "·"; margin: 0 .35rem; }
.price { font-family: "Barlow Condensed"; font-weight: 700; font-size: 1.45rem; color: var(--ink); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.off { color: var(--brand); font-weight: 700; font-size: .85rem; }
.badge-cond { position: absolute; top: 10px; left: 10px; font-size: .7rem; z-index: 2; }
.badge-off { position: absolute; top: 10px; right: 10px; background: #e53935; font-size: .7rem; z-index: 2; }
.card-actions { position: absolute; right: 10px; top: 44px; display: flex; flex-direction: column; gap: .35rem; z-index: 2; opacity: 0; transition: .2s; }
.product-card:hover .card-actions, .card-actions .active { opacity: 1; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.icon-btn:hover, .icon-btn.active { color: #fff; background: var(--brand); border-color: var(--brand); }
@media (hover: none) { .card-actions { opacity: 1; } }
.stars { color: #f5a623; font-size: .85rem; letter-spacing: 1px; }

.deal-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #1f9a49); color: #fff; border-radius: 20px; overflow: hidden; }
.brand-strip a { display: grid; place-items: center; height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--muted); font-family: "Barlow Condensed"; font-size: 1.2rem; }
.brand-strip a:hover { color: var(--brand); border-color: var(--brand); }
.brand-strip img { max-height: 40px; max-width: 80%; }

/* Listing & filters --------------------------------------------------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.2rem; }
.page-head h1 { font-size: 2.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin: 0 0 .3rem; }
.filters .filter-group { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.filters .filter-group:last-child { border-bottom: 0; }
.filters h6 { font-family: "Barlow Condensed"; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.filters .opts { max-height: 210px; overflow: auto; }
.filters .form-check { font-size: .92rem; margin-bottom: .2rem; }

/* Product detail ------------------------------------------------------ */
.gallery-main { aspect-ratio: 4/3; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumbs button { width: 76px; height: 60px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.key-specs div { background: var(--bg); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.key-specs small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.spec-table th { width: 35%; color: var(--muted); font-weight: 600; background: var(--bg) !important; }
.qty-input { width: 120px; }
.rating-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: #f5a623; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.7rem; color: #d6dbd8; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* Compare -------------------------------------------------------------- */
.compare-table th:first-child { width: 180px; background: var(--bg); position: sticky; left: 0; z-index: 1; }
.compare-table td, .compare-table th { min-width: 220px; vertical-align: top; }
.compare-table img { height: 120px; object-fit: contain; }
.compare-bar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1040; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-radius: 999px; }

/* Checkout / account --------------------------------------------------- */
.summary-row { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-total { border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .75rem; font-size: 1.2rem; font-weight: 700; }
.address-option { border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; display: block; height: 100%; }
.address-option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.steps { display: flex; gap: 1rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
.steps .on { color: var(--brand); }
.account-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: 2px; color: var(--ink); font-weight: 500; }
.account-nav .list-group-item i { width: 24px; color: var(--brand); }
.account-nav .list-group-item.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.stat-card { padding: 1.1rem 1.2rem; }
.stat-card .num { font-family: "Barlow Condensed"; font-weight: 700; font-size: 1.9rem; line-height: 1; }
.timeline { list-style: none; padding-left: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.auth-card { max-width: 480px; margin: 0 auto; }

/* Content -------------------------------------------------------------- */
.prose { line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 1.6rem; }
.prose img { max-width: 100%; border-radius: 12px; }
.blog-card img, .event-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.date-chip { background: var(--brand); color: #fff; border-radius: 10px; padding: .4rem .7rem; text-align: center; line-height: 1.05; font-family: "Barlow Condensed"; }
.date-chip b { display: block; font-size: 1.6rem; }

/* Footer --------------------------------------------------------------- */
.newsletter-band { background: var(--globe); color: #fff; }
.newsletter-band .form-control { border-radius: 999px 0 0 999px; border: 0; padding: .75rem 1.2rem; }
.newsletter-band .btn { border-radius: 0 999px 999px 0; }
.site-footer { background: #0e1d14; color: #a9bdb0; font-size: .93rem; }
.site-footer h6 { color: #fff; font-family: "Barlow Condensed"; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: #cfe0d5; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo { background: #fff; border-radius: 14px; padding: .5rem; width: 88px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); margin-right: .3rem; }
.social a:hover { background: var(--brand); }
.pay-badges span { display: inline-block; background: rgba(255,255,255,.08); border-radius: 6px; padding: .2rem .55rem; font-size: .78rem; margin: 0 .2rem .3rem 0; }

.toast-container { z-index: 1090; }
@media (max-width: 991.98px) {
    .brand-lockup img { height: 42px; }
    .brand-lockup .name { font-size: 1.25rem; }
    .hero-slide { min-height: 0; padding: 2.5rem 0; }
    .section { padding: 2.5rem 0; }
}
