#mainImage {
    width: 100%;
    height: 440px;
    aspect-ratio: 3/3;
    object-fit: contain;
    background: var(--bg-body) !important;
}

/* لإزالة الأزرار داخل الحقل */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* لأغلب المتصفحات */
input[type="number"] {
    -moz-appearance: textfield;
}

#show-more {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 1rem;
    font-size: 14px;
}

#show-more:hover {
    background-color: #0056b3;
}

@media (max-width: 576px) {
    #mainImage {
        width: 100%;
        height: 250px;
        aspect-ratio: 3/3;
        object-fit: contain;
    }
}

.swiper-product-images-container {
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    height: 120px;
    aspect-ratio: 3/3;
    object-fit: cover;
}

.swiper-container {
    width: 100%;
    padding: 10px 0;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.swiper-slide .sub-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/3;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}


.swiper-slide img:hover {
    transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #ff5733 !important;
}

.related-products-section {
    padding: 10px;
    margin-top: 30px;
}

.tab-content {
    margin-top: 20px;
}
.tab-content .content {
    display: none;
}
.tab-content .content.active {
    display: block;
}

.star-rating {
    direction: rtl;
    display: inline-block;
    cursor: pointer;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    font-size: 24px;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.divider {
    position: relative;
    height: 20px;
    background-color: transparent;
    overflow: hidden;
}

.divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"%3E%3Cpath fill="%23ccc" fill-opacity="1" d="M0,96L120,101.3C240,107,480,117,720,112C960,107,1200,85,1320,74.7L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"%3E%3C/path%3E%3C/svg%3E')
        repeat-x;
    transform: scale(1, -1); /* Flips the SVG to look like a bottom border */
}

.card {
    border: none;
}

.testimonial-card {
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

/* Container for size and color selections */
.size-selection,
.color-selection {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Styling for size and color option labels */
.size-option,
.color-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* Hide the radio buttons but make them accessible */
.size-radio,
.color-radio {
    display: none;
}

/* Styling for the size labels */
.size-label {
    background: #f1f1f1;
    border-radius: 1rem;
    padding: 2px 5px 2px 5px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

/* Styling for color swatches */
.color-label {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* On hover effect */
.size-option:hover .size-label,
.color-option:hover .color-label {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Selected size style */
.size-radio:checked + .size-label {
    background-color: var(--primary); /* Red color */
    color: white;
}

/* Selected color style */
.color-radio:checked + .color-label {
    border: 3px solid #e60000; /* Red border when selected */
    box-shadow: 0 0 10px rgba(230, 0, 0, 0.5);
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.social-icons li {
    display: inline-block;
}

.social-icons li a {
    display: block;
    width: 30px;
    height: 30px;
    background-color: #ccc; /* اللون الرمادي */
    border-radius: 50%; /* جعل الأيقونات دائرية */
    text-align: center;
    line-height: 30px; /* لضبط الأيقونات في المنتصف */
    color: white; /* لون الأيقونات */
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons li a:hover {
    background-color: #007bff; /* تغيير اللون عند التمرير */
    transform: scale(1.1); /* تكبير الأيقونة عند التمرير */
}

.social-icons li a i {
    vertical-align: middle;
}
