/** Shopify CDN: Minification failed

Line 60:27 Unexpected "*"

**/
/* ============================================
   ONTHEGO PRODUCT TEMPLATE - SCOPED STYLES
   All selectors scoped under .onthego-product-template
   ============================================ */

/* Prevent horizontal scrolling on product pages - Global fix */
/* Override any Shopify section or page-width constraints */
/* NOTE: Using 100% instead of 100vw to avoid scrollbar width issues */
body:has(.onthego-product-template),
html:has(.onthego-product-template),
.shopify-section:has(.onthego-product-template),
section:has(.onthego-product-template),
main:has(.onthego-product-template) {
  overflow-x: hidden !important;
  max-width: 100% !important; /* Changed from 100vw to avoid scrollbar overflow */
  width: 100% !important;
  position: relative;
}

/* Override page-width class if it wraps the product template */
.page-width:has(.onthego-product-template),
.shopify-section .page-width:has(.onthego-product-template) {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}

/* Fallback for browsers that don't support :has() */
body .onthego-product-template,
.shopify-section .onthego-product-template,
section .onthego-product-template {
  overflow-x: hidden !important;
}

/* Ensure all direct children respect viewport */
.onthego-product-template > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.onthego-product-template {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden !important; /* Prevent horizontal page scroll */
  max-width: 100% !important; /* Ensure it doesn't exceed viewport width */
  position: relative;
}

/* Override any parent container constraints */
#shopify-section-template--*:has(.onthego-product-template),
#shopify-section-main-product-onthego,
.shopify-section[class*="product"]:has(.onthego-product-template) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.onthego-product-template__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

/* Main Product Row */
.onthego-product-template__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Prevent grid from forcing minimum column widths */
  min-width: 0;
}

/* Product Media (Left) */
.onthego-product-template__media {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Prevent grid from forcing a minimum width */
  min-width: 0;
}

/* Desktop: Show custom media, hide Dawn media */
.onthego-product-template__media-desktop {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onthego-product-template__media-mobile {
  display: none;
}

/* Mobile override - must come after base rule */
@media screen and (max-width: 749px) {
  /* Show custom media with thumbnails on mobile */
  .onthego-product-template__media-desktop {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }
  
  .onthego-product-template__media-mobile {
    display: none !important;
  }
  
  .onthego-product-template__media {
    width: 100% !important; /* Full width on mobile */
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 0 !important;
    grid-column: auto !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
    padding: 0 !important;
  }
  
  /* Make image wrapper full width and properly sized */
  .onthego-product-template__main-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  
  /* Make main image fill the wrapper */
  .onthego-product-template__main-image,
  #onthego-main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Ensure thumbnails don't cause overflow */
  .onthego-product-template__thumbnails {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Reduce container padding on mobile for more space */
  .onthego-product-template__container {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

.onthego-product-template__main-image-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden !important;
  box-sizing: border-box !important;
  position: relative;
  /* Force container to respect parent width */
  min-width: 0;
}

.onthego-product-template__main-image {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  box-sizing: border-box !important;
  /* Prevent any overflow */
  overflow: hidden;
}

/* Image Pagination/Counter */
.onthego-product-template__image-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 10;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  white-space: nowrap;
  /* Ensure it doesn't overflow - constrain to parent */
  right: auto;
  width: auto;
  min-width: 0;
}

.onthego-product-template__image-nav {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  width: 24px;
  height: 24px;
}

.onthego-product-template__image-nav:hover {
  opacity: 0.7;
}

.onthego-product-template__image-nav svg {
  width: 20px;
  height: 20px;
}

.onthego-product-template__image-counter {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  white-space: nowrap;
}

.onthego-product-template__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
}

/* Thumbnails */
.onthego-product-template__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.onthego-product-template__thumbnails::-webkit-scrollbar {
  height: 4px;
}

.onthego-product-template__thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.onthego-product-template__thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.onthego-product-template__thumbnail:hover {
  border-color: #D61F1F;
}

.onthego-product-template__thumbnail--active {
  border-color: #D61F1F;
}

.onthego-product-template__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info (Right) */
.onthego-product-template__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.onthego-product-template__title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin: 0;
  line-height: 1.3;
}

.onthego-product-template__price {
  font-family: 'Outfit', sans-serif;
  font-size: 21.25px;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.onthego-product-template__price-compare {
  color: #999;
  text-decoration: line-through;
  font-size: 18px;
  font-weight: 400;
}

.onthego-product-template__price-sale {
  color: #000000;
}

.onthego-product-template__price-regular {
  color: #000000;
}

/* Product Form */
.onthego-product-template__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onthego-product-template__variants {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onthego-product-template__variant-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onthego-product-template__variant-option label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}

.onthego-product-template__variant-select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
}

/* Purchase Section */
.onthego-product-template__purchase {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.onthego-product-template__quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content !important;
  max-width: 100%;
  flex-shrink: 0;
}

.onthego-product-template__qty-btn {
  width: 40px;
  height: 48px;
  border: none;
  background: #f5f5f5;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.onthego-product-template__qty-btn:hover {
  background: #e0e0e0;
}

.onthego-product-template__qty-input {
  width: 60px;
  height: 48px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  -moz-appearance: textfield;
}

.onthego-product-template__qty-input::-webkit-outer-spin-button,
.onthego-product-template__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.onthego-product-template__add-to-cart {
  flex: 1;
  min-width: 200px;
  height: 48px;
  background-color: #D61F1F;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.onthego-product-template__add-to-cart:hover:not(:disabled) {
  background-color: #b01d12;
}

.onthego-product-template__add-to-cart:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Shipping Info */
.onthego-product-template__shipping {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 8px 0;
}

/* Trust Bullets */
.onthego-product-template__trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.onthego-product-template__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}

.onthego-product-template__trust-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Checkout Section */
.onthego-product-template__checkout {
  margin-top: 24px;
  padding: 0;
}

.onthego-product-template__checkout-text {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  text-align: left;
}

.onthego-product-template__payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
}

.onthego-product-template__payment-icon {
  height: 28px;
  width: auto;
  opacity: 1;
  display: flex;
  align-items: center;
}

.onthego-product-template__payment-icon svg {
  height: 100%;
  width: auto;
  max-width: 60px;
}

/* Product Tabs */
.onthego-product-template__tabs {
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
}

.onthego-product-template__tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.onthego-product-template__tab {
  padding: 16px 32px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -1px;
}

.onthego-product-template__tab:hover {
  color: #333333;
}

.onthego-product-template__tab--active {
  color: #D61F1F;
  border-bottom-color: #D61F1F;
}

.onthego-product-template__tabs-content {
  min-height: 200px;
}

.onthego-product-template__tab-panel {
  display: none;
}

.onthego-product-template__tab-panel--active {
  display: block;
}

.onthego-product-template__tab-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 20px 0;
}

.onthego-product-template__tab-body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  word-wrap: break-word; /* Break long words */
  overflow-wrap: break-word; /* Modern property for word breaking */
  max-width: 100%; /* Ensure content doesn't exceed container */
}

.onthego-product-template__tab-body p {
  margin: 0 0 16px 0;
}

/* Make images in product description responsive */
.onthego-product-template__tab-body img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
}

/* Ensure all images anywhere in the product template are constrained */
.onthego-product-template img,
.onthego-product-template video,
.onthego-product-template iframe {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box !important;
  /* Force images to respect container bounds */
  object-fit: contain !important;
  display: block !important;
}

/* Specifically target main product image */
.onthego-product-template__main-image-wrapper img,
.onthego-product-template__main-image-wrapper .onthego-product-template__main-image {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* Make tables responsive - allow horizontal scroll if needed */
.onthego-product-template__tab-body table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
}

.onthego-product-template__tab-body table thead,
.onthego-product-template__tab-body table tbody,
.onthego-product-template__tab-body table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Prevent any element from causing horizontal overflow */
.onthego-product-template__tab-body * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Ensure all child elements are constrained */
.onthego-product-template * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Prevent specific elements from causing overflow */
.onthego-product-template__purchase,
.onthego-product-template__add-to-cart,
.onthego-product-template__form,
.onthego-product-template__variants,
.onthego-product-template__trust,
.onthego-product-template__tabs,
.onthego-product-template__tabs-header,
.onthego-product-template__tabs-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Quantity selector should only be as wide as its content */
.onthego-product-template__quantity {
  width: fit-content !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Prevent iframes, videos, and other media from overflowing */
.onthego-product-template__tab-body iframe,
.onthego-product-template__tab-body video,
.onthego-product-template__tab-body embed,
.onthego-product-template__tab-body object {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

.onthego-product-template__info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.onthego-product-template__info-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.onthego-product-template__info-table td {
  padding: 12px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.onthego-product-template__info-table td:first-child {
  width: 150px;
  font-weight: 600;
  color: #666666;
}

.onthego-product-template__info-table td:last-child {
  color: #333333;
}

.onthego-product-template__reviews-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media screen and (max-width: 989px) {
  .onthego-product-template__container {
    padding: 30px 20px;
  }

  .onthego-product-template__main {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    gap: 40px;
    margin-bottom: 40px;
    /* Still grid on tablet, but ensure it can shrink */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Important for grid children so they can shrink */
  .onthego-product-template__main > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .onthego-product-template__title {
    font-size: 28px;
  }

  .onthego-product-template__price {
    font-size: 19px;
  }

  .onthego-product-template__purchase {
    flex-direction: row;
    align-items: center;
  }

  .onthego-product-template__quantity {
    width: auto;
    max-width: 200px;
    flex-shrink: 0;
  }

  .onthego-product-template__add-to-cart {
    flex: 1;
    min-width: auto;
    width: auto;
  }

  .onthego-product-template__tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .onthego-product-template__tab {
    padding: 14px 24px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media screen and (max-width: 749px) {
  /* Force no horizontal scroll on body/html and all parent containers */
  body:has(.onthego-product-template),
  html:has(.onthego-product-template),
  .shopify-section:has(.onthego-product-template),
  section:has(.onthego-product-template),
  main:has(.onthego-product-template),
  .page-width:has(.onthego-product-template) {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
  }

  /* OVERRIDE base .onthego-product-template__media rule - MUST be early in mobile block */
  .onthego-product-template__media {
    width: 50% !important; /* 50% of container */
    max-width: 50% !important;
    margin: 0 auto !important;
    min-width: 0 !important;
    grid-column: auto !important;
    overflow: hidden !important; /* CRITICAL: clip thumbnails */
  }

  /* Override any page-width padding that causes overflow */
  .page-width:has(.onthego-product-template),
  .shopify-section .page-width:has(.onthego-product-template) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .onthego-product-template {
    overflow-x: clip !important; /* Use clip instead of hidden */
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
  }

  .onthego-product-template__container {
    padding: 20px 3vw !important; /* Equal left/right padding */
    overflow-x: clip !important; /* Use clip instead of hidden */
    max-width: 100vw !important; /* Force to viewport width */
    width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* BRUTE-FORCE: Remove grid behavior on mobile to prevent fixed column width */
  .onthego-product-template__main {
    display: block !important; /* Override grid to prevent fixed column width */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Allow children to shrink inside flex/grid */
  .onthego-product-template__main > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Ensure main image wrapper doesn't exceed viewport - ULTRA AGGRESSIVE */
  .onthego-product-template__main-image-wrapper {
    width: 100% !important; /* Use 100% to respect container padding */
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Override aspect-ratio on mobile if it's causing width issues */
    aspect-ratio: auto !important;
    /* CRITICAL: Remove any height that might force width */
    height: auto !important;
    max-height: none !important;
  }

  /* Force other images to fit within container */
  .onthego-product-template img:not(.onthego-product-template__main-image),
  .onthego-product-template__thumbnail img,
  .onthego-product-template video,
  .onthego-product-template iframe {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Force image to respect aspect ratio while staying within bounds */
  .onthego-product-template__main-image {
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Ensure main grid doesn't cause overflow */
  .onthego-product-template__main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* CRITICAL FIX: Force the media wrapper to respect the container width - REPEAT FOR SPECIFICITY */
  /* Use 50% of container width */
  .onthego-product-template .onthego-product-template__media,
  .onthego-product-template__main .onthego-product-template__media,
  .onthego-product-template__container .onthego-product-template__media {
    width: 50% !important; /* 50% of container */
    max-width: 50% !important;
    min-width: 0 !important; /* CRITICAL: allows flex/grid child to shrink */
    overflow: hidden !important; /* CRITICAL: clips thumbnails and anything sticking out */
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 auto !important; /* Center the smaller media container */
    flex-shrink: 1 !important; /* Allow flex item to shrink */
    flex-basis: auto !important; /* Don't force a flex-basis */
    /* Override any grid column width that might be forcing 468px */
    grid-column: auto !important;
    grid-column-start: auto !important;
    grid-column-end: auto !important;
  }

  /* FORCE image to match wrapper width exactly - NUCLEAR OPTION */
  .onthego-product-template__main-image,
  .onthego-product-template__main-image-wrapper img,
  .onthego-product-template__main-image-wrapper > img,
  #onthego-main-image {
    width: 100% !important; /* Match wrapper exactly */
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
    display: block !important;
    /* Prevent any fixed dimensions */
    min-width: 0 !important;
    min-height: 0 !important;
  }

  /* Constrain ALL media children recursively - NUCLEAR OPTION */
  .onthego-product-template__media *,
  .onthego-product-template__media * * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* Constrain common Dawn media/slider internals */
  .onthego-product-template__media .media,
  .onthego-product-template__media .product__media,
  .onthego-product-template__media .product__media-item,
  .onthego-product-template__media .product__media-wrapper,
  .onthego-product-template__media .slider,
  .onthego-product-template__media .slider__slide,
  .onthego-product-template__media .product__media-list {
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .onthego-product-template__media img,
  .onthego-product-template__media video,
  .onthego-product-template__media iframe {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force image wrapper to match media width exactly */
  .onthego-product-template__main-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ensure info section doesn't overflow */
  .onthego-product-template__info {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are constrained on mobile */
  .onthego-product-template img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  /* Image pagination on mobile */
  .onthego-product-template__image-pagination {
    bottom: 12px;
    padding: 6px 12px;
    gap: 8px;
    max-width: calc(100% - 24px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Ensure it stays within bounds */
    right: 16px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* Ensure thumbnails don't cause overflow - CRITICAL */
  .onthego-product-template__thumbnails {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* CRITICAL: Force thumbnails to respect parent width */
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    /* Prevent flex from expanding parent */
    flex-shrink: 1 !important;
    flex-basis: auto !important;
  }
  
  /* Ensure thumbnails themselves don't force width */
  .onthego-product-template__thumbnail {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: 80px !important;
  }

  .onthego-product-template__image-counter {
    font-size: 12px;
    min-width: 35px;
  }

  .onthego-product-template__image-nav {
    width: 20px;
    height: 20px;
  }

  .onthego-product-template__image-nav svg {
    width: 16px;
    height: 16px;
  }

  /* This rule is now redundant - removed to avoid conflict with display: block above */

  .onthego-product-template__title {
    font-size: 24px;
  }

  .onthego-product-template__price {
    font-size: 17px;
  }

  .onthego-product-template__thumbnails {
    gap: 8px;
  }

  .onthego-product-template__thumbnail {
    width: 60px;
    height: 60px;
  }

  .onthego-product-template__tabs {
    margin-top: 40px;
  }

  .onthego-product-template__tabs-header {
    flex-direction: column;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    padding: 0;
    margin-bottom: 30px;
  }

  .onthego-product-template__tab {
    padding: 12px 16px;
    font-size: 13px;
    white-space: normal;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    border-top: none;
    position: static;
    bottom: auto;
    border-radius: 0;
  }

  .onthego-product-template__tab:last-child {
    border-bottom: none;
  }

  .onthego-product-template__tab--active {
    background-color: #f5f5f5;
    border-bottom-color: #D61F1F;
    border-bottom-width: 2px;
  }

  .onthego-product-template__tab-title {
    font-size: 20px;
  }

  .onthego-product-template__tab-body {
    font-size: 14px;
  }
}

