   Product Grid Widget Styles
   =================================== */

.rushby-product-grid-section {
    padding: 50px 0 !important;
    background-color: #F3F4F6;
}

/* Container with padding */
.rushby-product-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .rushby-product-grid-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .rushby-product-grid-container {
        padding: 0 2rem;
    }
}

/* Section Header */
.rushby-product-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.rushby-product-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--rushby-accent-light);
    color: var(--rushby-accent);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.rushby-badge-icon {
    width: 1rem;
    height: 1rem;
}

.rushby-product-section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.rushby-product-section-description {
    color: #374151;
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Product Grid */
.rushby-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Card */
.rushby-product-grid .rushby-product-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: 100%;
}

.rushby-product-grid .rushby-product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Product Image */
.rushby-product-grid-section .rushby-product-image-wrapper {
    position: relative;
    background-color: #F9FAFB;
    overflow: hidden;
    flex-shrink: 0;
}

.rushby-product-grid-section .rushby-product-image-wrapper.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.rushby-product-grid-section .rushby-product-image-wrapper.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.rushby-product-grid-section .rushby-product-image-wrapper.ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.rushby-product-grid-section .rushby-product-image-wrapper.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.rushby-product-grid-section .rushby-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.rushby-product-grid-section .rushby-product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Product Badge */
.rushby-product-grid-section .rushby-product-badge-wrapper {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.rushby-product-grid-section .rushby-product-badge {
    display: inline-block;
    background-color: var(--rushby-accent);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Quick View Overlay */
.rushby-product-grid-section .rushby-product-quick-view-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rushby-product-grid .rushby-product-card:hover .rushby-product-quick-view-overlay {
    opacity: 1;
}

.rushby-product-grid-section .rushby-quick-view-btn {
    background-color: #FFFFFF;
    color: #111827;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rushby-product-grid-section .rushby-quick-view-btn:hover {
    background-color: #F3F4F6;
    transform: scale(1.05);
}

/* Product Info */
.rushby-product-grid-section .rushby-product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

/* Product Meta (Category & Rating) */
.rushby-product-grid-section .rushby-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.rushby-product-grid-section .rushby-product-category {
    color: var(--rushby-accent);
    font-weight: 500;
}

.rushby-product-grid-section .rushby-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6B7280;
}

.rushby-product-grid-section .rushby-product-rating .star {
    width: 1rem;
    height: 1rem;
    fill: var(--rushby-accent);
    color: var(--rushby-accent);
}

.rushby-product-grid-section .rushby-product-rating .rating-value {
    font-weight: 500;
    color: #111827;
}

/* Product Title */
.rushby-product-grid-section .rushby-product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rushby-product-grid-section .rushby-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rushby-product-grid-section .rushby-product-card:hover .rushby-product-title a {
    color: var(--rushby-accent);
}

/* Product Compatibility */
.rushby-product-grid-section .rushby-product-compatibility {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.4;
}

/* Variation Swatches */
.rushby-product-grid-section .rushby-product-variations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E5E7EB;
}

.rushby-product-grid-section .rushby-variation-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rushby-product-grid-section .rushby-variation-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.rushby-product-grid-section .rushby-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.rushby-product-grid-section .rushby-variation-swatch {
    padding: 0.375rem 0.75rem;
    border: 1px solid #D1D5DB;
    background-color: #FFFFFF;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rushby-product-grid-section .rushby-variation-swatch:hover {
    border-color: var(--rushby-accent);
    color: var(--rushby-accent);
}

.rushby-product-grid-section .rushby-variation-swatch.selected {
    border-color: var(--rushby-accent);
    background-color: var(--rushby-accent);
    color: #FFFFFF;
}

/* Price & Add to Cart */
.rushby-product-grid-section .rushby-product-price-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #E5E7EB;
}

.rushby-product-grid-section .rushby-product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.rushby-product-grid-section .rushby-product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.rushby-product-grid-section .rushby-product-price del {
    font-size: 1.125rem;
    color: #9CA3AF;
    margin-right: 0.5rem;
}

.rushby-product-grid-section .rushby-product-price ins {
    text-decoration: none;
    color: var(--rushby-accent);
}

.rushby-product-grid-section .rushby-product-tax-note {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
}

.rushby-product-grid-section .rushby-product-add-to-cart {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--rushby-accent);
    color: #FFFFFF;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rushby-product-grid-section .rushby-product-add-to-cart:hover {
    background-color: var(--rushby-accent-dark);
}

.rushby-product-grid-section .rushby-product-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rushby-product-grid-section .rushby-product-add-to-cart svg {
    width: 1rem;
    height: 1rem;
}

.rushby-product-grid-section .rushby-product-add-to-cart.loading span {
    opacity: 0;
}

.rushby-product-grid-section .rushby-product-add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rushby-spin 0.6s linear infinite;
}

/* Stock Status */
.rushby-product-grid-section .rushby-product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.rushby-product-grid-section .rushby-stock-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.rushby-product-grid-section .rushby-stock-indicator.in-stock {
    background-color: #10B981;
    animation: rushby-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.rushby-product-grid-section .rushby-stock-indicator.on-backorder {
    background-color: #F59E0B;
}

.rushby-product-grid-section .rushby-stock-indicator.out-of-stock {
    background-color: #EF4444;
}

.rushby-product-grid-section .rushby-stock-text {
    color: #6B7280;
}

/* View All Button */
.rushby-product-grid-section .rushby-product-view-all {
    text-align: center;
}

.rushby-product-grid-section .rushby-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #FFFFFF;
    color: #111827;
    border: 1px solid #9CA3AF;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rushby-product-grid-section .rushby-view-all-btn:hover {
    background-color: #F9FAFB;
    border-color: #6B7280;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .rushby-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rushby-product-section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .rushby-product-grid {
        grid-template-columns: 1fr;
    }

    .rushby-product-section-title {
        font-size: 2rem;
    }

    .rushby-product-grid-section {
        padding: 50px 0 !important;
    }

    .rushby-product-section-header {
        margin-bottom: 2.5rem;
    }

    .rushby-product-grid-section .rushby-product-price-cart {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .rushby-product-grid-section .rushby-product-add-to-cart {
        width: 100%;
        justify-content: center;
    }
}

/* Quick View Modal */
.rushby-product-grid-section .rushby-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.75);
}

.rushby-product-grid-section .rushby-quick-view-modal.active {
    display: flex;
}

.rushby-product-grid-section .rushby-quick-view-content {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.rushby-product-grid-section .rushby-quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.rushby-product-grid-section .rushby-quick-view-close:hover {
    background-color: #F3F4F6;
    color: #111827;
}

/* Loading State */
.rushby-product-grid-section .rushby-product-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rushby-product-grid-section .rushby-product-grid-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border: 4px solid #E5E7EB;
    border-top-color: var(--rushby-accent);
    border-radius: 50%;
    animation: rushby-spin 0.8s linear infinite;
}

/* Added to Cart Notification */
.rushby-add-to-cart-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #10B981;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9998;
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.rushby-add-to-cart-notice.show {
    transform: translateY(0);
}

.rushby-add-to-cart-notice svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===================================
