/* ============================================================
   ESSPEE ELECTRO POWER PRODUCTS – STYLESHEET
   Palette: ESSPEE Red #D42B2B · Black #111 · White #fff · Grey #F5F5F5
   Font: Inter (clean, technical, industrial)
   ============================================================ */

/* ── TOKENS ── */
:root {
  --red:        #D42B2B;
  --red-d:      #B01F1F;
  --red-light:  #FF4444;
  --black:      #111111;
  --black-mid:  #222222;
  --grey-dark:  #444444;
  --grey:       #888888;
  --grey-light: #E0E0E0;
  --bg:         #F5F5F5;
  --white:      #FFFFFF;
  --border:     rgba(0,0,0,0.1);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.18);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-h: 68px;
  --tr: 0.22s ease;
  --cart-w: 400px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── UTILITIES ── */
.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding-block: 80px; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(212,43,43,0.08);
  border: 1px solid rgba(212,43,43,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--grey);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn:hover { transform: translateY(-2px); }

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(212,43,43,0.3);
}
.btn-red:hover {
  background: var(--red-d);
  box-shadow: 0 8px 28px rgba(212,43,43,0.45);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-light);
}
.btn-outline-dark:hover {
  border-color: var(--black);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--black);
  box-shadow: 0 2px 0 rgba(212,43,43,0.5), var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1180px;
  width: 92%;
  margin-inline: auto;
}

/* Logo */
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-img {
  height: 34px;
  width: auto;
  border-radius: 5px;
  object-fit: contain;
}
.logo-box {
  background: var(--red);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-flex;
  gap: 1px;
}
.logo-es, .logo-pee {
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  transition: color var(--tr);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--tr);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Cart toggle button */
.cart-toggle-btn {
  position: relative;
  background: none;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--tr), background var(--tr);
}
.cart-toggle-btn:hover {
  border-color: var(--red);
  background: rgba(212,43,43,0.12);
}
.cart-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  width: 19px; height: 19px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--black);
  transition: transform 0.2s;
}
.cart-badge.bump { transform: scale(1.4); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px; height: 40px;
  justify-content: center;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--black-mid);
  padding: 16px 24px 24px;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--tr);
}
.mobile-nav a:hover { color: var(--red); }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-mid) 50%, #1a0000 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,43,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,43,43,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 72px 48px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,43,43,0.15);
  border: 1px solid rgba(212,43,43,0.35);
  color: #FF8080;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-accent { color: var(--red); }

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.trust-item span { font-size: 1rem; }

/* Hero right: big logo + wave */
.hero-logo-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.big-logo-wrap { text-align: center; }
.big-logo-img {
  width: min(320px, 80vw);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(212,43,43,0.35);
  margin-bottom: 12px;
}
.big-logo-box {
  display: inline-flex;
  background: var(--red);
  padding: 16px 28px;
  border-radius: 12px;
  gap: 2px;
  box-shadow: 0 8px 48px rgba(212,43,43,0.5);
  margin-bottom: 12px;
}
.big-logo-es, .big-logo-pee {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.big-logo-sub {
  font-size: clamp(0.75rem, 1.5vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
}

.wave-svg { width: 100%; max-width: 300px; }

.hero-address {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.5;
}

/* Hero wave divider */
.hero-wave { margin-top: auto; line-height: 0; }
.hero-wave svg { width: 100%; display: block; }

/* ── PRODUCTS ── */
.products-section { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.featured-card {
  border: 2px solid var(--red);
  position: relative;
}
.featured-card::before {
  content: 'BEST SELLER';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 5px;
  z-index: 2;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.img-fallback {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 2.5rem;
  color: var(--grey);
  text-align: center;
  gap: 8px;
  font-weight: 700;
}

.product-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.tv-badge { background: var(--red); }

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
}

.product-variant {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.product-specs li {
  font-size: 0.8rem;
  color: var(--grey-dark);
  padding-left: 14px;
  position: relative;
}
.product-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.65rem;
  top: 2px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
}

/* ── SERVICES ── */
.services-section { background: var(--black); }
.services-section .section-title { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
}
.service-card:hover {
  background: rgba(212,43,43,0.08);
  border-color: rgba(212,43,43,0.3);
  transform: translateY(-4px);
}
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── SHIPPING ── */
.shipping-section { background: var(--bg); }

.shipping-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin-inline: auto;
}

.shipping-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.free-ship { border-top: 4px solid #22C55E; }
.paid-ship { border-top: 4px solid var(--red); }

.shipping-icon { font-size: 2.5rem; margin-bottom: 14px; }
.shipping-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--black); margin-bottom: 4px; }
.shipping-loc {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.shipping-card p { font-size: 0.92rem; color: var(--grey-dark); line-height: 1.65; }

/* ── CONTACT ── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-info .section-title { text-align: left; margin-bottom: 28px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 3px;
}
.contact-item p, .contact-item a {
  font-size: 0.92rem;
  color: var(--black-mid);
  line-height: 1.5;
}
.contact-item a:hover { color: var(--red); }

.whatsapp-btn { background: #25D366; border-color: #25D366; }
.whatsapp-btn:hover { background: #1DA851; border-color: #1DA851; }

.map-placeholder {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  color: var(--black-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding-top: 52px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 8px;
  object-fit: contain;
}
.footer-logo-box {
  display: inline-flex;
  background: var(--red);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.logo-pee-foot { }
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-addr { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong, .footer-contact strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-links a, .footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--tr);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--red); }

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── CART SIDEBAR ── */
.cart-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.cart-backdrop.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: var(--cart-w);
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--black);
  color: var(--white);
}
.cart-header h2 { font-size: 1.1rem; font-weight: 800; }
.cart-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
}
.cart-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 200px;
  color: var(--grey);
  font-size: 0.95rem;
}

.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.ci-info { flex: 1; }
.ci-name { font-size: 0.85rem; font-weight: 600; color: var(--black); line-height: 1.35; }
.ci-price { font-size: 0.9rem; font-weight: 700; color: var(--red); margin-top: 4px; }

.ci-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.ci-qty-btn {
  width: 28px; height: 28px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.ci-qty-btn:hover { background: var(--grey-light); }
.ci-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
}
.ci-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey);
  font-size: 1rem;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--tr);
  flex-shrink: 0;
}
.ci-remove:hover { color: var(--red); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
}
.cart-total-row span { font-weight: 600; color: var(--grey-dark); }
.cart-total-row strong { font-size: 1.5rem; font-weight: 900; color: var(--red); }

/* ── CHECKOUT MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  backdrop-filter: blur(4px);
  display: none;
}
.modal-backdrop.active { display: block; }

.checkout-modal {
  position: fixed;
  top: 0; right: 0;
  width: min(640px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 1101;
  overflow-y: auto;
  box-shadow: -8px 0 60px rgba(0,0,0,0.25);
  display: none;
}
.checkout-modal.active { display: flex; }

.checkout-modal-inner { display: flex; flex-direction: column; min-height: 100%; }

.checkout-header {
  position: sticky;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  border-bottom: 3px solid var(--red);
}
.checkout-header h2 { font-size: 1.1rem; font-weight: 800; }
.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--tr);
}
.modal-close:hover { color: var(--white); }

.checkout-body { padding: 28px; flex: 1; }

/* Order summary in modal */
.checkout-order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}
.cos-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.cos-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--black-mid);
}
.cos-item:last-child { border-bottom: none; }
.cos-item strong { color: var(--black); }

/* Form */
.form-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--grey-dark); letter-spacing: 0.04em; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,43,43,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #BDBDBD; }
.form-group textarea { resize: vertical; }

.shipping-note {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.shipping-note.free { background: rgba(34,197,94,0.1); color: #166534; }
.shipping-note.paid { background: rgba(212,43,43,0.08); color: var(--red-d); }

/* Total box */
.checkout-total-box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkout-total-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.checkout-total-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.checkout-delivery-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* GPay */
.gpay-instructions {
  background: rgba(212,43,43,0.05);
  border: 1.5px solid rgba(212,43,43,0.2);
  border-radius: var(--radius-md);
  padding: 18px;
}
.gpay-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.gpay-icon { font-size: 2rem; }
.gpay-label-sm { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.gpay-num { font-size: 1.4rem; font-weight: 900; color: var(--black); letter-spacing: 0.04em; }

.copy-btn {
  margin-left: auto;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--tr);
}
.copy-btn:hover { background: var(--red); }

.gpay-pay-amount {
  font-size: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.gpay-pay-amount strong { font-size: 1.4rem; color: var(--red); }
.gpay-note { font-size: 0.82rem; color: var(--grey-dark); line-height: 1.55; }

/* File upload */
.file-upload-area { position: relative; }
.file-upload-area input[type="file"] { position: absolute; opacity: 0; width: 0; height: 0; }
.file-upload-ui {
  border: 2px dashed var(--grey-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  background: var(--bg);
  transition: border-color var(--tr), background var(--tr);
}
.file-upload-ui:hover { border-color: var(--red); background: rgba(212,43,43,0.03); }
.upload-ico { font-size: 1.8rem; }
.upload-txt { font-size: 0.88rem; font-weight: 600; color: var(--red); }
.upload-hint { font-size: 0.73rem; color: var(--grey); }

.file-preview-wrap {
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.file-preview-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: var(--bg);
}
.remove-file-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(17,17,17,0.8);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.place-order-btn { margin-top: 8px; font-size: 1rem; padding: 15px; }
.order-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--grey);
  text-align: center;
  line-height: 1.6;
}
.order-note strong { color: var(--black); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; padding-block: 48px; }
  .hero-logo-display { display: none; }
  .hero-headline { font-size: 2.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  :root { --cart-w: 100vw; }
}

@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .shipping-cards { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-modal { width: 100vw; }
  .checkout-body { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { transition: none !important; animation: none !important; }
}
