/* base.css — typography, buttons, and small utilities */

h1, h2, h4, h5, h6 {
  font-family: "Newsreader", serif;
}

h3 {
  font-family: "Libre Franklin", sans-serif;
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 12px;
  color: #999;
}

.primary-btn {
  padding: 18px 150px; /* slightly longer */
  border-radius: 10px;
  border: none;
  background: #eee;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  color: #222;
  transition: all 200ms ease;
}

.primary-btn:hover {
  background: #d7b98a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.primary-btn:active {
  background: #b8862b;
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* On small screens make the Shop button match the hero image width */
@media (max-width: 767px) {
  .hero .primary-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    margin-top: 12px;
  }

  .primary-btn:hover {
    background: #eee;
    color: #222;
    transform: none;
    box-shadow: none;
  }

  .primary-btn:active {
    background: #eee;
    transform: none;
    box-shadow: none;
  }

  .primary-btn:focus {
    background: #eee;
    color: #222;
  }
}
.modal-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  background: #f1f1f1;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  opacity: 0.9;
}

.product-type {
  color: #bbb;
  font-size: 16px;
  font-weight: 400;
}

/* Tabs container: pill-shaped background with animated indicator */
.tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.tabs {
  position: relative;
  display: flex;
  gap: 14px;
  flex-wrap: nowrap; /* keep tabs on one line; allow horizontal scroll on small screens */
  align-items: center;
  padding: 8px 12px;
  border-radius: 9999px;
  background: #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  position: relative;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs-nav {
  background: #eee;
  border: none;
  width: auto;
  max-width: 60px;
  padding: 0 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 250ms ease;
  flex-shrink: 0;
  position: sticky;
  z-index: 2;
}

.tabs-prev {
  left: 0;
}

.tabs-next {
  right: 0;
}

.tabs-nav:hover {
  /* background: #d7b98a;
  color: #fff; */
}

.tabs-nav.hidden {
  opacity: 0;
  pointer-events: none;
  max-width: 0;
  padding: 0;
  overflow: hidden;
}

/* sliding pill indicator (moved via JS) */
.tabs__indicator {
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100% - 16px);
  width: 0;
  background: #d7b98a;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), width 320ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, width;
  z-index: 0;
}

.tab {
  position: relative;
  z-index: 1; /* sit above the indicator */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  min-width: 96px; /* make tabs a bit wider for balanced appearance */
  min-height: 44px; /* ensure vertical centering */
  line-height: 1;
  border-radius: 9999px;
  border: none;
  background: transparent; /* container/indicator provides the pill background */
  font-size: 16px;
  cursor: pointer;
  color: #2d2d2d;
  transition: color 180ms ease, transform 200ms ease, box-shadow 200ms ease;
  font-weight: 500;
}

.tab.active {
  color: #fff;
  /* remove vertical shift; use scale + shadow to emphasize without moving baseline */
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  
}

/* Hide the horizontal scrollbar where possible */
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 9999px; }

@media (max-width: 480px) {
  .tab { font-size: 14px; padding: 10px 16px; }
  .tab.active { padding: 10px 20px; }
}
