:root{
  --bg:#0b0c10;
  --card:#121319;
  --muted:#848a97;
  --text:#e8ecf2;
  --brand:#00d1b2;
  --accent:#3a8bff;
  --danger:#ff5a5f;
  --border: #1f2330;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;line-height:1.45}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}

.topbar{background:#0d1117;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand a{font-weight:700;letter-spacing:.2px;color:#e6edf3;font-size:1.05rem}
.nav{display:flex;align-items:center;gap:16px}
.nav a{color:#c9d1d9;padding:8px 10px;border-radius:6px}
.nav a:hover{background:#161b22;color:#fff}
.cart-link{display:inline-flex;align-items:center;gap:7px;background:#161b22;border:1px solid var(--border);padding:6px 10px;border-radius:20px}
.cart-count{font-size:.85rem;background:var(--brand);color:#04151f;border-radius:999px;padding:2px 8px;font-weight:700}

.hero{margin:24px 0 5px 0}
.hero-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: end; /* Align items at the bottom */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-grid .h1{
  max-height: 300px; /* Limit the height of hero 1 */
  width: 100%;
}
.hero-grid img{
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
}

/* Promo Banner Styles */
.promo-banner {
  max-width: 1200px;
  margin: 10px auto 15px;
  padding: 0 16px;
}

.promo-content {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/promo-bg.jpg') center/cover no-repeat;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border: 1px solid var(--border);
}

.promo-text h2 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.promo-text p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

.promo-button {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
}

.promo-button:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

.section-head{display:flex;align-items:center;justify-content:space-between;margin:15px 0 16px}
.section-head h2{margin:0;font-size:1.2rem}

.featured-products {
  margin-top: 0;
  padding-top: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Updated for 3 larger products */
.product-grid.featured-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid.featured-three .product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-grid.featured-three .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-grid.featured-three .p-img {
  height: 300px;
  overflow: hidden;
}

.product-grid.featured-three .p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-grid.featured-three .p-img:hover img {
  transform: scale(1.05);
}

.product-grid.featured-three .p-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-grid.featured-three .p-body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.product-grid.featured-three .price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
}

.product-grid.featured-three .p-body p {
  margin: 0;
  color: var(--muted);
}

.product-grid.featured-three .p-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Lifestyle Section */
.lifestyle-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 16px;
}

.lifestyle-content {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
}

.lifestyle-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.lifestyle-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text);
}

.lifestyle-text p {
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.lifestyle-btn {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.lifestyle-btn:hover {
  background: var(--brand);
  color: #04151f;
  text-decoration: none;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.lifestyle-card {
  background: #1a1c25;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.lifestyle-card:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #04151f;
}

.lifestyle-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.lifestyle-card p {
  color: var(--muted);
  margin: 0;
}

.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:40px}
.product-card{background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.product-card .p-img{background:#0e1017;display:block;position:relative;overflow:hidden}
.product-card .p-body{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}
.product-card h3{margin:0;font-size:1rem}
.price{font-weight:700}
.p-actions{display:flex;gap:8px;margin-top:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#161b22;color:#e6edf3;font-weight:600;cursor:pointer}
.btn:hover{filter:brightness(1.08)}
.btn-primary{background:var(--brand);color:#04151f;border-color:transparent}
.btn-danger{background:var(--danger);color:white;border-color:transparent}
.btn-outline{background:transparent}

.table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:10px;overflow:hidden}
.table th,.table td{padding:12px;border-bottom:1px solid var(--border);vertical-align:top}
.table th{background:#161b22;text-align:left}
.table tfoot td{font-weight:700}
.qty-input{width:64px;padding:6px 8px;border-radius:8px;border:1px solid var(--border);background:#0f1420;color:var(--text)}

.form{display:grid;gap:12px;max-width:600px}
.form input,.form textarea{padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#0f1420;color:var(--text)}
.form label{font-size:.95rem;color:#cbd5e1}
.form small{color:var(--muted)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.footer{border-top:1px solid var(--border);margin-top:40px}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:22px 0}
.footer-col h4{margin:0 0 8px;font-size:1rem}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cc-logos{display:flex;gap:8px;align-items:center;margin-top:8px}
.cc-logos img{height:24px;width:auto;filter:grayscale(1)}

.footer-legal{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--border);color:#b3bac6;font-size:.9rem}
.footer-legal p{margin:6px 0}

@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr;grid-template-rows:auto;}
  .hero-grid .h1{max-height: none;}
  .product-grid.featured-three {
    grid-template-columns: repeat(2, 1fr);
  }
  .lifestyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr}
  
  .promo-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .promo-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 560px){
  .product-grid.featured-three {
    grid-template-columns: 1fr;
  }
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }
  .product-grid{grid-template-columns:1fr}
  .nav a{display:none}
  
  .promo-text h2 {
    font-size: 1.6rem;
  }
  
  .promo-text p {
    font-size: 1rem;
  }
  
  .promo-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}