/**
Theme Name: roastandroot-child
Author: Parag-Batham
Author URI: https://www.linkedin.com/in/parag-batham-dhersarepaisewalainc
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roastandroot-child
Template: astra
*/

/* Slider Container - Base */
.custom-product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Add rounded corners ONLY to product listings */
ul.products .custom-product-slider {
    border-radius: 4px; 
}

/* Scroll Wrapper */
.custom-product-slider .slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.custom-product-slider .slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Images - Base */
.custom-product-slider .slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
}

/* Force the 3:4 crop ONLY on product listings */
ul.products .custom-product-slider .slider-slide {
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* Pagination Dots Styling */
.custom-product-slider .slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.custom-product-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer; 
}

.custom-product-slider .slider-dot.active {
    background-color: #ffffff;
}

/* 1. Rebuild the Sale Badge for BOTH Shop and Single Product pages */
span.ast-onsale-card,
.woocommerce div.product span.onsale {
    font-size: 0 !important; /* Hides original text */
    width: fit-content !important; 
    max-width: fit-content !important;
    height: auto !important;
    min-height: auto !important;
    padding: 6px 14px !important;
    border-radius: 30px !important; /* Capsule shape */
    background-color: #ffffff !important;
    position: absolute !important; 
    top: 15px !important; 
    left: 15px !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    z-index: 99 !important; /* High z-index to stay above the single image zoom icon */
}

/* 2. The default text for ALL products */
span.ast-onsale-card::after,
.woocommerce div.product span.onsale::after {
    content: "Special Offer!"; /* <-- Your text here */
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    line-height: 1 !important;
}


/* ==============================================================
   CUSTOM SALE BADGE TEMPLATES
   Duplicate the blocks below and remove the /* and */ /* to activate them.
   ============================================================== */

/* --------------------------------------------------------------
   1. PRODUCT-SPECIFIC BADGES (Target by Product ID)
   Find the ID by going to WordPress Dashboard > Products and 
   hovering over the product name.
   -------------------------------------------------------------- */

/* --- TEMPLATE: Single Product --- */
/*
.post-REPLACE_WITH_ID span.ast-onsale-card {
    background-color: #ffd700 !important; 
}
.post-REPLACE_WITH_ID span.ast-onsale-card::after {
    content: "Almost Gone!" !important; 
    color: #000000 !important; 
}
*/

/* --- EXAMPLE: Product ID 5667 (Cashews) --- */
/*
.post-5667 span.ast-onsale-card {
    background-color: #000000 !important; 
}
.post-5667 span.ast-onsale-card::after {
    content: "Bestseller!" !important;
    color: #ffffff !important; 
}
*/


/* --------------------------------------------------------------
   2. CATEGORY-SPECIFIC BADGES (Target by Category Slug)
   Find the slug by going to Products > Categories. 
   Usually, it is just the lowercase name with hyphens for spaces.
   -------------------------------------------------------------- */

/* --- TEMPLATE: Entire Category --- */
/*
.product_cat-REPLACE_WITH_SLUG span.ast-onsale-card {
    background-color: #e8f5e9 !important; 
}
.product_cat-REPLACE_WITH_SLUG span.ast-onsale-card::after {
    content: "Category Deal!" !important; 
    color: #2e7d32 !important; 
}
*/

/* --- EXAMPLE: 'Almonds' Category --- */
/*
.product_cat-almonds span.ast-onsale-card {
    background-color: #ffe0b2 !important; 
}
.product_cat-almonds span.ast-onsale-card::after {
    content: "New Harvest!" !important;
    color: #d84315 !important; 
}
*/


/* Reset standard Gutenberg image and video blocks */
figure.wp-block-image img,
figure.wp-block-video video,
.wp-block-image,
.wp-block-video {
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    object-fit: initial !important;
    background-color: transparent !important;
}