 :root {
    --primary: #FF3600;
    --text-main: #fff;
    --text-muted: #fff;
    --border-color: rgba(229, 231, 235, 0.5);
    --bg-gray: #f9fafb;
    --green-status: #10b981;
    --red-status: #ef4444;
	--main-bg: #292D36;

	
	--f_size_breadcrumbs: 16px;
  }
  
  .custom-product-page {
    font-family: var(--font-family);
    color: var(--text-main);
    max-width: 1360px;
    margin: 0 auto;
    background-color: var(--main-bg);
    box-sizing: border-box;
  }
  .custom-product-page * {
    box-sizing: border-box;
  }

  /* Breadcrumbs */
  .custom-breadcrumbs {
    font-size: var(--f_size_breadcrumbs);
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
	font-weight: 600;
	margin-top: 20px;
  }
  .custom-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
  }
  .custom-breadcrumbs a:hover {
    text-decoration: underline;
  }
  .custom-breadcrumbs span.separator {
    color: #9ca3af;
    font-size: 10px;
  }
  .custom-breadcrumbs .current {
    color: var(--text-muted);
	opacity: 0.8;
  }

  /* Tabs */
  .custom-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    overflow-x: auto;
	
  }
  .custom-tab-link {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .custom-tab-link:hover {
    color: var(--text-main);
	opacity: 0.8;
  }
  .custom-tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }

  /* Main Product Grid */
  .custom-product-main {
    display: flex;
    gap: 48px;
    align-items: flex-start;
  }

  /* Gallery Column */
  .custom-gallery {
    flex: 1;
    display: flex;
    gap: 16px;
    min-width: 0; /* fixes flex shrink issues */
  }
  .custom-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 64px;
    max-height: 500px;
    overflow-y: auto;
  }
  /* Hide scrollbar for thumbnails */
  .custom-thumbnails::-webkit-scrollbar { width: 0; }
  
  .custom-thumbnail {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: #fff;
    transition: border-color 0.2s;
  }
  .custom-thumbnail.active {
    border-color: var(--primary);
  }
  .custom-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .custom-main-image-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    min-height: 400px;
  }
  .custom-main-image-wrap img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.2s;
  }
  .custom-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 10;
  }
  .custom-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
  }
  .custom-gallery-nav:hover {
    background: #fff;
    color: var(--primary);
  }
  .custom-nav-prev { left: -20px; }
  .custom-nav-next { right: -20px; }

  /* Info Column */
  .custom-info {
    flex: 0 0 420px;
  }
  .custom-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.4;
  }
  
  .custom-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
  }
  .custom-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
  }
  .custom-stars {
    color: #e5e7eb;
    letter-spacing: 2px;
  }
  .custom-availability {
    color: var(--green-status);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .custom-availability.out-of-stock {
      color: var(--red-status);
  }
  .custom-code {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .custom-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .custom-price {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 4px;
  }
  /* WooCommerce price fixes */
  .custom-price .woocommerce-Price-amount {
      display: inline-flex;
      align-items: center;
  }
  
  .custom-price-info {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 4px;
    margin-left: 8px;
  }
  .custom-action-icons {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
  }
  .custom-action-icons svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
  }
  .custom-action-icons svg:hover {
    color: var(--primary);
  }

  .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .custom-btn-cart {
    width: 100% !important;
    background-color: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 32px !important;
    transition: background-color 0.2s !important;
  }
  .custom-btn-cart:hover {
    background-color: #1d4ed8;
  }
  .custom-btn-cart svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  /* WooCommerce quantity and add to cart specific layout if we use wc form */
  .custom-add-to-cart-wrap form.cart {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-bottom: 32px;
  }
  .custom-add-to-cart-wrap .quantity {
      display: none; /* Hide quantity if not needed by design, or style it */
  }

  /* Delivery Section */
  .custom-delivery-box {
    margin-bottom: 24px;
  }
  .custom-delivery-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
  }
  .custom-delivery-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    align-items: flex-start;
  }
  .custom-delivery-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .custom-delivery-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
  }
  .custom-delivery-details {
    flex: 1;
  }
  .custom-delivery-row-1 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
  }
  .custom-delivery-name {
    font-weight: 500;
    font-size: 14px;
  }
  .custom-delivery-time {
    color: var(--text-muted);
  }
  .custom-delivery-price {
    text-align: right;
  }
  .custom-delivery-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .custom-exchange-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-main);
    text-decoration: none;
  }
  .custom-exchange-link:hover {
    color: var(--primary);
  }
  
  @media (max-width: 900px) {
    .custom-product-main {
      flex-direction: column;
    }
    .custom-info {
      flex: 1;
      width: 100%;
    }
    .custom-gallery-nav {
      width: 32px;
      height: 32px;
    }
    .custom-nav-prev { left: -10px; }
    .custom-nav-next { right: -10px; }
  }

  /* Characteristics Block */
  .custom-characteristics-block {
    margin-top: 60px;
    padding: 40px;
    border-radius: 8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .characteristics-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-main);
  }
  .characteristics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }
  .characteristic-item {
    display: flex;
    align-items: flex-end;
    width: 100%;
    font-size: 14px;
  }
  .char-name {
    color: var(--text-muted);
    white-space: nowrap;
    padding-right: 8px;
  }
  .char-dots {
    flex-grow: 1;
    border-bottom: 1px dotted var(--border-color);
    margin: 0 8px;
    position: relative;
    top: -4px;
    opacity: 0.5;
  }
  .char-value {
    color: var(--text-main);
    white-space: normal;
    text-align: right;
    max-width: 60%;
    font-weight: 500;
  }
  .characteristics-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    opacity: 0.7;
  }

  /* Description Block */
  .custom-description-block {
    margin-top: 60px;
    padding: 40px;
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .description-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
  }
  .description-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
  }
  .description-content p {
    margin-bottom: 16px;
  }
  .description-content p:last-child {
    margin-bottom: 0;
  }

  /* Related Products Block */
  .custom-related-products {
    margin-top: 60px;
    padding: 0 0 40px 0;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
  }
  .related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .related-title {
    font-size: 24px !important;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
  }
  .related-nav {
    display: flex;
    gap: 8px;
  }
  .related-nav-btn {
    width: 32px;
    height: 32px;
    background-color: #e0f2fe;
    color: #0284c7;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .related-nav-btn:hover {
    background-color: #bae6fd;
  }
  .related-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }
  
  /* Swiper overrides if needed */
  .swiper-button-next-custom.swiper-button-disabled,
  .swiper-button-prev-custom.swiper-button-disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }
  .related-swiper {
      padding-bottom: 10px;
  }
  
  
  
td.value {
  position: relative;
}

td.value select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none  !important;
  background-color: #1e2433;
  color: #e0e6f0;
  border: 1px solid #3a4155;
  border-radius: 6px;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  cursor: pointer;
  min-width: 180px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  
}
.reset_variations.current {
	display: none !important;
}
td.value select:hover {
  border-color: #5a6480;
}

td.value select:focus {
  border-color: #6c8ff0;
  box-shadow: 0 0 0 2px rgba(108, 143, 240, 0.2);
}

td.value select option {
  background-color: #1e2433;
  color: #e0e6f0;
}

td.value select:has(option[value=""]:checked) {
  color: #7a8399;
}

td.value::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  pointer-events: none;
}
td.value select::-ms-expand {
  display: none;
}