/* Product Page Style */

.add_to_cart_button {
    visibility: visible !important;
    opacity: 1 !important;

}

.product_size_dropdown {
    margin: 20px 0;
}

.size-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.size-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease;
}

.size-select:hover {
    border-color: #6789B9
}

.size-select:focus {
    outline: none;
    border-color: #6789B9 box-shadow: 0 0 0 3px rgba(229, 78, 93, 0.1);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.size-select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Optional: Add validation styling */
.size-select:invalid {
    border-color: #6789B9
}

/* Thumbnail overflow fix styles */
.single_product_thumbnails {
    height: 100%;
    overflow: hidden;
    max-height: 600px;
}

.single_product_thumbnails ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}

.single_product_thumbnails ul::-webkit-scrollbar {
    width: 6px;
}

.single_product_thumbnails ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.single_product_thumbnails ul::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.single_product_thumbnails ul::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.single_product_thumbnails ul li {
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.single_product_thumbnails ul li:hover {
    border-color: #6789B9 transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single_product_thumbnails ul li.active {
    border-color: #6789B9 box-shadow: 0 2px 12px rgba(229, 78, 93, 0.4);
}

.single_product_thumbnails ul li:last-child {
    margin-bottom: 0;
}

.single_product_thumbnails ul li img {
    width: 100%;
    height: 136px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.single_product_thumbnails ul li:hover img {
    transform: scale(1.05);
}

/* Thumbnail navigation arrows - mobile only */
.thumbnail-nav-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(229, 78, 93, 0.9);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: background-color 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.thumbnail-nav-arrow:hover:not(:disabled) {
    background-color: rgba(229, 78, 93, 1);
}

.thumbnail-nav-arrow:disabled {
    background-color: rgba(200, 200, 200, 0.6);
    cursor: not-allowed;
    opacity: 0.5;
}

.thumbnail-nav-arrow.prev {
    left: 5px;
}

.thumbnail-nav-arrow.next {
    right: 5px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .single_product_thumbnails {
        max-height: 150px;
        overflow: visible;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .single_product_thumbnails .thumbnail-nav-arrow {
        display: flex;
    }

    .single_product_thumbnails ul {
        display: flex;
        flex-direction: row;
        gap: 10px;
        max-height: 150px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        flex: 1;
        margin: 0 10px;
    }

    .single_product_thumbnails ul li {
        flex-shrink: 0;
        width: 120px;
        margin-bottom: 0;
    }
}




/* Benefits */
.benefit {
    padding: 15px 0;
    overflow-x: auto;
    /* يسمح بالسكرول لو المساحة ضاقت */
}

.benefit_wrapper {
    display: flex;
    flex-direction: column; /* كل كارد على صف منفصل */
    gap: 15px; /* مسافة بين الكروت */
}

.benefit_card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%; /* يأخذ عرض كامل الحاوية */
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}


.benefit_card i {
    font-size: 18px;
    color: #6789B9;
}

.benefit_card h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.benefit_card p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666;
}






.related_products_section {
    padding: 40px 0;
}

.section_title h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

.related_products_wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.related_card {
    width: 220px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.related_card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.related_card a {
    text-decoration: none;
    color: inherit;
}

.related_image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.related_content {
    padding: 12px;
    text-align: center;
}

.related_content h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    height: 40px;
    overflow: hidden;
}

.related_content .old_price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.related_content .price {
    font-size: 15px;
    font-weight: 600;
    color: #ff6600;
}


.related_products_section .section_title {
    position: relative;
}

.related_products_section .section_title::before,
.related_products_section .section_title::after {
    display: none !important;
    content: none !important;
}


/* Image wrapper for hover button */
.related_image_wrapper {
    position: relative;
    overflow: hidden;
}

/* Add to cart floating button */
.related_add_cart_btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #6789B9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.related_add_cart_btn:hover {
    background: #000;
}

/* Show button on hover */
.related_card:hover .related_add_cart_btn {
    opacity: 1;
    transform: translateY(0);
}

/* Price icon */
.related_content .price {
    font-size: 15px;
    font-weight: 600;
    color: #6789B9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.related_content h6 a {
    text-decoration: none;
    color: #222;
}

.related_content h6 a:hover {
    color: #6789B9;
}



/* Gallery */

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f8f8;
    position: relative;
}

.main-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.main-slider img {
    flex: 0 0 100%;   /* 👈 مهم جداً */
    height: 100%;
    width: 100%;
    object-fit: contain; /* علشان الصور الطولية */
}


.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: 0.3s;
}

.gallery-thumbs .thumb.active {
    border-color: #6789B9;
}




/* Rleated products button */

.product_size_buttons {
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
}

.product_size_buttons .size-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.sizes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 50px;
    min-height: 50px;
    border: 2px solid #6789B9;
    border-radius: 10px;
    background: #fff;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    background: black;
    color: #fff;
}

.size-btn.selected {
    background: black;
    color: #fff;
}



.care-instructions i {
    flex-shrink: 0;
}
    
    
    
    