/* Category Showcase Grid Plugin Styles - Simple Version by Beewall */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Roboto:wght@300;400;500;700&display=swap');

.csg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #1f2937;
    line-height: 1.5;
    font-size: 16px;
}

/* Grid Layout */
.csg-categories-grid {
    display: grid;
    gap: 24px;
}

.csg-grid-cols-1 {
    grid-template-columns: 1fr;
}

.csg-grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.csg-category-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.csg-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0097E0, #00B3FF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.csg-category-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.csg-category-card:hover::before {
    transform: scaleX(1);
}

.csg-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.csg-category-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.csg-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.csg-category-card:hover .csg-category-image {
    transform: scale(1.05);
}

.csg-category-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.csg-category-card:hover .csg-category-icon {
    background: #e5e7eb;
    transform: scale(1.05);
}

.csg-category-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csg-custom-url-indicator {
    font-size: 14px;
    color: #0097E0;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.csg-category-card:hover .csg-custom-url-indicator {
    opacity: 1;
    transform: scale(1.1);
}

.csg-category-description {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.csg-product-showcase {
    margin-top: 24px;
}

.csg-showcase-header {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csg-product-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.csg-product-tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}

.csg-product-tag:hover {
    background: #e6f7ff;
    color: #0369a1;
    border-color: #bae6fd;
    transform: translateY(-1px);
}

.csg-more-products {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.csg-more-products:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Responsive */
/* Desktop Grande (>1280px) - Ya tiene valores por defecto */

/* Tablet y Desktop pequeño (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .csg-container {
        padding: 0 20px;
    }

    .csg-categories-grid {
        gap: 20px;
    }

    .csg-category-card {
        padding: 28px;
    }
}

/* Móvil (max 767px) */
@media (max-width: 767px) {
    .csg-container {
        padding: 0 16px;
    }

    .csg-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .csg-category-card {
        padding: 24px;
    }

    .csg-product-names {
        justify-content: flex-start;
    }
}

/* Product Grid Styles */
.psg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #1f2937;
    line-height: 1.5;
    font-size: 16px;
}

.psg-products-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.psg-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.psg-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0097E0, #00B3FF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.psg-product-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.psg-product-card:hover::before {
    transform: scaleX(1);
}

.psg-product-image {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    padding: 12px;
}

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

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

.psg-product-placeholder {
    font-size: 48px;
    color: #9ca3af;
}

.psg-product-content {
    padding: 20px;
}

.psg-product-category {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.psg-product-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.psg-product-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Grid variations */
.psg-grid-1-cols {
    grid-template-columns: 1fr;
}

.psg-grid-2-cols {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.psg-grid-3-cols {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.psg-grid-4-cols {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .psg-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .psg-container {
        padding: 0 20px;
    }
}

/* Móvil (max 767px) */
@media (max-width: 767px) {
    .psg-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .psg-container {
        padding: 0 16px;
    }

    .psg-product-image {
        height: 160px;
        padding: 8px;
    }
    
    .psg-product-image img {
        max-width: 90%;
        max-height: 90%;
    }

    .psg-product-content {
        padding: 16px;
    }
}
