/* ═══════════════════════════════════════════════════════════════
   Shared Site Header + Footer — for store subpages
   Copied from homepage (index.html) for exact match
═══════════════════════════════════════════════════════════════ */

/* ── TOP HEADER BAR ── */
.header-top { background: var(--white, #fff); border-bottom: 1px solid var(--border, #e5e7eb); padding: 10px 0; }
.header-top-inner { max-width: 1240px; margin: 0 auto; padding: 0 30px; display: flex; align-items: center; }
.logo { margin-right: auto; }
.logo img { height: 48px; width: auto; }
.header-info-group { display: flex; align-items: center; gap: 32px; }
.header-info-item { display: flex; align-items: center; gap: 12px; }
.hii-icon {
  width: 42px; height: 42px; background: var(--blue, #1a50c8); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.hii-icon:hover { background: var(--blue-dark, #1a50c8); }
.hii-icon svg { width: 18px; height: 18px; fill: #fff; }
.hii-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text, #1a1a2e); margin-bottom: 2px; }
.hii-val { font-size: 13px; color: var(--muted, #6b7280); }
.hii-val a { color: var(--muted, #6b7280); transition: color .15s; text-decoration: none; }
.hii-val a:hover { color: var(--blue, #1a50c8); }

.header-portal {
  margin-left: 12px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px; height: 38px; background: var(--blue, #1a50c8); color: #fff;
  border-radius: var(--radius, 6px); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.header-portal:hover { background: #0558b0; }
.header-portal svg { flex-shrink: 0; }

.header-cart {
  margin-left: 12px; position: relative; cursor: pointer;
  width: 38px; height: 38px; border: 1.5px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 6px); display: flex; align-items: center;
  justify-content: center; transition: border-color .2s; text-decoration: none;
}
.header-cart:hover { border-color: var(--blue, #1a50c8); }
.cart-badge {
  position: absolute; top: -7px; right: -7px; background: var(--blue, #1a50c8);
  color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ── STICKY NAV ── */
.site-nav { background: var(--blue-nav, #1a50c8); position: sticky; top: 0; z-index: 500; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.site-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 30px; display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px; padding: 18px 22px;
  color: rgba(255,255,255,.92); font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .2s, color .2s; text-decoration: none;
}
.nav-list > li > a:hover, .nav-list > li.active > a { background: rgba(255,255,255,.12); color: #fff; }
.nav-list > li.active > a { border-bottom: 3px solid #fff; }
.nav-arrow { font-size: 9px; opacity: .7; }

.nav-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--border, #e5e7eb); border-top: 3px solid var(--blue, #1a50c8);
  box-shadow: 0 12px 32px rgba(0,0,0,.14); list-style: none; z-index: 600;
  border-radius: 0 0 var(--radius, 6px) var(--radius, 6px);
}
.nav-list > li:hover .nav-drop { display: block; }
.nav-drop li a {
  display: block; padding: 11px 20px; color: var(--text, #1a1a2e); font-size: 14px;
  border-bottom: 1px solid var(--border, #e5e7eb); transition: color .15s, padding-left .15s;
  text-decoration: none;
}
.nav-drop li:last-child a { border-bottom: none; }
.nav-drop li a:hover { color: var(--blue, #1a50c8); padding-left: 26px; }

.nav-browse-btn {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 9px 18px; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius, 6px);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s;
  white-space: nowrap; font-family: inherit;
}
.nav-browse-btn:hover { background: rgba(255,255,255,.22); }
.nav-browse-btn svg { width: 16px; height: 16px; fill: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  margin-left: auto; background: none; border: none; padding: 10px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }

.mob-nav { display: none; background: #1a50c8; padding: 10px 20px 20px; }
.mob-nav.open { display: block; }
.mob-nav a { display: block; padding: 11px 6px; color: rgba(255,255,255,.9); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; }
.mob-nav a:hover { color: #fff; }

.mob-nav-portal {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue, #1a50c8); color: #fff !important;
  padding: 10px 16px; border-radius: 6px; font-weight: 700; margin: 8px 16px 4px;
}
.mob-nav-portal:hover { background: #0558b0; }

/* ── SIDE PANEL ── */
.side-panel-overlay { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.45); z-index: 900; opacity: 0; transition: opacity .3s ease; }
.side-panel-overlay.open { display: block; opacity: 1; }
.side-panel { position: fixed; top: 0; right: -340px; width: 340px; height: 100%; background: #fff; z-index: 950; transition: right .3s ease; overflow-y: auto; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.15); }
.side-panel.open { right: 0; }
.side-panel-head { background: var(--blue-nav, #1a50c8); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.side-panel-head img { height: 34px; width: auto; }
.side-panel-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 4px; }
.side-panel-body { padding: 8px 0; flex: 1; }
.side-panel-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted, #6b7280); padding: 18px 24px 8px; }
.side-panel-body a { display: block; padding: 13px 24px; color: var(--text, #1a1a2e); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border, #e5e7eb); transition: color .15s, padding-left .15s, background .15s; text-decoration: none; }
.side-panel-body a:hover { color: var(--blue, #1a50c8); padding-left: 30px; background: #f0f4ff; }
.side-panel-footer { padding: 20px 24px; background: var(--bg, #f8fafc); border-top: 1px solid var(--border, #e5e7eb); }
.side-panel-footer a { display: flex; align-items: center; gap: 8px; color: var(--muted, #6b7280); font-size: 13px; margin-bottom: 8px; transition: color .15s; text-decoration: none; }
.side-panel-footer a:hover { color: var(--blue, #1a50c8); }
.side-panel-social { display: flex; gap: 12px; margin-top: 14px; }
.side-panel-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue, #1a50c8); margin-bottom: 0; }
.side-panel-social a:hover { background: #1440a0; }
.side-panel-social svg { width: 16px; height: 16px; fill: #fff; }

/* ── FOOTER ── */
footer.site-footer { background: #f8fafc; border-top: 1px solid #e5e7eb; padding: 60px 30px 0; font-family: 'Inter', Arial, sans-serif; }
footer.site-footer .footer-top { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 52px; border-bottom: 1px solid #e5e7eb; }
footer.site-footer .footer-col h2 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #1a1a2e; margin: 0 0 20px; }
footer.site-footer .footer-col address { font-style: normal; font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 10px; }
footer.site-footer .footer-col a { font-size: 14px; color: #6b7280; display: block; margin-bottom: 9px; transition: color .15s; text-decoration: none; }
footer.site-footer .footer-col a:hover { color: #1a50c8; }
footer.site-footer .footer-col a.footer-bold { font-weight: 700; color: #1a1a2e; font-size: 15px; }
footer.site-footer .footer-bottom { max-width: 1240px; margin: 0 auto; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site-footer .footer-copy { font-size: 13px; color: #6b7280; }
footer.site-footer .footer-socials { display: flex; gap: 10px; }
footer.site-footer .fsoc { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; transition: background .2s, color .2s, border-color .2s; text-decoration: none; }
footer.site-footer .fsoc:hover { background: #1a50c8; color: #fff; border-color: #1a50c8; }
footer.site-footer .fsoc svg { width: 16px; height: 16px; fill: currentColor; }
@media(max-width: 1024px) { footer.site-footer .footer-top { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { footer.site-footer .footer-top { grid-template-columns: 1fr; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-info-group { gap: 14px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .header-info-group { gap: 14px; flex-wrap: wrap; }
  .nav-list { display: none; }
  .hamburger { display: flex; }
  .nav-browse-btn { display: none; }
}
@media (max-width: 560px) {
  .header-portal span { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   STICKY BOTTOM PURCHASE BAR
═══════════════════════════════════════════════════════════════ */
.purchase-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: #fff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  transform: translateY(100%); opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  pointer-events: none;
}
.purchase-bar.visible {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.purchase-bar-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 12px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}

/* Left side — payment icons + warranty */
.purchase-bar-left {
  display: flex; align-items: center; gap: 16px;
}
.pb-pay-icons {
  display: flex; align-items: center; gap: 6px;
}
.pb-pay-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 24px;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: #475569;
}
.pb-pay-icon svg { width: 20px; height: 14px; }
.pb-warranty {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #6b7280;
}
.pb-warranty svg { width: 16px; height: 16px; color: #6b7280; }

/* Right side — count + total + Buy Now */
.purchase-bar-right {
  display: flex; align-items: center; gap: 20px;
}
.pb-summary {
  text-align: right; line-height: 1.3;
}
.pb-item-count {
  font-size: 12px; color: #6b7280; font-weight: 500;
}
.pb-total-price {
  font-size: 20px; font-weight: 800; color: #1a1a2e; letter-spacing: -.5px;
}
.pb-buy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; min-width: 120px;
  background: #4b7bec; color: #fff; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.pb-buy-btn:hover {
  background: #3a6ad5; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75,123,236,.35);
}
.pb-buy-btn:active { transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
  .purchase-bar-inner { padding: 10px 16px; gap: 12px; }
  .purchase-bar-left { display: none; }
  .pb-total-price { font-size: 18px; }
  .pb-buy-btn { padding: 12px 24px; font-size: 14px; }
}
@media (max-width: 400px) {
  .pb-summary { text-align: left; }
  .pb-buy-btn { padding: 12px 20px; min-width: 100px; }
}
