/*
Theme Name: TravelMug Preview Store
Theme URI: https://travelmug.shop
Author: Ecommerce Auto Builder
Version: 2.0.0
Text Domain: travelmug-preview
*/

:root {
  --tm-ink: #111820;
  --tm-slate: #495965;
  --tm-lime: #96ca4f;
  --tm-line: #dfe4e7;
  --tm-soft: #f4f5f5;
  --tm-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tm-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.tm-container { width: min(var(--tm-max), calc(100% - 48px)); margin: 0 auto; }

.tm-shipping {
  background: var(--tm-ink);
  color: #fff;
  padding: 11px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tm-shipping a { text-decoration: none; }

.tm-utility {
  border-bottom: 1px solid var(--tm-line);
  color: var(--tm-slate);
  font-size: 12px;
}
.tm-utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.tm-utility a { text-decoration: none; }
.tm-utility a:hover { color: var(--tm-lime); }
.tm-country { display: inline-flex; align-items: center; gap: 7px; }
.tm-country img { width: 18px; height: 12px; object-fit: cover; }

.tm-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--tm-line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.tm-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.tm-brand {
  justify-self: start;
  color: var(--tm-slate);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
}
.tm-brand span { color: var(--tm-lime); }
.tm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tm-nav a { text-decoration: none; }
.tm-nav a:hover { color: var(--tm-lime); }
.tm-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tm-actions a { text-decoration: none; }
.tm-actions a:hover { color: var(--tm-lime); }
.tm-menu { display: none; }
.tm-menu summary {
  cursor: pointer;
  list-style: none;
  font-size: 23px;
  line-height: 1;
}
.tm-menu summary::-webkit-details-marker { display: none; }

.tm-hero {
  min-height: min(76vh, 760px);
  position: relative;
  overflow: hidden;
  background: #28323a;
}
.tm-hero video,
.tm-hero img {
  width: 100%;
  height: 100%;
  min-height: min(76vh, 760px);
  object-fit: cover;
}
.tm-hero video { position: absolute; inset: 0; }
.tm-hero img { display: none; }
.tm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.08) 62%, rgba(0,0,0,.2));
}
.tm-hero-copy {
  position: relative;
  z-index: 1;
  min-height: min(76vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 68px 0;
  color: #fff;
}
.tm-hero-copy-inner { max-width: 590px; }
.tm-kicker {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tm-hero h1 {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -.03em;
}
.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 24px;
  border: 1px solid currentColor;
  background: #fff;
  color: var(--tm-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.tm-button:hover { background: var(--tm-lime); border-color: var(--tm-lime); }

.tm-intro {
  padding: 88px 0 74px;
  text-align: center;
}
.tm-intro h2 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.tm-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--tm-slate);
  font-size: 17px;
}

.tm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tm-feature {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  background: #dfe5e3;
}
.tm-feature img { width: 100%; height: 100%; object-fit: cover; }
.tm-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.58));
}
.tm-feature-copy {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #fff;
}
.tm-feature-copy h3 {
  max-width: 440px;
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.02;
}
.tm-feature-copy a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: underline;
  text-transform: uppercase;
}

.tm-section { padding: 92px 0; }
.tm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.tm-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 53px);
  line-height: 1;
  letter-spacing: -.025em;
}
.tm-section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--tm-slate);
  font-size: 15px;
}
.tm-tabs {
  display: flex;
  gap: 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--tm-line);
}
.tm-tab {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid var(--tm-lime);
  background: transparent;
  color: var(--tm-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tm-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.tm-product-card {
  min-width: 0;
  scroll-snap-align: start;
}
.tm-product-image {
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tm-soft);
}
.tm-product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tm-product-card h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  line-height: 1.2;
}
.tm-product-card h3 a { text-decoration: none; }
.tm-product-card h3 a:hover { color: var(--tm-lime); }
.tm-product-meta { color: var(--tm-slate); font-size: 13px; }
.tm-product-price { margin-top: 4px; font-weight: 800; }

.tm-quote {
  background: var(--tm-ink);
  color: #fff;
  padding: 100px 0;
}
.tm-quote-inner { max-width: 950px; }
.tm-quote h2 { max-width: 800px; }
.tm-quote p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #ccd5d9;
  font-size: 18px;
}

.tm-reviews {
  background: var(--tm-soft);
  padding: 88px 0;
}
.tm-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.tm-review {
  min-height: 220px;
  padding: 26px;
  border-top: 3px solid var(--tm-lime);
  background: #fff;
}
.tm-review strong { display: block; margin-bottom: 16px; }
.tm-stars { margin-bottom: 12px; color: var(--tm-lime); letter-spacing: .14em; }
.tm-review p { margin: 0; color: var(--tm-slate); font-size: 15px; }

.tm-page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}
.tm-page h1 { margin-top: 0; font-size: clamp(34px, 5vw, 62px); }
.tm-page h2 { margin-top: 42px; }
.tm-page a { color: #3e6270; }

.tm-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--tm-line);
  background: #fff;
}
.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 36px;
}
.tm-footer h2, .tm-footer h3 { margin: 0 0 13px; }
.tm-footer h2 { color: var(--tm-slate); font-size: 25px; letter-spacing: .06em; }
.tm-footer h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tm-footer p { max-width: 270px; color: var(--tm-slate); font-size: 14px; }
.tm-footer ul { padding: 0; margin: 0; list-style: none; }
.tm-footer li { margin: 0 0 9px; color: var(--tm-slate); font-size: 14px; }
.tm-footer a { text-decoration: none; }
.tm-footer a:hover { color: var(--tm-lime); }
.tm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid var(--tm-line);
  color: var(--tm-slate);
  font-size: 12px;
}

@media (max-width: 900px) {
  .tm-header-inner { grid-template-columns: auto 1fr auto; }
  .tm-menu { display: block; grid-column: 1; grid-row: 1; }
  .tm-brand { justify-self: center; grid-column: 2; grid-row: 1; }
  .tm-nav { display: none; }
  .tm-actions { grid-column: 3; grid-row: 1; }
  .tm-actions a:first-child { display: none; }
  .tm-menu[open] .tm-mobile-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--tm-line);
    background: #fff;
  }
  .tm-mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--tm-line);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
  }
  .tm-feature { min-height: 430px; }
  .tm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .tm-container, .tm-page { width: min(100% - 30px, var(--tm-max)); }
  .tm-utility-inner { justify-content: center; gap: 14px; }
  .tm-utility a:first-child { display: none; }
  .tm-header-inner { min-height: 66px; }
  .tm-menu[open] .tm-mobile-nav { top: 66px; }
  .tm-brand { font-size: 24px; }
  .tm-actions { gap: 0; }
  .tm-actions a { font-size: 0; }
  .tm-actions a::after { content: "Cart"; font-size: 11px; }
  .tm-hero, .tm-hero video, .tm-hero img, .tm-hero-copy { min-height: 620px; }
  .tm-hero-copy { padding: 36px 0; }
  .tm-hero h1 { font-size: 52px; }
  .tm-intro, .tm-section, .tm-reviews, .tm-quote { padding: 62px 0; }
  .tm-feature-grid, .tm-review-grid { grid-template-columns: 1fr; }
  .tm-feature { min-height: 430px; }
  .tm-section-head { display: block; }
  .tm-section-head p { margin-top: 18px; }
  .tm-product-rail { grid-auto-columns: 72%; }
  .tm-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .tm-footer-grid > :first-child { grid-column: 1 / -1; }
  .tm-footer-bottom { display: block; }
  .tm-footer-bottom span { display: block; margin-top: 8px; }
}
