/* General styles */
#mk-page-introduce {
    display:none;
}
#rs-product-container .variations_form {
    display: block !important; /* Overrides theme's display:none */
    visibility: visible !important;
    opacity: 1 !important;
}
#rs-product-container .variations_form select {
    display: block;
}

.woocommerce-product-gallery__trigger {
    display:none;
}
.onsale {
    display:none;
}
/* Product wrappers */
.rs-single-product-wrapper {
    /* minimal, safe change to allow children to stretch */
    display: flex;
    align-items: stretch;
}

.woocommerce div.product div.images {
    width: 70%;
}


.rs-rs-attributes-container {
    gap: 15px;
}

ul.tabs.wc-tabs {
    width: 100%;
}
.entry-summary {
    background-color: rgb(244 244 244);
    padding: 20px;
    width: 30% !important;
    display: flex; /* Add this line */
    flex-direction: column;
    align-self: stretch; /* fill the wrapper height */
    box-sizing: border-box;
}


@media only screen and (max-width: 1000px) {
    .rs-single-product-wrapper {
        flex-direction: column;
    }
    .woocommerce div.product div.images {
        width: 100%;
    }
    .entry-summary{
        width: 100% !important;
        box-sizing: border-box;
    }
}

/*
 * Single product styling  
 */

/* Product summary */
.rs-product-summary-label {
    font-size: 1.1rem;
    font-weight: 500;
}
#product-price {
    font-size: 1.1rem;
    font-weight: 700;   
}

#product-specifications p {
    font-size: 0.9rem;
}

/* Attribute styling */
.rs-hidden-select {
    display: none !important;
    visibility: hidden;
}
.rs-visible-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    margin-top: 5px;
}

/* button styling */
.rs-button-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

/* 3. Button Styles (Same as before) */
.rs-button-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.rs-option-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rs-option-btn.selected {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}

.rs-option-btn.disabled {
    opacity: 0.4;
    background: #f9f9f9;
    color: #a13d3d;
    border-color:#a13d3d;
}

/* Colour display */
.rs-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px; /* Slight roundness */
    margin-right: 8px;  /* Space between color and text */
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border for light colors (like white) */
    position: relative;
    top: -1px; /* Optical alignment */
}

#stock-wrapper {
    margin-top: 24px;
    font-family: inherit; /* Inherit your theme's clean font */
}

/* Shared Card Styling for both states */
.stock-card {
    padding: 24px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft, premium shadow */
    border: 1px solid #eaeaea;
    display: none; /* Keep hidden by default for your JS */
}

/* --- In Stock Styling --- */
#in-stock-wrapper {
    border-top: 4px solid #000000; /* Elegant deep green accent */
}

.in-stock-notice {
    color: #2e7d32;
    font-weight: 700;
    font-size: 10pt;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* --- Out of Stock Styling --- */
#out-of-stock-wrapper {
    border-top: 4px solid #856404; /* Muted gold/bronze instead of harsh red */
}

.out-of-stock-notice {
    color: #856404;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Shared Typography & Layout --- */
.stock-subtitle {
    color: #666666;
    font-size: 10pt;
    line-height: 1.5;
    margin-bottom: 20px;
    font-style: italic;
}

.button-container { 
    display: flex;
    justify-content: center;
}

.contact-prompt {
    font-size: 8pt;
    font-style: italic;
    margin-top: 15px;
}

.contact-prompt a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.contact-prompt a:hover {
    opacity: 0.7;
}

.status-icon {
    font-size: 1.2rem;
}

/* --- The Reservation Button --- */
.raas-btn {
    display: inline-block;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #1a1a1a; /* Sleek near-black */
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 9pt;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.raas-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

.raas-btn:active {
    transform: translateY(1px); /* Slight click feedback */
}

/* --- Variation Gallery Styles --- */
#rs-product-wrapper .woocommerce-product-gallery .main-image, #rs-product-wrapper .woocommerce-product-gallery .gallery-thumbs {
    padding: 0px 10px 0px 0px ;
}   
.variation-gallery {
    position: relative; /* Anchors the absolute badge */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
/* the NEW badge */
.rs-single-new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #000000;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none; /* Prevents interference with image clicks */
}

/* Main Image */
.variation-gallery .main-image {
    width: 100%;
    overflow: hidden;
}

.variation-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Thumbnails */
.variation-gallery .gallery-thumbs {
    cursor:pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.woocommerce div.product div.images .variation-gallery .gallery-item {
    /* Stop flexbox from stretching them */
    flex: 0 0 80px !important; 
    
    /* standard styling */
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    margin: 0 !important; /* Reset generic margins */
    box-shadow: none;
    transition: all 0.2s ease;
}
.gallery-item img {
    border-radius: inherit;
    /* Force exact size */
    width: 80px !important;
    height: 80px !important;
}
.woocommerce-product-gallery {
    margin:0px;
}
/* states  */
.woocommerce div.product div.images .variation-gallery .gallery-item:hover {
    opacity: 1;
    border-color: #ccc;
}

.woocommerce div.product div.images .variation-gallery .gallery-item.active {
    opacity: 1;
    border-color: #333;
} 

/* 
 * Variation styling
 */

 .variation-details {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.variation-image img {
    border: 1px solid #eee;
    padding: 5px;
}
#rs-variation-output {
    padding: 10px;
    border-top: 1px solid #e3e3e3;
    margin: 10px 0;
    font-size: 12px;
}

#rs-variation-output p {
    margin: 5px 0px;
    font-size: 11pt;
}
.rs-label {
    font-weight: bold;
}
/* Below menu */

.rs-separator {
    margin: 15px 0px;
}
.rs-bike-type {
    font-size: 10pt;
}
.rs-bike-type {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rs-bike-type img {
    max-width: 100px;
}
/**
 * Below summary (suggested products
 */

.rs-suggestion-slider-wrapper {
    margin: 50px 0;
}

.rs-suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    gap: 20px; /* Force space between title and arrows */
}
.rs-suggestion-header h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-product-band {
    font-weight: 700 !important;
    font-style: uppercase;
    font-size: 11pt;
    margin: 0px;
}
.rs-product-title {
    display: flex;
    justify-content: space-between; 
    text-overflow: ellipsis;
    align-items: center;
    width: 100%;
    margin: 0 0 10px 0;
}
/* Slider arrows */
.rs-slider-arrows {
    display: flex;     /* Make the wrapper a flex container */
    flex-wrap: nowrap;  /* Strictly prevent vertical wrapping */
    align-items: center;
    gap: 5px;          /* Clean space between buttons */
    flex-shrink: 0;     /* Do not allow title to squeeze this wrapper */
}

.rs-slider-arrows .rs-arrow {
    display: flex; /* Centering < and > inside circles */
    align-items: center;
    justify-content: center;
    margin: 0; /* Clear previous margins, gap handles spacing now */
    background: none;
    border: 1px solid #ccc;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.rs-slider-arrows .rs-arrow:hover:not(:disabled) {
    background: #000;
    color: #fff;
    border-color: #000;
}

.rs-slider-arrows .rs-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* The overflow container */
.rs-slider-track-container {
    width: 100%;
    overflow: hidden; /* Secures the window so extra cards are hidden */
    position: relative;
}

/* The moving track */
.rs-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Forces horizontal alignment */
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease-in-out;
}

/**
 * Product cards == The container itmes within the suggested products
 */

.rs-slider-track .rs-product-wrapper {
    flex: 0 0 calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .rs-slider-track .rs-product-wrapper {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* --- ENFORCE 4:3 ASPECT RATIO --- */
.rs-slider-track .rs-product-loop-thumb {
    width: 100%;
    overflow: hidden;
}
.rs-slider-track .product-loop-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
/* Slide details */
.rs-slider-track .rs-shop-item-detail {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.rs-slider-track .rs-product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}
.rs-slider-track .rs-product-title a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-right: 10px;
}
.rs-slider-track .rs-product-item-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: unset; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rs-slider-track .rs-catalog-price {
    font-size: 0.8em;
    color: #333;
    text-align: center;
}

.rs-slider-track .rs-tags-container {
    margin-top: auto; 
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.rs-slider-track .rs-tags b {
    color: #333;
    font-weight: 600;
}

.rs-single-product-title-box {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap;  
    width: 100%;
}
b.rs-single-product-brand {
    font-weight: 700 !important;
}

h2.rs-single-product-title {
    margin: 0;
    font-size: 25pt;
    font-weight: 500;
    text-transform: none;
    flex: 1 1 auto;              
}

.rs-badge-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;  /* Prevents shrinkage of button */
}

/* Dynamic Campaign Sale Badge */
.rs-camp-single-product-pill {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px; 
    padding: 8px 16px; 
    border-radius: 6px; 
    font-size: 16px; 
    font-style: italic;
    font-weight: 800; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    letter-spacing: 0.5px;
    white-space: nowrap;         
    line-height: 1;
}

/* Produt bottom catalog */
.rs-camp-inventory-pill {
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size:11px; 
    font-weight: bold; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.rs-sale-price {
    text-decoration: none;
    margin-right: 8px;
    margin-right: 8px;
}
.rs-regular-price {
    opacity: 0.6;
    text-decoration: line-through;
}
.rs-product-loop-thumb {
    position: relative;
    display: block; /* Ensures the container tightly wraps the image */
}
.rs-new-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #000000;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none; /* Prevents the badge from blocking the hyperlink */
}

/* --- 5. Mobile Responsiveness --- */
@media (max-width: 768px) {
    
    .rs-single-product-title {
        font-size: 20pt;
        display: block;
    }
    
    .rs-camp-single-product-pill {
        font-size: 14px;
        padding: 9px 12px;   
    }
}

/*  Color swatch CSS */
.rs-color-swatches {
    display: flex;
    gap: 6px;
    margin: 10px 0;
    flex-wrap: wrap;
    justify-content: center; /* This centers the items horizontally */
}
.rs-swatch-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #e1e1e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.rs-swatch-btn:hover, .rs-swatch-btn.active {
    transform: scale(1.2);
    border-color: #333;
}

