/**
 * Single Product Page Styles - Riverside Farm
 * 
 * Design system aligned with Morrey Design WooElements plugin
 * Following best UI/UX practices for e-commerce product pages
 */

/* ============================================
   CSS Variables - Aligned with Plugin Design
   ============================================ */
:root {
    /* Plugin accent color - used throughout */
    --rf-accent-color: #A69B73;
    --rf-accent-dark: #8f8461;
    --rf-accent-light: #bdb19b;
    
    /* Text colors from plugin */
    --rf-text-primary: #28333A;
    --rf-text-secondary: #666666;
    --rf-text-muted: #999999;
    
    /* Status colors from plugin */
    --rf-success: #22c55e;
    --rf-warning: #f59e0b;
    --rf-danger: #ef4444;
    --rf-star-color: #fbbf24;
    
    /* UI Elements */
    --rf-border-color: #e0e0e0;
    --rf-border-radius-sm: 6px;
    --rf-border-radius-md: 8px;
    --rf-border-radius-lg: 12px;
    --rf-border-radius-xl: 16px;
    
    /* Shadows from plugin */
    --rf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --rf-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions from plugin */
    --rf-transition-fast: 0.2s ease;
    --rf-transition-base: 0.3s ease;
    --rf-transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================
   Product Page Layout
   ============================================ */
   
/* Category Navigation Section - Full Width */
.rf-single-product-category-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--rf-border-color, #e0e0e0);
    padding: 15px 0;
    margin-bottom: 50px;
}

.rf-single-product-category-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.rf-single-product-category-nav .rf-category-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Category Button Styles */
.rf-single-product-category-nav .rf-category-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rf-text-primary, #28333A);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.rf-single-product-category-nav .rf-category-button:hover {
    border-color: var(--rf-accent-color, #A69B73);
    background: rgba(166, 155, 115, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--rf-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
    color: var(--rf-text-primary, #28333A);
}

.rf-single-product-category-nav .rf-category-button--active {
    background: var(--rf-accent-color, #A69B73);
    color: #ffffff;
    border-color: var(--rf-accent-color, #A69B73);
    font-weight: 600;
}

.rf-single-product-category-nav .rf-category-button--active:hover {
    background: var(--rf-accent-dark, #8d8461);
    color: #ffffff;
    border-color: var(--rf-accent-dark, #8d8461);
    transform: translateY(-2px);
}

.rf-single-product-category-nav .rf-category-button:active {
    transform: scale(0.98);
}

.rf-single-product-wrapper {
    background: #F3F3F1;
    padding: 2rem 0 4rem;
    padding-top: 137px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.rf-breadcrumbs {
    margin-bottom: 1rem;
    padding: 0;
}

.rf-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-breadcrumb-item {
    display: flex;
    align-items: center;
}

.rf-breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--rf-text-muted);
    opacity: 0.5;
}

.rf-breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.rf-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rf-text-secondary);
    text-decoration: none;
    padding: 0 10px;
    transition: color var(--rf-transition-fast);
}

.rf-breadcrumb-link:hover {
    color: var(--rf-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Home icon link - Keep prominent styling */
.rf-breadcrumb-home {
    font-weight: 700;
    color: var(--rf-text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--rf-border-radius-md);
}

.rf-breadcrumb-home:hover {
    color: var(--rf-accent-color);
    background: rgba(166, 155, 115, 0.08);
    text-decoration: none;
}

.rf-breadcrumb-home:active {
    transform: scale(0.98);
}

.rf-breadcrumb-home svg {
    width: 16px;
    height: 16px;
}

/* Current page (not a link) */
.rf-breadcrumb-current .rf-breadcrumb-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rf-text-secondary);
    padding: 0.5rem 0.75rem;
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Focus states for accessibility */
.rf-breadcrumb-link:focus-visible {
    outline: 2px solid var(--rf-accent-color);
    outline-offset: 2px;
}

.rf-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* ============================================
   Product Gallery Section
   ============================================ */
.rf-product-gallery-section {
    position: sticky;
    top: 160px; /* Adjusted for fixed navigation */
    align-self: start;
}

.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Featured image (first image) - Full width, large */
.woocommerce-product-gallery__image:first-child {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--rf-border-radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    margin-bottom: 0.5rem;
}

.woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rf-transition-slow);
}

.woocommerce-product-gallery__image:first-child:hover img {
    transform: scale(1.05);
}

/* Gallery images (thumbnails) - Smaller, in a row */
.woocommerce-product-gallery__image:not(:first-child) {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: var(--rf-border-radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    margin: 0;
}

.woocommerce-product-gallery__image:not(:first-child) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--rf-transition-fast);
    opacity: 0.8;
}

.woocommerce-product-gallery__image:not(:first-child):hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Gallery thumbnails */
.flex-control-thumbs {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.flex-control-thumbs li {
    flex: 0 0 80px;
    width: 80px;
    margin: 0;
}

.flex-control-thumbs li img {
    width: 100%;
    height: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--rf-border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--rf-transition-fast), transform var(--rf-transition-fast);
    opacity: 0.6;
}

.flex-control-thumbs li:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.flex-control-thumbs li.flex-active-slide img {
    border-color: var(--rf-accent-color);
    opacity: 1;
}

/* Sale badge - Hidden */
.woocommerce-product-gallery__image .onsale,
.onsale {
    display: none !important;
}

/* ============================================
   Product Details Section
   ============================================ */
.rf-product-details-section {
    display: flex;
    flex-direction: column;
}

.rf-product-summary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Category Badge */
.rf-product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    margin-bottom: -14px;
}

.rf-product-category a {
    color: var(--rf-accent-color);
    text-decoration: none;
    transition: color var(--rf-transition-fast);
    font-size: 16px;
}

.rf-product-category a:hover {
    color: var(--rf-accent-dark);
}

/* Product Title */
.rf-product-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rf-text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Product Subtitle */
.rf-product-subtitle {
    font-family: var(--font-body);
    font-size: 1.325rem;
    font-weight: 500;
    color: var(--rf-text-primary);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
    margin-top: -17px;
}

/* Rating & Reviews - Disabled */

/* ============================================
   PRICING & CHECKOUT - TEMPORARILY HIDDEN
   To re-enable: Comment out or remove this section
   ============================================ */

/* Hide all pricing elements site-wide */
.rf-product-price-wrapper,
.price,
.woocommerce-Price-amount,
.amount,
.woocommerce-Price-currencySymbol,
ins .woocommerce-Price-amount,
del .woocommerce-Price-amount,
.product-price,
span.price,
p.price {
    display: none !important;
}

/* Hide pricing in product listings/archives */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: none !important;
}

/* Hide pricing in cart widget */
.woocommerce-mini-cart .amount,
.woocommerce-Price-amount.amount {
    display: none !important;
}

/* ============================================
   Product Tiles (Strain Type & Cannabinoids)
   ============================================ */
.rf-product-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rf-product-tiles-single {
    margin-bottom: 0.5rem;
}

/* Strain Type Tile - Colored Box */
.rf-strain-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    /* Background color set inline via PHP for immediate correct color */
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 22px;
    line-height: 1;
}

/* Cannabinoid Tile - Outlined Box */
.rf-cannabinoid-tile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #ffffff;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1;
}

.rf-tile-label {
    font-weight: 700;
    color: var(--rf-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rf-tile-value {
    font-weight: 600;
    color: var(--rf-text-secondary);
}

/* ============================================
   Stock Status Badge - Hidden
   ============================================ */
.rf-product-stock-wrapper,
.rf-stock-badge,
.stock,
.out-of-stock,
.in-stock {
    display: none !important;
}

/* ============================================
   Product Excerpt/Short Description
   ============================================ */
.rf-product-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rf-text-secondary);
}

.rf-product-excerpt p {
    margin-bottom: 0.75rem;
}

.rf-product-excerpt p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Find a Pharmacy Button
   ============================================ */
.rf-pharmacy-button-wrapper {
    margin: 1.5rem 0 0;
}

.rf-pharmacy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #2288C9;
    border: 2px solid #2288C9;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--rf-transition-fast);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34, 136, 201, 0.2);
}

.rf-pharmacy-button:hover {
    background: #1a6fa8;
    border-color: #1a6fa8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 136, 201, 0.3);
    text-decoration: none;
}

.rf-pharmacy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 136, 201, 0.2);
}

.rf-pharmacy-button svg {
    flex-shrink: 0;
}

/* Focus state for accessibility */
.rf-pharmacy-button:focus-visible {
    outline: 2px solid #2288C9;
    outline-offset: 2px;
}

/* ============================================
   ADD TO CART & CHECKOUT - TEMPORARILY HIDDEN
   To re-enable: Comment out or remove this section
   ============================================ */

/* Hide add to cart forms and buttons */
.rf-product-actions,
.cart,
.quantity,
.single_add_to_cart_button,
.variations,
.variations_form,
form.cart,
.add_to_cart_button,
.added_to_cart,
.product_type_simple,
.product_type_variable,
.ajax_add_to_cart {
    display: none !important;
}

/* Hide cart and checkout in navigation/menus */
.woocommerce-cart,
.woocommerce-checkout,
.cart-contents,
.widget_shopping_cart,
.woocommerce-mini-cart {
    display: none !important;
}

/* Hide checkout page entirely (can remove this line to keep checkout accessible) */
body.woocommerce-checkout {
    display: none !important;
}

/* Hide cart page entirely (can remove this line to keep cart accessible) */
body.woocommerce-cart {
    display: none !important;
}

/* ============================================
   Product Meta (SKU, Categories, Tags)
   ============================================ */
.rf-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding:0 0 1.5rem 0;
}

.rf-meta-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.rf-meta-label {
    font-weight: 600;
    color: var(--rf-text-primary);
}

.rf-meta-value {
    color: var(--rf-text-secondary);
}

.rf-meta-value a {
    color: var(--rf-accent-color);
    text-decoration: none;
    transition: color var(--rf-transition-fast);
}

.rf-meta-value a:hover {
    color: var(--rf-accent-dark);
    text-decoration: underline;
}

/* ============================================
   Product Tabs Section
   ============================================ */
.rf-product-tabs-container {
    margin-top: 3rem;
}

.woocommerce-tabs.wc-tabs-wrapper {
    background: #ffffff;
    border-radius: var(--rf-border-radius-xl);
    overflow: hidden;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #F3F3F1;
  
}

.woocommerce-tabs .tabs li {
    margin: 0;
    background: transparent;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 1.25rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rf-text-secondary);
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all var(--rf-transition-fast);
    border-radius: 12px 12px 0 0;
}

.woocommerce-tabs .tabs li:hover a {
    color: var(--rf-text-primary);
    background: rgba(166, 155, 115, 0.05);
}

.woocommerce-tabs .tabs li.active a {
    color: var(--rf-accent-color);
    background: #ffffff;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 2.5rem 2rem;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rf-text-primary);
    margin-bottom: 1.5rem;
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rf-text-secondary);
    margin-bottom: 1rem;
}

/* Reviews Disabled - Section removed */

/* Hide any comment/review related sections */
#reviews,
.woocommerce-Reviews,
.woocommerce-review-link,
.comment-form-comment,
.comment-reply-title,
#respond,
.woocommerce-tabs #tab-reviews,
.reviews_tab {
    display: none !important;
}

/* ============================================
   Related Products Section - Horizontal Scroll (Plugin Style)
   ============================================ */
.related.products {
    margin-top: 4rem;
    padding: 3rem 0 4rem;
    background: transparent;
    border-top: 1px solid var(--rf-border-color);
    overflow: visible;
    position: relative;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
}

.related.products h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rf-text-primary);
    margin: 0 0 2rem 0;
    padding: 0 2rem;
    letter-spacing: -0.02em;
}

/* Horizontal Scrollable Container */
.related.products .products,
.related.products ul.products,
.related.products .products.columns-4,
.related.products ul.products.columns-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 10px 2rem 30px;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar */
    scroll-snap-type: x mandatory;
    grid-template-columns: none !important; /* Override any grid rules */
    visibility: visible !important;
    height: auto !important;
    min-height: 350px; /* Ensure container has height */
}

.related.products .products::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Navigation Arrows */
.related.products .rf-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.related.products:hover .rf-slider-arrow {
    opacity: 1;
}

.related.products .rf-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.related.products .rf-slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.related.products .rf-slider-arrow--prev {
    left: 12px;
}

.related.products .rf-slider-arrow--next {
    right: 12px;
}

.related.products .rf-slider-arrow.is-disabled {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.related.products .rf-slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* Override default WooCommerce product width */
.related.products .products li.product,
.related.products ul.products li.product,
.woocommerce ul.products.related li.product,
.woocommerce-page ul.products.related li.product,
.rf-related-product-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    margin: 0 !important;
    float: none !important;
    list-style: none;
    scroll-snap-align: start;
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
}

/* Related Product Cards - Plugin Style */
.rf-related-product-card {
    background: #ffffff;
    border-radius: var(--rf-border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--rf-transition-slow);
    position: relative;
    display: flex !important;
    flex-direction: column;
    touch-action: pan-y pinch-zoom;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 320px;
}

.rf-related-product-card:hover {
    transform: scale(1.05);
    box-shadow: var(--rf-shadow-md);
    z-index: 5;
}

/* Disable hover on touch devices */
@media (hover: none) {
    .rf-related-product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .rf-related-product-card:active {
        transform: scale(0.98);
    }
}

/* Unified Product Link */
.rf-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rf-product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image (works for both related and shop) */
.rf-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.rf-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--rf-transition-slow);
}

.rf-related-product-card:hover .rf-product-image img {
    transform: scale(1.05);
}

/* Product Content (works for both related and shop) */
.rf-product-content {
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Category Badge */
.rf-product-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-accent-color);
    margin: 0;
}

/* Product Title */
.rf-product-title-card {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-related-product-card:hover .rf-product-title-card {
    color: var(--rf-text-primary);
}

/* Hide default WooCommerce elements in related products */
.related.products .product .onsale,
.related.products .product .price,
.related.products .product .add_to_cart_button,
.related.products .product .button,
.related.products .product .star-rating,
.related.products .product .woocommerce-loop-product__title,
.related.products .product .woocommerce-loop-product__link,
.related.products .product .attachment-woocommerce_thumbnail,
.related.products .product > a:not(.rf-product-link) {
    display: none !important;
}

/* Ensure our custom structure displays */
.rf-related-product-card .rf-product-link,
.rf-related-product-card a.rf-product-link {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

/* Make sure all content inside related cards is visible */
.rf-related-product-card .rf-product-image,
.rf-related-product-card .rf-product-content,
.rf-related-product-card .rf-product-category,
.rf-related-product-card .rf-product-title-card,
.rf-related-product-card .rf-product-subtitle-card,
.rf-related-product-card .rf-product-tiles {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Product Subtitle in Related Cards */
.rf-related-product-card .rf-product-subtitle-card {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rf-text-primary, #1F2A30);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.rf-related-product-card .rf-product-image img {
    display: block !important;
    visibility: visible !important;
}

/* Product Tiles in Related Products - Use compact shop card styling */
.rf-related-product-card .rf-product-tiles {
    display: flex !important;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 8px;
}

.rf-related-product-card .rf-strain-tile {
    padding: 5px;
    font-size: 0.7rem;
    min-width: 22px;
}

.rf-related-product-card .rf-cannabinoid-tile {
    padding: 4px 5px;
    gap: 4px;
    font-size: 0.7rem;
    border: 1px solid #d0d0d0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .rf-product-container {
        gap: 3rem;
    }
    
    .rf-product-title {
        font-size: 1.75rem;
    }
    
    .rf-product-gallery-section {
        top: 140px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .rf-single-product-category-nav {
        padding: 15px 0;
    }
    
    .rf-single-product-category-nav .rf-category-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .rf-single-product-category-nav .rf-category-button {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    .rf-single-product-wrapper {
        padding: 1rem 0 3rem;
        padding-top: 160px;
    }
    
    .rf-breadcrumbs {
        margin-bottom: 1rem;
    }
    
    .rf-breadcrumb-link,
    .rf-breadcrumb-current .rf-breadcrumb-text {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
    }
    
    .rf-breadcrumb-current .rf-breadcrumb-text {
        max-width: 200px;
    }
    
    .rf-product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rf-product-gallery-section {
        position: relative;
        top: auto;
    }
    
    .rf-product-title {
        font-size: 1.5rem;
    }
    
    .rf-product-attributes {
        gap: 0.5rem;
    }
    
    .rf-attribute-box {
        min-width: 70px;
        flex: 1;
    }
    
    .rf-pharmacy-button-wrapper {
        margin: 1.25rem 0;
    }
    
    .rf-pharmacy-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .related.products {
        padding: 2rem 0 3rem;
    }
    
    .related.products h2 {
        font-size: 1.25rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .related.products .products,
    .related.products ul.products,
    .related.products .products.columns-4,
    .related.products ul.products.columns-4 {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        padding: 10px 1rem 20px;
    }
    
    .related.products .products li.product,
    .related.products ul.products li.product,
    .rf-related-product-card {
        flex: 0 0 240px !important;
        width: 240px !important;
        min-width: 240px !important;
        display: flex !important;
    }
    
    /* Hide arrows on mobile, use swipe */
    .related.products .rf-slider-arrow {
        display: none !important;
    }
    
    .woocommerce-tabs .tabs {
        flex-direction: column;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 1rem 1.5rem;
    }
    
    .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 1.5rem 1rem;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 calc(25% - 0.563rem);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .rf-breadcrumbs {
        margin-bottom: 1rem;
    }
    
    
    .rf-breadcrumb-link,
    .rf-breadcrumb-current .rf-breadcrumb-text {
        font-size: 0.75rem;
        padding: 0.25rem 0.375rem;
    }
    
    .rf-breadcrumb-home span {
        display: none; /* Hide "Store" text on very small screens, keep icon */
    }
    
    .rf-breadcrumb-current .rf-breadcrumb-text {
        max-width: 120px;
    }
    
    .rf-product-title {
        font-size: 1.25rem;
    }
    
    .rf-attribute-label {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }
    
    .rf-attribute-value {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .flex-control-thumbs li {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
    
    .related.products {
        padding: 2rem 0;
    }
    
    .related.products h2 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .related.products .products,
    .related.products ul.products,
    .related.products .products.columns-4,
    .related.products ul.products.columns-4 {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        padding: 10px 1rem 15px;
    }
    
    .related.products .products li.product,
    .related.products ul.products li.product,
    .rf-related-product-card {
        flex: 0 0 200px !important;
        width: 200px !important;
        min-width: 200px !important;
        display: flex !important;
    }
    
    .rf-related-product-card .rf-product-title-card {
        font-size: 0.9rem;
    }
    
    .rf-related-product-card .rf-product-category {
        font-size: 0.65rem;
    }
    
    .rf-related-product-card .rf-product-tiles {
        gap: 2px;
        margin-top: 6px;
    }
    
    .rf-related-product-card .rf-strain-tile {
        padding: 4px;
        font-size: 0.65rem;
        min-width: 20px;
    }
    
    .rf-related-product-card .rf-cannabinoid-tile {
        padding: 3px 4px;
        gap: 3px;
        font-size: 0.65rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes rf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--rf-accent-color);
    outline-offset: 2px;
}

/* ============================================
   Product Information Sections (Cannabinoids & Terpenes)
   ============================================ */
.rf-product-info-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: .5rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--rf-border-color);
}

.rf-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rf-section-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-text-primary);
    margin: 0;
}

/* Reported Effects */
.rf-effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.rf-effect-tag {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rf-text-primary);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    transition: all var(--rf-transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.rf-effect-tag:hover {
    border-color: var(--rf-accent-color);
    background: rgba(166, 155, 115, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--rf-shadow-sm);
    color: var(--rf-text-primary);
    text-decoration: none;
}

/* Details/Cannabinoids Table */
.rf-details-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: var(--rf-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--rf-shadow-sm);
}

.rf-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 1.3rem;
    border-bottom: 1px solid #f0f0f0;
}

.rf-detail-row:last-child {
    border-bottom: none;
}

.rf-detail-row:nth-child(even) {
    background: #fafafa;
}

.rf-detail-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rf-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rf-detail-label:hover {
    color: var(--rf-accent-color, #A69B73);
    text-decoration: none;
}

.rf-detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rf-text-secondary);
    text-underline-offset: 2px;
}

/* Terpenes Grid */
.rf-terpenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.rf-terpene-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--rf-border-radius-md);
    transition: all var(--rf-transition-fast);
    text-decoration: none;
    color: inherit;
}

.rf-terpene-card:hover {
    border-color: var(--rf-accent-color);
    box-shadow: var(--rf-shadow-sm);
    transform: translateY(-2px);
    text-decoration: none;
}

.rf-terpene-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.rf-terpene-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1;
}

.rf-terpene-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rf-text-primary);
    margin: 0;
    line-height: 1.2;
}

.rf-terpene-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--rf-text-secondary);
    margin: 0;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .rf-product-info-sections {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .rf-product-info-sections {
        margin: .2rem 0;
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .rf-terpene-card {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .rf-terpene-icon {
        font-size: 1.375rem;
    }
    
    .rf-terpene-name {
        font-size: 0.8125rem;
    }
    
    .rf-terpene-value {
        font-size: 0.75rem;
    }
    
    .rf-detail-row {
        padding: 0.875rem 1rem;
    }
    
    .rf-detail-label,
    .rf-detail-value {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .rf-terpenes-grid {
        grid-template-columns: 1fr;
    }
    
    .rf-section-title {
        font-size: 0.875rem;
    }
}

/* ============================================
   Collapsible Sections (About This Strain, Additional Info)
   ============================================ */
.rf-collapsible-section {
    border-top: 1px solid var(--rf-border-color);
    padding-top: 0;
}

.rf-collapsible-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all var(--rf-transition-fast);
    text-align: left;
    padding-bottom: 0px;
}

.rf-collapsible-toggle:hover {
    opacity: 0.8;
}

.rf-collapsible-toggle .rf-section-title {
    margin: 0;
    pointer-events: none;
}

.rf-collapsible-toggle .rf-toggle-icon {
    flex-shrink: 0;
    transition: transform var(--rf-transition-base);
    color: var(--rf-accent-color);
}

.rf-collapsible-toggle[aria-expanded="true"] .rf-toggle-icon {
    transform: rotate(180deg);
}

.rf-collapsible-content {
    overflow: hidden;
    transition: all var(--rf-transition-base);
}

.rf-wysiwyg-content {
    padding-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--rf-text-secondary);
}

.rf-wysiwyg-content p {
    margin-bottom: 1rem;
}

.rf-wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.rf-wysiwyg-content h2,
.rf-wysiwyg-content h3,
.rf-wysiwyg-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--rf-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rf-wysiwyg-content h2 { font-size: 1.25rem; }
.rf-wysiwyg-content h3 { font-size: 1.125rem; }
.rf-wysiwyg-content h4 { font-size: 1rem; }

.rf-wysiwyg-content ul,
.rf-wysiwyg-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.rf-wysiwyg-content li {
    margin-bottom: 0.5rem;
}

.rf-wysiwyg-content a {
    color: var(--rf-accent-color);
    text-decoration: underline;
    transition: color var(--rf-transition-fast);
}

.rf-wysiwyg-content a:hover {
    color: var(--rf-accent-dark);
}

.rf-wysiwyg-content strong {
    font-weight: 600;
    color: var(--rf-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .rf-collapsible-toggle {
        padding: 1.25rem 0;
    }
    
    .rf-wysiwyg-content {
        padding-bottom: 1.25rem;
        font-size: 0.875rem;
    }
}
