/* ===== SHOPWAVE GENERAL STORE — GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@700;800;900&display=swap');

:root {
  --blue:        #2563eb;
  --blue-mid:    #1d4ed8;
  --blue-light:  #93c5fd;
  --blue-pale:   #eff6ff;
  --orange:      #f97316;
  --orange-pale: #fff7ed;
  --red:         #ef4444;
  --red-pale:    #fef2f2;
  --green:       #16a34a;
  --green-pale:  #f0fdf4;
  --yellow:      #fbbf24;
  --dark:        #0f172a;
  --mid:         #475569;
  --muted:       #94a3b8;
  --border:      #e2e8f0;
  --light:       #f8fafc;
  --white:       #ffffff;
  --cream:       #fafbff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);
  --radius:      10px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  font-size: 0.9rem;
}

/* ===== ANNOUNCEMENT ===== */
.announcement {
  background: var(--blue);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0.55rem 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.announcement strong { color: white; }
.announcement a { color: var(--blue-light); text-decoration: underline; margin-left: 0.5rem; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 4rem;
  gap: 1.5rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
}

.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-logo-text span { color: var(--blue); }

/* Search */
.nav-search {
  flex: 1;
  max-width: 500px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.nav-search:focus-within { border-color: var(--blue); }

.nav-search input {
  flex: 1;
  border: none;
  padding: 0.6rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: transparent;
  outline: none;
}

.nav-search button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.nav-search button:hover { background: var(--blue-mid); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.nav-icon-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  color: var(--mid);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-icon-btn:hover { background: var(--light); color: var(--blue); }

.cart-badge {
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--red);
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav bottom — categories */
.nav-bottom {
  border-top: 1px solid var(--border);
  padding: 0 4rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bottom::-webkit-scrollbar { display: none; }

.nav-cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-cat:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cat.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.nav-cat.sale { color: var(--red); }
.nav-cat.sale:hover { border-bottom-color: var(--red); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span { width: 20px; height: 2px; background: var(--dark); display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center; border-radius: 2px; }

  /* Hamburger → X when open */
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }


/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--blue-pale);
  padding: 2.5rem 4rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.page-hero-tag::before { content:''; width:14px; height:2px; background:var(--blue); border-radius:2px; }

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-hero h1 span { color: var(--blue); }

/* ===== SECTION ===== */
.section { padding: 3.5rem 4rem; }
.section-alt { background: var(--light); }
.section-blue { background: var(--blue-pale); }
.section-dark { background: var(--dark); }

.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.eyebrow::before { content:''; width:12px; height:2px; background:var(--blue); border-radius:2px; }
.eyebrow.orange { color:var(--orange); }
.eyebrow.orange::before { background:var(--orange); }

.sec-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.sec-title span { color: var(--blue); }
.sec-title.white { color: var(--white); }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f8faff, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s;
}

.product-card:hover .product-img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  z-index: 1;
}

.badge-blue   { background: var(--blue);   color: white; }
.badge-red    { background: var(--red);    color: white; }
.badge-green  { background: var(--green);  color: white; }
.badge-orange { background: var(--orange); color: white; }

.product-wishlist {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1;
}

.product-wishlist:hover { border-color: var(--red); background: var(--red-pale); }

.product-actions {
  position: absolute;
  bottom: -44px; left: 0; right: 0;
  display: flex;
  transition: bottom 0.3s;
}

.product-card:hover .product-actions { bottom: 0; }

.pa-btn {
  flex: 1;
  padding: 0.7rem;
  background: rgba(15,23,42,0.85);
  color: white;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.pa-btn:hover { background: var(--blue); }
.pa-btn + .pa-btn { border-left: 1px solid rgba(255,255,255,0.1); }

.product-body { padding: 0.9rem 1rem; flex: 1; display: flex; flex-direction: column; }

.product-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.4rem;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.product-name:hover { color: var(--blue); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stars { color: var(--yellow); letter-spacing: 1px; font-size: 0.75rem; }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price { font-size: 1rem; font-weight: 800; color: var(--dark); font-family: 'Poppins', sans-serif; }
.product-old   { font-size: 0.78rem; color: var(--muted); text-decoration: line-through; }
.product-save  { font-size: 0.62rem; font-weight: 700; background: var(--red-pale); color: var(--red); padding: 0.15rem 0.4rem; border-radius: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-blue   { background:var(--blue);   color:white; box-shadow:0 4px 14px rgba(37,99,235,0.25); }
.btn-blue:hover { background:var(--blue-mid); transform:translateY(-1px); }

.btn-orange { background:var(--orange); color:white; box-shadow:0 4px 14px rgba(249,115,22,0.2); }
.btn-orange:hover { opacity:0.9; transform:translateY(-1px); }

.btn-dark   { background:var(--dark); color:white; }
.btn-dark:hover { opacity:0.88; transform:translateY(-1px); }

.btn-outline { background:transparent; border:1.5px solid var(--border); color:var(--dark); }
.btn-outline:hover { border-color:var(--blue); color:var(--blue); }

.btn-outline-white { background:transparent; border:1.5px solid rgba(255,255,255,0.3); color:white; }
.btn-outline-white:hover { border-color:white; background:rgba(255,255,255,0.08); }

.btn-full { width:100%; text-align:center; justify-content:center; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color:var(--blue); background:var(--white); }

.form-group textarea { resize:vertical; min-height:90px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ===== GRID ===== */
.products-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; }
.grid-3        { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-2        { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; }

/* ===== REVEAL ===== */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease,transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== FOOTER ===== */
footer { background:var(--dark); padding:3.5rem 4rem 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-wrap { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; }
.footer-logo-icon { width:34px; height:34px; background:var(--blue); border-radius:7px; display:flex; align-items:center; justify-content:center; color:white; font-family:'Poppins',sans-serif; font-size:0.85rem; font-weight:900; }
.footer-logo-text { font-family:'Poppins',sans-serif; font-size:1.2rem; font-weight:900; color:white; letter-spacing:-0.3px; }
.footer-logo-text span { color:var(--blue-light); }

.footer-desc { font-size:0.78rem; color:rgba(255,255,255,0.4); line-height:1.9; margin-bottom:1.5rem; }
.footer-socials { display:flex; gap:0.5rem; }
.footer-social { width:32px; height:32px; border-radius:7px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size:0.82rem; text-decoration:none; transition:all .3s; }
.footer-social:hover { background:var(--blue); border-color:var(--blue); }

.footer-col h4 { font-size:0.65rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--blue-light); margin-bottom:1rem; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:0.65rem; }
.footer-links a { color:rgba(255,255,255,0.4); text-decoration:none; font-size:0.8rem; transition:color .3s; }
.footer-links a:hover { color:var(--blue-light); }

.footer-bottom { display:flex; justify-content:space-between; align-items:center; }
.footer-bottom p { font-size:0.7rem; color:rgba(255,255,255,0.25); }
.footer-bottom a { color:var(--blue-light); text-decoration:none; }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .nav-top, .nav-bottom, .section, .page-hero, footer { padding-left:2.5rem; padding-right:2.5rem; }
  .products-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width:768px) {
  .nav-top { padding:0.8rem 1.5rem; }
  .nav-bottom { display:none; }
  .nav-search { display:none; }
  .announcement { font-size:0.7rem; padding:0.5rem 1rem; }

  .nav-mobile-links {
    display: none;
    position: fixed;
    top: 55px; left:0; right:0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 199;
    box-shadow: var(--shadow);
  }

  .nav-mobile-links.open { display:flex; }
  .nav-mobile-links a { padding:0.6rem 0.8rem; color:var(--mid); text-decoration:none; font-size:0.85rem; font-weight:600; border-radius:8px; display:flex; align-items:center; gap:0.5rem; }
  .nav-mobile-links a:hover { background:var(--blue-pale); color:var(--blue); }
  

  .section { padding:2.5rem 1.5rem; }
  .page-hero { padding:2rem 1.5rem; }
  footer { padding:3rem 1.5rem 2rem; }
  .products-grid { grid-template-columns:1fr; gap:0.8rem; }
  .grid-3 { grid-template-columns:1fr; }
  .grid-2 { grid-template-columns:1fr; gap:2rem; }
  .form-row { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; gap:1.5rem; }
  .footer-bottom { flex-direction:column; gap:0.8rem; text-align:center; }
}

/* ===== OVERLAY ===== */

/* ===== MOBILE NAV ===== */

#navOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}
#navOverlay.show { display: block; }
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 201;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
                opacity   0.25s ease;
    transform-origin: center;
  }

  

  #navLinks {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    padding: 0 2rem;
    padding-top: 0.5rem;
    padding-bottom: 1.2rem;
    gap: 0;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    list-style: none;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.23,1,0.32,1),
                opacity 0.3s ease;
  }

  #navLinks.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  #navLinks li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  #navLinks li:last-child { border-bottom: none; }

  #navLinks a {
    display: block;
    padding: 0.95rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mid);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    border-radius: 6px;
  }

  #navLinks a:hover,
  #navLinks a.active {
    background: var(--light);
    color: var(--blue);
    padding-left: 1.2rem;
  }

  .nav-close-li {
    display: flex !important;
    border-bottom: none !important;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
  }

  .nav-close-btn {
    width: 100%;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
  }

  .nav-close-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
  }

  .nav-close-btn span { font-size: 1rem; font-weight: 900; }
}


}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 2rem 1.2rem; }
  .page-hero { padding: 2rem 1.2rem; }
  footer { padding: 2.5rem 1.2rem 1.5rem; }
  .cat-strip { gap: 0.5rem; }
  .hero-search { padding: 0 1.2rem; }
  .flash-banner { padding: 0.8rem 1.2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .listing-layout { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ===== GLOBAL OVERFLOW PREVENTION ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, embed, object { max-width: 100%; }
table { max-width: 100%; }

@media (max-width: 768px) {
  .section, section { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .page-hero { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  nav { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  footer { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .topbar { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
}

@media (max-width: 480px) {
  .section, section { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  .page-hero { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
  footer { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }
}

/* Nav close button — desktop hidden, mobile only */
.nav-close-li { display: none !important; }

@media (max-width: 768px) {
  .nav-close-li {
    display: flex !important;
    border-bottom: none !important;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
  }
}

