:root {
  --primary: #1656c2;
  --primary-dark: #0e3f8f;
  --primary-light: #eef4ff;
  --accent: #f97316;
  --accent-dark: #c2570a;
  --text: #1f2430;
  --muted: #6b7280;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --border: #e2e6ee;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5 { font-family: 'Poppins', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* Header */
.topbar {
  background: var(--primary-dark);
  color: #dce7ff;
  font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; padding: 7px 20px; }
.topbar-inner a { color: #ffd8b0; }
.topbar-inner i { margin-right: 4px; }
.main-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  background: #fff;
}
.logo { font-size: 26px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--accent); }
.logo span { color: var(--accent); }
.search-form { flex: 1; display: flex; max-width: 480px; }
.search-form input {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 24px 0 0 24px;
  font-size: 14px;
  font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  font-weight: 600;
}
.search-form button:hover { background: var(--accent-dark); }
.account-link {
  font-weight: 600;
  color: var(--text);
  padding: 11px 16px;
  border-radius: 24px;
  border: 2px solid var(--border);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.account-link:hover { border-color: var(--primary); color: var(--primary); }
.cart-link {
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  padding: 11px 20px;
  border-radius: 24px;
  white-space: nowrap;
  transition: background 0.15s;
}
.cart-link:hover { background: var(--primary-dark); }
.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  margin-left: 4px;
}
.category-nav { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); }
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-inner a {
  color: #fff;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-inner a i { margin-right: 6px; opacity: 0.85; }
.nav-inner a:hover { background: rgba(255,255,255,0.12); }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); }
.trust-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.trust-inner i { color: var(--accent); margin-right: 6px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%),
    url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1600&q=60');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { font-size: 42px; margin: 0 0 14px; line-height: 1.2; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: #dce7ff; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* Sections */
.section { padding: 50px 20px; text-align: center; }
.section-alt { background: #fff; }
.section-eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 { font-size: 28px; margin: 0 0 32px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  text-align: left;
}
.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 20px;
  font-weight: 600;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.category-card:hover { box-shadow: 0 10px 24px rgba(22,86,194,0.16); transform: translateY(-3px); border-color: var(--primary); }
.category-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.category-name { font-size: 16px; margin-bottom: 4px; }
.category-count { font-size: 13px; color: var(--muted); font-weight: 500; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  text-align: left;
}
.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); transform: translateY(-4px); }
.product-card img { height: 190px; object-fit: contain; background: #fbfbfd; padding: 16px; }
.badge-featured {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
  display: flex; align-items: center; gap: 4px;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 15px; margin: 0; line-height: 1.35; font-weight: 600; }
.product-price { color: var(--primary); font-weight: 800; font-size: 19px; }
.product-rating { color: #f5a623; font-size: 13px; }
.product-rating .star-off { color: #e0e0e0; }
.product-rating span { color: var(--muted); margin-left: 4px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px 20px; }
.product-detail img { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 24px; }
.product-detail h1 { font-size: 27px; margin: 0 0 10px; }
.stock-line { color: #1a7f4e; font-weight: 600; }
.stock-line i { margin-right: 6px; }
.qty-form { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.qty-form input { width: 70px; padding: 9px; border: 2px solid var(--border); border-radius: 8px; font-family: inherit; }

.bullet-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.bullet-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
.bullet-list li i { color: #1a7f4e; margin-top: 3px; flex-shrink: 0; }

/* Image zoom */
.zoom-wrap { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: zoom-in; }
.zoom-wrap img { padding: 24px; transition: transform 0.3s ease; }
.zoom-wrap:hover img { transform: scale(1.08); }
.zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  opacity: 0; transition: opacity 0.2s;
}
.zoom-wrap:hover .zoom-hint { opacity: 1; }
.image-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,14,26,0.92);
  align-items: center; justify-content: center;
  padding: 40px;
}
.image-modal.open { display: flex; }
.image-modal img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 8px; background: #fff; padding: 20px; }
.image-modal-close {
  position: absolute; top: 24px; right: 32px;
  color: #fff; font-size: 40px; font-weight: 300;
  cursor: pointer; line-height: 1;
}

/* Reviews */
.review-summary {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 28px;
}
.review-score { text-align: center; min-width: 100px; }
.review-score-number { font-size: 40px; font-weight: 800; color: var(--primary); font-family: 'Poppins', sans-serif; }
.review-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.review-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.review-bar-row span:first-child { width: 42px; }
.review-bar-row span:last-child { width: 24px; text-align: right; }
.review-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--accent); }

.review-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.review-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 14px; }
.review-item .product-rating span { margin-left: 8px; }
.review-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.review-comment { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Tables / cart */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.cart-table th { background: var(--primary-light); color: var(--primary-dark); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; }
.cart-row-img { display: flex; align-items: center; gap: 12px; }
.cart-row-img img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.cart-summary { max-width: 380px; margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .total { font-weight: 800; font-size: 19px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: var(--primary); }

/* Forms */
.form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: left; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.payment-options { display: flex; gap: 12px; margin: 16px 0; }
.payment-options label {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.payment-options label i { margin-right: 6px; color: var(--primary); }
.payment-options input[type="radio"] { margin-right: 8px; }
.payment-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #e6f7ec; color: #1a7f4e; border: 1px solid #b8e8cb; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }
.breadcrumb { padding: 18px 20px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--primary); }

.legal-content { max-width: 800px; margin: 0 auto; padding: 44px 20px; text-align: left; }
.legal-content h1 { font-size: 28px; margin-bottom: 20px; }
.legal-content h2 { font-size: 20px; margin-top: 28px; }

/* Newsletter */
.newsletter-strip { background: var(--primary-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding: 34px 20px;
}
.newsletter-inner h3 { margin: 0 0 4px; font-size: 19px; color: var(--primary-dark); }
.newsletter-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  min-width: 240px;
}

/* Footer */
.site-footer { background: #17223f; color: #c7d2e8; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding: 44px 20px;
}
.footer-grid h4 { color: #fff; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.footer-grid h4 i { color: var(--accent); }
.footer-grid h4 span { color: var(--accent); }
.footer-grid h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer-grid ul li i { color: var(--accent); font-size: 12px; width: 14px; }
.footer-grid ul li a { display: flex; align-items: center; gap: 8px; }
.footer-grid ul li a:hover { color: #fff; }
.social-icons { display: flex; gap: 10px; margin-top: 16px; }
.social-icons a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.social-icons a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 13px; color: #8fa0c2; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

.account-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; flex-wrap: wrap;
}
.order-status {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-top: 4px;
}
.order-status-pending { background: #fff4e0; color: #a9660a; }
.order-status-processing { background: #eef4ff; color: var(--primary); }
.order-status-shipped { background: #e6f0ff; color: #1656c2; }
.order-status-completed { background: #e6f7ec; color: #1a7f4e; }
.order-status-cancelled { background: #fdecec; color: #b3261e; }

@media (max-width: 700px) {
  .main-header { flex-wrap: wrap; }
  .search-form { order: 3; max-width: 100%; }
  .product-detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}
