/**
 * WooCommerce Shop Page Styles - Holy Moly Style
 * 
 * CSS for product archive/shop page
 *
 * @package TattooEdu
 * @version 1.0.0
 */

/* ===== SHOP PAGE LAYOUT ===== */

.woocommerce-shop-page {
    padding: 100px;
}

.product-layout {
  padding: 100px;
}

.shop-container {
    max-width: 100%;
    width: 100%;
}

.shop-header {
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 0;
}

.shop-breadcrumbs {
    margin: 0;
}

.shop-breadcrumbs .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb {
  margin: 0 !important;
}

.shop-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0;
    width: 100%;
}

.results-count p, .shop-orderby form {
    margin: 0 !important;
}

/* ===== SIDEBAR FILTERS ===== */

.shop-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.filters-container {
    position: sticky;
    top: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

/* Custom Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.filter-checkbox:hover {
    background-color: rgba(0, 124, 186, 0.1);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--theme-primary-color, #007cba);
    border-color: var(--theme-primary-color, #007cba);
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666;
}

/* Price Filter */
.price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}

.price-separator {
    color: #666;
    font-weight: bold;
}

/* Filter Buttons */
.apply-filters-btn,
.clear-filters-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters-btn {
    background-color: var(--theme-primary-color, #007cba);
    color: white;
}

.apply-filters-btn:hover {
    background-color: var(--theme-secondary-color, #6c757d);
    transform: translateY(-1px);
}

.clear-filters-btn {
    background-color: transparent;
    color: var(--theme-text-color, #212529);
    border: 1px solid #ddd;
}

.clear-filters-btn:hover {
    background-color: #f8f9fa;
}

/* ===== MAIN CONTENT ===== */

.shop-main {
    flex: 1;
}

main.shop-main {
  padding: 0px 0px !important;
        width: 100%;
}

.shop-controls {
    background: transparent;

}

.shop-orderby {
    position: relative;
}

.shop-orderby select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 200px;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* ===== PRODUCTS GRID ===== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: none;
    opacity: 0.8;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 2;
    letter-spacing: 1px;
}

.product-badge.sale {
    background-color: #ff0000;
}

.product-badge.featured {
    background-color: #000;
    color: #fff;
}

.product-badge.new {
    background-color: #000;
}

/* Product Info */
.product-info {
    padding: 0;
    text-align: center;
}

.product-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #666;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 10px;
    font-size: 16px;
}

.product-actions {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.add-to-cart-btn:hover {
    background-color: #333;
    transform: none;
}

/* ===== NO PRODUCTS ===== */

.no-products-found {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    grid-column: 1 / -1; /* Ocupar todo el ancho del grid */
}

.no-products-found h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== HOLY MOLY SPECIFIC STYLES ===== */

/* Ajustes generales del body para WooCommerce */
body.woocommerce .woocommerce-shop-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Mejorar spacing general */
.shop-container {
    background: #fff;
}

/* Agregar hover effects sutiles */
.product-card {
    cursor: pointer;
}

.product-title a:hover {
    color: #666;
    transition: color 0.2s ease;
}

/* Estilo para precios con descuento */
.product-price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Mejorar botones de paginación */
.woocommerce-pagination {
    text-align: center;
    margin-top: 60px;
}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 5px;
    background: transparent;
    border: 1px solid #ddd;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* ===== PAGINATION ===== */

.shop-pagination {
    margin-top: 40px;
    text-align: center;
}

.shop-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--theme-text-color, #212529);
    text-decoration: none;
    transition: all 0.3s ease;
}

.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background-color: var(--theme-primary-color, #007cba);
    color: white;
    border-color: var(--theme-primary-color, #007cba);
}

/* ===== LOADING OVERLAY ===== */

.shop-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--theme-primary-color, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1000px) {
    .woocommerce-shop-page {
        padding: 60px;
    }
    
    .product-layout {
        padding: 0;
    }
}

@media (max-width: 800px) {
    .woocommerce-shop-page {
        padding: 30px;
    }
    
    .product-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .shop-content {
        flex-direction: column;
        gap: 30px;
        padding: 0;
    }
    
    .shop-sidebar {
        width: 100%;
        order: 2;
    }
    
    .shop-main {
        order: 1;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-controls {
        flex-direction: column;
            align-items: flex-start;
    }
    
    .shop-orderby select {
        width: 100%;
        max-width: 300px;
    }
    
    .filters-container {
        padding: 20px;
    }
}

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1399px) and (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .shop-content {
        gap: 30px;
    }
    
    .shop-sidebar {
        width: 280px;
    }
}

@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-image-container img {
        height: 300px;
    }
    
    .shop-sidebar {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .woocommerce-shop-page {
        padding: 30px;
    }
    
    .product-layout {
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-image-container img {
        height: 300px;
    }
    
    .product-actions {
        opacity: 1; /* Siempre visible en móvil */
    }
}


