:root {
  --primary: #0f3a63;
  --primary-dark: #0a2744;
  --secondary: #1668b0;
  --accent: #f0a500;
  --accent-hover: #d99300;
  --success: #16a34a;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--accent);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.brand-tag {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.header-search { flex: 1; max-width: 320px; }
.header-search-input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  background: #f8fafc;
}
.header-search-input:focus { outline: none; border-color: var(--secondary); background: #fff; }

.trustpilot-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.stars { color: #00b67a; font-size: 16px; letter-spacing: 1px; }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.15s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Trust Bar */
.trust-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 16px 0;
  margin-bottom: 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.trust-item span { font-size: 12px; color: #cbd5e1; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .current { color: var(--text-dark); font-weight: 600; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 32px; padding: 10px 0; }
.hero h2 { font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.hero p { font-size: 16px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

/* Filter Controls */
.filter-controls {
  margin-bottom: 32px;
}
.filter-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  max-width: 520px;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  padding: 12px 20px 12px 42px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(22, 104, 176, 0.15);
}
.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--secondary); }

/* Category Switcher */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn.active, .cat-btn:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.product-img-wrap {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.product-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-title-link { text-decoration: none; color: inherit; }
.product-title-link:hover .product-title { color: var(--secondary); }
.product-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-edition {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.delivery-speed-tag {
  font-size: 11px;
  color: var(--success);
  font-weight: 700;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.strike-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.current-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}
.current-price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-details {
  padding: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-details:hover { background: #e2e8f0; color: var(--primary); }
.btn-buy-now {
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-buy-now:hover { background: var(--accent-hover); }

/* ==========================================================================
   Product Detail Page (PDP) Layout
   ========================================================================== */
.pdp-hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.pdp-gallery-col { display: flex; flex-direction: column; gap: 20px; }
.pdp-image-container {
  background: #f1f5f9;
  border-radius: 12px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pdp-main-image {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s;
}
.pdp-image-container:hover .pdp-main-image {
  transform: scale(1.06);
}
.pdp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pdp-save-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
}

.pdp-trust-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdp-trust-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pdp-trust-row .icon { font-size: 20px; }
.pdp-trust-row strong { font-size: 13px; color: var(--primary); display: block; }
.pdp-trust-row p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }

.pdp-info-col { display: flex; flex-direction: column; }
.pdp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.category-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.pdp-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pdp-rating .count { color: var(--text-muted); }

.pdp-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.25;
}
.pdp-edition {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pdp-highlights {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-highlights li {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-highlights .check-icon {
  color: var(--success);
  font-weight: 900;
  font-size: 15px;
}

/* PDP Price Box */
.pdp-price-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.pdp-current-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
}
.pdp-strike-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-saving-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}
.pdp-tax-notice {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 10px;
}
.pdp-stock-status {
  font-size: 14px;
  color: var(--success);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.pdp-checkout-box {
  background: #ffffff;
  border: 2px solid #e0f2fe;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.pdp-security-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Bundle Box */
.bundle-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.bundle-box h3 { font-size: 20px; color: var(--primary); margin-bottom: 18px; }
.bundle-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.bundle-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 8px;
}
.bundle-img { width: 54px; height: 54px; object-fit: contain; }
.bundle-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.bundle-plus { font-size: 24px; font-weight: 900; color: var(--text-muted); }
.bundle-action { margin-left: auto; text-align: right; }
.bundle-total-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.bundle-total-price { font-size: 24px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.btn-bundle {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-bundle:hover { background: var(--accent-hover); }

/* PDP Content Tabs */
.pdp-tabs-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.pdp-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.tab-nav-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-nav-btn:hover { color: var(--primary); }
.tab-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease-in-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdp-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.pdp-checklist li {
  font-size: 15px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-checklist .check-box {
  width: 24px;
  height: 24px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.pdp-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.pdp-steps-list li {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.pdp-steps-list .step-num {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.pdp-steps-list .step-text { font-size: 14px; color: #334155; line-height: 1.5; align-self: center; }

.specs-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  color: #1e293b;
  margin-top: 14px;
}
.legal-box-pdp {
  background: #f0f7ff;
  border-left: 4px solid var(--secondary);
  padding: 18px 20px;
  border-radius: 6px;
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.6;
  margin-top: 14px;
}

/* Related Products Section */
.related-section { margin-bottom: 64px; }
.related-section h3 { font-size: 24px; color: var(--primary); margin-bottom: 22px; }

/* Sticky Mobile Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 2px solid var(--border);
  padding: 12px 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.08);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}
.mobile-sticky-title { font-size: 13px; font-weight: 800; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mobile-sticky-price { font-size: 18px; font-weight: 900; color: var(--primary); }

/* Fast Checkout Box */
.checkout-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-md);
}
.checkout-section h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.selected-summary strong { font-size: 16px; color: var(--primary); }
.selected-summary .sum-price { font-size: 20px; font-weight: 900; color: var(--primary); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}
.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(22, 104, 176, 0.15);
}
.checkbox-group { display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; align-items: flex-start; }
.checkbox-group input { margin-top: 3px; }

.btn-container { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.btn-pay {
  padding: 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.15s;
}
.btn-paypal { background: #ffc439; color: #111; }
.btn-paypal:hover { background: #f0b02c; box-shadow: var(--shadow-md); }
.btn-stripe { background: var(--primary); color: #fff; }
.btn-stripe:hover { background: var(--secondary); box-shadow: var(--shadow-md); }

/* FAQ Section */
.faq-section { margin-bottom: 64px; }
.faq-section h3 { text-align: center; font-size: 26px; color: var(--primary); margin-bottom: 24px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.faq-card h4 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.faq-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Footer */
footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.footer-links a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { text-align: center; line-height: 1.6; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .pdp-hero { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .pdp-image-container { height: 300px; }
  .bundle-action { margin-left: 0; width: 100%; text-align: left; }
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .btn-container { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 60px; }
}
