:root {
  color-scheme: light dark;
  --bg-color: white;
  --text-color: black;
  --checkout-bg: black;
  --checkout-text: white;
  --logo-filter: invert(0);
}

[data-theme="dark"] {
  --bg-color: #000;
  --text-color: #f5f5f5;
  --checkout-bg: white;
  --checkout-text: black;
  --logo-filter: invert(1);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Pathway Gothic One", sans-serif;
  font-style: normal;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding-top: env(safe-area-inset-top) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

.home {
  width: 100%;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

.home time {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.home .logo-link {
  max-width: 10rem;
}

.home .logo-link .site-logo {
  width: 100%;
  height: 100%;
  filter: var(--logo-filter);
}

.home .content {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.theme-toggle-wrapper {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
  right: 1rem;
  z-index: 999;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.product-scroll-wrapper {
  flex: 1;
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-scroll {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  padding-right: 1rem;
  box-sizing: content-box;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-scroll::-webkit-scrollbar {
  display: none;
}

/* --- PRODUCTS --- */

.product {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.single-img {
  max-width: 90vw;
  max-height: 35dvh !important;
  filter: none !important;
}

.product img {
  width: auto;
  object-fit: contain;
  max-height: 40dvh;
  max-width: 90vw;
  filter: none !important;
}

.product img[src*="classa"] {
  min-width: 60vw;
  max-width: 90vw;
  height: auto;
  max-height: 40dvh;
  object-fit: contain;
}

.product .price {
  font-weight: 600;
}

.product-indicator {
  font-size: 1rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.checkout-button {
  background: var(--checkout-bg);
  color: var(--checkout-text);
  padding: 1rem;
  margin-bottom: 1rem;
}


.product-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.product-page {
  height: 100dvh;
}

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1000;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.bottom-nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bottom-nav a:hover {
  opacity: 0.7;
}

.bottom-nav .nav-separator {
  opacity: 0.5;
}

/* --- CONTENT PAGES --- */
.content-page {
  width: 100%;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 2rem;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.content-page .logo-link {
  max-width: 10rem;
  margin-bottom: 2rem;
}

.content-page .logo-link img {
  width: 100%;
  height: 100%;
  filter: var(--logo-filter);
}

.content-container {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.content-container h1 {
  font-size: 16px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.content-container h2 {
  font-size: 16px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.about-text p,
.privacy-text p,
.privacy-text li {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 16px;
  text-align: center;
}

.privacy-text ul {
  margin-left: 0;
  margin-bottom: 1.5rem;
  list-style-position: inside;
  text-align: center;
}

.privacy-text strong {
  font-weight: 600;
  font-size: 16px;
}

/* --- LOCATIONS PAGE --- */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.location h2 {
  font-size: 16px;
  margin: 0 0 0.5rem 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-align: center;
}

.location p {
  margin: 0;
  opacity: 0.7;
  font-size: 16px;
  text-align: center;
}

/* --- PRODUCT DETAIL ENHANCEMENTS --- */
.product-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-title-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-title-upper {
  font-weight: 600;
}

.product-price-upper {
  opacity: 0.8;
}

.product-description {
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.product-description p {
  text-align: justify;
  line-height: 1.6;
  font-size: 0.95rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.locations-button {
  display: inline-block;
  background: var(--checkout-bg);
  color: var(--checkout-text);
  padding: 0.75rem 2rem;
  margin: 1rem 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.locations-button:hover {
  opacity: 0.8;
}

/* --- PRODUCT LINKS --- */
.product-link {
  display: block;
  cursor: pointer;
}

/* --- BUCKET HAT SIZE REDUCTION (HOMEPAGE ONLY) --- */
.product-widget .bucket-hat-img {
  max-height: 30dvh !important;
}

