/* Single Product Page Styling */
.mf-single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.mf-product-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.mf-product-image {
    flex: 1;
    max-width: 500px;
}

.mf-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mf-product-info {
    flex: 1;
    padding-left: 20px;
}

.mf-product-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mf-product-price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 30px;
}

.mf-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 40px 60px;
    border-bottom: 1px solid #a8a6a3;
}

.mf-detail-label {
    font-size: 23px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.2em;
}

.mf-detail-value {
    font-size: 23px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.2em;
}

.mf-product-description {
    margin-top: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mf-product-description h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.mf-product-description p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
}

/* Color Swatches Collapse Styling */
.mf-color-swatches-collapse {
    width: 100%;
}

.mf-color-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
    cursor: pointer;
}

.mf-attribute-title {
    font-size: 23px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.2em;
}

.mf-color-collapse-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mf-selected-color-name {
    font-size: 23px;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.2em;
}

.mf-collapse-icon {
    font-size: 12px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.mf-collapse-icon svg {
    width: 20px;
    height: auto;
    display: block;
}

.mf-color-swatches-collapse.expanded .mf-collapse-icon {
    transform: rotate(90deg);
}

.mf-color-swatches-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.mf-color-swatches-container.expanded {
    max-height: 200px;
    margin-top: 40px;
}

.mf-color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 65px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.mf-swatch-color {
    width: 100%;
    height: 100%;
    display: block;
}

/* Image swatch styling */
.mf-swatch-image-container {
    overflow: hidden;
}

.mf-swatch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Special styling for white/light colors */
.mf-color-swatch[data-color*="white"] .mf-swatch-color,
.mf-color-swatch[data-color*="light"] .mf-swatch-color,
.mf-color-swatch[data-color*="white"] .mf-swatch-image,
.mf-color-swatch[data-color*="light"] .mf-swatch-image {
    border-color: #dee2e6;
}

/* Multi-colored swatch styling */
.mf-multi-colored-swatch {
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff8000 14.28%, 
        #ffff00 28.56%, 
        #80ff00 42.84%, 
        #00ff00 57.12%, 
        #00ffff 71.4%, 
        #0080ff 85.68%, 
        #8000ff 100%) !important;
    background-size: 200% 200%;
    animation: rainbow-shift 3s ease-in-out infinite;
}

@keyframes rainbow-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Color row specific styling */
.mf-color-row .mf-detail-value {
    text-align: left;
    flex: 1;
    margin-left: 20px;
}

/* Color options styling */
.mf-color-options {
    display: flex;
    gap: 8px;
    margin: 5px 0;
}

.mf-color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mf-color-option:hover,
.mf-color-option.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #007bff;
}
.product-info .price {
    margin: 0 !important;
}


.product-info .woocommerce-breadcrumb {
    display: none;
}
.single-product .product-footer > .container,
.product-section-title-related.container-width {
    max-width: 1580px;
}
.single-product .product-main .content-row {
    max-width: 1550px
}
.single-product .product-main .content-row > * {
    padding: 0 !important;
}
.single-product .product-main {
    padding-bottom: 90px;
}
.product-whatsapp-btn {
    padding: 12px 25px;
    border: 2px solid #424242;
    border-radius: 8px;
    color: #424242;
    flex-shrink: 0;
}
.product-whatsapp-btn:hover {
    background: #424242;
    color: #fff;
}
.product-whatsapp-btn svg {
    display: block;
    width: 34px;
    height: auto;
}
.product-info .product-title {
    font-size: 31px;
    letter-spacing: 0.05em;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 15px;
    color: var(--text-color);
}
.mf-info-header {
    display: flex;
    justify-content: space-between;
    padding-left: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #a8a6a3;
    align-items: flex-start;
    gap: 16px;
}
.product-thumbnails {
    display: none !important;
}
.product-gallery .product-images {
    margin: 0;
}
.product-images,
.product-images .product-gallery-slider,
.product-images .woocommerce-product-gallery__image,
.product-images .woocommerce-product-gallery__image img {
    height: 100%;min-height: 35vw;
}
.product-images .woocommerce-product-gallery__image img {
    object-fit: cover;
}

.single-product .product-main .product-gallery {
    flex-basis: 46%;
    max-width: 46%;
}

.product-info span.amount {
    font-size: 23px;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #424242;
    opacity: 1;
}
.product-info.product-summary .woocommerce-Price-currencySymbol {
    font-size: 23px;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #424242;
    vertical-align: unset;
}
.mf-product-desc {
    line-height: 30px;
    font-size: 25px;
    letter-spacing: 0.05em;
    margin-bottom: 75px;
}

.related-products-wrapper > .row.row-small {
    max-width: 1580px;
}
.related-products-wrapper.product-section {
    border: none;
    margin-bottom: 50px;
}
.related-products-wrapper .product-section-title {
    font-size: 35px;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 0;
    margin-bottom: 60px;
}
.related-products-wrapper > .row.row-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 3vw;
    margin: 0 !important;
}
.related-products-wrapper > .row.row-small:after {
    display: none;
}
.related-products-wrapper > .row.row-small .product-small {
    padding: 0 !important;
    max-width: unset;
}
.product-page-price del {
    text-decoration: none;
}
.product-page-price del span.amount {
    text-decoration: line-through;
}

@media (max-width: 849px) {
    .mf-attribute-title,
    .mf-selected-color-name,
    .mf-detail-label,
    .mf-detail-value,
    .product-info span.amount,
    .product-info.product-summary .woocommerce-Price-currencySymbol {
        font-size: 20px;
        letter-spacing: 0.1em;
    }
    .product-info .product-title {
        font-size: 24px;
    }
    .mf-color-swatches-container.expanded {
        margin-top: 30px;
    }
    .mf-color-swatch {
        width: 60px;
        height: 60px;
    }
    .single-product .product-main {
        padding-bottom: 50px;
        padding-top: 0;
    }
    .single-product .product-footer > .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .mf-product-desc {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 50px;
    }
    .related-products-wrapper .product-section-title {
        font-size: 24px;
        margin-bottom: 50px;
    }
    .related-products-wrapper > .row.row-small {
        gap: 5vw;
        grid-template-columns: repeat(2, 1fr);
    }
    .mf-info-header,
    .mf-detail-row {
        padding: 24px;
    }
    .product-whatsapp-btn svg {
        width: 28px;
    }
    .product-whatsapp-btn {
        padding: 8px 20px;
    }
    .single-product .product-main .product-gallery {
        flex-basis: 100%;
        max-width: 100%;
    }
    .product-images, .product-images .product-gallery-slider, .product-images .woocommerce-product-gallery__image, .product-images .woocommerce-product-gallery__image img {
        height: auto;
    }
}
@media (max-width: 549px) {
    .mf-info-header, .mf-detail-row {
        padding: 24px;
    }
    .mf-attribute-title, .mf-selected-color-name, .mf-detail-label, .mf-detail-value, .product-info span.amount, .product-info.product-summary .woocommerce-Price-currencySymbol {
        font-size: 18px;
    }
    .single-product .product-main {
        padding-bottom: 40px;
    }
    .single-product .product-footer > .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .mf-product-desc {
        font-size: 18px;
        margin-bottom: 40px;
    }
    .related-products-wrapper .product-section-title,
    .related-products-wrapper.product-section {
        margin-bottom: 40px;
    }
    .mf-color-swatches-container {
        gap: 20px;
    }
    .mf-color-swatches-container.expanded {
        
        margin-top: 24px;
    }
    .product-whatsapp-btn svg {
        width: 20px;
    }
}