/*
 Theme Name: AP-Theme
 Author: Agustin F. Paternosto
 Description: Theme base para mi sitio web.
 Version: 1.0
*/

/* =========================
   Reset básico
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Estilos generales
   ========================= */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* =========================
   Header y navegación
   ========================= */
header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

header .logo a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

nav {
    text-align: right;
}

/* Menú de navegación */
.menu-principal {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f4f4f4;
    padding: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none;
}

.menu-principal.active {
    display: flex !important;
}

.menu-principal li {
    text-align: center;
    margin: 10px 0;
}

.menu-principal li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: background 0.3s, color 0.3s;
}

.menu-principal li a:hover {
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
}

/* Botón menú hamburguesa */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    padding: 10px;
}

/* Botones Mi Cuenta y Ver Carrito */
.account-cart-buttons {
    display: flex;
    gap: 15px;
}

.account-cart-buttons a {
    text-decoration: none;
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.account-cart-buttons a:hover {
    background-color: #005a8c;
}

/* =========================
   Estilos para Mi Cuenta
   ========================= */
.woocommerce-MyAccount-navigation {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s;
}

.woocommerce-MyAccount-navigation a:hover {
    background-color: #005a8c;
    color: white;
    border-radius: 4px;
}

.woocommerce-MyAccount-content {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.woocommerce-MyAccount-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* =========================
   Contenido principal y footer
   ========================= */
#content {
    padding: 20px;
}

footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

footer .footer-content p {
    margin: 0;
}

/* =========================
   Estilos para WooCommerce
   ========================= */
.woocommerce ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.woocommerce ul.products li.product {
    width: calc(33.33% - 20px);
    margin: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.woocommerce ul.products li.product:hover {
    transform: scale(1.02);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.woocommerce ul.products li.product .price {
    font-size: 16px;
    color: #0073aa;
    font-weight: bold;
    margin-top: 5px;
}

/* =========================
   Página de producto individual
   ========================= */
.single-product .product {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.single-product .product .images {
    flex: 1 1 40%;
    padding: 10px;
}

.single-product .product .summary {
    flex: 1 1 60%;
    padding: 10px;
}

.single-product .product .woocommerce-product-rating {
    margin-bottom: 15px;
}

/* =========================
   Paginación de la tienda
   ========================= */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 20px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0073aa;
    color: #fff;
}

/* =========================
   Botones WooCommerce
   ========================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #005a8c;
}

/* =========================
   Ajustes Responsivos
   ========================= */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        width: calc(50% - 20px);
    }

    .single-product .product {
        flex-direction: column;
    }

    .single-product .product .images,
    .single-product .product .summary {
        flex: 1 1 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu-principal {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .menu-principal {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        position: relative;
    }

    .menu-principal li {
        margin: 0 15px;
    }

    .menu-toggle {
        display: none;
    }

/* Vista de Tienda */
.woocommerce-products-header {
    margin-bottom: 20px;
}

}

