/* ============================================================
   ELE SHOP — GLOBAL STYLES (FIXED v2)
   ============================================================ */
:root {
  --navy:        #0f172a;
  --navy-mid:    #1e293b;
  --navy-light:  #334155;
  --sky:         #0ea5e9;
  --sky-dark:    #0284c7;
  --sky-glow:    rgba(14,165,233,0.1);
  --sky-light:   #e0f2fe;
  --success:     #22c55e;
  --danger:      #ef4444;
  --accent:      #f59e0b;
  --gold:        #f59e0b;
  --accent-light:#fef3c7;
  --slate:       #64748b;
  --slate-light: #94a3b8;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --off-white:   #f8fafc;
  --white:       #ffffff;
  --text:        #1e293b;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', 'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow:      0 4px 6px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 20px 40px rgba(0,0,0,0.12);
  --shadow-sky:  0 4px 14px rgba(14,165,233,0.2);
  --transition:  0.2s ease;
  --transition-slow: 0.45s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: 68px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── LOADER ─────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; z-index: 99999;
}
.loader-logo { font-family: var(--font-head); font-size: 2rem; color: white; letter-spacing: 2px; }
.loader-logo span { color: var(--sky); }
.loader-bar { width: 100px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.loader-bar::after {
  content: ''; display: block; width: 40%; height: 100%;
  background: var(--sky); border-radius: 10px;
  animation: loaderSlide 1s ease-in-out infinite alternate;
}
@keyframes loaderSlide { from { transform: translateX(0); } to { transform: translateX(200%); } }

/* ── NAVBAR ─────────────────────────────────────── */
.ele-navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s ease; }
.ele-navbar.solid { background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.ele-navbar.transparent { background: transparent; }
.ele-navbar.scrolled { background: var(--navy) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }

.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
  height: 68px; display: flex; align-items: center; gap: 1.5rem;
}

.nav-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; flex-shrink: 0; display: flex; align-items: baseline; }
.logo-ele  { color: white; }
.logo-shop { color: var(--sky); }

.nav-links { display: flex; list-style: none; gap: 0.2rem; margin-left: 0.5rem; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 0.875rem; font-weight: 500; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }

.nav-actions { display: flex; align-items: center; gap: 0.45rem; margin-left: auto; }

.nav-search-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; overflow: hidden; transition: all var(--transition); }
.nav-search-wrap:focus-within { background: rgba(255,255,255,0.18); border-color: var(--sky); }
.nav-search-wrap input { background: transparent; border: none; color: white; padding: 0.42rem 0.85rem; font-size: 0.85rem; outline: none; width: 180px; }
.nav-search-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-wrap button { background: transparent; border: none; color: rgba(255,255,255,0.65); padding: 0.42rem 0.6rem; display: flex; align-items: center; }
.nav-search-wrap button:hover { color: var(--sky); }
.nav-search-wrap button i { width: 16px; height: 16px; }

.nav-icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); transition: all var(--transition); position: relative; flex-shrink: 0; }
.nav-icon-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-icon-btn i { width: 20px; height: 20px; }

.cart-btn { position: relative; }
#cart-badge { position: absolute; top: -4px; right: -4px; background: var(--sky); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); }

.nav-avatar-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky); }

.nav-hamburger { display: none; background: rgba(255,255,255,0.1); border: none; color: white; width: 38px; height: 38px; border-radius: var(--radius-sm); align-items: center; justify-content: center; flex-shrink: 0; }
.nav-hamburger i { width: 20px; height: 20px; }

.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1001; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav { position: fixed; top: 0; right: -100%; width: min(300px, 85vw); height: 100vh; background: var(--navy); z-index: 1002; transition: right 0.3s ease; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; box-shadow: -5px 0 30px rgba(0,0,0,0.3); }
.mobile-nav.open { right: 0; }
.mobile-nav-close { align-self: flex-end; background: rgba(255,255,255,0.1); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.mobile-nav-close i { width: 18px; height: 18px; }
.mobile-logo { margin-bottom: 1rem; }
.mobile-links { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-links a { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.75); padding: 0.75rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.9rem; transition: all var(--transition); }
.mobile-links a:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-links a i { width: 18px; height: 18px; flex-shrink: 0; }

/* ── FLOATING CART ──────────────────────────────── */
#float-cart { position: fixed; bottom: 25px; right: 25px; z-index: 9999; }
#float-cart button { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(14,165,233,0.4); transition: all 0.3s ease; position: relative; }
#float-cart button:hover { transform: scale(1.08); }
#float-cart button i { width: 26px; height: 26px; color: white; }
#float-cart .cart-badge-num { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--navy); font-size: 0.68rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.wave-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(14,165,233,0.35); animation: waveRing 2.2s ease-out infinite; pointer-events: none; }
.wave-ring-1 { width: calc(100% + 18px); height: calc(100% + 18px); animation-delay: 0s; }
.wave-ring-2 { width: calc(100% + 36px); height: calc(100% + 36px); animation-delay: 0.7s; }
@keyframes waveRing { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(1.2); opacity: 0; } }

/* ── BUTTONS ────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--sky); color: white; border: none; padding: 0.75rem 1.75rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); color: white; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.w-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* ── PRODUCT CARDS ──────────────────────────────── */
.product-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1.5px solid var(--gray-200);
  transition: all var(--transition-slow); position: relative;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sky); transform: translateY(-4px); }

.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-50); flex-shrink: 0; }
.product-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-main-img { transform: scale(1.06); }

.product-badge-sale { position: absolute; top: 10px; left: 10px; background: var(--danger); color: white; font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; z-index: 2; }

.product-body { padding: 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.product-name { font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4rem; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--sky); }
.product-price-wrap { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.product-old-price { text-decoration: line-through; color: var(--slate-light); font-size: 0.82rem; }
.product-discount-badge { font-size: 0.72rem; color: var(--danger); font-weight: 700; background: rgba(239,68,68,0.08); padding: 1px 6px; border-radius: 50px; width: fit-content; }

.product-actions { display: flex; gap: 0.45rem; margin-top: auto; padding-top: 0.5rem; }
.btn-view, .btn-cart { flex: 1; padding: 0.5rem 0.3rem; border: none; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-view { background: var(--gray-100); color: var(--navy); border: 1.5px solid var(--gray-200); }
.btn-view:hover { background: var(--navy); color: white; border-color: var(--navy); }
.btn-cart { background: var(--sky); color: white; }
.btn-cart:hover { background: var(--sky-dark); }

/* ── SKELETON ───────────────────────────────────── */
.skeleton-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--gray-200); }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
.skeleton-img { width: 100%; aspect-ratio: 1; border-radius: 0; }
.skeleton-body { padding: 0.85rem; }
.skeleton-line { height: 13px; margin-bottom: 7px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── PRODUCTS GRID ──────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }

/* ── FORMS ──────────────────────────────────────── */
.form-input { width: 100%; background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.72rem 1rem; font-size: 0.9rem; font-family: var(--font-body); color: var(--navy); outline: none; transition: all var(--transition); }
.form-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-glow); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--navy-light); margin-bottom: 0.35rem; }
.form-group { margin-bottom: 1.1rem; }
.form-hint { font-size: 0.72rem; color: var(--slate); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── STATUS BADGES ──────────────────────────────── */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: capitalize; }
.status-pending         { background: #fef3c7; color: #92400e; }
.status-confirmed       { background: #dbeafe; color: #1d4ed8; }
.status-out_for_delivery{ background: #ede9fe; color: #6d28d9; }
.status-delivered       { background: #dcfce7; color: #15803d; }
.status-cancelled       { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ─────────────────────────────────────── */
#main-footer { background: var(--navy); color: rgba(255,255,255,0.7); margin-top: 4rem; }
.footer-body { padding: 3.5rem 5%; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; max-width: 1300px; margin: 0 auto; }
.footer-logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 0.75rem; color: white; }
.footer-logo span { color: var(--sky); }
.footer-brand .footer-tagline { font-size: 0.85rem; opacity: 0.6; margin-bottom: 1rem; line-height: 1.6; }
.footer-socials { display: flex; gap: 0.5rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--transition); }
.social-btn:hover { color: white; }
.whatsapp-social { background: rgba(37,211,102,0.2); color: #25D366; }
.whatsapp-social:hover { background: #25D366; color: white; }
.footer-col h4 { color: white; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.58); font-size: 0.875rem; padding: 0.22rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--sky); }
.footer-contact .contact-item { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.7rem; font-size: 0.84rem; }
.footer-contact .contact-item i { width: 15px; height: 15px; color: var(--sky); flex-shrink: 0; margin-top: 2px; }
.footer-contact .contact-item a { display: inline; color: rgba(255,255,255,0.58); padding: 0; }
.footer-contact .contact-item a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 5%; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-wa-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #25D366; color: white; padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; transition: all var(--transition); }
.footer-wa-btn:hover { transform: translateY(-2px); color: white; }

/* ── SCROLL REVEAL ──────────────────────────────── */
.scroll-reveal, .reveal-zoom { opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.9,0.4,1); }
.scroll-reveal.revealed, .reveal-zoom.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ── UTILITIES ──────────────────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.py-nav    { padding-top: calc(68px + 2rem); padding-bottom: 4rem; }
.section   { padding: 5rem 5%; }
.mt-1      { margin-top: 0.5rem; }
.mt-2      { margin-top: 1rem; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state h3 { font-size: 1.3rem; margin: 1rem 0 0.5rem; color: var(--navy); }
.empty-state p  { color: var(--slate); margin-bottom: 1.5rem; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links   { display: none; }
}
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .nav-search-wrap { display: none; }
  .nav-hamburger   { display: flex; }
  .nav-inner       { gap: 0.5rem; }
  .footer-grid     { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row        { grid-template-columns: 1fr; }
  /* ONE product per row on mobile */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .product-img-wrap { aspect-ratio: 4/3; }
  .product-name { font-size: 1rem; min-height: auto; -webkit-line-clamp: unset; }
  .product-price { font-size: 1.15rem; }
  .btn-view, .btn-cart { font-size: 0.85rem; padding: 0.6rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr !important; gap: 0.9rem !important; }
}