/*
Theme Name: Chyra Cosmetics Child
Theme URI: https://chyraa.in/
Description: Child theme for Cosmetics Shop Pro
Author: Chyra Cosmetics
Template: cosmetics-shop-pro
Version: 1.0.0
Text Domain: chyra-cosmetics
*/


/* =========================================================
   CHYRA - GENERAL
========================================================= */

* {
    box-sizing: border-box;
}

.single-product {
    background: #ffffff;
}

.single-product .site-main {
    width: 100%;
}

.single-product .chyra-single-product {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 70px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.chyra-product-breadcrumb {
    width: 100%;
    margin-bottom: 25px;
}

.chyra-product-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.chyra-product-breadcrumb .woocommerce-breadcrumb a {
    color: #555555;
    text-decoration: none;
}

.chyra-product-breadcrumb .woocommerce-breadcrumb a:hover {
    color: #c62d62;
}


/* =========================================================
   MAIN PRODUCT AREA
========================================================= */

.chyra-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 55px;
    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
========================================================= */

.chyra-product-gallery {
    width: 100%;
    min-width: 0;
}

/*
 * WooCommerce native gallery
 */

.chyra-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}


/*
 * Main product image
 */

.chyra-product-gallery
.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.chyra-product-gallery
.woocommerce-product-gallery__image {
    background: #f7f7f3;
    border-radius: 10px;
    overflow: hidden;
}

.chyra-product-gallery
.woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}


/*
 * Gallery thumbnails
 */

.chyra-product-gallery
.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 0 !important;
    padding: 0 !important;
}

.chyra-product-gallery
.flex-control-thumbs li {
    float: none !important;
    width: 78px !important;
    flex: 0 0 78px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.chyra-product-gallery
.flex-control-thumbs li img {
    display: block;
    width: 78px !important;
    height: 78px !important;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.chyra-product-gallery
.flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: #3d7c35;
}

.chyra-product-gallery
.flex-control-thumbs li img.flex-active {
    opacity: 1;
    border: 2px solid #3d7c35;
}


/*
 * WooCommerce zoom icon
 */

.chyra-product-gallery
.woocommerce-product-gallery__trigger {
    border-radius: 50%;
}


/* =========================================================
   PRODUCT SUMMARY
========================================================= */

.chyra-product-summary {
    width: 100%;
    min-width: 0;
}

.chyra-product-summary .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}


/* =========================================================
   PRODUCT BRAND
========================================================= */

.chyra-product-brand {
    display: block;
    margin-bottom: 6px;
    color: #3d7c35;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.chyra-product-summary .product_title {
    margin: 0 0 12px;
    padding: 0;
    color: #111111;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}


/* =========================================================
   PRODUCT RATING
========================================================= */

.chyra-product-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 15px;
}

.chyra-product-summary
.woocommerce-product-rating .star-rating {
    color: #f5a623;
}

.chyra-product-summary
.woocommerce-product-rating .woocommerce-review-link {
    color: #666666;
    font-size: 14px;
    text-decoration: none;
}


/* =========================================================
   SHORT DESCRIPTION
========================================================= */

.chyra-product-summary
.woocommerce-product-details__short-description {
    margin: 18px 0;
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}

.chyra-product-summary
.woocommerce-product-details__short-description p {
    margin: 0 0 10px;
}


/* =========================================================
   PRICE
========================================================= */

.chyra-product-summary .price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    color: #c62d62;
    font-size: 32px !important;
    line-height: 1.2;
    font-weight: 700;
}

.chyra-product-summary .price del {
    color: #999999;
    font-size: 20px;
    font-weight: 400;
}

.chyra-product-summary .price ins {
    color: #c62d62;
    text-decoration: none;
}

.chyra-product-summary .price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}


/* =========================================================
   TAX / PRICE DISPLAY
========================================================= */

.chyra-product-summary
.woocommerce-price-suffix {
    display: block;
    width: 100%;
    margin-top: -8px;
    color: #777777;
    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   SKU + STOCK
========================================================= */

.chyra-product-summary .product_meta {
    display: none;
}

.chyra-product-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 20px;
    font-size: 14px;
}

.chyra-sku {
    color: #777777;
}

.chyra-stock {
    font-weight: 600;
}

.chyra-in-stock {
    color: #3d8b35;
}

.chyra-out-stock {
    color: #c62828;
}


/* =========================================================
   QUANTITY
========================================================= */

.chyra-product-summary
.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.chyra-product-summary
.cart .quantity {
    margin: 0 !important;
}

.chyra-product-summary
.quantity .qty {
    width: 70px;
    min-height: 52px;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}


/* =========================================================
   ADD TO CART
========================================================= */

.chyra-product-summary
.single_add_to_cart_button {
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid #c62d62;
    border-radius: 6px;
    background: #ffffff;
    color: #c62d62;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.chyra-product-summary
.single_add_to_cart_button:hover {
    background: #c62d62;
    color: #ffffff;
}


/* =========================================================
   BUY NOW
========================================================= */

.chyra-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 10px;
    padding: 0 35px;
    border: 1px solid #c62d62;
    border-radius: 6px;
    background: #c62d62;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.chyra-buy-now:hover {
    background: #a91f4e;
    border-color: #a91f4e;
    color: #ffffff !important;
}


/*
 * Keep buttons visually aligned.
 */

.chyra-product-summary
.cart .chyra-buy-now {
    margin-top: 0;
}


/* =========================================================
   TRUST FEATURES
========================================================= */

.chyra-product-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
}

.chyra-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chyra-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #edf5e8;
    color: #3d7c35;
    font-size: 18px;
}

.chyra-trust-item strong {
    display: block;
    color: #222222;
    font-size: 13px;
    line-height: 1.4;
}

.chyra-trust-item span {
    display: block;
    margin-top: 2px;
    color: #777777;
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   PRODUCT TABS
========================================================= */

.chyra-product-information {
    width: 100%;
    margin-top: 60px;
}


/*
 * WooCommerce tabs container
 */

.chyra-product-information
.woocommerce-tabs {
    width: 100%;
    margin: 0;
    padding: 0;
}


/*
 * Tabs navigation
 */

.chyra-product-information
.woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #dddddd;
}

.chyra-product-information
.woocommerce-tabs ul.tabs::before,
.chyra-product-information
.woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.chyra-product-information
.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.chyra-product-information
.woocommerce-tabs ul.tabs li::before,
.chyra-product-information
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.chyra-product-information
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 17px 24px;
    border-bottom: 3px solid transparent;
    color: #555555;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chyra-product-information
.woocommerce-tabs ul.tabs li a:hover {
    color: #c62d62;
}

.chyra-product-information
.woocommerce-tabs ul.tabs li.active a {
    border-bottom-color: #c62d62;
    color: #c62d62;
    font-weight: 600;
}


/* =========================================================
   TAB CONTENT
========================================================= */

.chyra-product-information
.woocommerce-Tabs-panel {
    max-width: 1100px;
    margin: 0;
    padding: 30px 10px;
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
}

.chyra-product-information
.woocommerce-Tabs-panel h2 {
    margin: 0 0 15px;
    color: #222222;
    font-size: 25px;
    line-height: 1.3;
}

.chyra-product-information
.woocommerce-Tabs-panel p {
    margin-bottom: 15px;
}

.chyra-product-information
.woocommerce-Tabs-panel ul {
    margin: 15px 0;
    padding-left: 22px;
}

.chyra-product-information
.woocommerce-Tabs-panel li {
    margin-bottom: 7px;
}


/* =========================================================
   PRODUCT ATTRIBUTES
========================================================= */

.chyra-product-information
.woocommerce-product-attributes {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
}

.chyra-product-information
.woocommerce-product-attributes th,
.chyra-product-information
.woocommerce-product-attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.chyra-product-information
.woocommerce-product-attributes th {
    width: 30%;
    background: #fafafa;
    color: #333333;
    font-weight: 600;
}


/* =========================================================
   REVIEWS
========================================================= */

.chyra-product-information
#reviews {
    max-width: 900px;
}

.chyra-product-information
#reviews h2 {
    color: #222222;
}

.chyra-product-information
.commentlist {
    padding: 0;
}

.chyra-product-information
.commentlist li {
    margin-bottom: 20px;
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.chyra-product-information
.related.products,
.chyra-product-information
.upsells.products {
    width: 100%;
    margin-top: 60px;
}

.chyra-product-information
.related.products h2,
.chyra-product-information
.upsells.products h2 {
    margin-bottom: 30px;
    color: #222222;
    font-size: 30px;
    text-align: center;
}


/* =========================================================
   HIDE UNWANTED PRODUCT SHARING
========================================================= */

.chyra-product-summary
.product-share,
.chyra-product-summary
.product-sharing {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .single-product .chyra-single-product {
        padding: 25px 18px 60px;
    }

    .chyra-product-main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .chyra-product-gallery {
        width: 100%;
    }

    .chyra-product-summary {
        width: 100%;
    }

    .chyra-product-summary .product_title {
        font-size: 34px;
    }

    .chyra-product-trust {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   MOBILE PHONE
========================================================= */

@media (max-width: 767px) {

    .single-product .chyra-single-product {
        padding: 18px 15px 45px;
    }


    /* Breadcrumb */

    .chyra-product-breadcrumb {
        margin-bottom: 18px;
    }

    .chyra-product-breadcrumb
    .woocommerce-breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }


    /* Product layout */

    .chyra-product-main {
        display: block;
    }


    /* Gallery */

    .chyra-product-gallery {
        width: 100%;
        margin-bottom: 28px;
    }

    .chyra-product-gallery
    .woocommerce-product-gallery {
        width: 100% !important;
    }

    .chyra-product-gallery
    .woocommerce-product-gallery__image {
        width: 100%;
        border-radius: 8px;
    }

    .chyra-product-gallery
    .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }


    /* Thumbnails */

    .chyra-product-gallery
    .flex-control-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 5px !important;
        scrollbar-width: thin;
    }

    .chyra-product-gallery
    .flex-control-thumbs li {
        width: 64px !important;
        min-width: 64px;
        flex: 0 0 64px;
    }

    .chyra-product-gallery
    .flex-control-thumbs li img {
        width: 64px !important;
        height: 64px !important;
    }


    /* Brand */

    .chyra-product-brand {
        margin-bottom: 5px;
        font-size: 18px;
    }


    /* Title */

    .chyra-product-summary
    .product_title {
        margin-bottom: 10px;
        font-size: 28px;
        line-height: 1.2;
    }


    /* Rating */

    .chyra-product-summary
    .woocommerce-product-rating {
        margin: 8px 0 12px;
    }


    /* Short description */

    .chyra-product-summary
    .woocommerce-product-details__short-description {
        margin: 15px 0;
        font-size: 15px;
        line-height: 1.65;
    }


    /* Price */

    .chyra-product-summary .price {
        margin: 15px 0;
        font-size: 27px !important;
    }

    .chyra-product-summary .price del {
        font-size: 17px;
    }


    /* SKU */

    .chyra-product-info {
        gap: 8px 15px;
        margin: 12px 0 18px;
    }


    /* Cart */

    .chyra-product-summary
    .cart {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .chyra-product-summary
    .cart .quantity {
        width: 100%;
        margin-bottom: 8px !important;
    }

    .chyra-product-summary
    .cart .quantity .qty {
        width: 100%;
    }


    /* Add to cart */

    .chyra-product-summary
    .single_add_to_cart_button {
        width: 100%;
        min-height: 50px;
        margin: 0 !important;
    }


    /* Buy Now */

    .chyra-buy-now {
        display: flex;
        width: 100%;
        min-height: 50px;
        margin: 10px 0 0;
    }


    /* Trust */

    .chyra-product-trust {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 25px;
    }

    .chyra-trust-item {
        padding: 5px 0;
    }


    /* Tabs */

    .chyra-product-information {
        margin-top: 40px;
    }

    .chyra-product-information
    .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .chyra-product-information
    .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
    }

    .chyra-product-information
    .woocommerce-tabs ul.tabs li a {
        padding: 14px 15px;
        font-size: 13px;
    }


    /* Tab content */

    .chyra-product-information
    .woocommerce-Tabs-panel {
        padding: 25px 0;
        font-size: 15px;
        line-height: 1.7;
    }

    .chyra-product-information
    .woocommerce-Tabs-panel h2 {
        font-size: 22px;
    }


    /* Attributes */

    .chyra-product-information
    .woocommerce-product-attributes th,
    .chyra-product-information
    .woocommerce-product-attributes td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .chyra-product-information
    .woocommerce-product-attributes th {
        border-bottom: 0;
    }


    /* Related products */

    .chyra-product-information
    .related.products h2,
    .chyra-product-information
    .upsells.products h2 {
        font-size: 25px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .single-product .chyra-single-product {
        padding-left: 12px;
        padding-right: 12px;
    }

    .chyra-product-summary
    .product_title {
        font-size: 25px;
    }

    .chyra-product-summary .price {
        font-size: 25px !important;
    }

    .chyra-trust-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

}