/**
 * Configurator Frontend Styles
 * v0.1.80 FIX - Lock controls after product selection
 */

/* Main Container */
/* v0.5.15 UPDATE - Use 100% page width with 5px margins */
.col323-configurator-container {
    max-width: 100%;
    margin: 0 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.col323-configurator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.configurator-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.configurator-description {
    margin: 5px 0 0;
    color: #666;
}

.configurator-total {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-label {
    font-weight: 600;
    font-size: 16px;
}

.total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

/* Main Layout */
.col323-configurator-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Sidebar */
.configurator-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.configurator-sidebar h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: #f5f5f5;
}

.category-item.active {
    background: #2c3e50;
    color: #fff;
}

.category-icon {
    font-size: 20px;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.required-badge {
    color: #e74c3c;
    font-weight: 700;
}

.selection-status .dashicons {
    color: #27ae60;
    font-size: 20px;
}

/* Content Area */
/* v0.5.44 FIX - Add width and min-width to prevent collapse */
.configurator-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 500px;
    width: 100%;
    min-width: 0; /* Allow grid child to shrink properly */
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.category-search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 250px;
}

/* Product Grid */
/* v0.5.16 UPDATE - Support configurable columns and rows */
/* v0.5.44 FIX - Add explicit width to prevent subcategory grid collapse on first load */
/* v0.5.44 FIX - Switch to block display when containing subcategory grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0; /* Allow grid to shrink properly */
}

/* When product-grid contains subcategory-grid, use block display instead */
.product-grid:has(.subcategory-grid) {
    display: block;
}

/* v0.5.16 ADD START - Dynamic product grid layouts (1-10 columns) */
/* v0.5.25 FIX - Added !important to override auto-fill base grid */
.product-grid[data-grid-columns="1"] { grid-template-columns: repeat(1, 1fr) !important; }
.product-grid[data-grid-columns="2"] { grid-template-columns: repeat(2, 1fr) !important; }
.product-grid[data-grid-columns="3"] { grid-template-columns: repeat(3, 1fr) !important; }
.product-grid[data-grid-columns="4"] { grid-template-columns: repeat(4, 1fr) !important; }
.product-grid[data-grid-columns="5"] { grid-template-columns: repeat(5, 1fr) !important; }
.product-grid[data-grid-columns="6"] { grid-template-columns: repeat(6, 1fr) !important; }
.product-grid[data-grid-columns="7"] { grid-template-columns: repeat(7, 1fr) !important; }
.product-grid[data-grid-columns="8"] { grid-template-columns: repeat(8, 1fr) !important; }
.product-grid[data-grid-columns="9"] { grid-template-columns: repeat(9, 1fr) !important; }
.product-grid[data-grid-columns="10"] { grid-template-columns: repeat(10, 1fr) !important; }

/* Dynamic product grid rows (1-10 rows) */
/* v0.5.25 FIX - Added !important for consistency */
/* v0.5.33 FIX - Changed from 1fr to auto to eliminate blank space when fewer products */
.product-grid[data-grid-rows="1"] { grid-template-rows: repeat(1, auto) !important; }
.product-grid[data-grid-rows="2"] { grid-template-rows: repeat(2, auto) !important; }
.product-grid[data-grid-rows="3"] { grid-template-rows: repeat(3, auto) !important; }
.product-grid[data-grid-rows="4"] { grid-template-rows: repeat(4, auto) !important; }
.product-grid[data-grid-rows="5"] { grid-template-rows: repeat(5, auto) !important; }
.product-grid[data-grid-rows="6"] { grid-template-rows: repeat(6, auto) !important; }
.product-grid[data-grid-rows="7"] { grid-template-rows: repeat(7, auto) !important; }
.product-grid[data-grid-rows="8"] { grid-template-rows: repeat(8, auto) !important; }
.product-grid[data-grid-rows="9"] { grid-template-rows: repeat(9, auto) !important; }
.product-grid[data-grid-rows="10"] { grid-template-rows: repeat(10, auto) !important; }
/* v0.5.16 ADD END */

/* v0.3.14 FIX - Use flexbox for consistent card height and button alignment */
.product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.product-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card.selected {
    border-color: #27ae60;
    background: #ecf9f2;
}

.product-card.featured {
    border-color: #f39c12;
}

/* v0.5.17 ADD START - Variable product layout: 60% image / 40% attributes side-by-side */
/* v0.5.20 FIX - Use CSS Grid to properly layout image and info+actions side-by-side */
/* v0.5.30 FIX - Use fr units instead of percentages to prevent overflow with gap */
/* v0.5.31 FIX - Scope to configurator only to prevent breaking WooCommerce category pages */
.col323-configurator-container .product-card[data-product-type="variable"] {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: start;
}

.col323-configurator-container .product-card[data-product-type="variable"] .product-image-wrapper {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: auto;
    min-height: 300px;
    margin-bottom: 0;
}

/* v0.5.18 ADD - Make variable product images fill 100% width */
.col323-configurator-container .product-card[data-product-type="variable"] .product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.col323-configurator-container .product-card[data-product-type="variable"] .product-info {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
}

.col323-configurator-container .product-card[data-product-type="variable"] .product-actions {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .col323-configurator-container .product-card[data-product-type="variable"] {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .col323-configurator-container .product-card[data-product-type="variable"] .product-image-wrapper {
        grid-column: 1;
        grid-row: 1;
    }

    .col323-configurator-container .product-card[data-product-type="variable"] .product-info {
        grid-column: 1;
        grid-row: 2;
    }

    .col323-configurator-container .product-card[data-product-type="variable"] .product-actions {
        grid-column: 1;
        grid-row: 3;
    }
}
/* v0.5.17 ADD END */

/* v0.3.14 FIX - Image sizing within fixed-height wrapper */
.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* v0.3.14 ADD - Product info wrapper for flex layout */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
    min-height: 40px;
}

/* v0.5.21 ADD START - Product description for variable products */
/* v0.5.22 UPDATE - Changed to H4, added font-weight normal */
/* v0.5.31 FIX - Scope to configurator only */
.col323-configurator-container .product-card[data-product-type="variable"] .product-description {
    font-size: 14px;
    font-weight: normal;
    color: #555;
    line-height: 1.5;
    margin: 10px 0 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* v0.5.21 ADD - Select button at top for variable products */
/* v0.5.31 FIX - Scope to configurator only */
.col323-configurator-container .product-card[data-product-type="variable"] .product-select-btn-top {
    margin: 15px 0 20px 0;
    padding: 12px 20px;
    font-size: 18px;
}
/* v0.5.21 ADD END */

.product-sku {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.product-stock {
    font-size: 12px;
    margin-bottom: 10px;
}

/* v0.3.14 ADD - Product actions wrapper to push buttons to bottom */
.product-actions {
    margin-top: auto;
    padding-top: 10px;
}

.product-stock.in-stock {
    color: #27ae60;
}

.product-stock.out-of-stock {
    color: #e74c3c;
}

.product-select-btn {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px; /* v0.5.21 ADD - Increased font size */
    cursor: pointer;
    transition: background 0.2s;
}

.product-select-btn:hover {
    background: #2980b9;
}

/* v0.1.73 ADD - Disabled button state */
.product-select-btn:disabled,
.product-select-btn.disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-select-btn:disabled:hover,
.product-select-btn.disabled:hover {
    background: #bdc3c7;
}

.product-card.selected .product-select-btn {
    background: #27ae60;
}

/* Summary Panel */
.configurator-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.configurator-summary h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
}

.summary-items {
    margin-bottom: 20px;
    min-height: 100px;
}

/* v0.3.17 ADD - Category grouping in summary */
.summary-category-group {
    margin-bottom: 20px;
}

.summary-category-header {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    padding: 10px 12px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-summary {
    color: #999;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.summary-item-info {
    flex: 1;
}

/* v0.3.17 REMOVED - Category now shown as group header instead of per-item
.summary-item-category {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
*/

.summary-item-name {
    font-weight: 600;
    margin: 3px 0;
}

.summary-item-price {
    font-weight: 700;
    color: #2c3e50;
}

.summary-item-remove {
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
}

.summary-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-row.grand-total {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
}

.summary-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.summary-actions .button {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.save-config-btn {
    background: #95a5a6;
    color: #fff;
}

.add-to-cart-btn {
    background: #27ae60;
    color: #fff;
}

.add-to-cart-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Messages */
/* v0.5.15 UPDATE - Match container width styling */
.col323-configurator-messages {
    max-width: 100%;
    margin: 0 5px;
}

.configurator-notice {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.configurator-notice.notice-info {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
}

.configurator-notice.notice-warning {
    background: #fff3cd;
    border-left: 4px solid #856404;
}

.configurator-notice.notice-error {
    background: #f8d7da;
    border-left: 4px solid #721c24;
}

.message-text {
    margin: 0;
}

/* Loading State */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .col323-configurator-main {
        grid-template-columns: 1fr;
    }

    .configurator-sidebar {
        position: relative;
        top: 0;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .col323-configurator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Error State */
.col323-configurator-error,
.col323-configurator-notice {
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    margin: 20px 0;
}

.col323-configurator-error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

/* v0.1.68 ADD START - Variable product variation selectors */
.product-variations {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

/* v0.1.69 ADD - Visible notice message for variations */
.variation-notice {
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-left: 3px solid #1976d2;
    border-radius: 3px;
}

.variation-notice.error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #c62828;
}

.variation-selector {
    margin-bottom: 8px;
}

.variation-selector label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.variation-attribute {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.variation-attribute:focus {
    outline: none;
    border-color: #2c3e50;
}

.variation-attribute:focus:disabled {
    border-color: #e0e0e0;
}

/* v0.1.74 ADD - Disabled variation selector state */
/* v0.1.80 ADD - Enhanced disabled styling for all controls */
.variation-attribute:disabled {
    background: #f5f5f5;
    color: #7f8c8d;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* v0.2.1 FIX - Disabled state for quantity inputs with stronger overrides */
/* v0.3.15 USED - Also applies when product is selected in configuration */
.col323-configurator-container .product-card .product-quantity .product-quantity-input:disabled {
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* v0.1.80 ADD - Disabled state for per-attribute checkboxes */
.attr-value-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.attr-value-checkbox:disabled + .attr-value-name {
    color: #999;
}
/* v0.1.80 ADD END */

.summary-item-variation {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.variation-attr {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 3px;
}
/* v0.1.68 ADD END */

/* v0.1.75 ADD START - Product quantity input */
.product-quantity {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-quantity label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

/* v0.2.2 FIX - Restore spinner arrows, keep visibility fixes */
.col323-configurator-container .product-card .product-quantity .product-quantity-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 32px !important;
    padding: 4px 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.col323-configurator-container .product-card .product-quantity .product-quantity-input:focus {
    outline: none !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 1px #2c3e50 !important;
}

.col323-configurator-container .product-card .product-quantity .product-quantity-input:focus:disabled {
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

.summary-item-quantity {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: 600;
}
/* v0.1.75 ADD END */

/* v0.1.77 ADD START - Per-attribute quantity mode styles */
.qty-per-attr-mode {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.attr-values-group {
    margin-bottom: 10px;
}

.attr-group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.attr-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.attr-value-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    min-width: 150px;
}

.attr-value-checkbox {
    margin: 0;
    cursor: pointer;
}

.attr-value-name {
    font-size: 13px;
}

/* v0.2.2 FIX - Restore spinner arrows, keep visibility fixes */
.col323-configurator-container .product-card .attr-value-item .attr-value-qty {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 32px !important;
    padding: 4px 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.col323-configurator-container .product-card .attr-value-item .attr-value-qty:disabled {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    border-color: #e0e0e0 !important;
}

.col323-configurator-container .product-card .attr-value-item .attr-value-qty:focus {
    outline: none !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 1px #2c3e50 !important;
}

.col323-configurator-container .product-card .attr-value-item .attr-value-qty:focus:disabled {
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}
/* v0.1.77 ADD END */

/* v0.1.78 ADD START - Expandable Product Cards */
/* Overlay for expanded product */
.configurator-product-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.configurator-product-overlay.active {
    display: block;
    opacity: 1;
}

/* Expanded product card state */
.product-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    animation: expandProduct 0.3s ease;
    padding: 30px;
}

@keyframes expandProduct {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Expanded product layout */
.product-card.expanded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

/* Expanded product image */
.product-card.expanded .product-image {
    height: auto;
    min-height: 400px;
    grid-column: 1;
}

.product-card.expanded .product-image img {
    object-fit: contain;
    height: 100%;
}

/* Expanded product info area */
.product-card.expanded .product-info {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card.expanded .product-name {
    font-size: 28px;
    min-height: auto;
}

.product-card.expanded .product-price {
    font-size: 32px;
}

/* Product description in expanded view */
.product-description {
    display: none;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-top: 10px;
}

.product-card.expanded .product-description {
    display: block;
}

/* Product attributes list in expanded view */
.product-attributes {
    display: none;
    margin-top: 15px;
}

.product-card.expanded .product-attributes {
    display: block;
}

.product-attributes h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-attributes li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-attributes li strong {
    display: inline-block;
    min-width: 120px;
    color: #666;
}

/* Product image gallery in expanded view */
.product-gallery {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.product-card.expanded .product-gallery {
    display: grid;
    grid-column: 1 / -1;
}

.product-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-gallery img:hover {
    border-color: #3498db;
}

/* Product selection area in expanded view */
.product-card.expanded .product-selection {
    grid-column: 2;
    margin-top: auto;
}

/* Variations in expanded view */
.product-card.expanded .product-variations {
    border-top: none;
    padding: 0;
    margin: 15px 0;
}

/* Close button for expanded view */
.product-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s;
}

.product-card.expanded .product-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-close:hover {
    background: #000;
}

/* Click indicator */
.product-card:not(.expanded):not(.selected) {
    position: relative;
}

/* v0.1.79 FIX - Move to top for better visibility */
.product-card:not(.expanded):not(.selected)::after {
    content: '🔍 Click to expand';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(52, 152, 219, 0.95);
    color: #fff;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 10;
}

.product-card:not(.expanded):not(.selected):hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent body scroll when product is expanded */
body.configurator-product-expanded {
    overflow: hidden;
}

/* Responsive expanded view */
@media (max-width: 768px) {
    .product-card.expanded {
        width: 95%;
        max-height: 95vh;
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .product-card.expanded .product-image {
        min-height: 250px;
        grid-column: 1;
    }

    .product-card.expanded .product-info,
    .product-card.expanded .product-selection {
        grid-column: 1;
    }

    .product-card.expanded .product-name {
        font-size: 22px;
    }

    .product-card.expanded .product-price {
        font-size: 24px;
    }
}
/* v0.1.78 ADD END */

/* v0.1.97 ADD START - Product Gallery Lightbox */
/* Product image wrapper with gallery indicator */
/* v0.3.14 FIX - Fixed height for image container to prevent misalignment */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* Make product images clickable when they have data-product-id */
.product-image[data-product-id] {
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-image[data-product-id]:hover {
    opacity: 0.85;
}

/* Gallery indicator badge */
.gallery-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-indicator .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.gallery-count {
    line-height: 1;
}

/* Lightbox overlay */
.gallery-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-overlay.active {
    display: block;
    opacity: 1;
}

/* Lightbox modal */
.gallery-lightbox-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.active {
    display: block;
    opacity: 1;
}

/* Main image container */
/* v0.1.98 FIX - Ensure images always fit screen properly */
.gallery-image-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    width: 100%;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Close button */
.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.gallery-close:hover {
    background: #fff;
}

/* Navigation buttons */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    z-index: 100000;
}

.gallery-prev {
    left: -60px;
}

.gallery-next {
    right: -60px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #fff;
}

/* Thumbnails */
.gallery-thumbnails {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: #3498db;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: #fff;
}

/* Counter */
.gallery-counter {
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Prevent body scroll when lightbox is open */
body.gallery-lightbox-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-prev {
        left: -10px;
    }

    .gallery-next {
        right: -10px;
    }

    .gallery-close {
        top: -45px;
        right: -10px;
    }
}

@media (max-width: 768px) {
    .gallery-lightbox-modal {
        width: 95%;
        max-height: 85vh;
    }

    /* v0.1.98 FIX - Ensure full images fit on mobile screens */
    .gallery-image-container {
        max-height: 60vh;
        width: 100%;
    }

    .gallery-main-image {
        max-width: 100%;
        max-height: 60vh;
        width: auto;
        height: auto;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 36px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .gallery-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }

    .gallery-indicator {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 11px;
    }
}
/* v0.1.97 ADD END */

/* v0.2.3 ADD START - Product filtering styles */
.product-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.filter-clear-btn {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-clear-btn:hover {
    background: #fff;
    border-color: #999;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.filter-product-cat,
.filter-taxonomy {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-product-cat:hover,
.filter-taxonomy:hover {
    border-color: #999;
}

.filter-product-cat:focus,
.filter-taxonomy:focus {
    outline: none;
    border-color: #0071a1;
    box-shadow: 0 0 0 1px #0071a1;
}

/* v0.3.7 ADD START - Locked filter styles */
.filter-taxonomy.locked-filter {
    background: #f0f0f0;
    border-color: #d63638;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

.filter-taxonomy.locked-filter:hover {
    border-color: #d63638;
}

.filter-taxonomy.locked-filter:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}
/* v0.3.7 ADD END */

/* v0.3.2 ADD START - Active filter badges */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.active-filters:empty {
    display: none;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0071a1;
    color: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-badge:hover {
    background: #005177;
}

.filter-badge-label {
    font-size: 11px;
    opacity: 0.9;
    margin-right: 2px;
}

.filter-badge-value {
    font-weight: 600;
}

.filter-badge-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
    font-weight: bold;
}

.filter-badge-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.filter-badge-remove:active {
    transform: scale(0.95);
}
/* v0.3.2 ADD END */

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-clear-btn {
        width: 100%;
    }
}
/* v0.2.3 ADD END */

/* v0.4.0 ADD - Sub-category grid styles */
/* v0.5.1 UPDATE - Dynamic grid layout based on data attributes */
/* v0.5.3 UPDATE - Fill 100% of viewport with dynamic rows based on data attributes */
/* v0.5.5 FIX - Properly fill remaining viewport width (right of sidebar menu) */
/* v0.5.37 FIX - Remove viewport calculations to prevent horizontal overflow */
/* v0.5.42 FIX - Restore proper grid sizing with minmax for row heights */
/* v0.5.43 FIX - Add min-height to grid to fix first-load rendering issue */
/* v0.5.44 FIX - Force grid to break out of parent grid constraints */
.subcategory-grid {
    display: grid !important;
    gap: 20px;
    padding: 0;
    /* Default: 3 columns × 2 rows */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(400px, 1fr));
    min-height: 820px; /* 2 rows × 400px + 1 gap × 20px */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    grid-column: 1 / -1; /* Span all columns of parent grid if nested */
}

/* v0.5.1 ADD START - Dynamic column layouts (1-10 columns) */
.subcategory-grid[data-grid-columns="1"] { grid-template-columns: repeat(1, 1fr); }
.subcategory-grid[data-grid-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.subcategory-grid[data-grid-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.subcategory-grid[data-grid-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.subcategory-grid[data-grid-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.subcategory-grid[data-grid-columns="6"] { grid-template-columns: repeat(6, 1fr); }
.subcategory-grid[data-grid-columns="7"] { grid-template-columns: repeat(7, 1fr); }
.subcategory-grid[data-grid-columns="8"] { grid-template-columns: repeat(8, 1fr); }
.subcategory-grid[data-grid-columns="9"] { grid-template-columns: repeat(9, 1fr); }
.subcategory-grid[data-grid-columns="10"] { grid-template-columns: repeat(10, 1fr); }
/* v0.5.1 ADD END */

/* v0.5.3 ADD START - Dynamic row layouts (1-10 rows) */
/* v0.5.37 FIX - Use auto instead of 1fr to prevent overflow */
/* v0.5.42 FIX - Use minmax for proper card heights */
/* v0.5.43 FIX - Add min-height for each row configuration */
.subcategory-grid[data-grid-rows="1"] { grid-template-rows: repeat(1, minmax(400px, 1fr)); min-height: 400px; }
.subcategory-grid[data-grid-rows="2"] { grid-template-rows: repeat(2, minmax(400px, 1fr)); min-height: 820px; }
.subcategory-grid[data-grid-rows="3"] { grid-template-rows: repeat(3, minmax(400px, 1fr)); min-height: 1240px; }
.subcategory-grid[data-grid-rows="4"] { grid-template-rows: repeat(4, minmax(400px, 1fr)); min-height: 1660px; }
.subcategory-grid[data-grid-rows="5"] { grid-template-rows: repeat(5, minmax(400px, 1fr)); min-height: 2080px; }
.subcategory-grid[data-grid-rows="6"] { grid-template-rows: repeat(6, minmax(400px, 1fr)); min-height: 2500px; }
.subcategory-grid[data-grid-rows="7"] { grid-template-rows: repeat(7, minmax(400px, 1fr)); min-height: 2920px; }
.subcategory-grid[data-grid-rows="8"] { grid-template-rows: repeat(8, minmax(400px, 1fr)); min-height: 3340px; }
.subcategory-grid[data-grid-rows="9"] { grid-template-rows: repeat(9, minmax(400px, 1fr)); min-height: 3760px; }
.subcategory-grid[data-grid-rows="10"] { grid-template-rows: repeat(10, minmax(400px, 1fr)); min-height: 4180px; }
/* v0.5.3 ADD END */

/* v0.5.3 UPDATE - Fill grid cell completely */
/* v0.5.37 FIX - Remove fixed height to prevent overflow */
/* v0.5.40 FIX - Add min-height for better image sizing */
/* v0.5.42 FIX - Cards fill grid cell completely with proper height */
.subcategory-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.subcategory-card:hover {
    border-color: #0073aa;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* v0.5.1 UPDATE - Dynamic image sizing that fills available space */
/* v0.5.2 UPDATE - Use contain to show full image, fill 100% height */
/* v0.5.3 UPDATE - Remove min-height, let grid control sizing */
/* v0.5.15 UPDATE - Reduce height to 80% to show sub-category name */
/* v0.5.37 FIX - Use max-height instead of fixed height, ensure containment */
/* v0.5.40 FIX - Restore flex sizing with min/max constraints */
/* v0.5.42 FIX - Remove constraints, let flex fill available space */
.subcategory-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-sizing: border-box;
}

.subcategory-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.subcategory-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.subcategory-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
}

.subcategory-info {
    padding: 10px 0;
}

.subcategory-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.subcategory-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* v0.5.29 ADD START - Smaller buttons and inputs, better dropdown mode styling */

/* Make Select buttons smaller */
.product-select-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

.col323-configurator-container .product-card[data-product-type="variable"] .product-select-btn-top {
    padding: 10px 18px !important;
    font-size: 16px !important;
    margin: 10px 0 15px 0 !important;
}

/* Make quantity inputs smaller */
.product-quantity-input,
.attr-value-qty,
.attr-dropdown-qty {
    width: 60px !important;
    padding: 6px !important;
    font-size: 14px !important;
}

/* Make attribute dropdowns compact */
.attr-dropdown-select {
    max-width: 250px !important;
    padding: 6px !important;
    font-size: 14px !important;
}

/* Dropdown mode layout improvements */
.dropdown-selector-row {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.dropdown-selector-row label {
    font-size: 13px !important;
    color: #555 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.attr-values-group.dropdown-mode {
    margin-bottom: 15px !important;
}

.attr-group-label {
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

/* v0.5.29 ADD END */

/* v0.5.35 ADD START - Mobile responsive grid layouts */
/* v0.5.45 FIX - Add mobile default when no mobile-specific setting exists */
/* v0.5.46 FIX - Reset desktop grid columns first, then apply mobile settings */
@media (max-width: 768px) {
    /* Reset all desktop grid-columns on mobile */
    .product-grid[data-grid-columns] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Product grid - mobile columns (explicit mobile settings override the reset) */
    .product-grid[data-grid-columns-mobile="1"] { grid-template-columns: repeat(1, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="3"] { grid-template-columns: repeat(3, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="4"] { grid-template-columns: repeat(4, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="5"] { grid-template-columns: repeat(5, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="6"] { grid-template-columns: repeat(6, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="7"] { grid-template-columns: repeat(7, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="8"] { grid-template-columns: repeat(8, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="9"] { grid-template-columns: repeat(9, 1fr) !important; }
    .product-grid[data-grid-columns-mobile="10"] { grid-template-columns: repeat(10, 1fr) !important; }

    /* Product grid - mobile rows */
    .product-grid[data-grid-rows-mobile="1"] { grid-template-rows: repeat(1, auto) !important; }
    .product-grid[data-grid-rows-mobile="2"] { grid-template-rows: repeat(2, auto) !important; }
    .product-grid[data-grid-rows-mobile="3"] { grid-template-rows: repeat(3, auto) !important; }
    .product-grid[data-grid-rows-mobile="4"] { grid-template-rows: repeat(4, auto) !important; }
    .product-grid[data-grid-rows-mobile="5"] { grid-template-rows: repeat(5, auto) !important; }
    .product-grid[data-grid-rows-mobile="6"] { grid-template-rows: repeat(6, auto) !important; }
    .product-grid[data-grid-rows-mobile="7"] { grid-template-rows: repeat(7, auto) !important; }
    .product-grid[data-grid-rows-mobile="8"] { grid-template-rows: repeat(8, auto) !important; }
    .product-grid[data-grid-rows-mobile="9"] { grid-template-rows: repeat(9, auto) !important; }
    .product-grid[data-grid-rows-mobile="10"] { grid-template-rows: repeat(10, auto) !important; }

    /* Reset all desktop subcategory-grid columns on mobile */
    .subcategory-grid[data-grid-columns] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Sub-category grid - mobile columns (explicit mobile settings override the reset) */
    .subcategory-grid[data-grid-columns-mobile="1"] { grid-template-columns: repeat(1, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="3"] { grid-template-columns: repeat(3, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="4"] { grid-template-columns: repeat(4, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="5"] { grid-template-columns: repeat(5, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="6"] { grid-template-columns: repeat(6, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="7"] { grid-template-columns: repeat(7, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="8"] { grid-template-columns: repeat(8, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="9"] { grid-template-columns: repeat(9, 1fr) !important; }
    .subcategory-grid[data-grid-columns-mobile="10"] { grid-template-columns: repeat(10, 1fr) !important; }

    /* Default: auto rows on mobile for subcategories if no mobile setting specified */
    .subcategory-grid:not([data-grid-rows-mobile]) {
        grid-template-rows: auto !important;
        min-height: auto !important;
    }

    /* Sub-category grid - mobile rows (explicit mobile settings) */
    .subcategory-grid[data-grid-rows-mobile="1"] { grid-template-rows: repeat(1, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="2"] { grid-template-rows: repeat(2, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="3"] { grid-template-rows: repeat(3, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="4"] { grid-template-rows: repeat(4, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="5"] { grid-template-rows: repeat(5, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="6"] { grid-template-rows: repeat(6, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="7"] { grid-template-rows: repeat(7, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="8"] { grid-template-rows: repeat(8, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="9"] { grid-template-rows: repeat(9, auto) !important; }
    .subcategory-grid[data-grid-rows-mobile="10"] { grid-template-rows: repeat(10, auto) !important; }
}
/* v0.5.35 ADD END */
