:root {
    --primary: #0891A8;
    --primary-dark: #066a7d;
    --secondary: #26C6DA;
    --accent: #4FC3F7;
    --bg: #F8FCFF;
    --card-border: #E8EEF5;
    --text: #1F2937;
    --whatsapp: #25D366;
    --footer-bg: #0B2B33;
    --radius: 16px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img { max-width: 100%; height: auto; }

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; }

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.topbar { background: var(--footer-bg); color: #cfeff5; }
.site-header { background: #fff; box-shadow: 0 2px 16px rgba(8, 145, 168, .08); }
.navbar { position: relative; }
.navbar-brand img { display: block; height: 38px; width: auto; max-width: none; }
.navbar-nav .nav-link { font-weight: 600; color: var(--text); padding: .5rem 1rem !important; border-radius: 10px; transition: .2s; }
.navbar-nav .nav-link:hover { color: var(--primary); background: rgba(38,198,218,.08); }

.search-form { flex: 1; max-width: 420px; }
.search-form input { border-radius: 30px 0 0 30px; border: 1.5px solid var(--card-border); }
.search-form input:focus { box-shadow: none; border-color: var(--secondary); }
.btn-search { background: var(--primary); color: #fff; border-radius: 0 30px 30px 0; padding: .375rem 1.1rem; }
.btn-search:hover { background: var(--primary-dark); color: #fff; }

@media (max-width: 991.98px) {
    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 16px 32px rgba(8,145,168,.18);
        border-radius: 0 0 20px 20px;
        padding: 1.25rem 1.25rem 1.5rem;
        z-index: 1045;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    #mainNav .navbar-nav .nav-link { padding: .8rem .5rem !important; border-bottom: 1px solid var(--card-border); border-radius: 0; }
    #mainNav .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
}

.btn-whatsapp { background: var(--whatsapp); color: #fff; border-radius: 30px; padding: .5rem 1.25rem; font-weight: 600; border: none; }
.btn-whatsapp:hover { background: #1ea952; color: #fff; }

.btn-cart { position: relative; background: #f1f9fb; border: 1.5px solid var(--card-border); border-radius: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.btn-cart:hover { background: var(--primary); color: #fff; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: #EF4444; color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.cart-item { display: flex; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--card-border); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cart-item .name { font-weight: 700; font-size: .88rem; margin-bottom: .2rem; }
.cart-item .price { color: var(--primary); font-weight: 700; font-size: .88rem; }
.cart-item .qty-box button { width: 30px; height: 30px; font-size: .95rem; }
.cart-item .qty-box input { width: 40px; }
.cart-item .btn-remove { color: #9ca3af; background: none; border: none; font-size: 1.1rem; }
.cart-item .btn-remove:hover { color: #EF4444; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--card-border); }
.breadcrumb-bar a { color: var(--primary); font-weight: 600; }
.breadcrumb-bar span { color: #6b7280; }

/* ===== BUTTONS ===== */
.btn-primary-brand { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 30px; font-weight: 600; padding: .65rem 1.75rem; }
.btn-primary-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline-brand { border: 2px solid #fff; color: #fff; border-radius: 30px; font-weight: 600; padding: .6rem 1.7rem; }
.btn-outline-brand:hover { background: #fff; color: var(--primary); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; }
.hero-slide { position: relative; display: block; line-height: 0; overflow: hidden; }
.hero-slide-img { width: 100%; height: auto; display: block; }
.hero-slide-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(6,58,71,.55) 0%, rgba(6,58,71,.15) 60%, rgba(6,58,71,0) 100%); }
.hero-slide .hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-content h1 { font-size: 2.6rem; font-weight: 800; }
.hero-slide--fallback { min-height: 420px; display: flex; align-items: center; }
@media (min-width: 992px) {
    .hero-slide { max-height: 480px; display: flex; align-items: center; justify-content: center; background: #eef6f8; }
    .hero-slide-img { width: auto; height: 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    .hero-content h1 { font-size: 1.3rem; }
    .hero-content p { font-size: .9rem !important; }
    .hero-slide--fallback { min-height: 240px; }
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-title { font-size: 1.9rem; margin-bottom: .5rem; }
.section-subtitle { color: #6b7280; margin-bottom: 2rem; }
@media (max-width: 767px) { .section { padding: 36px 0; } .section-title { font-size: 1.4rem; } }

/* ===== CATEGORY ===== */
.category-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
.category-card { flex: 0 0 130px; scroll-snap-align: start; }
@media (min-width: 992px) { .category-scroll { display: grid; grid-template-columns: repeat(9, 1fr); overflow: visible; } .category-card { flex: none; } }

.category-item { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); text-align: center; padding: 1.25rem .75rem; transition: .25s; height: 100%; }
.category-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(8,145,168,.15); border-color: var(--secondary); }
.category-icon-wrap { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 0 2px var(--card-border); flex-shrink: 0; }
.category-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-item .cat-name { font-weight: 700; font-size: .92rem; display: block; }
.category-item .cat-count { color: #6b7280; font-size: .78rem; }

/* ===== PRODUCT CARD ===== */
.product-card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; transition: .25s; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(8,145,168,.16); }
.product-card .img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f1f9fb; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.badge-category { position: absolute; top: 10px; left: 10px; background: rgba(8,145,168,.9); color: #fff; font-size: .68rem; padding: .3rem .6rem; border-radius: 20px; }
.badge-promo { position: absolute; top: 10px; right: 10px; background: #EF4444; color: #fff; font-size: .68rem; font-weight: 700; padding: .3rem .55rem; border-radius: 20px; }
.product-card .body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card .p-name { font-weight: 700; font-size: .95rem; margin-bottom: .15rem; min-height: 2.6em; }
.product-card .p-brand { color: #6b7280; font-size: .78rem; margin-bottom: .4rem; }
.product-card .price-normal { text-decoration: line-through; color: #9ca3af; font-size: .8rem; }
.product-card .price-final { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.product-card .actions { display: flex; gap: .5rem; margin-top: .75rem; }
.btn-detail { flex: 1; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 10px; font-size: .82rem; font-weight: 600; padding: .45rem; text-align: center; }
.btn-detail:hover { background: var(--primary); color: #fff; }
.btn-wa-card { width: 42px; background: var(--primary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border: none; }
.btn-wa-card:hover { background: var(--primary-dark); color: #fff; }

/* ===== ABOUT / WHY CHOOSE US ===== */
.why-item { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.why-item i { font-size: 1.8rem; color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.gallery-thumb { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--card-border); border-radius: 30px; overflow: hidden; }
.qty-box button { border: none; background: #f1f9fb; width: 40px; height: 40px; font-size: 1.1rem; color: var(--primary); }
.qty-box input { border: none; width: 55px; text-align: center; font-weight: 700; }
.spec-table th { width: 40%; background: #f1f9fb; }
.sticky-buy-mobile { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: .75rem 1rem; z-index: 1040; }

/* ===== FOOTER ===== */
.site-footer { background: var(--footer-bg); }
.footer-logo { height: 34px; width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .92; }
.footer-links, .footer-links li { color: #b8d9de; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #b8d9de; }
.footer-links a:hover { color: #fff; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-icon:hover { background: var(--secondary); }

/* ===== STICKY WHATSAPP MOBILE ===== */
.sticky-whatsapp { position: fixed; bottom: 16px; right: 16px; z-index: 1050; background: var(--whatsapp); color: #fff; border-radius: 30px; padding: .8rem 1.2rem; font-weight: 700; box-shadow: 0 8px 20px rgba(37,211,102,.4); display: flex; align-items: center; gap: .5rem; }

/* ===== BANNER / PROMO CARD ===== */
.promo-strip { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius); color: #fff; padding: 2rem; }

/* pagination */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 3px; border: 1px solid var(--card-border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }