.db-product-title .gs-lines:first-child .gs-words:first-child {
  font-weight: 400;
}

.product-subtitle-filter {
  margin-bottom: 0!important;
}

.db-change-style-button {
  font-family: var(--theme-heading-font-family);
  color: var(--theme-palette-color-1);
  font-weight: 700;
  margin-bottom: 0!important;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.2;
  border: 0;
  background: transparent;
  padding: 0;
  height: auto;
  line-height: 1;
  display: inline-block;
  cursor: pointer;
}

.product-title-color {
  font-family: var(--theme-heading-font-family);
  color: var(--theme-palette-color-1);
  font-weight: 700;
  margin-bottom: 0!important;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.2;
}
.tire-product-details {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dddddd;
}
.tire-product-details summary {
  display: block;
  text-transform: uppercase;
  font-family: var(--theme-heading-font-family);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
}
.tire-product-details summary::after {
  content: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' stroke-width='2' stroke='%23111111' stroke-linecap='round' viewBox='0 0 12 8' xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%3E%3Cpath d='M1 1L6 6L11 1'/%3E%3C/svg%3E");
  display: inline-block;
  line-height: 1;
  transition: all 0.3s ease;
  
}
.tire-product-details[open] summary {
  margin-bottom: 24px;
}

.tire-product-details[open] summary::after {
  transform: rotate(180deg);
}
.tire-product-details summary::-webkit-details-marker,
.tire-product-details summary::marker {
  display: none;
}

.tire-product-details h2 {
  --theme-font-size: 30px;
}

.tire-product-details h3 {
  --theme-font-size: 24px;
}
.tire-product-details h4 {
  --theme-font-size: 21px;
}
.tire-product-details h5,
.tire-product-details h6 {
  --theme-font-size: 18px;
}


body.single-product:before {
  content: "";
  position: absolute;
  top: 0;
  left:0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: url("../img/bg-product.jpg") no-repeat top center / auto 100%;
  position: fixed;
  pointer-events: none;
 }

.related.products .ct-module-title {
  line-height: 1;
  font-weight: normal;
}

.related.products .ct-module-title span {
  display: block;
  color: var(--theme-palette-color-1);
  font-size: 0.8em;
  line-height: 1;
  font-weight: 700;
}



.custom-variations-container {
  margin: 40px 0;
}

.shop-by-size-section {
  background: #000;
  color: #fff;
  padding: 60px 30px;
}

.shop-by-size-title {
  color: var(--theme-palette-color-1);
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.05em;
}

.diameter-section {
border-bottom: 1px solid #333;
overflow: hidden;
}

.diameter-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
  list-style: none;
  justify-content: center;
}

.diameter-header:hover {
  background: #222;
}

.diameter-header::-webkit-details-marker {
  display: none;
}

.diameter-label {
font-weight: 700;
margin-bottom: 0;
}

.diameter-size {
  font-weight: bold;
  color: var(--theme-palette-color-1);
}

.diameter-unit {
  color: #fff;
  margin-left: 5px;
  margin-right: 10px;
}

.toggle-icon {
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.toggle-icon svg {
vertical-align: middle;
}

.diameter-section[open] .toggle-icon {
  transform: rotate(180deg);
}

.variations-table-container {
  padding: 0;
  overflow-x: auto;
  margin: 30px 0;
}

.variations-table {
  width: 100%;
  border-collapse: collapse;
  background: #000;
}

.variations-table th {
  background: #dddddd;
  color: black;
  padding: 12px 8px;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 1px solid #666666;
  border-color: #666666;
  min-width: 100px;
  line-height: 1.2;
}

.variations-table td {
  padding: 15px 8px;
  border-bottom: 1px solid #666666;
  color: #fff;
  font-size: 16px;
  border-color: #666666;
}

.variation-row:hover {
  background: #222;
}

.tire-size strong {
  display: block;
  margin-bottom: 4px;
}

.color, .width {
  font-size: 14px;
  color: #fff;
}

.variation-row .price {
  font-weight: bold;
  color: #fff;
}

.custom-add-to-cart-btn {
  font-size: 13px;
  min-width: 125px;
}

.custom-add-to-cart-btn,
.confirm-add-to-cart-btn,
.cancel-btn {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* .custom-add-to-cart-btn {
  background: var(--theme-palette-color-1);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.custom-add-to-cart-btn:hover {
  opacity: 0.8
} */

.custom-add-to-cart-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

.add-to-cart-cell {
text-align: center;
}

/* Quantity Popover Styles - Popper.js Version */
.quantity-popover {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  width: 280px;
  z-index: 99;
  font-family: inherit;
}

.quantity-popover-arrow,
.quantity-popover-arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

.quantity-popover-arrow {
  visibility: hidden;
}

.quantity-popover-arrow::before {
  visibility: visible;
  content: '';
  transform: rotate(45deg);
  border: 1px solid #ddd;
  border-bottom: none;
  border-right: none;
}

.quantity-popover[data-popper-placement^='top'] > .quantity-popover-arrow {
  bottom: -4px;
}

.quantity-popover[data-popper-placement^='bottom'] > .quantity-popover-arrow {
  top: -4px;
}

.quantity-popover[data-popper-placement^='left'] > .quantity-popover-arrow {
  right: -4px;
}

.quantity-popover[data-popper-placement^='right'] > .quantity-popover-arrow {
  left: -4px;
}

.quantity-popover-content {
  padding: 16px;
}

.quantity-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.quantity-popover-header h3 {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.close-popover {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-popover:hover {
  color: #333;
  background: #f5f5f5;
}

.selected-tire-info {
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  font-size: 14px;
}

.quantity-selector {
  margin-bottom: 16px;
}

.quantity-selector label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quantity-btn {
background: var(--theme-palette-color-1);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  opacity: 0.8;
}

.quantity-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#tire-quantity {
  height: 42px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  flex: 1 1 auto;
  font-size: 24px;
}

.quantity-popover-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}



.confirm-add-to-cart-btn,
.cancel-btn {
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: 700;
font-size: 13px;
text-transform: uppercase;
}

.cancel-btn {
  background: #f5f5f5!important;
  color: #666!important;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.cancel-btn:hover {
  background: #e9e9e9!important;
}

.confirm-add-to-cart-btn {
  background: var(--theme-palette-color-1);
  color: #fff;
  border: none;
}

.confirm-add-to-cart-btn:hover {
  opacity: 0.8;
}

.confirm-add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  

  .variations-table th,
  .variations-table td {
      padding: 8px 4px;
      line-height: 1;
  }

  .variations-table th {
    font-size: 10px;
    line-height: 1;
  }

  th.add-to-cart-cell,
  td.add-to-cart-cell {
    position: sticky;
    right: -1px;
  }

  td.add-to-cart-cell {
    background: #000;
  }

  .variation-row:hover td.add-to-cart-cell {
    background: #222;
  }
  
  /* .diameter-size,
  .diameter-unit {
      font-size: 20px;
  } */

}