/* ==========================================================
   THEME: PREMIUM GLASSMORPHISM (ULTIMATE)
   File: /public/assets/css/styles.css
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --secondary-color: #10b981;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --radius: 16px;
}

/* Reset & Base */
* { box-sizing: border-box; outline: none; }
body {
  margin: 0; padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  background-image: 
      radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; transition: .3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header - Z-INDEX 10001 (Above Everything) */
header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  position: fixed; width: 100%; top: 0; 
  z-index: 10001; 
  padding: 15px 0; transition: all 0.3s ease;
}
header.scrolled { padding: 10px 0; background: rgba(15, 23, 42, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo a {
  font-size: 1.5rem; font-weight: 700;
  background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Nav Desktop */
nav.main-nav ul { display: flex; gap: 30px; }
nav.main-nav a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
nav.main-nav a:hover { color: #fff; }

/* Buttons */
.auth-buttons { display: flex; gap: 10px; align-items: center; }
.register-btn {
  background: var(--primary-gradient); color: white !important;
  padding: 8px 20px; border-radius: 50px; font-weight: 500;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
.register-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.6); }
.menu-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Overlay Background */
.nav-overlay { 
    display: none; position: fixed; inset: 0; 
    background: rgba(0,0,0,0.6); 
    z-index: 9999; 
    backdrop-filter: blur(4px); 
}
.nav-head { display: none; }

/* Hero Section */
.hero { padding-top: 140px; padding-bottom: 80px; text-align: center; }
.hero h1 {
  font-size: 3rem; margin-bottom: 20px; font-weight: 800;
  background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-description { max-width: 700px; margin: 0 auto 30px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }
.hero-badges .badge {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-badges .dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; }

/* CTA Buttons */
.cta-button {
  padding: 12px 30px; border-radius: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: .3s; text-decoration: none;
}
.cta-button.pulse {
  background: var(--text-light); color: var(--bg-dark) !important;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.cta-button.pulse:hover { transform: scale(1.05); }
.cta-button.outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; box-shadow: none;
}
.cta-button.outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Features */
.features { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.section-title p { color: var(--text-muted); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: var(--glass-border); padding: 30px;
  border-radius: var(--radius); transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); background: rgba(40, 50, 75, 0.8); border-color: rgba(79, 70, 229, 0.3); }
.feature-icon {
  width: 50px; height: 50px; background: rgba(79, 70, 229, 0.1); color: #818cf8;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.feature-title { font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }
.feature-description { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* Products */
.products { padding: 60px 0; }
#category {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 12px; border-radius: 12px; margin-top: 20px; width: 100%; max-width: 400px;
}
#category option { background: #0f172a; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.product-card {
  background: var(--bg-card); border: var(--glass-border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; cursor: pointer; opacity: 0; transform: translateY(20px);
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); border-color: rgba(79, 70, 229, 0.5); }
.product-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.1); }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: #818cf8; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.product-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-description {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 1.2rem; font-weight: 700; color: #fff; }
.stock-badge { font-size: 0.75rem; display: flex; align-items: center; gap: 5px; color: var(--text-muted); }
.stock-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.stock-badge.out .dot { background: #ef4444; }
.product-button {
  background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 8px 16px;
  border-radius: 8px; font-size: 0.85rem; cursor: pointer; margin-top: 12px; width: 100%;
}
.product-button:hover { background: var(--primary-color); }
.product-button:disabled, .out-of-stock { opacity: 0.6; cursor: not-allowed; }

/* Testimonials Marquee */
.testimonials { padding: 60px 0; overflow: hidden; }
.marquee-wrapper {
    width: 100%; overflow: hidden; position: relative; padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content { display: flex; gap: 20px; width: max-content; animation: scrollLeft 25s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
.testi-card {
    background: var(--bg-card); border: var(--glass-border); border-radius: 16px; padding: 20px;
    width: 300px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.stars { color: #fbbf24; margin-bottom: 10px; font-size: 14px; }
.testi-text { font-style: italic; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; }
.testi-user { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.user-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.testi-user div strong { display: block; font-size: 0.9rem; color: #fff; }
.testi-user div span { font-size: 0.75rem; color: #818cf8; }
@keyframes scrollLeft { to { transform: translateX(-50%); } }

/* FAQ Section */
.faq-section { padding: 60px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-card {
    background: var(--bg-card); border: var(--glass-border); border-radius: 12px; overflow: hidden; transition: all 0.3s ease;
}
.faq-card[open] { background: rgba(40, 50, 75, 0.6); border-color: var(--primary-color); }
.faq-card summary {
    padding: 18px 25px; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; color: #fff;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary i { transition: transform 0.3s; color: var(--text-muted); }
.faq-card[open] summary i { transform: rotate(180deg); color: var(--secondary-color); }
.faq-card p {
    padding: 0 25px 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;
}

/* Floating WA Button */
.float-wa {
    position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
    background: #25d366; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 10000; transition: .3s;
}
.float-wa:hover { transform: scale(1.1); }

/* Modals */
.modal {
  display: none; position: fixed; z-index: 99999; left: 0; top: 0;
  width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  padding: 20px; overflow-y: auto;
}
.modal-content {
  background: #1e293b; margin: 5% auto; border: 1px solid rgba(255,255,255,0.1);
  width: 100%; max-width: 800px; border-radius: 20px; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.modal-header {
  padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.close-modal { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-body { padding: 25px; color: var(--text-muted); }
#productDetailBody { display: flex; gap: 30px; flex-wrap: wrap; }
.product-detail-image { flex: 1; min-width: 250px; border-radius: 12px; overflow: hidden; }
.product-detail-image img { width: 100%; height: auto; }
.product-detail-info { flex: 1.5; min-width: 250px; }
.product-detail-price { font-size: 1.5rem; color: #818cf8; font-weight: 700; margin: 15px 0; }
.btn-buy-now, .btn-complete-order {
  width: 100%; background: var(--primary-gradient); border: none; padding: 14px;
  color: #fff; font-weight: 600; border-radius: 12px; cursor: pointer; font-size: 1rem; margin-top: 20px;
}
.btn-buy-now:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(79, 70, 229, 0.4); }

/* Forms & Footer */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; color: #fff; }
.form-group input, .form-group select {
  width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff;
}
.order-summary { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; margin: 20px 0; }
.summary-item, .summary-total { display: flex; justify-content: space-between; margin-bottom: 8px; }
.summary-total { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; font-weight: 700; color: #fff; }
.payment-method {
  border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 10px;
}
.payment-method.selected { border-color: var(--secondary-color); background: rgba(16, 185, 129, 0.1); }
footer { background: #0b1120; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.loader { position: fixed; inset: 0; background: #0f172a; z-index: 100000; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Mobile Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-overlay { display: none; } 
  nav.main-nav {
      position: fixed; top: 0; right: -320px; width: 280px; height: 100vh;
      background: #1e293b; z-index: 10002; 
      padding: 20px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  nav.main-nav ul li a { display: block; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 8px; }
  .hero h1 { font-size: 2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .testi-card { width: 260px; }
}
@media (max-width: 500px) {
  .products-grid { grid-template-columns: 1fr; }
}