/* WooCommerce Custom Styles */

/* Product Gallery */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 2em;
}

.woocommerce-product-gallery .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.woocommerce-product-gallery .owl-prev,
.woocommerce-product-gallery .owl-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 10px !important;
    border-radius: 50% !important;
}

.woocommerce-product-gallery .owl-prev {
    left: 10px;
}

.woocommerce-product-gallery .owl-next {
    right: 10px;
}

/* Product Title */
.woocommerce div.product .product_title {
    font-size: 2em;
    margin-bottom: 0.5em;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Add to Cart Button */
.woocommerce div.product form.cart .button {
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #2980b9;
}

/* Quantity Input */
.woocommerce div.product form.cart .quantity {
    position: relative;
    margin-right: 10px;
}

.quantity-buttons {
    position: absolute;
    right: -40px;
    top: 0;
}

.qty-btn {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.qty-btn.plus {
    border-bottom: none;
}

/* Related Products */
.related.products {
    margin-top: 3em;
}

.related.products h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

.related.products .owl-nav {
    position: absolute;
    top: -50px;
    right: 0;
}

.related.products .owl-prev,
.related.products .owl-next {
    background: #f8f9fa !important;
    padding: 5px 15px !important;
    margin-left: 5px;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 1.618em;
    list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid #d3ced2;
    background-color: #ebe9eb;
    display: inline-block;
    position: relative;
    z-index: 0;
    border-radius: 4px 4px 0 0;
    margin: 0;
    padding: 0 1em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #fff;
    z-index: 2;
    border-bottom-color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0 0 2em;
    padding: 20px;
    border: 1px solid #d3ced2;
    border-top: none;
}

/* Product Tabs Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        display: none;
    }

    .tab-content {
        padding: 0 !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 1rem;
    }

    .tab-pane::before {
        content: attr(data-title);
        display: block;
        padding: 1rem;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        margin-bottom: 1rem;
        font-weight: 600;
        cursor: pointer;
        position: relative;
    }

    .tab-pane::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .tab-pane.active::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .tab-pane > * {
        display: none;
        padding: 1rem;
        border: 1px solid #dee2e6;
        border-top: none;
        border-radius: 0 0 0.25rem 0.25rem;
    }

    .tab-pane.active > * {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce div.product .product_title {
        font-size: 1.5em;
    }
    
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 1.2em;
    }
    
    .woocommerce div.product form.cart .button {
        width: 100%;
        margin-top: 1em;
    }
}

/* Estilos generales de la tienda */
.woocommerce-products-header {
    margin-bottom: 2rem;
}

.woocommerce-products-header__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Estilos de la barra lateral */
.shop-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.shop-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.shop-sidebar ul li {
    margin-bottom: 8px;
}

.shop-sidebar ul li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.shop-sidebar ul li a:hover {
    color: #007bff;
}

/* Estilos del selector de orden */
.form-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Estilos del grid de productos */
.col-md-10 .row {
    margin: 0 -10px;
}

.col-md-10 .row > div {
    padding: 0 10px;
}

/* Estilos de las tarjetas de productos */
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-thumbnail {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h2 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info .price {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: bold;
}

.product-actions {
    margin-top: 10px;
}

/* Estilos del botón de añadir al carrito */
.add_to_cart_button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.add_to_cart_button:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Estilos para productos en oferta */
.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1;
    font-size: 0.8rem;
}

/* Estilos de la paginación */
.woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination li {
    margin: 0 5px;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.woocommerce-pagination span.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Estilos responsivos */
@media (max-width: 991px) {
    .shop-sidebar {
        margin-bottom: 20px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .product-info h2 {
        font-size: 0.9rem;
    }
    
    .product-info .price {
        font-size: 1rem;
    }
    
    .add_to_cart_button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
} 

