/* Custom Single Product Page Styles */

/* Shop Page Sorting */
.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-ordering select.orderby {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: #3498db;
}

/* Breadcrumbs */
.custom-breadcrumbs {
    padding: 15px 0 20px 0;
    margin-bottom: 10px;
}

.custom-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #666;
}

.custom-breadcrumbs .woocommerce-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.custom-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.custom-breadcrumbs .woocommerce-breadcrumb .delimiter {
    margin: 0 8px;
    color: #999;
}

/* Main Layout */
.custom-product-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    padding: 40px 0;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left Side - Product Image (35% width on desktop) */
.custom-product-image {
    flex: 0 0 35% !important;
    width: 35% !important;
    position: relative;
    box-sizing: border-box !important;
}

/* Right Side - Product Summary (65% width on desktop) */
.custom-product-summary {
    flex: 0 0 calc(65% - 40px) !important;
    width: calc(65% - 40px) !important;
    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 992px) {
    .custom-product-wrapper {
        flex-direction: column !important;
    }
    
    .custom-product-image,
    .custom-product-summary {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Disable zoom on product images */
.custom-product-image .woocommerce-product-gallery__image a,
.custom-product-image .woocommerce-product-gallery__wrapper a,
.custom-product-image .woocommerce-product-gallery__image img,
.custom-product-image .woocommerce-product-gallery__wrapper img {
    cursor: default !important;
}

.custom-product-image .zoom {
    cursor: default !important;
    pointer-events: none !important;
}

.custom-product-image img.zoomImg {
    display: none !important;
}

/* Main Product Image */
.custom-product-image .woocommerce-product-gallery__wrapper {
    margin: 0 0 15px 0;
    padding: 0;
    list-style: none;
}

.custom-product-image .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    margin: 0;
    padding: 0;
}

.custom-product-image .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Thumbnails */
.custom-product-image .flex-viewport {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.custom-product-image .woocommerce-product-gallery__thumbnails,
.custom-product-image .thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-product-image .woocommerce-product-gallery__thumbnails li,
.custom-product-image .thumbnails li {
    flex: 0 0 calc(25% - 8px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-product-image .woocommerce-product-gallery__thumbnails li a,
.custom-product-image .thumbnails li a {
    display: block;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-product-image .woocommerce-product-gallery__thumbnails li a:hover,
.custom-product-image .thumbnails li a:hover {
    border-color: #3498db;
}

.custom-product-image .woocommerce-product-gallery__thumbnails li img,
.custom-product-image .thumbnails li img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.custom-product-image .woocommerce-product-gallery__thumbnails li img:hover,
.custom-product-image .thumbnails li img:hover {
    opacity: 1;
}

/* Variation Images */
.custom-product-image .woocommerce-product-gallery__image--placeholder {
    margin-bottom: 10px;
}

/* Flex Slider Navigation - Thumbnails on one line */
.custom-product-image .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    width: 80px !important;
    height: 80px !important;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li img:hover,
.custom-product-image .flex-control-nav.flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-color: #3498db !important;
}

/* YouTube Video Gallery */
.youtube-video-gallery {
    margin-top: 15px;
}

/* YouTube thumbnail in gallery slider */
.custom-product-image .flex-control-nav.flex-control-thumbs li.youtube-thumb {
    position: relative;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li.youtube-thumb img {
    cursor: pointer;
    border: 2px solid #ff0000 !important;
    opacity: 1 !important;
    position: relative;
}

/* Add play button overlay on YouTube thumbnail */
.custom-product-image .flex-control-nav.flex-control-thumbs li.youtube-thumb img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    pointer-events: none;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li.youtube-thumb img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent white;
    z-index: 1;
    pointer-events: none;
}

.custom-product-image .flex-control-nav.flex-control-thumbs li.youtube-thumb:hover img {
    border-color: #ff0000 !important;
}

/* YouTube embed in main gallery */
.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Play overlay button on YouTube video */
.youtube-play-overlay {
    cursor: pointer;
}

.youtube-play-overlay .play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px;
}

.youtube-video-thumbnail {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.youtube-video-thumbnail:hover img {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button::before {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.youtube-video-thumbnail:hover .play-button {
    background-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 10px;
}

.youtube-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Right Side - Product Summary (65% width on desktop) */
.custom-product-summary {
    flex: 0 0 calc(65% - 40px);
    width: calc(65% - 40px);
}

/* Brand */
.product-brand {
    font-size: 14px;
    color: #3398db;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
	font-weight: 500;
}

/* Product Title */
.product-title {
   font-size: 2.25rem;
        line-height: 2.5rem;
    font-weight: 700;
    color: #333;
/*     line-height: 1.2; */
    margin: 0;
    padding: 0;
}
.single-product main#primary {
    margin-top: 0!important;
}

.single-product .custom-product-wrapper {
    padding-top: 0;
}
.custom-breadcrumbs .woocommerce-breadcrumb a { color: #666; }
/* Rating */
.product-rating {
  
}

.product-rating .star {
    color: #ddd;
    font-size: 20px;
}

.product-rating .star.filled {
    color: #ffc107;
}

.product-rating .rating-text {
    margin-left: 8px;
    color: #666;
    font-size: 14px;
}

/* Price Section */
.price-section {
  
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 0px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    line-height: 1;
}

.regular-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.sale-price {
    font-size: 28px;
    font-weight: 700;
    color: #18213e;
}

/* Bulk Pricing Text */
.bulk-pricing-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-request-quote,
.btn-request-sample {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request-quote {
    background-color: #18213e;
    color: #fff;
}

.btn-request-quote:hover {
    background-color: #c0392b;
}

.btn-request-sample {
    background-color: #3498db;
    color: #fff;
}

.btn-request-sample:hover {
    background-color: #2980b9;
}

/* Small Info Text */
.small-info-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

/* Product Features */
.product-features {
  
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0;
    padding-bottom: 5px;
}
.single-product .site-main .ast-container {
    display: block;
}


table.shop_attributes {
    border: 0;
    padding: 0;
}

table.shop_attributes, table.shop_attributes thea, table.shop_attributes tr, table.shop_attributes td, table.shop_attributes th {
    padding: 0;
    border: none!important;
}

table.shop_attributes {
    border: none!important;
    margin: 0!important;
    padding: 0!important;
}

.acf-additional-info {
    display: none;
}

.check-icon {
    color: #27ae60;
    margin-right: 10px;
    font-size: 16px;
}

.feature-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.feature-value {
    color: #666;
}

.feature-value.stock-instock {
    color: #27ae60;
    font-weight: 600;
}

.feature-value.stock-lowstock {
    color: #f39c12;
    font-weight: 600;
}

.feature-value.stock-outofstock {
    color: #18213e;
    font-weight: 600;
}

/* Short Description */
.product-short-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
h1.woocommerce-products-header__title.page-title { margin-bottom: 0 !important; }
.product-short-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-short-description p {
    color: #666;
    line-height: 1.6;
}

/* Product Labels on Image */
.product-labels {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
a.woocommerce-product-gallery__trigger {
    display: none;
}


.product-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.branded-label {
    background-color: #18213e;
    color: #fff;
}

.logo-label {
    background-color: #3498db;
    color: #fff;
}

.label-icon {
    font-size: 14px;
}

/* Product Tabs Section */
.custom-product-tabs {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.product-tabs-container {
    max-width: 100%;
}

.product-tab-content {
    margin-bottom: 30px;
}

.product-tab-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.product-tab-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Shop Attributes Table */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_attributes th,
.shop_attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.shop_attributes th {
    font-weight: 600;
    color: #333;
    width: 30%;
}

.shop_attributes td {
    color: #666;
}

/* ACF Additional Info */
.acf-additional-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.acf-additional-info p {
    margin-bottom: 10px;
    color: #666;
}

.acf-additional-info strong {
    color: #333;
}

/* Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* Form Styles */
.custom-contact-form .form-group {
    margin-bottom: 20px;
}

.custom-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="tel"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="number"],
.custom-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.custom-contact-form .radio-group {
    display: flex;
    gap: 20px;
}

.custom-contact-form .radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.custom-contact-form .radio-group input[type="radio"] {
    margin-right: 8px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #219a52;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-product-wrapper {
        flex-direction: column;
    }
    
    .custom-product-image,
    .custom-product-summary {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-request-quote,
    .btn-request-sample {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .custom-product-wrapper {
        padding: 20px 0;
    }
    
    .price-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .sale-price {
        font-size: 24px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}
