/*
Theme Name: Avada Child
Description: Child theme for the Avada
Author: Lee Han Kyeol
Template: Avada7
*/

/*  LISTING PAGE */

.fusion-button.button-1 {
    background: #133b67;
}

.fusion-button.button-1 {
    border-color: #ffffff;
    border-radius: 5px;
}

/* DETAILS PAGE */

body.single-product #main {
    padding: 0px !important;
}

body.single-product #main {
    padding-top: 70px !important;
}

.spaceman-prod-row-1 {
    padding: 0px 30px !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-prod-row-1 {
        padding-bottom: 50px !important;
    }
}

.spaceman-main-image-col {
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .spaceman-main-image-col {
        width: 50%;
    }
}

.spaceman-summary-col {
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .spaceman-summary-col {
        width: 50%;
    }
}

.spaceman-prod-row-2 {
    padding: 0px 30px !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-prod-row-2 {
        padding-bottom: 50px !important;
    }
}

.spaceman-specs-container {
    width: 100% !important;
    padding: 0px 0px 50px !important;
    margin: 0px !important
}

@media only screen and (min-width: 768px) {
    .spaceman-specs-container {
        width: 50% !important;
        margin-right: 10% !important;
        padding: 0px !important;
    }
}

.spaceman-specs-title-container {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-specs-title-container {
        width: 50% !important;
    }
}

.spaceman-specs-button-container {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-specs-button-container {
        width: 50% !important;
    }
}

.spaceman-cta-break {
    flex-basis: 100%;
    height: 0;
}

.spaceman-cta-1-container {
    margin-right: 0px;
    margin-top: 20px;
    padding: 0px;
    width:100% !important;
}

.spaceman-cta-1-container .fusion-button {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-cta-1-container {
        width: auto !important;
        margin-right: 30px;
        margin-top: 0px;
        padding: 0px;
    }

    .spaceman-cta-1-container .fusion-button {
        width: 100% !important;
        margin-top: 20px;
    }
}

.spaceman-cta-2-container {
    margin-right: 0px;
    padding: 0px;
    width:100% !important;
}

.spaceman-cta-2-container .fusion-button {
    width: 100% !important;
}

@media only screen and (min-width: 768px) {
    .spaceman-cta-2-container {
        width: auto !important;
        margin-right: 30px;
        margin-top: 0px;
        padding: 0px;
    }

    .spaceman-cta-2-container .fusion-button {
        width: 100% !important;
        margin-top: 20px;
    }
}

.spaceman-summary ul {
    margin: 0 !important;
    padding: 20px !important;
}

.spaceman-supporting-image { 
    width: 100% !important; /* Adjust this as necessary */
    height: 100% !important;
    overflow: hidden !important; /* Ensures the image is cropped if it exceeds the container dimensions */
    position: relative !important; /* Needed for absolute positioning of the child img */
    display: fle !important; /* Ensures that the container maintains its dimensions */
    justify-content: center !important; /* Center horizontally */
    align-items: center !important; /* Center vertically */
}

.spaceman-supporting-image img {
    height: 100%;
    width: auto;
    min-width: 100%; /* Ensures the image covers the width if the height is 100% */
    object-fit: cover; /* Resize the image to cover the container while maintaining aspect ratio */
    object-position: center; /* Center the image within the container */
}

/*  Product Listing  */

.spaceman-product-listing {
    display: flex;
    flex-direction: column; /* Stack columns vertically on mobile */
    flex-wrap: wrap;
    margin-left: -20px; 
    margin-right: -20px;
    margin-top: 70px !important;
}

@media (min-width: 768px) {
    .spaceman-product-listing {
        flex-direction: row; /* Return to horizontal layout */
    }
}

.spaceman-product-listing-col {
    flex: 0 1 100%; /* Take full width on mobile */
    margin: 10px 20px; /* Adjusted margins */
    border-width: 1px;
    padding-top: 20px;
    border-color: rgb(19, 59, 103);
    border-style: solid;
}

@media (min-width: 768px) {
    .spaceman-product-listing-col {
        flex: 0 1 calc(33.3333% - 40px); /* Adjust for three columns */
    }
}

.spaceman-product-listing-title {
    text-align: center;
    margin-top: 20px;
}

.spaceman-product-listing-title a {
    color: #fff;
    width: 100%;
    margin-top: 10px;
    background: #133b67;
    border-color: #ffffff;
    border-radius: 5px;
}

.spaceman-product-listing-title a:hover {
    color: #fff;
}

/*  Category intro (H1 and the term description above the product grid)  */

.spaceman-category-intro {
    max-width: 860px;
    margin: 40px auto 0;
    padding: 0 15px;
    text-align: center;
}

.spaceman-category-intro + .fusion-fullwidth .spaceman-product-listing {
    margin-top: 40px !important;
}
