:root {
  --nav: #232f3e;
  --accent: #ff9900;
  --muted: #6b7280;
  --card-bg: #fff;
  --page-bg: #f8fafc;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --header-height: 64px;
}
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--page-bg);
  color: #222;
  min-height: 100vh;
}
.site-header {
  background: var(--nav);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.hb {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 24px;
  height: var(--header-height);
}
.logo {
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 2px;
}
.search-wrap {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-wrap input, .search-wrap select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}
#searchBtn {
  background: var(--accent);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #222;
  transition: background 0.2s;
}
#searchBtn:hover {
  background: #ffa726;
}
.hdr-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.2rem;
}
.mega-nav {
  background: var(--nav);
  box-shadow: var(--shadow);
}
.menu-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 12px 0;
  list-style: none;
  overflow-x: auto;
}
.menu-item>a {
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}
.menu-item>a:hover {
  background: #1a2233;
}
.menu-panel {
  position: absolute;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  display: none;
  box-shadow: var(--shadow);
}
.hero {
  max-width: var(--max-width);
  margin: 32px auto 20px auto;
  background: linear-gradient(90deg,#232f3e 0%, #1a2233 60%);
  color: #fff;
  border-radius: 16px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.hero p {
  color: #e0e7ef;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.btn {
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #f3f4f6;
  color: #232f3e;
  transition: background 0.2s;
}
.btn.primary {
  background: var(--accent);
  color: #232f3e;
  font-weight: 700;
}
.btn:hover {
  background: #e0e7ef;
}
.featured {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.featured-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px;
}
.store {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 24px;
}
.section {
  margin-bottom: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 0 12px 0;
}
.section h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--nav);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 20px;
}
.product {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 12px 16px 12px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.product:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.product .title {
  font-size: 1.05rem;
  margin: 10px 0 6px 0;
  font-weight: 700;
  color: #232f3e;
}
.product .price {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.product .cta {
  display: inline-block;
  background: var(--accent);
  color: #232f3e;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s;
}
.product .cta:hover {
  background: #ffa726;
}
.site-footer {
  background: #232f3e;
  color: #cbd5e1;
  padding: 36px 0;
  text-align: center;
  margin-top: 40px;
  border-radius: 0 0 16px 16px;
}
.small {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 10px;
}
/* CART MODAL */
.cart-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.cart-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: var(--shadow);
  position: relative;
}
.cart-modal-content h2 {margin-top:0;}
.close {
  position: absolute;
  top: 16px; right: 22px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #232f3e;
}
#cartItems {margin-bottom: 18px;}
/* Responsive styles */
@media (max-width: 900px) {
  .hb, .store, .featured, .section {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero {
    padding: 24px 8px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .hb {
    flex-direction: column;
    gap: 8px;
    height: auto;
    padding: 8px;
  }
  .site-header {
    height: auto;
    padding-bottom: 8px;
  }
  .menu-list {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
  }
  .hero {
    padding: 12px 4px;
    font-size: 1rem;
  }
  .featured-row {
    gap: 8px;
    padding: 4px;
  }
  .section {
    padding: 8px 0 4px 0;
  }
  .cart-modal-content {
    padding: 18px 6px;
    min-width: 90vw;
  }
}
