/**
 * Product Card Styles - Modern Store Design
 * Updated for Tippy.js tooltips
 *
 * @package Transtoyou
 */

/* ========================================
   Product Card Base
   ======================================== */
.tty-store-product-card {
    position: relative;
    background: var(--tty-bg-primary);
    overflow: visible; /* Changed from hidden to visible for tooltips */
    transition: var(--store-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 8px;
}

.store-view-list .tty-store-product-card:hover {
    border-color: var(--tty-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Unavailable State */
.tty-store-product-card.tty-unavailable {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Round flag in unavailable badge */
.tty-store-product-badges .tty-store-badge-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 6px;
    opacity: .7;
    cursor: pointer;
}

.tty-unavailable-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tty-badge-flag-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    margin-top: -2px;
    margin-bottom: -2px;
    position: relative;
}

.tty-badge-flag-wrapper img {
    width: auto;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Hide country name in grid view, show in list view */
.store-view-grid .tty-unavailable-country-name {
    display: none;
}

.store-view-list .tty-unavailable-country-name {
    display: inline;
}

.tty-store-product-card:hover .tty-store-badge-unavailable {
    opacity: 1;
}

/* Voor mobile - voorkom dat de badge te breed wordt */
@media (max-width: 480px) {
    .tty-store-product-badges .tty-store-badge-unavailable {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .tty-badge-flag-wrapper {
        width: 16px;
        height: 16px;
    }

    /* Grid overlay: tighter radius */
    .store-view-grid .tty-store-product-card {
        border-radius: 12px;
    }

    .store-view-grid .tty-store-product-image-wrapper {
        border-radius: 12px;
    }

    .store-view-grid .tty-store-product-info {
        padding: 24px 8px 8px 8px;
    }
    
    .store-view-grid .tty-store-product-price,
    .store-view-grid .tty-store-product-price .price,
    .store-view-grid .tty-store-product-price .price .woocommerce-Price-amount {
        font-size: 12px !important;
    }

    .store-view-grid .tty-store-indicator,
    .store-view-grid #tty-products-container .tty-store-indicator {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .store-view-grid #tty-products-container .tty-store-product-info .tty-store-indicator i {
        font-size: 17px;
    }

    .store-view-grid .tty-store-indicator svg {
        width: 10px;
        height: 10px;
    }

    .tty-store-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .tty-store-product-actions {
        top: 6px;
        right: 6px;
    }

    /* List: narrower thumb */
    .store-view-list .tty-store-product-card {
        border-radius: 12px;
    }

    .store-view-list .tty-store-product-image-wrapper {
        width: 90px;
        min-width: 90px;
        border-radius: 12px 0 0 12px;
    }

    .store-view-list .tty-store-product-info {
        padding: 12px 12px 12px 35px;
    }

    .store-view-list .tty-store-product-title a {
        font-size: 18px;
    }

    .store-view-list .tty-store-product-price {
        font-size: 12px;
    }
}

.tty-store-product-card.tty-unavailable .tty-store-product-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* Hover effects */
.tty-store-product-card.tty-unavailable:hover {
    opacity: 0.95;
}

.tty-store-product-card.tty-unavailable:hover .tty-store-product-image-link::after {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0px);
}

/* ========================================
   Product Image - Grid View (Default)
   ======================================== */
.tty-store-product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    background: var(--tty-bg-secondary);
    border-radius: 30px;
}

.tty-store-product-image-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-store-product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.store-view-list .tty-store-product-image-link img {
  border-radius: 30px 0px 0px 30px;
}

.tty-store-product-card:hover .tty-store-product-image-link img {
    transform: scale(1.05);
}

/* ========================================
   Product Badges
   ======================================== */
.store-view-list .tty-store-product-badges {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.store-view-grid .tty-store-product-badges {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.tty-store-badge-sale {
    background: var(--tty-secondary);
    color: white;
}

.tty-store-badge-featured {
    background: rgb(229, 146, 76);
    color: #fff;
}

.tty-store-badge-outstock {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    padding: 2px 7px;
}

/* ========================================
   Quick Actions
   ======================================== */
.tty-store-product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--store-transition);
    z-index: 5;
}

.tty-store-product-card:hover .tty-store-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.tty-store-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--tty-bg-primary);
    border: 1px solid var(--tty-border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--store-transition);
    color: var(--tty-text-primary);
}

.tty-save-toggle-btn.tty-compact, .tty-compare-toggle-btn.tty-compact {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.tty-store-action-btn:hover svg {
    fill: white;
}

.tty-store-action-btn svg {
    width: 25px;
    height: 25px;
}

/* Wishlist & Compare button styling */
.tty-store-wishlist-btn,
.tty-store-compare-btn {
    padding: 0;
}

.tty-store-wishlist-btn > *,
.tty-store-compare-btn > * {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-store-product-actions .transtoyou-wishlist-button,
.tty-store-product-actions .transtoyou-compare-button {
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 15px;
    line-height: 1.5;
    padding: 0px;
    background: transparent;
    margin: 0px;
    border: none;
}

.tty-store-product-actions .transtoyou-wishlist-button span,
.tty-store-product-actions .transtoyou-compare-button span {
    display: none;
}

.tty-store-product-actions .transtoyou-wishlist-button-wrapper {
    padding-right: 0px;
}

/* ========================================
   Product Info
   ======================================== */
.tty-store-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

#tty-products-container .tty-store-indicator {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

#tty-products-container .tty-store-product-info .tty-store-indicator i {
  font-size: 16px;
}

/* Medical Indicators Wrapper with Scroll */
.tty-store-product-indicators-wrapper {
    margin: -48px auto 15px 10px;
    position: relative;
    z-index: 20;
    width: calc(100% - 20px);
    max-width: fit-content;
    overflow: visible;
}

.tty-store-product-indicators {
    display: flex;
    gap: 6px;
    padding: 5px;
    background-color: #ffffff9e;
    border-radius: 20px;
    box-shadow: 0 -5px 10px -5px rgba(0, 0, 0, 0.19);
    scrollbar-color: var(--tty-border-light) transparent;
    flex-wrap: wrap;
    max-height: 115px;
}

.store-view-list .tty-store-product-indicators {
    gap: 10px;
}

/* Custom scrollbar voor webkit browsers */
.tty-store-product-indicators::-webkit-scrollbar {
    height: 4px;
}

.tty-store-product-indicators::-webkit-scrollbar-track {
    background: transparent;
}

.tty-store-product-indicators::-webkit-scrollbar-thumb {
    background: var(--tty-border-light);
    border-radius: 2px;
}

.tty-store-product-indicators::-webkit-scrollbar-thumb:hover {
    background: var(--tty-border-medium);
}

/* Indicator Styling */
.tty-store-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    transition: var(--store-transition);
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.tty-store-product-info .tty-store-indicator i,
.tty-store-filter-option .tty-store-indicator i {
  font-size: 16px;
}

.tty-store-indicator:hover {
    transform: scale(1.1);
    z-index: 1001;
}

/* Indicator Colors */
.tty-store-indicator-prescription {
    background: linear-gradient(135deg, #ee9118, #f1a968);
}

.tty-store-indicator-addictive {
    background: linear-gradient(135deg, #985004, #b86f1f);
}

.tty-store-indicator-id {
    background: linear-gradient(135deg, #0077B6, #0099e0);
}

.tty-store-indicator-video {
    background: linear-gradient(135deg, #5944be, #7059d9);
}

.tty-store-indicator-transform {
    background: var(--tty-bg-linear-graniet, linear-gradient(135deg, #005F5F 0%, #00a896 100%));
}

.tty-store-indicator-in-stock {
    background-color: #22b189;
    color: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
    fill: white;
}

.tty-store-indicator-out-of-stock {
    background-color: #be3227;
    color: white;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

.tty-store-indicator svg {
    width: 25px;
    height: 25px;
    fill: white;
}

/* Transform Features Indicators - Exact colors from theme.css */
/* Nutritional Features - Warm Coral */
.tty-store-transform-feature-meal_replacement,
.tty-store-transform-feature-ready_to_eat,
.tty-store-transform-feature-weight_management,
.tty-store-transform-feature-vegan,
.tty-store-transform-feature-contains_animal_products {
    background-color: #E67E50;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Meal Replacement Drinks - Deep Teal */
.tty-store-transform-feature-high_protein_shake,
.tty-store-transform-feature-keto_meal_shake,
.tty-store-transform-feature-vegan_meal_shake,
.tty-store-transform-feature-low_carb_shake,
.tty-store-transform-feature-nutrient_rich_smoothie {
    background-color: #2C7A7B;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Meal Replacement Bars - Warm Purple */
.tty-store-transform-feature-high_protein_bar,
.tty-store-transform-feature-keto_bar,
.tty-store-transform-feature-vegan_bar,
.tty-store-transform-feature-low_carb_bar,
.tty-store-transform-feature-high_fiber_bar {
    background-color: #8E44AD;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Sugar & Carbohydrates - Modern Blue */
.tty-store-transform-feature-sugar_free,
.tty-store-transform-feature-low_sugar,
.tty-store-transform-feature-no_sugar_added,
.tty-store-transform-feature-low_carb {
    background-color: #3B82C4;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Allergies & Intolerances - Soft Pink */
.tty-store-transform-feature-gluten_free,
.tty-store-transform-feature-lactose_free,
.tty-store-transform-feature-dairy_free,
.tty-store-transform-feature-soy_free,
.tty-store-transform-feature-allergen_free,
.tty-store-transform-feature-nut_free,
.tty-store-transform-feature-egg_free,
.tty-store-transform-feature-fodmap_friendly {
    background-color: #D97A8C;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Diet & Special Needs - Forest Green */
.tty-store-transform-feature-keto_friendly,
.tty-store-transform-feature-paleo_friendly,
.tty-store-transform-feature-whole30_compliant,
.tty-store-transform-feature-raw_food,
.tty-store-transform-feature-diabetic_friendly {
    background-color: #22A068;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Nutrient-Rich Features - Deep Orange */
.tty-store-transform-feature-high_fiber,
.tty-store-transform-feature-high_protein,
.tty-store-transform-feature-high_vitamins,
.tty-store-transform-feature-omega3_enriched,
.tty-store-transform-feature-contains_probiotics,
.tty-store-transform-feature-contains_prebiotics,
.tty-store-transform-feature-low_saturated_fat,
.tty-store-transform-feature-rich_antioxidants,
.tty-store-transform-feature-iron_rich,
.tty-store-transform-feature-calcium_rich,
.tty-store-transform-feature-low_sodium {
    background-color: #EA7B3C;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Certifications & Ethics - Royal Purple */
.tty-store-transform-feature-halal,
.tty-store-transform-feature-kosher,
.tty-store-transform-feature-fair_trade,
.tty-store-transform-feature-ethically_produced {
    background-color: #7C3F9B;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Sustainability & Packaging - Eco Green */
.tty-store-transform-feature-organic,
.tty-store-transform-feature-sustainable_packaging,
.tty-store-transform-feature-biodegradable_packaging,
.tty-store-transform-feature-gmo_free {
    background-color: #27AE60;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Additives & Ingredients - Slate Blue */
.tty-store-transform-feature-no_preservatives,
.tty-store-transform-feature-no_artificial_ingredients {
    background-color: #5A67D8;
    fill: white;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
}

/* Title */
.tty-store-product-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 8px;
}

.tty-store-product-title a {
    color: var(--tty-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--store-transition);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
}

.tty-store-product-title a:hover {
    color: var(--tty-primary);
}

/* Dosage Info */
.tty-store-product-dosage-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--tty-text-secondary);
}

.tty-store-dosage-label {
    font-weight: 500;
    white-space: nowrap;
}

.tty-dosage-more {
    font-weight: 700;
    margin-left: 2px;
}

/* Categories */
.tty-store-product-cats {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 8px;
}

.tty-store-product-cat {
    font-size: 11px;
    color: var(--tty-text-secondary);
    font-weight: 500;
    border-radius: 30px;
    background: rgba(0, 95, 95, 0.08);
    transition: var(--store-transition);
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.tty-store-product-cat:hover {
    color: var(--tty-primary);
}

/* Rating */
.tty-store-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0;
}

.tty-store-product-rating .star-rating {
    font-size: 14px;
}

/* Price & Meta */
.tty-store-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tty-store-container .product .price {
    gap: 10px;
    display: flex !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #515151;
    display: flex !important;
}

.tty-store-product-price del {
    font-size: 14px;
    color: var(--tty-text-secondary);
    font-weight: 400;
    margin-right: 6px;
}

.tty-store-product-price ins {
    text-decoration: none;
    color: var(--tty-secondary);
}

.tty-store-stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background: rgba(34, 177, 137, 0.1);
    color: #22b189;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 16px;
}

/* Cart Button */
.tty-store-product-cart-wrapper {
    display: none;
    margin-top: 12px;
}

.tty-store-product-cart-wrapper .button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--store-transition);
}

.tty-store-product-cart-wrapper .add_to_cart_button {
    background: var(--tty-primary);
    color: white;
    border: none;
}

.tty-store-product-cart-wrapper .add_to_cart_button:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-2px);
}

.tty-store-product-cart-wrapper .tty-store-btn-details {
    background: transparent;
    color: var(--tty-primary);
    border: 2px solid var(--tty-primary);
}

.tty-store-product-cart-wrapper .tty-store-btn-details:hover {
    background: var(--tty-primary);
    color: white;
}

/* ========================================
   List View Specific Styles
   ======================================== */
.store-view-list .tty-store-product-card {
    flex-direction: row;
    height: auto;
    min-height: 220px;
    background: var(--tty-bg-primary);
    border-radius: var(--store-radius);
}

/* List View - Image Section Override */
.store-view-list .tty-store-product-image-wrapper {
    width: 220px;
    height: auto;
    padding-top: 0;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-view-grid .tty-store-product-image-wrapper {
    overflow: hidden;
}

.store-view-list .tty-store-product-image-link {
    position: relative;
    inset: unset;
    width: 100%;
    height: 100%;
}

/* List View - Actions */
.store-view-list .tty-store-product-actions {
    top: 25px;
    right: 12px;
    flex-direction: row;
}

/* List View - Product Info */
.store-view-list .tty-store-product-info {
    padding: 0px 24px;
    justify-content: center;
}

.store-view-list #tty-products-container .tty-store-indicator {
  width: 34px;
  height: 34px;
  min-width: 33px;
}

/* List View - Medical Indicators */
.store-view-list .tty-store-product-indicators-wrapper {
    margin: 0 0 12px 0;
    width: auto;
    max-width: 100%;
    bottom: -4px;
}

.store-view-list .tty-store-product-indicators {
    margin: 0;
    display: inline-flex;
    width: auto;
    box-shadow: none;
    padding: 0px 0px 5px 0px;
}

/* List View - Other Elements */
.store-view-list .tty-store-product-dosage-info {
    font-size: 14px;
}

.woocommerce .store-view-list img, .woocommerce-page .store-view-list img {
    height: auto;
    max-height: 280px;
}

.store-view-list .tty-store-product-cats {
    flex-wrap: wrap;
    overflow: visible;
    margin-bottom: 12px;
}

.store-view-list .tty-store-product-title a {
    -webkit-line-clamp: 3;
    font-size: 20px;
}

.store-view-list .tty-store-product-price {
    font-size: 20px;
}

.store-view-list .tty-store-product-cart-wrapper .button {
    max-width: 200px;
}

/* List View - Hover Effects */
.store-view-list .tty-store-product-card:hover {
    transform: translateY(-2px);
}

.store-view-list .tty-store-product-card:hover .tty-store-product-image-link img {
    transform: scale(1.03);
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 768px) {

    /* ========================================
       Shared Mobile Rules (both views)
       ======================================== */
    .tty-store-product-actions {
        opacity: 1;
        transform: none;
        position: absolute;
        top: 10px;
        right: 10px;
        gap: 10px;
    }


    .tty-store-action-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Disable hover transforms on touch */
    .tty-store-product-card:hover .tty-store-product-image-link img {
        transform: none;
    }

    .store-view-list .tty-store-product-card:hover {
        transform: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    /* ========================================
       Grid View: Overlay Card
       Image fills entire card, info overlays
       at bottom with dark gradient
       ======================================== */
    .store-view-grid .tty-store-product-card {
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 0;
        height: auto;
    }

    .store-view-grid .tty-store-product-image-wrapper {
        border-radius: 16px;
    }

    /* Info becomes absolute overlay with gradient */
    .store-view-grid .tty-store-product-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        padding: 30px 10px 10px 10px;
        background: linear-gradient(to top, rgba(74, 74, 74, 0.72) 0%, rgba(0, 0, 0, 0.14) 60%, transparent 100%);
        padding-bottom: 10px;
    }

    /* Indicators: compact, transparent, no shadow */
    .store-view-grid .tty-store-product-indicators-wrapper {
        margin: 0 0 4px 0;
        width: auto;
    }

    .store-view-grid .tty-store-product-indicators {
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
        max-height: none;
    }

    .store-view-grid .tty-store-indicator svg {
        width: 12px;
        height: 12px;
    }

    /* Title: white, single line */
    .store-view-grid .tty-store-product-title {
        margin-bottom: 2px;
    }

    .store-view-grid .tty-store-product-title a {
        color: white;
        font-size: 24px;
        font-weight: 600;
        -webkit-line-clamp: 1;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
        margin: 5px 0 0;
    }

    .store-view-grid .tty-store-product-title a:hover {
        color: white;
    }

    /* Price: white */
    .store-view-grid .tty-store-product-meta {
        margin-bottom: 0;
    }

    .store-view-grid .tty-store-product-price,
    .store-view-grid .tty-store-product-price .price,
    .store-view-grid .tty-store-product-price .price .woocommerce-Price-amount {
        color: rgba(255,255,255,0.92) !important;
        font-size: 16px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    /* Hidden in grid overlay — no room */
    .store-view-grid .tty-store-product-cats,
    .store-view-grid .tty-store-product-rating {
        display: none;
    }

    /* Actions: frosted glass on image */
    .store-view-grid .tty-store-product-actions {
        z-index: 15;
    }

    .store-view-grid .tty-store-action-btn {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(8px);
        border-color: transparent;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        width: 40px;
        height: 40px;
    }

    /* Unavailable: darker overlay instead of white blur */
    .store-view-grid .tty-store-product-card.tty-unavailable .tty-store-product-image-link::after {
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(1px);
    }

    /* ========================================
       List View: Compact Horizontal Row
       Square thumb left (105px), info right
       ======================================== */
    .store-view-list .tty-store-product-card {
        flex-direction: row;
        min-height: auto;
        height: auto;
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 0;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .store-view-list .tty-store-product-image-wrapper {
        width: 115px;
        min-width: 115px;
        height: auto;
        padding-top: 0;
        aspect-ratio: 1;
        border-radius: 14px 0 0 14px;
        flex-shrink: 0;
        overflow: visible;
    }

    .store-view-list .tty-store-product-image-link {
        position: relative;
        inset: unset;
        width: 100%;
        height: 100%;
    }

    .store-view-list .tty-store-product-info {
        flex: 1;
        padding: 12px 12px 12px 35px;
        justify-content: center;
        min-width: 0;
        padding-bottom: 10px;
    }

    /* Indicators: inline row, small */
    .store-view-list .tty-store-product-indicators-wrapper {
        margin: 0px 0px 10px auto;
        width: auto;
        max-width: 100%;
        position: absolute;
        left: 8px;
        bottom: -4px;
    }

    .store-view-list .tty-store-product-indicators {
        padding: 0;
        gap: 5px;
        background: transparent;
        box-shadow: none;
        flex-wrap: nowrap;
        max-height: none;
    }

    .store-view-list #tty-products-container .tty-store-indicator,
    .store-view-list .tty-store-indicator {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .store-view-list #tty-products-container .tty-store-product-info .tty-store-indicator i {
        font-size: 13px;
    }

    .store-view-list .tty-store-indicator svg {
        width: 12px;
        height: 12px;
    }

    /* Title: compact */
    .store-view-list .tty-store-product-title {
        margin-bottom: 3px;
    }

    .store-view-list .tty-store-product-title a {
        font-size: 18px;
        -webkit-line-clamp: 2;
        margin-bottom: 4px;
    }

    /* Price: compact */
    .store-view-list .tty-store-product-price {
        font-size: 13px;
    }

    .store-view-list .tty-store-product-meta {
        margin-bottom: 0;
    }

    /* Category: only first pill, small */
    .store-view-list .tty-store-product-cats {
        margin-bottom: 3px;
    }

    .store-view-list .tty-store-product-cat {
        font-size: 10px;
        padding: 1px 7px;
    }

    .store-view-list .tty-store-product-cat:nth-child(n+2) {
        display: none;
    }

    /* Hidden in mobile list — too cramped */
    .store-view-list .tty-store-product-rating,
    .store-view-list .tty-store-product-dosage-info {
        display: none !important;
    }

    /* Actions: top-right corner of row */
    .store-view-list .tty-store-product-actions {
        top: 0px;
        right: -19px;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        display: flex;
        height: 100%;
    }

    /* Badges: smaller in list */
    .store-view-list .tty-store-product-badges {
        top: auto;
        left: 120%;
        margin-left: 10px;
    }
}

/* ========================================
   Dark Theme Support
   ======================================== */
[data-theme="dark"] .tty-store-product-indicators {
    background: var(--tty-bg-secondary);
}

[data-theme="dark"] .tty-store-product-card:hover {
    border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-store-product-image-wrapper {
    background: var(--tty-bg-tertiary);
}

[data-theme="dark"] .tty-store-action-btn {
    background: var(--tty-bg-tertiary);
    border-color: var(--tty-border-medium);
}

[data-theme="dark"] .tty-store-action-btn:hover {
    background: var(--tty-primary);
    border-color: var(--tty-primary);
}

[data-theme="dark"] .tty-store-product-title a {
    color: var(--tty-text-primary);
}

[data-theme="dark"] .tty-store-product-price {
    color: var(--tty-text-primary);
}

/* Fix for tooltip positioning in grid */
.tty-store-products-grid {
    position: relative;
}

/* Ensure tooltips show above everything */
.tty-store-product-card {
    isolation: isolate;
}

/* ========================================
   Tippy.js Specific Styles for Store
   ======================================== */
/* Store-specific tooltip overrides */
.tty-store-indicator[data-tooltip],
.tty-store-action-btn[data-tooltip] {
    position: relative;
}

/* Ensure tooltips work properly in scrollable indicators */
.tty-store-product-indicators {
    position: relative;
}

/* Product card specific tooltip adjustments */
.tty-store-products-grid .tippy-box {
    z-index: 10000;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tty-store-product-card .tippy-box {
        font-size: 12px;
        max-width: 200px;
    }
}