/*
Theme Name: Astra Child
Description: Astra Child Theme
Author: Your Name
Template: astra
Version: 1.0.0
*/

/* Featured Products Carousel Section */
.featured-products-carousel-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.featured-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.featured-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.see-more-link {
    font-size: 16px;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.see-more-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Desktop Grid */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.featured-products-mobile-carousel {
    display: none;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Colors Carousel */
.colors-carousel {
    width: 100%;
    height: 40px;
    margin: 10px 0;
    padding: 0 10px;
}

.colors-carousel .swiper-wrapper {
    align-items: center;
}

.colors-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.color-option {
    font-size: 11px;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 6px 12px;
    white-space: nowrap;
    text-transform: capitalize;
    display: inline-block;
}

/* Color Carousel Pagination */
.colors-carousel .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 8px;
}

.colors-carousel .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 0.5;
    margin: 0 3px;
}

.colors-carousel .swiper-pagination-bullet-active {
    background: #007cba;
    opacity: 1;
}

.product-content {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.see-more-text {
    font-size: 14px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.see-more-text:hover {
    color: #005a87;
    text-decoration: underline;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Star Ratings */
.product-rating {
    margin-bottom: 10px;
}

.star-rating {
    font-size: 16px;
    letter-spacing: 2px;
}

.five-stars {
    color: #ffc107;
}

.four-half-stars {
    color: #ffc107;
}

/* Free Delivery */
.free-delivery {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 12px;
    color: #444;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #005a87;
}

/* Mobile Carousel */
.featured-products-mobile-carousel {
    width: 100%;
}

.featured-products-mobile-carousel .swiper-slide {
    padding: 10px;
}

.featured-products-mobile-carousel .swiper-button-next,
.featured-products-mobile-carousel .swiper-button-prev {
    color: #007cba;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-products-mobile-carousel .swiper-button-next:after,
.featured-products-mobile-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.no-products {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .featured-products-grid {
        display: none;
    }
    
    .featured-products-mobile-carousel {
        display: block;
    }
    
    .featured-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .featured-products-title {
        font-size: 24px;
    }
    
    .product-image img {
        height: 180px;
    }
    
    .colors-carousel {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .featured-products-carousel-section {
        padding: 20px 10px;
    }
    
    .product-image img {
        height: 160px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
        height: 38px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .colors-carousel {
        height: 32px;
    }
    
    .color-option {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .free-delivery {
        font-size: 11px;
        padding: 6px;
    }
}
/* FIX MOBILE CAROUSEL ARROWS */
.featured-products-mobile-carousel {
    position: relative;
    padding: 0 40px;
}

.featured-products-mobile-carousel .swiper-button-next,
.featured-products-mobile-carousel .swiper-button-prev {
    color: #007cba;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: -20px;
}

.featured-products-mobile-carousel .swiper-button-next:after,
.featured-products-mobile-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.featured-products-mobile-carousel .swiper-button-next {
    right: 0;
}

.featured-products-mobile-carousel .swiper-button-prev {
    left: 0;
}

/* Make arrows more visible on mobile */
@media (max-width: 768px) {
    .featured-products-mobile-carousel .swiper-button-next,
    .featured-products-mobile-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .featured-products-mobile-carousel .swiper-button-next:after,
    .featured-products-mobile-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}


/*
Theme Name: Astra Child
Template: astra
Author: Your name
Description: Child theme for Astra - custom WooCommerce category layout
Version: 1.0
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* Astra Child Theme - Product Card Compatibility */
.woocommerce .products .product,
.woocommerce-page .products .product {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Hide default sale flash */
.woocommerce span.onsale {
    display: none !important;
}

/* Ensure proper grid layout */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}


/* Fix product card spacing and pricing */
/* 1. Reduce padding between image and title */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    margin-bottom: 1em !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

/* 2. Compared at pricing styling */
.compared-at-price {
    font-size: 0.9em !important;
    color: #989fb3 !important;
    text-decoration: line-through !important;
    display: block;
    margin-top: 4px;
}

.exact-price {
    font-size: 1em !important;
    color: #454f5e !important;
    text-decoration: none !important;
    display: block;
}

/* Price container adjustments */
.woocommerce ul.products li.product .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce ul.products li.product .price .compared-at-price {
    order: 2;
}

.woocommerce ul.products li.product .price .exact-price {
    order: 1;
}

/* 3. Fix star rating */
.woocommerce .star-rating {
    color: #FFD700 !important;
    width: 5em !important;
    font-size: 1em !important;
    letter-spacing: 2px;
}

.woocommerce .star-rating::before {
    content: '⭐⭐⭐⭐⭐' !important;
    color: #FFD700 !important;
}

/* Add thin white-grey border around stars */
.woocommerce .star-rating {
    text-shadow: 
        0 0 1px #ffffff,
        0 0 1px #ffffff,
        0 0 1px #ffffff,
        0 0 2px #cccccc !important;
    padding: 2px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}



/* Updated Price Layout with SPAN */
.custom-price-container {
    display: inline !important;
    margin: 7px 0 !important;
}

.price-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.exact-price {
    font-size: 1em !important;
    color: #454f5e !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

.compared-at-price {
    font-size: 0.9em !important;
    color: #989fb3 !important;
    text-decoration: line-through !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* Reduce space between product cards to 1em */
.woocommerce ul.products {
    gap: 1em !important;
    margin-bottom: 1em !important;
}

.woocommerce ul.products li.product {
    margin-bottom: 1em !important;
}

.custom-product-card {
    margin-bottom: 1em !important;
}

/* For grid layouts */
.woocommerce ul.products li.product,
.products .product {
    margin-bottom: 1em !important;
}

/* For Astra theme specifically */
.ast-woocommerce-container .woocommerce ul.products li.product {
    margin-bottom: 1em !important;
}
