/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a2a3a; line-height: 1.6; background: #f8fafc;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: #0f172a; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
.section { padding: 4rem 0; }
.section-dark { background: #0f172a; color: #e2e8f0; }
.section-dark h2 { color: #fff; }
.text-center { text-align: center; }
.text-muted { color: #64748b; }

/* === HEADER / NAV === */
header {
  background: #fff; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.logo {
  font-size: 1.4rem; font-weight: 800; color: #0ea5e9;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo i { font-size: 1.6rem; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #475569;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #0ea5e9; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: #0ea5e9; border-radius: 1px;
}
.cart-btn {
  background: none; border: 2px solid #0ea5e9; color: #0ea5e9;
  padding: 0.4rem 1rem; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; display: flex; gap: 0.4rem;
  align-items: center; transition: all 0.2s;
}
.cart-btn:hover { background: #0ea5e9; color: #fff; }
.cart-count {
  background: #ef4444; color: #fff; font-size: 0.7rem;
  border-radius: 50%; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: #1a2a3a; border-radius: 2px; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, rgba(12,74,110,0.85) 0%, rgba(2,132,199,0.75) 50%, rgba(14,165,233,0.7) 100%), url('../images/pool-hero.jpg') center/cover no-repeat;
  color: #fff; padding: 6rem 0; text-align: center;
}
.hero h1 { font-size: 3rem; color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-cta {
  display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: #fff; color: #0c4a6e; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-blue { background: #0ea5e9; color: #fff; }
.btn-blue:hover { background: #0284c7; transform: translateY(-1px); }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-amazon { background: transparent; border: 2px solid #ffd814; color: #ffd814; }
.btn-amazon:hover { background: rgba(255,216,20,0.1); transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* === PRODUCT CARDS === */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all 0.3s;
  border: 1px solid #e2e8f0;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.product-card-img {
  height: 200px; width: 100%; object-fit: cover; display: block;
  background: #f1f5f9;
}
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { margin-bottom: 0.5rem; }
.product-card-body .desc { color: #64748b; font-size: 0.9rem; margin-bottom: 1rem; }
.product-card .price {
  font-size: 1.3rem; font-weight: 800; color: #0ea5e9; margin-bottom: 1rem;
}
.product-card .badge {
  display: inline-block; background: #dbeafe; color: #1d4ed8;
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 20px;
  font-weight: 600; margin-bottom: 0.5rem;
}

/* === FEATURES === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.feature-card {
  text-align: center; padding: 2rem;
}
.feature-card i { font-size: 2.5rem; color: #0ea5e9; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; }

/* === TESTIMONIALS === */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 0.5rem; }
.testimonial-card p { font-style: italic; color: #475569; margin-bottom: 1rem; }
.testimonial-card .author { font-weight: 600; color: #0f172a; }

/* === PRODUCT DETAIL === */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding: 3rem 0; align-items: start;
}
.product-detail-cover {
  border-radius: 16px; width: 100%; max-width: 400px;
  position: sticky; top: 100px;
}
.product-detail-info .price-large {
  font-size: 2.5rem; font-weight: 800; color: #0ea5e9;
  margin: 1rem 0;
}
.product-detail-info .meta { color: #64748b; margin: 0.5rem 0; }
.toc { margin: 2rem 0; padding: 1.5rem; background: #f1f5f9; border-radius: 12px; }
.toc h3 { margin-bottom: 1rem; }
.toc ol { padding-left: 1.5rem; color: #475569; }
.toc ol li { padding: 0.3rem 0; }

/* === CART === */
.cart-page { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 2rem 0; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; padding: 1rem; border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.cart-item-cover {
  width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin-bottom: 0.25rem; }
.cart-item-info .price { color: #0ea5e9; font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-item-qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; font-size: 1rem; display: flex;
  align-items: center; justify-content: center;
}
.cart-item-qty span { font-weight: 600; width: 24px; text-align: center; }
.cart-item-remove { color: #ef4444; cursor: pointer; background: none; border: none; font-size: 1.2rem; }
.cart-summary {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  border: 1px solid #e2e8f0; position: sticky; top: 100px;
  height: fit-content;
}
.cart-summary h3 { margin-bottom: 1rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.cart-summary-row.total { border-top: 2px solid #e2e8f0; margin-top: 0.5rem; padding-top: 1rem; font-weight: 700; font-size: 1.2rem; }
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty i { font-size: 4rem; color: #cbd5e1; margin-bottom: 1rem; }

/* === FOOTER === */
footer {
  background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
footer a { color: #94a3b8; display: block; padding: 0.25rem 0; }
footer a:hover { color: #0ea5e9; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* === FILTERS === */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

/* === CONTACT === */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem; border: 2px solid #e2e8f0;
  border-radius: 10px; font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0ea5e9; }
.form-group textarea { min-height: 140px; resize: vertical; }

/* === PROMO BAR === */
.promo-bar { background: #0ea5e9; color: #fff; text-align: center; padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 500; }
.promo-bar strong { color: #fbbf24; }

/* === TRUST BADGES === */
.trust-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 500; }
.trust-badge-paypal { background: #1e293b; color: #94a3b8; }
.trust-badge-secure { background: #1e293b; color: #94a3b8; }
.trust-badge-guarantee { background: #1e293b; color: #94a3b8; }

/* === URGENCY === */
.stock-bar { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #dc2626; margin: 1rem 0; }
.stock-bar i { font-size: 1rem; }

/* === NOTIFICATION === */
.notification {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  padding: 1rem 1.5rem; border-radius: 12px; color: #fff;
  font-weight: 600; transform: translateX(120%); transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.notification.show { transform: translateX(0); }
.notification.success { background: #10b981; }
.notification.error { background: #ef4444; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
  header, footer, .cart-btn, .btn { display: none; }
}
