/* Main Grid Container */
.woo-product-grid-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Grid Layout */
.woo-product-grid {
    display: grid;
    grid-gap: 30px;
}

/* Responsive Columns */
.woo-product-grid[data-columns="1"] {
    grid-template-columns: repeat(1, 1fr);
}
.woo-product-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}
.woo-product-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}
.woo-product-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}
.woo-product-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}
.woo-product-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

/* Product Item Base Styles */
.product {
    position: relative;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Load More Button */
.woo-product-grid-load-more {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woo-product-grid-load-more:hover {
    background: #444;
}

.woo-product-grid-load-more.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Pagination */
.woo-product-grid-pagination {
    margin-top: 40px;
    text-align: center;
}

.woo-product-grid-pagination .page-numbers {
    display: inline-flex;
    gap: 5px;
}

.woo-product-grid-pagination .page-numbers li {
    list-style: none;
}

.woo-product-grid-pagination .page-numbers a,
.woo-product-grid-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    margin: 0 2px;
}

.woo-product-grid-pagination .page-numbers a:hover,
.woo-product-grid-pagination .page-numbers .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ✅ Enhanced Base styles for all product items */
.custom-product-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: #fff;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.custom-product-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
}

.custom-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-product-item:hover img {
    transform: scale(1.05);
}

.custom-product-item .woocommerce-loop-product__title {
    margin: 0.75rem 0 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-product-item .price {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.custom-product-item .woocommerce-loop-product__actions {
    margin-top: auto;
    padding-top: 0.5rem;
    transition: all 0.3s ease;
}

/* 🎨 Modern Style - Enhanced with floating effect and accent colors */
.preset-modern .custom-product-item {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 1rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

.preset-modern .custom-product-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.preset-modern .custom-product-item .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 1.25rem;
    color: #1e293b;
}

.preset-modern .custom-product-item .price {
    color: #3b82f6;
    padding: 0 1.25rem;
    font-size: 1.1rem;
}

.preset-modern .custom-product-item .woocommerce-loop-product__actions {
    padding: 0 1.25rem;
}

.preset-modern .custom-product-item .add_to_cart_button {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.preset-modern .custom-product-item .add_to_cart_button:hover {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
    color: #00dea7;
}

/* 🧼 Minimal Style - Enhanced with subtle hover effects and typography */
.preset-minimal .custom-product-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding-bottom: 0;
    box-shadow: none;
}

.preset-minimal .custom-product-item:hover {
    box-shadow: none;
    background: rgba(250, 250, 250, 0.6);
}

.preset-minimal .custom-product-item .woocommerce-loop-product__title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #333;
    padding: 0 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.preset-minimal .custom-product-item .price {
    color: #666;
    font-weight: 400;
    padding: 0 1rem;
    font-size: 0.95rem;
}

.preset-minimal .custom-product-item .woocommerce-loop-product__actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.preset-minimal .custom-product-item:hover .woocommerce-loop-product__actions {
    opacity: 1;
    transform: translateY(0);
}

.preset-minimal .custom-product-item .add_to_cart_button {
    background: none;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

.preset-minimal .custom-product-item .add_to_cart_button:hover {
    border-color: #333;
    background: rgba(0,0,0,0.02);
}

/* 🏛️ Classic Style - Enhanced with vintage ecommerce feel */
.preset-classic .custom-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.preset-classic .custom-product-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preset-classic .custom-product-item .woocommerce-loop-product__title {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 0 1rem;
    font-style: italic;
}

.preset-classic .custom-product-item .price {
    color: #b12704;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
}

.preset-classic .custom-product-item .woocommerce-loop-product__actions {
    padding: 0 1rem;
}

.preset-classic .custom-product-item .add_to_cart_button {
    background: #333;
    color: white;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid #333;
}

.preset-classic .custom-product-item .add_to_cart_button:hover {
    background: #111;
    border-color: #111;
}

/* 🚀 Bold Style - Enhanced with stronger contrast and animations */
.preset-bold .custom-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.preset-bold .custom-product-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.preset-bold .custom-product-item .woocommerce-loop-product__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    padding: 0 1.25rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preset-bold .custom-product-item .price {
    color: #ff3e00;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 1.25rem;
}

.preset-bold .custom-product-item .woocommerce-loop-product__actions {
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

.preset-bold .custom-product-item .add_to_cart_button {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.preset-bold .custom-product-item .add_to_cart_button:hover {
    background: #ff3e00;
    color: #fff;
    transform: scale(1.02);
}

/* 🌿 Eco Style - Enhanced with natural textures and colors */
.preset-eco .custom-product-item {
    background: #f8f5f2;
    border-radius: 10px;
    border: 1px solid #e8e1d9;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20h10v10H20zM70 70h10v10H70z" fill="rgba(210,220,200,0.2)"/></svg>');
}

.preset-eco .custom-product-item:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    background-color: #f5f1eb;
}

.preset-eco .custom-product-item .woocommerce-loop-product__title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #5a3e2b;
    padding: 0 1.25rem;
}

.mt-2.category {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #5a3e2b;
    padding: 0 1.25rem;
}

.preset-eco .custom-product-item .price {
    color: #6b8e23;
    font-weight: 600;
    padding: 0 1.25rem;
    font-size: 1.1rem;
}

.preset-eco .custom-product-item .woocommerce-loop-product__actions {
    padding: 0 1.25rem 1.25rem;
}

.preset-eco .custom-product-item .add_to_cart_button {
    background: #6b8e23;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 24px;
    font-size: 0.9rem;
    border: 1px solid #5a7a1d;
}

.preset-eco .custom-product-item .add_to_cart_button:hover {
    background: #556b1f;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .woo-product-grid[data-columns="4"],
    .woo-product-grid[data-columns="5"],
    .woo-product-grid[data-columns="6"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woo-product-grid[data-columns="3"],
    .woo-product-grid[data-columns="4"],
    .woo-product-grid[data-columns="5"],
    .woo-product-grid[data-columns="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preset-modern .custom-product-item .woocommerce-loop-product__title,
    .preset-bold .custom-product-item .woocommerce-loop-product__title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .woo-product-grid[data-columns="2"],
    .woo-product-grid[data-columns="3"],
    .woo-product-grid[data-columns="4"],
    .woo-product-grid[data-columns="5"],
    .woo-product-grid[data-columns="6"] {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .custom-product-item {
        max-width: 100%;
    }
}