/* Estilos para páginas do WooCommerce */

/* Página Genérica */
.page-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.entry-content {
    color: hsl(var(--foreground));
    line-height: 1.8;
    margin-top: 2rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

/* Carrinho */
.cart-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.woocommerce-cart-form {
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    color: hsl(var(--foreground));
}

.shop_table thead {
    background-color: rgba(255, 255, 255, 0.05);
}

.shop_table th,
.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.shop_table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-remove a {
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.product-remove a:hover {
    color: #dc2626;
}

.product-name a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 600;
}

.product-name a:hover {
    color: hsl(var(--primary));
}

.product-quantity input {
    width: 80px;
    padding: 0.5rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    text-align: center;
}

.actions button {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.actions button:hover {
    background-color: hsl(142 76% 30%);
}

/* Cart Totals */
.cart-collaterals {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cart-totals {
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    min-width: 400px;
}

.cart-totals h2 {
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cart-totals table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.cart-totals th,
.cart-totals td {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.cart-totals .order-total th,
.cart-totals .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.wc-proceed-to-checkout a {
    display: block;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.wc-proceed-to-checkout a:hover {
    background-color: hsl(142 76% 30%);
    transform: translateY(-2px);
}

/* Checkout */
.woocommerce-checkout {
    padding: 4rem 0;
}

.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

/* Minha Conta */
.woocommerce-account {
    padding: 4rem 0;
}

.woocommerce-MyAccount-navigation {
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
}

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

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.woocommerce-MyAccount-content {
    background-color: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
}

/* Responsivo */
@media (max-width: 768px) {
    .shop_table thead {
        display: none;
    }
    
    .shop_table,
    .shop_table tbody,
    .shop_table tr,
    .shop_table td {
        display: block;
        width: 100%;
    }
    
    .shop_table tr {
        margin-bottom: 2rem;
        background-color: hsl(var(--card));
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    .shop_table td {
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    
    .shop_table td:before {
        content: attr(data-title);
        float: left;
        font-weight: bold;
    }
    
    .cart-totals {
        min-width: 100%;
    }
    
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--foreground));
    opacity: 0.7;
}

.return-to-shop {
    text-align: center;
    margin-top: 2rem;
}

.return-to-shop a {
    display: inline-block;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.return-to-shop a:hover {
    background-color: hsl(142 76% 30%);
    transform: translateY(-2px);
}
