/* IASCOM Dynamic Filters - Frontend Styles */

:root {
    --iascom-primary: #d32f2f;
    --iascom-primary-dark: #b71c1c;
    --iascom-hover: #e53935;
    --iascom-border: #ddd;
    --iascom-bg: #f5f5f5;
    --iascom-text: #333;
    --iascom-text-secondary: #666;
    --iascom-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --iascom-radius: 8px;
    --iascom-transition: all 0.2s ease;
}

/* Main Container */
.iascom-df-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1; /* Low z-index so header dropdown menus appear above */
}

/* Category Tabs - Equal width, full row */
.iascom-df-category-tabs {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: var(--iascom-radius);
    overflow: visible; /* Changed from hidden to allow dropdowns */
    position: relative;
    z-index: 1; /* Low z-index */
}

.category-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    background: #fff;
    border-bottom: 1px solid var(--iascom-border);
    width: 100%;
}

.category-tab {
    flex: 1; /* Equal width - share space equally */
    padding: 12px 10px;
    background: #fff;
    border: none;
    border-right: 1px solid var(--iascom-border);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: var(--iascom-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--iascom-transition);
    white-space: nowrap;
    line-height: 1.4;
    text-align: center;
}

.category-tab:first-child {
    border-top-left-radius: 8px;
}

.category-tab:last-child {
    border-right: none;
    border-top-right-radius: 8px;
}

.category-tab:hover {
    background: #fafafa;
    color: var(--iascom-primary);
}

.category-tab.active {
    background: var(--iascom-primary);
    color: #fff;
}

.category-tab .dashicons {
    display: none;
}

/* Main Layout */
.iascom-df-main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar - Collapsed style like current site */
.iascom-df-sidebar {
    background: #f4f5f7;
    border: 1px solid var(--iascom-border);
    border-radius: var(--iascom-radius);
    padding: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--iascom-border);
    background: #f4f5f7;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--iascom-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--iascom-border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: var(--iascom-text-secondary);
    text-transform: uppercase;
    transition: var(--iascom-transition);
}

.clear-filters:hover {
    background: var(--iascom-primary);
    border-color: var(--iascom-primary);
    color: #fff;
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--iascom-border);
    background: #fff;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid var(--iascom-border);
    border-radius: 3px;
    font-size: 12px;
    color: var(--iascom-text);
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    color: var(--iascom-text-secondary);
    font-weight: bold;
}

.active-filter-tag .remove-filter:hover {
    color: var(--iascom-primary);
}

/* Filter Groups - Collapsed style */
.sidebar-filters {
    padding: 0;
}

.filter-group {
    border-bottom: 1px solid var(--iascom-border);
}

.filter-group:last-child {
    border-bottom: none;
}

/* Subcategories filter - highlighted */
.filter-group[data-attribute="product_cat"] .filter-title {
    background: #f9f9f9;
    font-weight: 700;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--iascom-text);
    transition: var(--iascom-transition);
    user-select: none;
}

.filter-title:hover {
    background: #fafafa;
}

.filter-title .filter-toggle {
    font-size: 16px;
    color: var(--iascom-text-secondary);
    transition: transform 0.2s ease;
}

.filter-group.collapsed .filter-toggle {
    transform: rotate(-90deg);
}

.filter-options {
    padding: 10px 15px;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
}

.filter-group.collapsed .filter-options {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
}

.filter-option:hover .option-label {
    color: var(--iascom-primary);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.filter-option .option-label {
    flex: 1;
    font-size: 13px;
    color: var(--iascom-text);
    transition: var(--iascom-transition);
}

.filter-option .option-count {
    font-size: 12px;
    color: var(--iascom-text-secondary);
}

/* Products Section */
.iascom-df-products {
    background: transparent;
    padding: 0;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: var(--iascom-radius);
    position: relative;
    z-index: 50;
}

.toolbar-results .results-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--iascom-text);
}

.products-sorting {
    padding: 6px 12px;
    border: 1px solid var(--iascom-border);
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: var(--iascom-text);
}

.products-sorting:focus {
    outline: none;
    border-color: var(--iascom-primary);
}

/* Per Page Selector */
.toolbar-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.per-page-label {
    font-size: 13px;
    color: var(--iascom-text-secondary);
}

.per-page-options {
    display: flex;
    gap: 4px;
}

.per-page-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--iascom-text);
    transition: var(--iascom-transition);
    min-width: 36px;
    text-align: center;
}

.per-page-btn:hover {
    border-color: var(--iascom-primary);
    color: var(--iascom-primary);
}

.per-page-btn.active {
    background: var(--iascom-primary);
    border-color: var(--iascom-primary);
    color: #fff;
}

/* Products Grid - 4 columns like current site */
.products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    min-height: 400px;
}

/* Product Card - Matching current design */
.product-card {
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: var(--iascom-radius);
    overflow: hidden;
    transition: var(--iascom-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--iascom-border);
}

.product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Sale Badge - Red like current site */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--iascom-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 8px 10px;
    text-align: center;
    background: #f4f5f7; /* Light gray background */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

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

.product-description {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #666;
    text-align: center;
}

.product-price {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Price range (variable products with min-max price) - smaller to fit on one line */
.product-price.price-range {
    font-size: 13px;
    font-weight: 600;
}

.product-price.price-range .woocommerce-price-suffix {
    font-size: 11px;
    font-weight: 400;
}

/* Variable product price range - smaller font to fit on one line */
.product-price .woocommerce-Price-amount {
    font-size: inherit;
}

/* When there's a price range (del + ins for sale, or min-max for variable) */
.product-price del {
    margin-right: 4px;
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.product-price ins {
    text-decoration: none;
    color: var(--iascom-primary);
}

/* Variable products with price range - make everything smaller */
.product-price > span:not(.woocommerce-Price-currencySymbol),
.product-price .price {
    white-space: nowrap;
}

/* Target price ranges specifically - WooCommerce outputs them in specific format */
.product-price:has(span.woocommerce-Price-amount + span.woocommerce-Price-amount),
.product-price:has(.amount + .amount) {
    font-size: 13px;
}

/* FPA suffix styling - ensure it stays on same line */
.product-price .woocommerce-price-suffix {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

/* Guest user - no price visible */
.product-price.guest-price {
    margin-bottom: 15px;
}

.product-price .login-to-see-price {
    display: inline-block;
    padding: 10px 20px;
    background: var(--iascom-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-price .login-to-see-price:hover {
    background: var(--iascom-primary-dark);
    color: #fff;
}

/* Product SKU - above title */
.product-sku {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 2px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: auto; /* Push to bottom */
}

/* Quantity Wrapper */
.quantity-wrapper {
    display: none; /* Old style - hidden */
}

/* NEW: Inline Cart Row */
.cart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Quantity Spinner */
.qty-spinner {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    background: #fff;
}

.qty-spinner .qty-input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    -moz-appearance: textfield;
    background: #fff;
}

.qty-spinner .qty-input::-webkit-outer-spin-button,
.qty-spinner .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-spinner .qty-input:focus {
    outline: none;
}

.qty-arrows {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.qty-arrow {
    width: 24px;
    height: 18px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.qty-arrow:hover {
    background: #e0e0e0;
    color: #333;
}

.qty-arrow.qty-up {
    border-bottom: 1px solid #ddd;
}

/* Add to Cart Button - Inline */
.cart-row .add-to-cart-btn {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 0 15px;
    background: #5a5a5a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: var(--iascom-transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
}

.add-to-cart-btn:hover {
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

.add-to-cart-btn.queued {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
    background: #888;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-btn.added {
    background: #4caf50;
}

/* Hide the "View Cart" link that appears after adding to cart */
.iascom-df-container .added_to_cart,
.iascom-df-container a.added_to_cart,
.iascom-df-container .wc-forward {
    display: none !important;
}

/* Variable Product Button */
.variable-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 15px;
    background: #d32f2f;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--iascom-transition);
    border: none;
    cursor: pointer;
    height: 38px;
    line-height: 1;
    box-sizing: border-box;
}

.variable-product-btn:hover {
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
}

.product-details-btn {
    flex: 1;
    padding: 10px 15px;
    background: #5a5a5a;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--iascom-transition);
    display: inline-block;
}

.product-details-btn:hover {
    background: #404040;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--iascom-border);
}

.pagination-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--iascom-text);
    transition: var(--iascom-transition);
    min-width: 36px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--iascom-primary);
    border-color: var(--iascom-primary);
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--iascom-primary);
    border-color: var(--iascom-primary);
    color: #fff;
}

.pagination-dots {
    padding: 0 4px;
    color: var(--iascom-text-secondary);
}

/* Loading States */
.products-loading,
.filters-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-skeleton {
    width: 100%;
}

.product-skeleton {
    background: #fff;
    border: 1px solid var(--iascom-border);
    border-radius: var(--iascom-radius);
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.skeleton-line {
    height: 30px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 10px;
}

.skeleton-image {
    padding-top: 100%;
    background: #f0f0f0;
}

.skeleton-title,
.skeleton-price {
    height: 16px;
    background: #f0f0f0;
    margin: 12px 15px;
    border-radius: 3px;
}

.skeleton-price {
    width: 60%;
}

/* Empty State */
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.products-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
}

.products-empty p {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--iascom-text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .iascom-df-main {
        grid-template-columns: 1fr;
    }
    
    .iascom-df-sidebar {
        order: 2;
    }
    
    .iascom-df-products {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Mobile: Tabs wrap but maintain equal width per row */
    .category-tabs-wrapper {
        flex-wrap: wrap;
    }
    
    .category-tab {
        flex: 1 1 auto; /* Equal width, can wrap */
        min-width: 25%; /* At least 4 per row, or wrap */
        padding: 10px 8px;
        font-size: 10px;
        border-bottom: 1px solid var(--iascom-border);
    }
    
    .category-tab:first-child {
        border-top-left-radius: 0;
    }
    
    .category-tab:last-child {
        border-top-right-radius: 0;
    }
    
    .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .products-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    /* Mobile: smaller buttons */
    .add-to-cart-btn {
        font-size: 12px;
        padding: 10px 12px;
        height: auto;
        min-height: 40px;
    }
    
    .quantity-wrapper {
        height: auto;
        min-height: 40px;
    }
    
    .qty-btn {
        width: 36px;
        height: 36px;
    }
    
    .quantity-controls .qty-input {
        height: 36px;
    }
    
    /* ===== MOBILE FILTER SLIDE-IN ===== */
    
    /* Show mobile filter button */
    .mobile-filter-btn {
        display: flex !important;
    }
    
    /* Mobile filter overlay */
    .mobile-filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-filter-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Sidebar as slide-in panel */
    .iascom-df-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        padding: 0;
    }
    
    .iascom-df-sidebar.active {
        right: 0;
    }
    
    .iascom-df-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 15px 20px;
        border-bottom: 2px solid var(--iascom-primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
    }
    
    .iascom-df-sidebar .sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
    }
    
    /* Show close button on mobile */
    .mobile-filter-close {
        display: flex !important;
    }
    
    .iascom-df-sidebar #sidebar-filters {
        padding: 15px 20px;
        padding-bottom: 100px; /* Space for fixed footer */
    }
    
    /* Show sidebar footer on mobile */
    .sidebar-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        padding: 15px 20px;
        background: #fff;
        border-top: 1px solid var(--iascom-border);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .iascom-df-sidebar.active .sidebar-footer {
        transform: translateX(0);
    }
    
    .mobile-apply-filters {
        width: 100%;
        padding: 14px 20px;
        background: var(--iascom-primary);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    
    .mobile-apply-filters:hover,
    .mobile-apply-filters:active {
        background: var(--iascom-primary-dark);
    }
    
    /* Hide sidebar from normal flow */
    .iascom-df-main {
        display: block;
    }
    
    .iascom-df-products {
        width: 100%;
    }
}

/* Mobile filter button - hidden on desktop */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--iascom-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
    position: relative;
    z-index: 999;
}

.mobile-filter-btn:hover,
.mobile-filter-btn:active {
    background: var(--iascom-primary-dark);
}

.mobile-filter-btn svg {
    flex-shrink: 0;
    pointer-events: none;
}

.mobile-filter-btn span {
    pointer-events: none;
}

/* Mobile filter close button - hidden on desktop */
.mobile-filter-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-filter-close:hover,
.mobile-filter-close:active {
    background: #e0e0e0;
}

/* Sidebar footer - hidden on desktop */
.sidebar-footer {
    display: none;
}

/* Mobile filter overlay - hidden on desktop */
.mobile-filter-overlay {
    display: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 480px) {
    .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .iascom-df-main {
        gap: 15px;
    }
    
    /* Tabs already use clamp() for responsive sizing */
}

/* Utility Classes */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: var(--iascom-transition);
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.products-loading-more {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--iascom-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progressive Loading - Price Placeholder */
.price-loading {
    min-height: 24px;
}

.price-placeholder {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
}

.price-error {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.actions-placeholder {
    display: block;
    height: 38px;
}

/* Smooth transition when price loads */
.product-price {
    transition: opacity 0.3s ease;
}

.product-price[data-price-loaded="true"] {
    opacity: 1;
}
