/* Product Page Styles Only */
.truncate-description {
    overflow: hidden;
    height: 60px; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#whatsapp-order-button {
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    text-align: center;
}

.youtube-video-container {
    position: relative;
    width: 100%; 
    padding-bottom: 56.25%;
    height: 0; 
    overflow: hidden; 
}

.youtube-video-container iframe,
.youtube-video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.woocommerce div.product form.variations select {
    display: none !important;
}

.woocommerce div.product .reset_variations,
.variations .reset_variations,
.wpr-quantity-wrapper {
    display: none !important;
}

/* Color Swatches - Base Styles */
.custom-color-swatches {
    display: flex;
    gap: 10px;
    margin: 15px auto;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual Swatch */
.color-swatch-item {
    position: relative;
    width: 55px;
    height: 55px;
    border: 3px solid #333;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

/* Swatch Hover */
.color-swatch-item:hover {
    border-color: #fff;
    transform: scale(1.08);
}

/* Active Swatch */
.color-swatch-item.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff;
    transform: scale(1.05);
}

/* Swatch Image - HIGH QUALITY */
.color-swatch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Force better rendering */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Out of Stock Badge */
.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    z-index: 1;
}

/* Shop Page Specific */
.shop-swatch-fix {
    width: 100% !important;
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

[data-show-on="shop"] .custom-color-swatches {
    justify-content: center;
    margin: 10px auto;
}

/* Single Product Page */
[data-show-on="single"] .custom-color-swatches {
    margin: 20px auto;
}



/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .color-swatch-item {
        width: 50px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-color-swatches {
        gap: 10px;
    }
    
    .color-swatch-item {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    
    [data-show-on="single"] .color-swatch-item {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .color-swatch-item {
        width: 45px;
        height: 45px;
    }
    
    .custom-color-swatches {
        gap: 8px;
    }
}