/* ===== Procomm Shop - light theme, matches the main website ===== */
:root {
  --bs-primary: #0084cb;
  --bs-primary-rgb: 0, 132, 203;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #1e293b;
  --bs-link-color: #0084cb;
  --bs-link-hover-color: #0071ae;
  --pc-solar: #f59e0b;
  --pc-border: #e2e8f0;
  --pc-soft: #f8fafc;
  --pc-radius: 1rem;
}
body { background: #fff; }
a { text-decoration: none; }
.btn-primary { --bs-btn-bg: #0084cb; --bs-btn-border-color: #0084cb; --bs-btn-hover-bg: #0071ae; --bs-btn-hover-border-color: #0071ae; --bs-btn-active-bg: #005e91; --bs-btn-active-border-color: #005e91; --bs-btn-disabled-bg: #7cc0e4; --bs-btn-disabled-border-color: #7cc0e4; }
.btn-outline-primary { --bs-btn-color: #0084cb; --bs-btn-border-color: #0084cb; --bs-btn-hover-bg: #0084cb; --bs-btn-hover-border-color: #0084cb; --bs-btn-active-bg: #0071ae; }
.form-control, .form-select { border-radius: .65rem; border-color: var(--pc-border); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #0084cb; box-shadow: 0 0 0 .25rem rgba(0,132,203,.15); }
.form-check-input:checked { background-color: #0084cb; border-color: #0084cb; }
.text-primary { color: #0084cb !important; }

/* Header */
.topstrip { background: #0f172a; color: #cbd5e1; font-size: .8rem; padding: .4rem 0; }
.topstrip a { color: #fff; }
.shop-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pc-border); }
.shop-logo { height: 44px; width: auto; }
@media (max-width: 575.98px) { .shop-logo { height: 36px; } }
.shop-search { max-width: 640px; }
.shop-search .form-control { border-radius: 50rem 0 0 50rem; padding-left: 1.1rem; background: var(--pc-soft); }
.shop-search .btn { border-radius: 0 50rem 50rem 0; padding-inline: 1.1rem; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 50rem; color: #0f172a; font-weight: 600; background: var(--pc-soft); border: 1px solid var(--pc-border); }
.cart-link i { font-size: 1.2rem; }
.cart-link:hover { border-color: #0084cb; color: #0084cb; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50rem; background: var(--pc-solar); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.shop-nav { border-top: 1px solid var(--pc-border); }
.nav-item-link { display: inline-block; padding: .7rem 1rem; color: #334155; font-weight: 600; font-size: .92rem; }
.nav-item-link:hover, .nav-item-link.active { color: #0084cb; }
.shop-nav .dropdown-menu { border-radius: .85rem; border-color: var(--pc-border); padding: .5rem; min-width: 230px; }
.shop-nav .dropdown-item { border-radius: .5rem; padding: .45rem .75rem; font-size: .92rem; }
.shop-nav .dropdown-item:active { background: #0084cb; }
.mobile-cat { display: block; padding: .5rem 0; color: #334155; border-bottom: 1px solid var(--pc-soft); }

/* Home */
.shop-hero { padding: 3.5rem 0; background:
  radial-gradient(600px 380px at 95% 0%, rgba(0,132,203,.14), transparent 70%),
  radial-gradient(520px 380px at 0% 100%, rgba(245,158,11,.14), transparent 70%), linear-gradient(180deg, #f8fafc, #fff); }
.hero-pill { display: inline-block; padding: .35rem .85rem; border-radius: 50rem; background: rgba(0,132,203,.1); color: #0084cb; font-weight: 600; font-size: .82rem; }
.hero-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.hero-perk { background: #fff; border: 1px solid var(--pc-border); border-radius: .9rem; padding: .9rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .88rem; font-weight: 600; }
.hero-perk i { font-size: 1.3rem; color: #0084cb; }
.section { padding: 3rem 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cat-group { border: 1px solid var(--pc-border); border-radius: 1.25rem; padding: 1.5rem; height: 100%; background: #fff; }
.cat-group-solar { background: linear-gradient(180deg, #fffbeb, #fff); border-color: #fde68a; }
.cat-group-network { background: linear-gradient(180deg, #f0f9ff, #fff); border-color: #bae6fd; }
.cat-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 50rem; background: #fff; border: 1px solid var(--pc-border); color: #334155; font-size: .88rem; font-weight: 500; transition: all .2s; }
.cat-chip:hover { border-color: #0084cb; color: #0084cb; }
.cat-chip .count { color: #94a3b8; font-size: .78rem; }

/* Product card */
.product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 16px 36px rgba(15,23,42,.08); transform: translateY(-3px); }
.product-card .img-wrap { aspect-ratio: 1; background: var(--pc-soft); display: grid; place-items: center; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.product-card .img-wrap .bi { font-size: 2.5rem; color: #cbd5e1; }
.product-card .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; }
.product-card .name { font-weight: 700; color: #0f172a; font-size: .95rem; line-height: 1.35; margin: .2rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .name::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-card .price { margin-top: auto; font-weight: 800; font-size: 1.1rem; color: #0f172a; }
.product-card .price small { font-weight: 500; color: #64748b; font-size: .75rem; }
.product-card .flags { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 1; }
.flag { font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 50rem; }
.flag-sale { background: #dc2626; color: #fff; }
.flag-quote { background: #0f172a; color: #fff; }
.flag-out { background: #e2e8f0; color: #475569; }
.price-compare { text-decoration: line-through; color: #94a3b8; font-weight: 500; font-size: .85em; margin-left: .35rem; }

/* Listing */
.page-head { background: var(--pc-soft); border-bottom: 1px solid var(--pc-border); padding: 1.75rem 0; }
.breadcrumb { font-size: .85rem; margin-bottom: .5rem; }
.breadcrumb a { color: #64748b; }
.filter-box { border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 1.25rem; background: #fff; }
.filter-box h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700; margin-bottom: .75rem; }
.filter-box + .filter-box { margin-top: 1rem; }
.subcat-link { display: block; padding: .3rem 0; color: #334155; font-size: .92rem; }
.subcat-link.active, .subcat-link:hover { color: #0084cb; font-weight: 600; }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--pc-border); border-radius: var(--pc-radius); color: #64748b; }
.empty-state i { font-size: 2.5rem; color: #cbd5e1; display: block; margin-bottom: .75rem; }

/* Product page */
.gallery-main { aspect-ratio: 1; border: 1px solid var(--pc-border); border-radius: 1.25rem; background: var(--pc-soft); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.gallery-main .bi { font-size: 4rem; color: #cbd5e1; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--pc-border); border-radius: .75rem; overflow: hidden; background: #fff; }
.gallery-thumbs button.active { border-color: #0084cb; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdp-price { font-size: 2rem; font-weight: 800; color: #0f172a; }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-options .btn { border-radius: .75rem; font-weight: 600; min-width: 80px; }
.variant-options .btn-check:checked + .btn { background: rgba(0,132,203,.08); border-color: #0084cb; color: #0084cb; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--pc-border); border-radius: 50rem; overflow: hidden; }
.qty-input button { border: 0; background: var(--pc-soft); width: 40px; height: 44px; font-size: 1.1rem; }
.qty-input input { width: 56px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; height: 34px; }
.qty-sm input { width: 44px; }
.stock-note { font-size: .88rem; font-weight: 600; }
.perk-list { display: grid; gap: .6rem; padding: 1rem 1.25rem; border-radius: var(--pc-radius); background: var(--pc-soft); font-size: .88rem; }
.perk-list i { color: #0084cb; margin-right: .5rem; }
.spec-table th { width: 40%; color: #64748b; font-weight: 600; background: var(--pc-soft); }
.nav-underline .nav-link { color: #64748b; font-weight: 600; }
.nav-underline .nav-link.active { color: #0084cb; }

/* Cart */
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--pc-border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 80px; height: 80px; border-radius: .75rem; border: 1px solid var(--pc-border); background: var(--pc-soft); object-fit: contain; padding: 4px; display: grid; place-items: center; color: #cbd5e1; }
.cart-line.has-problem { opacity: .75; }
@media (max-width: 575.98px) { .cart-line { grid-template-columns: 64px 1fr; } .cart-line .thumb { width: 64px; height: 64px; } .cart-line .line-total { grid-column: 2; } }
.summary-box { border: 1px solid var(--pc-border); border-radius: 1.25rem; padding: 1.5rem; background: #fff; position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .93rem; }
.summary-total { border-top: 1px solid var(--pc-border); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }

.account-link { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 50rem; color: #0f172a; font-weight: 600; }
.account-link i { font-size: 1.3rem; }
.account-link:hover { color: #0084cb; }

/* Checkout & order */
.pay-option { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--pc-border); border-radius: .85rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:hover { border-color: #93c5fd; }
.pay-option:has(input:checked) { border-color: #0084cb; background: rgba(0,132,203,.05); }
.pay-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--pc-soft); color: #0084cb; font-size: 1.2rem; flex-shrink: 0; }
.success-check { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 2rem; }
.tracker { display: flex; justify-content: space-between; position: relative; padding: 0 .5rem; }
.tracker::before { content: ""; position: absolute; top: 14px; left: 2rem; right: 2rem; height: 3px; background: var(--pc-border); }
.tracker-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; text-align: center; }
.tracker-step .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--pc-border); display: grid; place-items: center; color: #fff; z-index: 1; }
.tracker-step.done .dot { background: #0084cb; border-color: #0084cb; }
.tracker-step .label { font-size: .78rem; color: #64748b; font-weight: 600; }
.tracker-step.done .label { color: #0f172a; }
.auth-box { max-width: 440px; border: 1px solid var(--pc-border); border-radius: 1.25rem; padding: 2rem; box-shadow: 0 20px 50px rgba(15,23,42,.06); }
@media (max-width: 575.98px) { .auth-box { padding: 1.5rem 1.1rem; } .tracker-step .label { font-size: .68rem; } }

/* Footer */
.shop-footer { background: var(--pc-soft); border-top: 1px solid var(--pc-border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-links li { margin-bottom: .45rem; color: #475569; font-size: .92rem; }
.footer-links a { color: #475569; }
.footer-links a:hover { color: #0084cb; }

/* Policy pages */
.policy-nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.policy-nav a { padding: .55rem .9rem; border-radius: .65rem; color: #475569; font-weight: 500; }
.policy-nav a:hover { background: var(--pc-soft); color: #0084cb; }
.policy-nav a.active { background: rgba(0,132,203,.1); color: #0084cb; font-weight: 600; }
.policy { max-width: 760px; line-height: 1.7; }
.policy h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; scroll-margin-top: 1rem; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: .35rem; }
.policy .policy-summary { background: var(--pc-soft); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.policy table { width: 100%; margin-bottom: 1rem; font-size: .95rem; }
.policy th, .policy td { padding: .5rem .75rem; border-bottom: 1px solid var(--pc-border); text-align: left; }
@media (max-width: 991.98px) { .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
