@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ============================
   DESIGN TOKENS & PALETTE
   ============================ */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette - Vibrant Solar Energy Theme */
  --color-primary: #0b1d3a;      /* Deep Midnight Blue */
  --color-secondary: #00d4ff;    /* Sky/Cyan Accent */
  --color-accent: #ff9f1c;       /* Golden Solar Amber */
  --color-accent-rgb: 255, 159, 28;
  --color-success: #2ec4b6;      /* Teal/Emerald Green */
  --color-danger: #e71d36;       /* Vibrant Red */
  
  --bg-light: #f8fafd;
  --bg-white: #ffffff;
  --bg-dark: #0a1128;
  
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 29, 58, 0.12);
  --shadow-glow: 0 0 20px rgba(255, 159, 28, 0.3);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   BASE RESET
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(11, 29, 58, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-medium);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 29, 58, 0.25);
  background-color: #17325c;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.15), transparent 60%),
              radial-gradient(circle at bottom left, rgba(255, 159, 28, 0.12), transparent 50%),
              var(--color-primary);
  color: var(--text-white);
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h2 span {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ffdf00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-hero-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 159, 28, 0.45);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  border-color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ============================
   MAIN STORE CONTENT
   ============================ */
.store-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-intro h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-intro p {
  color: var(--text-medium);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Filters & Search Row */
.store-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-medium);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--text-light);
  color: var(--text-dark);
}

.tab-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(11, 29, 58, 0.15);
}

.store-search {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.store-search input {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  font-size: 14px;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.store-search input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

/* ============================
   PRODUCT CATALOGUE GRID
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 232, 240, 0.2);
}

/* Product Image Box */
.product-img-box {
  height: 200px;
  position: relative;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,58,0) 40%, rgba(11,29,58,0.7) 100%);
  opacity: 0.9;
}

.product-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(11, 29, 58, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.stock-in {
  background-color: var(--color-success);
  color: var(--text-white);
}

.stock-low {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.stock-out {
  background-color: var(--color-danger);
  color: var(--text-white);
}

.stock-service {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.product-svg-icon {
  font-size: 64px;
  z-index: 1;
}

/* Product Info Box */
.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  color: var(--text-medium);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 60px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.price-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

.order-btn {
  background-color: var(--color-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.order-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

.order-btn:disabled {
  background-color: var(--border-light);
  color: var(--text-light);
  cursor: not-allowed;
}

/* ============================
   CTA / FOOTER
   ============================ */
.cta-banner {
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
}

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-white);
  font-size: 20px;
}
.footer-logo span { color: var(--color-accent); }

.footer-copy {
  font-size: 13px;
}

/* ============================
   ORDER MODAL
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
}

.btn-submit-order {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-order:hover {
  background-color: #e58f19;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
  .hero h2 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .navbar { height: 72px; }
  .nav-menu { display: none; }
  .store-controls { flex-direction: column; align-items: stretch; }
  .store-search { max-width: 100%; }
}
