/*
Theme Name: Bags world
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: Bags world
Author URI: https://wordpress.org
Description: Bags world theme
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bagsworld
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
    --bs-primary: #FE6400;
    --bs-primary-hover: #e75f06;
    --bs-primary-light: #fff8f2;
    --bs-primary-medium: #FFE0CC;
    --bs-on-primary: #ffffff;
}

* {
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-primary-light {
    background-color: var(--bs-primary-light) !important;
}

.bs-primary-medium {
    background-color: var(--bs-primary-medium) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-on-primary {
    color: var(--bs-on-primary) !important;
}

.text-justify{
    text-align: justify;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
}

.account-icon, .search-icon, .cart-icon, .wishlist-icon {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #333;
}

.account-icon i, .search-icon i, .cart-icon i, .wishlist-icon i {
    font-size: 24px;
}

#search-container {
    position: absolute;
    bottom: -80px;
    right: 10px;
    left: 10px;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9;
    border-radius: 10px;
}

header {
    position: relative;
}

header img {
    max-height: 100px !important;
}

.woocommerce .products{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.woocommerce-page .sidebar {
    display: none;
}

.woocommerce-page #primary {
    width: 100%;
}

.custom-product-box {
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 0 !important;
}

.custom-product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.custom-product-box:not(.featured-product) .product-actions {
    display: none !important;
}
.custom-product-box:hover .product-actions{
    display: block !important;
}

.product-image{
    position: relative;
}

.custom-product-box.horizontal .product-image a {
    display: block;
    width: 150px;
    height: 150px;
}

.custom-product-box .product-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.custom-product-box a {
    text-decoration: none;
    font-weight: bold;
    font-size: 10pt;
    color: #999;
}

.custom-product-box .product-categories a:hover {
    color: #000;
}

.custom-product-box h2 a {
    display: block;
    font-size: 14pt;
    color: #333;
    margin: 0 0 10px;
    font-weight: bold;
}

.price {
    font-weight: bold;
    color: #555;
    flex-grow: 1;
    display: flex !important;
    align-items: end;
    justify-content: start;
}

.price:not(.single-product .price){
    margin: 15px 10px;
}

.price ins {
    text-decoration: none;
}

.price .woocommerce-Price-amount.amount:not(del .woocommerce-Price-amount.amount) {
    color: var(--bs-primary);
    font-size: 16pt;
    text-decoration: none;
}

.custom-product-box .added_to_cart.wc-forward {
    margin: 0 10px;
}

.custom-product-box .product-actions a.add_to_cart_button {
    margin-bottom: 10px;
}

.custom-product-box .button, a.add_to_wishlist {
    color: var(--bs-primary);
    text-align: center;
    /*padding: 10px 20px;*/
    display: inline-block;
    /*width: 100%;*/
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 10px;
}

.yith-wcwl-add-to-wishlist {
    margin: unset !important;
}

.custom-product-box .woocommerce-LoopProduct-link {
    text-decoration: none;
}

.horizontal .onsale {
    display: none !important;
}

.product .onsale {
    display: block;
    position: absolute !important;
    background: var(--bs-primary) !important;
    padding: 10px !important;
    color: var(--bs-on-primary) !important;
    font-weight: bold !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    border-radius: unset !important;
    line-height: unset !important;
    min-height: auto !important;
    margin: 0 !important;
}

[dir="rtl"] .woocommerce-product-gallery .onsale {
    left: 10px !important;
    right: auto !important;
}

.single-product .woocommerce-product-gallery .onsale {
    top: 30px !important;
    right: 20px !important;
    left: auto !important;
}

[dir="rtl"] .woocommerce-product-gallery .onsale {
    top: 30px !important;
    left: 20px !important;
    right: auto !important;
}

.woocommerce .star-rating, .stars a{
    color: var(--bs-primary);
}

.woocommerce .star-rating span::before {
    font-family: WooCommerce; /* Or FontAwesome, depending on your theme */
}

.product-category img {
    height: 120px;
    width: 120px;
}

.stars-rating{
    margin: 0 10px;
}

.stars-rating .fa-star {
    color: #ccc; /* Default grey star */
    margin: 0 1px;
}
.stars-rating .fa-star.checked {
    color: #FFA500; /* Gold color for filled stars */
}

footer {
    clear: both;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    font-size: 14pt;
    font-weight: bold;
}

footer ul {
    padding: 0;
}

footer ul li {
    padding: 10px 0;
    list-style: none;
}

footer ul li::before {
    content: '-';
}

footer #footer-links a {
    color: var(--bs-secondary-color) !important;;
    text-decoration: none !important;;
    transition: color 300ms linear !important;;
    display: inline-block !important;
    text-indent: 10px !important;
}

footer #footer-links a:hover {
    color: var(--bs-primary) !important;;
}

footer .footer-image img{
    height: 80px;
}

.social-media-icon{
    background-color: var(--bs-primary-medium);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-media-icon i{
    color: var(--bs-primary);
}

input, textarea, select {
    border-radius: 10px;
    outline: none;
    border: 1px solid #d3d3d3;
    padding: 5px 10px;
    margin-top: 10px;
}

input:not([type="submit"]), textarea {
    width: 100%;
}

.related.products{
    clear: both;
}
.related.products > h2 {
    width: 100%;
    border-bottom: 1px solid #d9d9d9;
    padding: 20px 0px;
    margin: 0 10px 10px 10px;
}

.single-product .woocommerce-product-gallery__wrapper, .single-product #product-thumbnails {
    margin-top: 1em !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.single-product .woocommerce-product-gallery__wrapper{
    display: flex;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    position: relative;
}

.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image{
    width: 100%;
}

.single-product #product-thumbnails .thumbnail > .woocommerce-product-gallery__image {
    width: auto;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 10px;
}
.single-product .single_add_to_cart_button{
    background-color: var(--bs-primary) !important;
    margin: 10px 10px 0 10px !important;
    transition: background-color 300ms linear;
}

.single-product .product_title {
    font-size: 18pt;
    margin-top: 10px !important;
    font-weight: bold;
}

.single-product .single_add_to_cart_button:hover{
    background-color: var(--bs-primary-hover) !important;
}

.single-product form.cart{
    display: flex;
    align-items: center;
}

.single-product .quantity .qty {
    width: auto;
    padding: 8px 0px;
}

.wc-blocks-components-select select {
    margin: 0 !important;
}

.wp-block-woocommerce-checkout label {
    line-height: normal !important;
}

li.woocommerce-MyAccount-navigation-link a {
    font-size: 14pt;
    color: gray !important;
}

li.woocommerce-MyAccount-navigation-link.is-active a {
    color: var(--bs-primary) !important;
    font-weight: bold;
}

/* Custom styles for the reviews section */
.review-summary {
    margin-bottom: 20px;
}
.review-summary .star-rating, .comment-text .star-rating {
    float: unset !important;
}
.star-count {
    width: 60px;
    text-align: center;
}
.bar-container {
    flex-grow: 1;
    background-color: #f0f0f0;
    height: 20px; /* Increased height */
    margin: 0 10px;
    position: relative;
}
.bar {
    background-color: var(--bs-primary);
    height: 100%;
}
.count {
    width: 30px;
    text-align: center;
}
.commentlist li {
    border-bottom: 1px solid #e4e4e4;
    padding: 20px 0;
}
.comment-text .star-rating {
    margin-bottom: 5px;
}
#review_form_wrapper {
    margin-top: 40px;
}
#review_form p {
    margin-bottom: 15px;
}
#review_form label {
    display: block;
    margin-bottom: 5px;
}
#review_form input,
#review_form textarea,
#review_form select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    header img {
        max-height: 70px !important;
    }
}
