/*
  MAVEN WATCH storefront CSS
  Reference color palette from supplied screenshots:
  --color-black: #000000;             Top bar, footer, buttons, sale badges
  --color-white: #ffffff;             Header, cards, content backgrounds
  --color-page-bg: #f4f4f4;           Light gray site background
  --color-soft-bg: #f7f7f7;           Alternate light gray sections
  --color-text: #1f1f1f;              Main body text
  --color-muted: #777777;             Subtext and secondary labels
  --color-border: #e5e5e5;            Thin borders and divider lines
  --color-input-border: #cfd8e3;      Form field borders
  --color-accent-red: #d71920;        Logo accent and important highlights
  --shadow-card: 0 10px 24px rgba(0,0,0,.04);

  Image placeholders documented in code:
  Product front image size: 960x960
  Product hover image size: 960x960
  Blog/social image size: 1200x630
  Exit popup image size: 600x400
*/
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-page-bg: #f4f4f4;
  --color-soft-bg: #f7f7f7;
  --color-text: #1f1f1f;
  --color-muted: #777777;
  --color-border: #e5e5e5;
  --color-input-border: #cfd8e3;
  --color-accent-red: #d71920;
  --max-width: 1180px;
  --radius: 2px;
  --shadow-card: 0 10px 24px rgba(0,0,0,.04);
  --font-main: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-page-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.shipping-bar {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.navbar {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 80px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 20px;
}
.logo-link { display: inline-flex; align-items: center; max-width: 190px; }
.logo-link img { width: 190px; height: auto; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 16px;
  color: #3f3f3f;
}
.main-nav a {
  padding: 30px 0 25px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  text-decoration: none;
  border-bottom-color: var(--color-black);
  color: var(--color-black);
}
.header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}
.icon-button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  position: relative;
}
.icon-button svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 50%;
  background: #eeeeee;
  color: #555555;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
}
.mobile-menu-toggle { display: none; }

.page-spacer { padding: 78px 0; }
.page-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
.page-card {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 78px auto;
  background: var(--color-white);
  padding: 48px 46px;
  box-shadow: var(--shadow-card);
}
.page-card h1,
.home-title,
.category-title {
  margin: 0 0 40px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.page-card h2 { font-size: 30px; line-height: 1.2; margin: 42px 0 18px; }
.page-card h3 { font-size: 22px; margin: 30px 0 12px; }
.page-card p { margin: 0 0 24px; }
.page-card ul { margin: 0 0 24px 24px; padding: 0; }
.page-card li { margin: 8px 0; }

.home-wrap {
  padding: 50px 40px 60px;
  margin: 72px auto;
}
.home-title { text-align: center; margin-bottom: 34px; }
.section-intro {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
  color: var(--color-text);
}
.home-copy-section {
  padding: 44px 0 28px;
  text-align: center;
}
.home-copy-section h2 { font-size: 24px; margin: 0 0 10px; }
.home-copy-section p { max-width: 680px; margin: 0 auto; font-size: 14px; }

.category-wrap {
  width: min(calc(100% - 64px), 1200px);
  margin: 78px auto;
  background: var(--color-white);
  padding: 0;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.category-title { margin: 0; }
.sort-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.sort-tools select {
  border: 0;
  background: var(--color-white);
  padding: 8px 2px;
  font-size: 13px;
}
.view-icons { display: flex; gap: 6px; }
.view-icons span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 58px;
}
.product-card { position: relative; min-width: 0; }
.product-card a:hover { text-decoration: none; }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease, transform .22s ease;
}
.product-media .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-media .front-img { opacity: 0; transform: scale(1.015); }
.product-card:hover .product-media .hover-img { opacity: 1; transform: scale(1.015); }
.sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 2px;
}
.product-title {
  margin: 16px 0 6px;
  min-height: 52px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
.price-line {
  min-height: 22px;
  font-size: 13px;
  color: #333333;
}
.old-price {
  color: #999999;
  text-decoration: line-through;
  margin-right: 6px;
}
.current-price { color: var(--color-black); }
.rating-line {
  min-height: 19px;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--color-black);
  margin: 4px 0 8px;
}
.btn,
.product-button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 2px;
  min-height: 42px;
  padding: 0 26px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover,
.product-button:hover,
button[type="submit"]:hover {
  background: #222222;
  text-decoration: none;
}
.product-button {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
}
.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 46px;
  font-size: 14px;
}
.pagination a,
.pagination span {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
}
.pagination .current { background: var(--color-black); color: var(--color-white); }

.breadcrumbs {
  width: min(calc(100% - 64px), 1200px);
  margin: 18px auto 0;
  font-size: 13px;
  color: #555555;
}
.breadcrumbs a { color: #555555; text-decoration: underline; }
.product-page {
  width: min(calc(100% - 64px), 1200px);
  margin: 12px auto 78px;
  background: var(--color-white);
  padding: 52px 32px 70px;
  box-shadow: var(--shadow-card);
}
.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 66px;
  align-items: start;
}
.gallery-main {
  position: relative;
  background: var(--color-white);
  aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-icon {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.product-thumbs button {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0;
  cursor: pointer;
}
.product-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product-detail h1 {
  font-size: clamp(32px, 4vw, 43px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 800;
}
.product-detail .product-price-large { font-size: 21px; margin: 0 0 28px; }
.choice-label { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.color-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.color-options button {
  border: 1px solid #999999;
  background: var(--color-white);
  padding: 5px 9px;
  cursor: pointer;
}
.clear-link { display: inline-block; font-size: 13px; margin-bottom: 22px; color: #555555; text-decoration: underline; }
.cart-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin: 4px 0 30px;
}
.quantity-control {
  border: 1px solid var(--color-border);
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
}
.quantity-control button {
  border: 0;
  background: var(--color-white);
  cursor: pointer;
  height: 100%;
}
.add-cart { height: 56px; width: 100%; font-size: 16px; }
.promise-list { margin: 18px 0 28px; padding: 0; list-style: none; }
.promise-list li { margin: 7px 0; font-size: 15px; }
.checkout-box {
  border: 1px solid var(--color-border);
  display: inline-block;
  padding: 12px 22px;
  margin-top: 10px;
  text-align: center;
}
.checkout-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.payment-row { display: flex; gap: 7px; justify-content: center; }
.payment-row span {
  border: 1px solid var(--color-border);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #174a9c;
  background: #ffffff;
}
.product-tabs {
  margin-top: 78px;
  border-top: 1px solid var(--color-border);
}
.tab-links {
  display: flex;
  justify-content: center;
  gap: 46px;
  border-bottom: 1px solid var(--color-border);
}
.tab-links a { font-weight: 700; font-size: 13px; padding: 18px 0; }
.tab-panel {
  border: 1px solid var(--color-border);
  border-top: 0;
  padding: 30px;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 12px;
  text-align: left;
}
.spec-table th { width: 55%; color: #555555; }
.related-products { margin-top: 54px; }
.related-products h2 { font-size: 30px; margin: 0 0 28px; }

.form-box {
  border: 1px solid var(--color-border);
  padding: 52px 42px;
}
.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 54px;
  align-items: center;
}
.form-divider {
  width: 1px;
  height: 190px;
  background: repeating-linear-gradient(to bottom, var(--color-border) 0 4px, transparent 4px 8px);
  position: relative;
}
.form-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  padding: 12px;
}
.form-row { margin-bottom: 22px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-input-border);
  padding: 10px 12px;
  background: var(--color-white);
}
textarea { min-height: 160px; resize: vertical; }
.login-panel { border: 1px solid var(--color-input-border); padding: 28px; }
.login-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.login-actions label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.login-actions input { width: auto; min-height: auto; }
.required { color: var(--color-accent-red); }

.help-hero {
  margin: 0 -46px 46px;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 52px 94px;
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.35), rgba(255,255,255,.95)),
    url('/images/placeholders/img-1200x420-help-hero.jpg') center/cover no-repeat;
}
.help-hero h2 { color: var(--color-white); margin: 0 0 22px; }
.help-hero p { font-size: 22px; font-weight: 800; color: var(--color-white); }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 34px;
  align-items: start;
}
.vertical-line { background: var(--color-border); min-height: 320px; }
.eyebrow { color: #888888; font-weight: 800; margin: 0 0 8px; }
.accordion { border: 1px solid var(--color-border); }
.accordion-item + .accordion-item { border-top: 1px solid var(--color-border); }
.accordion-button {
  width: 100%;
  min-height: 54px;
  text-align: left;
  background: var(--color-white);
  border: 0;
  padding: 16px 44px 16px 18px;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  cursor: pointer;
}
.accordion-button:after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
}
.accordion-button[aria-expanded="true"]:after { content: '−'; }
.accordion-panel {
  display: none;
  padding: 0 18px 18px;
  color: #555555;
  font-size: 14px;
}
.accordion-button[aria-expanded="true"] + .accordion-panel { display: block; }
.contact-map img { width: 100%; height: auto; }
.contact-grid { margin-top: 48px; }

.about-page { padding-bottom: 0; overflow: hidden; }
.about-spacer { height: 380px; }
.about-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
  margin: 78px 16px;
}
.about-feature.reverse .about-text { order: 2; }
.about-text { text-align: center; }
.about-text h2 { margin-top: 0; }
.testimonial-band {
  margin: 68px -46px 0;
  background: #cccccc;
  padding: 72px 90px;
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  text-align: center;
  font-weight: 700;
}
.testimonial-name { margin-top: 28px; font-weight: 800; }

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.blog-card-body { padding: 20px; }
.blog-card h2 { font-size: 22px; margin: 0 0 10px; }
.blog-meta { color: var(--color-muted); font-size: 13px; margin-bottom: 10px; }
.blog-single img.featured { margin: 0 0 32px; }
.blog-single .toc {
  border: 1px solid var(--color-border);
  background: var(--color-soft-bg);
  padding: 20px;
  margin: 24px 0;
}
.blog-single .toc strong { display: block; margin-bottom: 8px; }

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
}
.footer-inner {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  padding: 70px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 70px;
}
.footer-column h3 { font-size: 16px; margin: 0 0 34px; }
.footer-column ul { margin: 0; padding-left: 22px; }
.footer-column li { margin: 10px 0; }
.favorite-card { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.favorite-card img { width: 72px; height: 72px; object-fit: cover; background: var(--color-white); }
.footer-rating { font-size: 16px; letter-spacing: 1px; color: #666666; margin: 8px 0; }
.customer-avatars { width: 150px; height: auto; margin-bottom: 16px; }
.footer-bottom {
  background: var(--color-page-bg);
  color: var(--color-text);
  min-height: 112px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.exit-overlay.active { display: flex; }
.exit-popup {
  width: min(100%, 780px);
  background: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
  position: relative;
}
.exit-popup-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.exit-popup-copy {
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exit-popup-copy h2 {
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 18px;
}
.exit-popup-copy p { margin: 0 0 22px; }
.exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-black);
  color: var(--color-white);
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .navbar { grid-template-columns: 190px 1fr 180px; padding: 0 28px; }
  .main-nav { gap: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-top { gap: 36px; }
}

@media (max-width: 860px) {
  .navbar {
    min-height: auto;
    padding: 20px 22px;
    grid-template-columns: 1fr auto;
  }
  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-top: 12px;
  }
  .main-nav a { padding: 8px 0 10px; white-space: nowrap; }
  .header-icons { gap: 14px; }
  .page-card,
  .page-shell,
  .category-wrap,
  .product-page,
  .breadcrumbs { width: min(calc(100% - 32px), var(--max-width)); }
  .page-card { padding: 34px 24px; margin: 44px auto; }
  .home-wrap { padding: 36px 22px 46px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 22px; }
  .category-header { align-items: flex-start; flex-direction: column; }
  .product-top { grid-template-columns: 1fr; }
  .split-section,
  .form-grid-two { grid-template-columns: 1fr; }
  .form-divider,
  .vertical-line { display: none; }
  .help-hero { margin: 0 -24px 34px; padding: 42px 28px; }
  .about-spacer { height: 120px; }
  .about-feature,
  .about-feature.reverse { grid-template-columns: 1fr; margin: 42px 0; }
  .about-feature.reverse .about-text { order: initial; }
  .testimonial-band { grid-template-columns: 1fr; margin-left: -24px; margin-right: -24px; padding: 46px 24px; gap: 34px; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 42px; padding: 52px 0; }
  .exit-popup { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .exit-popup-image img { min-height: 220px; }
}

@media (max-width: 520px) {
  .shipping-bar { font-size: 13px; }
  .logo-link img { width: 150px; }
  .navbar { padding: 16px; }
  .page-card h1, .home-title, .category-title { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-title { min-height: auto; }
  .cart-row { grid-template-columns: 1fr; }
  .product-thumbs { grid-template-columns: repeat(4,1fr); }
  .tab-links { gap: 18px; flex-wrap: wrap; }
  .tab-panel { padding: 20px 14px; }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 10px 6px; }
  .favorite-card { grid-template-columns: 60px 1fr; }
}
