:root {
  --sap-blue: #0a6ed1;
  --sap-blue-dark: #085ead;
  --sap-navy: #354a5f;
  --sap-navy-dark: #1d2d3e;
  --sap-orange: #e9730c;
  --sap-bg: #f5f6f7;
  --sap-border: #e4e7ea;
  --sap-text: #32363a;
  --sap-text-light: #6a6d70;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "72", "Segoe UI", Arial, sans-serif;
  color: var(--sap-text);
  background: var(--sap-bg);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--sap-navy-dark);
  color: #cfd8e3;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar a { color: #cfd8e3; margin-left: 20px; }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sap-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--sap-navy);
  white-space: nowrap;
}
.logo .mark {
  background: var(--sap-blue);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--sap-text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--sap-blue);
  border-bottom-color: var(--sap-blue);
}
.search-box {
  flex: 1;
  max-width: 380px;
  display: flex;
  border: 1px solid var(--sap-border);
  border-radius: 20px;
  overflow: hidden;
}
.search-box input {
  border: none;
  outline: none;
  padding: 8px 16px;
  flex: 1;
  font-size: 14px;
}
.search-box button {
  border: none;
  background: var(--sap-blue);
  color: var(--white);
  padding: 0 18px;
  cursor: pointer;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  position: relative;
  font-size: 20px;
  color: var(--sap-navy);
  cursor: pointer;
}
.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--sap-orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--sap-blue); color: var(--white); }
.btn-primary:hover { background: var(--sap-blue-dark); }
.btn-outline { background: transparent; border-color: var(--sap-blue); color: var(--sap-blue); }
.btn-outline:hover { background: var(--sap-blue); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--sap-navy-dark), var(--sap-blue));
  color: var(--white);
  padding: 64px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 1; }
.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: #a9d0ff;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 17px;
  color: #d8e4f2;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; }
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-visual .panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 26px; color: var(--sap-navy); }
.section-head p { color: var(--sap-text-light); font-size: 14px; margin-top: 6px; }
.section-head .view-all { font-weight: 600; color: var(--sap-blue); font-size: 14px; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--sap-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.category-card .icon { font-size: 32px; margin-bottom: 12px; }
.category-card h3 { font-size: 15px; color: var(--sap-navy); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--sap-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.product-thumb {
  background: #eef2f7;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--sap-blue);
  position: relative;
}
.product-thumb .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sap-orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-body .category { font-size: 12px; color: var(--sap-text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.product-body h3 { font-size: 16px; margin: 6px 0 8px; color: var(--sap-navy); }
.product-body .desc { font-size: 13px; color: var(--sap-text-light); flex: 1; margin-bottom: 14px; }
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price { font-size: 17px; font-weight: 700; color: var(--sap-navy); }
.price .old { font-size: 13px; color: var(--sap-text-light); text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.rating { font-size: 12px; color: var(--sap-orange); margin-bottom: 6px; }

/* ---------- Filters bar (listing page) ---------- */
.listing {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  background: var(--white);
  border: 1px solid var(--sap-border);
  border-radius: var(--radius);
  padding: 20px;
}
.filters h4 { font-size: 14px; color: var(--sap-navy); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sap-text);
  padding: 5px 0;
  cursor: pointer;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--sap-text-light);
}
.toolbar select {
  border: 1px solid var(--sap-border);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ---------- Banner strip ---------- */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--sap-border);
  border-bottom: 1px solid var(--sap-border);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.trust-grid .item { font-size: 14px; color: var(--sap-text-light); }
.trust-grid .item strong { display: block; color: var(--sap-navy); font-size: 16px; margin-bottom: 4px; }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--sap-text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--sap-blue); }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pd-gallery .main-image {
  background: #eef2f7;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--sap-blue);
  margin-bottom: 14px;
}
.pd-gallery .thumbs { display: flex; gap: 10px; }
.pd-gallery .thumbs div {
  width: 64px; height: 64px;
  background: #eef2f7;
  border-radius: 6px;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--sap-blue);
  cursor: pointer;
}
.pd-gallery .thumbs div.active { border-color: var(--sap-blue); }
.pd-info .category { color: var(--sap-blue); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.pd-info h1 { font-size: 28px; color: var(--sap-navy); margin: 10px 0; }
.pd-info .rating { font-size: 14px; margin-bottom: 16px; }
.pd-info .price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.pd-info .price-block .price { font-size: 30px; }
.pd-info .summary { color: var(--sap-text-light); margin-bottom: 24px; }
.pd-info .qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--sap-border); border-radius: 6px; }
.qty-selector button { width: 34px; height: 34px; border: none; background: var(--white); cursor: pointer; font-size: 16px; }
.qty-selector input { width: 44px; border: none; text-align: center; font-size: 15px; }
.pd-actions { display: flex; gap: 14px; margin-bottom: 24px; }
.pd-meta { border-top: 1px solid var(--sap-border); padding-top: 18px; font-size: 14px; color: var(--sap-text-light); }
.pd-meta div { margin-bottom: 8px; }
.pd-meta strong { color: var(--sap-navy); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--sap-border); margin: 48px 0 24px; }
.tabs .tab { padding: 12px 0; font-weight: 600; color: var(--sap-text-light); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs .tab.active { color: var(--sap-blue); border-color: var(--sap-blue); }
.tab-panel { display: none; color: var(--sap-text-light); font-size: 14px; line-height: 1.7; }
.tab-panel.active { display: block; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--sap-border); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--sap-border); font-size: 14px; }
.cart-table th { background: #fafbfc; color: var(--sap-text-light); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info .thumb { width: 56px; height: 56px; background: #eef2f7; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--sap-blue); }
.cart-item-info h4 { font-size: 14px; color: var(--sap-navy); margin-bottom: 2px; }
.remove-link { color: #c0392b; font-size: 13px; cursor: pointer; }
.summary-card { background: var(--white); border: 1px solid var(--sap-border); border-radius: var(--radius); padding: 24px; }
.summary-card h3 { font-size: 17px; color: var(--sap-navy); margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--sap-text-light); }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--sap-navy); border-top: 1px solid var(--sap-border); padding-top: 14px; margin-top: 14px; }
.summary-card .btn { width: 100%; text-align: center; margin-top: 12px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--sap-navy-dark);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.newsletter h2 { font-size: 24px; margin-bottom: 8px; }
.newsletter p { color: #c3ceda; margin-bottom: 22px; }
.newsletter form { display: flex; justify-content: center; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 22px;
  border: none;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sap-navy-dark);
  color: #aab8c6;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sap-navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  transform: translateY(120%);
  transition: transform 0.25s ease;
  z-index: 999;
}
.toast.show { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pd-layout, .listing, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .search-box { order: 3; max-width: 100%; }
}
