:root{
  --bg: #f2f2f2;
  --card: #ffffff;
  --muted: #1a1a1a;
  --accent: #e53e3e;
  --accent-2: #3182ce;
  --accent-hover: #f56565;
  --primary: #e53e3e;
  --primary-dark: #b83232;
  --success: #38a169;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 50px rgba(0,0,0,0.18);
  --radius: 16px;
  --transition: cubic-bezier(.2,.9,.3,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg,#fff 0%, #f2f2f2 100%);
  color:#1a1a1a;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* NAVIGATION */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1.5rem;
  padding:16px 32px;
  position:sticky;
  top:0;
  background:rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  z-index:100;
  border-bottom:1px solid rgba(0,0,0,0.06);
  box-shadow:var(--shadow-sm);
}

.nav-left{
  display:flex;
  align-items:center;
  gap:16px;
}

.brand-logo{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:16px;
  box-shadow:var(--shadow);
  transition:transform .3s var(--transition);
}
.brand-logo:hover{transform:scale(1.05) rotate(-2deg)}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.brand-title{
  font-family: "Great Vibes", cursive;
  font-size:24px;
  line-height:1;
  color:var(--primary);
}
.brand-sub{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
}

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

.search-wrapper{
  position:relative;
}
.search-wrapper input{
  padding:10px 16px 10px 40px;
  border-radius:12px;
  border:2px solid #cbd5e1;
  width:240px;
  outline:none;
  transition:all .25s ease;
  font-size:14px;
}
.search-wrapper input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3 rgba(229,62,62,0.1);
  transform:translateY(-1px);
}
.search-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}

.filters{
  display:flex;
  gap:8px;
}
.filters select{
  padding:10px 14px;
  border-radius:12px;
  border:2px solid #cbd5e1;
  background:white;
  outline:none;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  transition:all .2s ease;
}
.filters select:hover{
  border-color:#a0aec0;
}
.filters select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3 rgba(229,62,62,0.1);
}

.cart-btn{
  position:relative;
  border:none;
  background:linear-gradient(135deg,var(--accent), var(--accent-hover));
  padding:10px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  box-shadow:var(--shadow);
  transition:all .25s var(--transition);
  display:flex;
  align-items:center;
  gap:8px;
}
.cart-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
}
.cart-count{
  background:#ef4444;
  color:white;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  min-width:24px;
  text-align:center;
  animation:pulse .5s ease;
}


/* HERO */
.hero{
  padding:60px 32px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 30% 50%, rgba(229,62,62,0.3), transparent 50%),
             radial-gradient(circle at 70% 50%, rgba(49,130,206,0.3), transparent 50%);
  pointer-events:none;
}
.hero-inner{
  max-width:980px;
  position:relative;
  background:linear-gradient(135deg, rgba(255, 43, 43, 0.9), rgba(49,130,206,0.9));
  border-radius:24px;
  padding:48px 36px;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(229,62,62,0.6);
}
.hero h1{
  font-size:clamp(28px, 5vw, 42px);
  color:white;
  margin:0 0 12px;
  font-weight:700;
}
.hero p{
  color:var(--muted);
  margin:0 0 24px;
  font-size:16px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 24px;
  border-radius:12px;
  border:none;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:white;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 8px 20px rgba(229,62,62,0.25);
  transition:all .25s var(--transition);
  font-size:15px;
}
.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(229,62,62,0.35);
}
.btn.ghost{
  background:transparent;
  color:var(--muted);
  border:2px solid #cbd5e1;
  box-shadow:none;
}
.btn.ghost:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:rgba(229,62,62,0.05);
}

/* PRODUCT SECTION */
.products-section{
  padding:40px 32px 80px;
  max-width:1400px;
  margin:0 auto;
  width:100%;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:32px;
}
.section-header h2{
  font-size:28px;
  font-weight:700;
}
.view-toggle{
  display:flex;
  gap:8px;
  background:#f1f5f9;
  padding:4px;
  border-radius:10px;
}
.view-toggle button{
  padding:8px 12px;
  border:none;
  background:transparent;
  border-radius:8px;
  cursor:pointer;
  transition:all .2s ease;
  font-weight:600;
  color:var(--muted);
}
.view-toggle button.active{
  background:white;
  color:var(--primary);
  box-shadow:var(--shadow-sm);
}

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




/* PRODUCT CARD */
.card{
  background:var(--card);
  border-radius:20px;
  padding:16px;
  box-shadow:var(--shadow);
  transition:all .35s var(--transition);
  display:flex;
  flex-direction:column;
  gap:14px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.04);
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, transparent, rgba(229,62,62,0.05));
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}
.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
  border-color:rgba(229,62,62,0.2);
}
.card:hover::before{
  opacity:1;
}

.card-badge{
  position:absolute;
  top:24px;
  right:24px;
  background:linear-gradient(135deg, #e53e3e, #b83232);
  color:white;
  padding:6px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
  z-index:2;
  box-shadow:0 4px 12px rgba(229,62,62,0.3);
}

.card-media{
  border-radius:16px;
  overflow:hidden;
  height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--accent-2), #fef3f6);
  position:relative;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s var(--transition);
}
.card:hover .card-media img{
  transform:scale(1.08);
}

.card-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.card-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
.card-title{
  font-weight:700;
  font-size:17px;
  line-height:1.3;
  color:#0f172a;
}
.card-category{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  font-weight:600;
  letter-spacing:0.5px;
  margin-top:2px;
}
.card-price{
  font-weight:700;
  font-size:20px;
  color:var(--primary);
}

.card-options{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.option-group{
  flex:1;
  min-width:120px;
}
.option-label{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
select.size, select.color{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:2px solid #cbd5e1;
  background:white;
  outline:none;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  transition:all .2s ease;
}
select.size:hover, select.color:hover{
  border-color:#a0aec0;
}
select.size:focus, select.color:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3 rgba(229,62,62,0.1);
}

.card-actions{
  display:flex;
  gap:8px;
  margin-top:auto;
}
.card-actions .btn{
  flex:1;
  justify-content:center;
  font-size:14px;
  padding:10px 16px;
}
.whatsapp-btn{
  padding:10px 16px;
  border-radius:10px;
  border:none;
  background:linear-gradient(135deg, var(--success), #22c55e);
  color:white;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(37,211,102,0.25);
  font-weight:600;
  font-size:14px;
  transition:all .25s var(--transition);
}
.whatsapp-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(37,211,102,0.35);
}

/* CART DRAWER */
.cart-drawer{
  position:fixed;
  right:-440px;
  top:0;
  height:100%;
  width:420px;
  background:white;
  box-shadow: -24px 0 60px rgba(0,0,0,0.15);
  padding:24px;
  transition:right .35s var(--transition);
  z-index:200;
  display:flex;
  flex-direction:column;
}
.cart-drawer.open{right:0}

.cart-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:199;
}
.cart-overlay.show{
  opacity:1;
  pointer-events:auto;
}

.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:20px;
  border-bottom:2px solid #f1f5f9;
  margin-bottom:20px;
}
.cart-header h3{
  font-size:24px;
  font-weight:700;
}
#closeCart{
  width:40px;
  height:40px;
  border-radius:10px;
  border:none;
  background:#f1f5f9;
  cursor:pointer;
  font-size:20px;
  transition:all .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
#closeCart:hover{
  background:#e2e8f0;
  transform:rotate(90deg);
}

.cart-items{
  flex:1;
  overflow-y:auto;
  margin-bottom:20px;
  padding-right:4px;
}
.cart-items::-webkit-scrollbar{width:6px}
.cart-items::-webkit-scrollbar-track{background:#f1f5f9;border-radius:10px}
.cart-items::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}

.cart-item{
  display:flex;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:#f8fafc;
  margin-bottom:12px;
  transition:all .2s ease;
  border:2px solid transparent;
}
.cart-item:hover{
  background:#f1f5f9;
  border-color:#e2e8f0;
}
.cart-item img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:var(--shadow-sm);
}
.cart-item .meta{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cart-item-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
.cart-item-title{
  font-weight:700;
  font-size:15px;
}
.cart-item-details{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
}
.cart-item-price{
  font-weight:700;
  color:var(--primary);
}

.qty-controls{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:auto;
}
.qty-controls button{
  width:32px;
  height:32px;
  border-radius:8px;
  border:2px solid #e2e8f0;
  background:white;
  cursor:pointer;
  font-weight:700;
  transition:all .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}
.qty-controls button:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:#f8f9fb;
}
.qty-value{
  min-width:32px;
  text-align:center;
  font-weight:700;
}
.remove-btn{
  margin-left:auto;
  padding:6px 12px !important;
  width:auto !important;
  height:auto !important;
  font-size:12px;
}

.cart-footer{
  border-top:2px solid #f1f5f9;
  padding-top:20px;
}
.cart-summary{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:20px;
}
.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
}
.summary-row.total{
  font-size:20px;
  font-weight:700;
  color:var(--primary);
  padding-top:12px;
  border-top:2px solid #f1f5f9;
}
.cart-actions{
  display:flex;
  gap:10px;
}
.cart-actions .btn{
  flex:1;
  justify-content:center;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  z-index:300;
  padding:20px;
}
.modal.show{display:flex}
.modal-content{
  background:white;
  padding:32px;
  border-radius:20px;
  max-width:480px;
  width:100%;
  box-shadow:var(--shadow-lg);
  animation:modalSlide .3s var(--transition);
}
@keyframes modalSlide{
  from{transform:translateY(-20px);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.modal h4{
  font-size:24px;
  margin-bottom:12px;
  font-weight:700;
}
.modal p{
  color:var(--muted);
  margin-bottom:24px;
  line-height:1.6;
}
.modal-actions{
  display:flex;
  gap:12px;
}
.modal-actions .btn{
  flex:1;
  justify-content:center;
}

/* FOOTER */
.site-footer{
  margin-top:auto;
  padding:40px 32px;
  text-align:center;
  background:linear-gradient(180deg, transparent, #f8f9fb);
  border-top:1px solid rgba(0,0,0,0.06);
}
.footer-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-main{
  font-weight:600;
  color:#1e293b;
}
.footer-note{
  font-size:14px;
  color:var(--muted);
}
.footer-social{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:8px;
}
.social-link{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
  text-decoration:none;
}
.social-link:hover{
  background:var(--primary);
  color:white;
  transform:translateY(-2px);
}

/* FLASH MESSAGE */
.flash{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:32px;
  background:#0f172a;
  color:white;
  padding:14px 24px;
  border-radius:12px;
  z-index:400;
  opacity:0;
  transition:all .3s var(--transition);
  box-shadow:var(--shadow-lg);
  font-weight:600;
}
.flash.show{opacity:1}

/* ANIMATIONS */
@keyframes pulse{
  0%, 100%{transform:scale(1)}
  50%{transform:scale(1.15)}
}

/* RESPONSIVE */
@media (max-width:1200px){
  .products-grid{
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width:900px){
  .nav{padding:14px 20px;gap:12px}
  .brand-logo{width:56px;height:56px}
  .brand-title{font-size:20px}
  .search-wrapper input{width:180px}
  .filters{display:none}
  .hero{padding:40px 20px}
  .hero-inner{padding:32px 24px}
  .products-section{padding:32px 20px}
  .products-grid{
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap:16px;
  }
}

@media (max-width:640px){
  .nav-right{gap:8px}
  .search-wrapper{display:none}
  .cart-btn{padding:8px 12px;font-size:14px}
  .hero h1{font-size:24px}
  .products-grid{
    grid-template-columns:1fr;
  }
  .card-media{height:240px}
  .cart-drawer{
    width:100%;
    right:-100%;
  }
  .modal-content{padding:24px}
}


/* ================= DARK THEME ================= */
body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --muted: #cbd5e1;

  --accent: #f43f5e;
  --accent-hover: #fb7185;
  --primary: #f43f5e;
  --primary-dark: #be123c;

  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: #e5e7eb;
}

/* Dark mode component tweaks */
body.dark .nav {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark .filters select,
body.dark .search-wrapper input,
body.dark select.size {
  background: #020617;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark .cart-drawer,
body.dark .modal-content {
  background: #020617;
}

body.dark .card {
  border-color: rgba(255,255,255,0.05);
}

body.dark .site-footer {
  background: linear-gradient(180deg, transparent, #020617);
}
