/*
 * WordPress Custom Styles for Boimela Theme
 * Estilos específicos para integração com WordPress
 */

/* Estilos para formulários WordPress */
.wp-block-button .wp-block-button__link {
    background-color: var(--theme);
    border-color: var(--theme);
    border-radius: 30px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--header);
    border-color: var(--header);
}

/* Estilos para comentários */
.comment-list {
    padding-left: 0;
}

.comment-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-reply .btn {
    font-size: 14px;
    padding: 8px 20px;
}

/* Estilos para paginação */
.page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background-color: #f8f9fa;
    color: var(--header);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--theme);
    color: white;
    text-decoration: none;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
}

/* Estilos para widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    color: var(--header);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--theme);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--theme);
}

/* Estilos para formulário de pesquisa */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 50px;
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 12px 20px;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para ícone de checkout no header */
.header-checkout {
    margin-right: 20px;
}

.header-checkout a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--theme);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
}

.header-checkout a:hover {
    background-color: var(--header);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-checkout a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--theme), var(--header));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-checkout a:hover::before {
    opacity: 1;
}

.header-checkout a.clicked {
    transform: scale(0.95);
    background-color: var(--header);
}

/* Estilos para page header */
.breadcrumb-wrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 44, 0.8);
    z-index: -1;
}

.page-heading {
    text-align: center;
    padding: 80px 0;
}

.page-heading h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .page-heading {
        padding: 60px 0;
    }
    
    .page-heading h1 {
        font-size: 32px;
    }
}

/* Estilos para alertas de newsletter */
.newsletter-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 500;
}

.newsletter-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-exists {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Estilos para WooCommerce */
.woocommerce .star-rating {
    color: #ffc107;
}

.woocommerce .price {
    color: var(--theme);
    font-weight: 600;
}

.woocommerce .button {
    background-color: var(--theme);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce .button:hover {
    background-color: var(--header);
    color: white;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .page-numbers {
        padding: 10px 15px;
        margin: 2px;
    }
    
    /* Ajustes do ícone de checkout em mobile */
    .header-checkout {
        margin-right: 15px;
    }
    
    .header-checkout a {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Estilos para animações WOW */
.wow {
    visibility: hidden;
}

/* Estilos para preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Estilos para back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--theme);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--header);
    color: white;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Estilos para mobile menu */
@media (max-width: 1199px) {
    .mean-container .mean-bar {
        background: var(--header);
    }
    
    .mean-container .mean-nav ul li a {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mean-container .mean-nav ul li a:hover {
        background-color: var(--theme);
    }
}

/* Estilos adicionais para formulário de contato WordPress */
#form-messages {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

#form-messages.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-messages.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para mapa */
.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Estilos específicos do WooCommerce baseados no template original */

/* Cart Section Styles */
.cart-section .main-cart-wrapper {
    background: transparent;
}

.cart-section .table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
    border: none;
}

.cart-section .table thead th {
    background-color: var(--header);
    color: white;
    padding: 20px;
    font-weight: 600;
    border: none;
    font-size: 16px;
}

.cart-section .table tbody td {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    border-left: none;
    border-right: none;
}

.cart-section .remove-icon {
    background: #ff4757;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-section .remove-icon:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.cart-section .remove-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.cart-section .cart img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-section .cart-title {
    font-weight: 600;
    color: var(--header);
    font-size: 16px;
    max-width: 200px;
}

.cart-section .cart-title a {
    color: var(--header);
    text-decoration: none;
}

.cart-section .cart-title a:hover {
    color: var(--theme);
}

.cart-section .cart-price,
.cart-section .subtotal-price {
    font-weight: 600;
    color: var(--theme);
    font-size: 18px;
}

.cart-section .quantity-basket .qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

.cart-section .quantity-basket .qty input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 12px 5px;
    outline: none;
    font-weight: 600;
    color: var(--header);
}

.cart-section .quantity-basket .qty button,
.cart-section .quantity-basket .qty .qtyminus,
.cart-section .quantity-basket .qty .qtyplus {
    background: var(--theme);
    color: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cart-section .quantity-basket .qty button:hover,
.cart-section .quantity-basket .qty .qtyminus:hover,
.cart-section .quantity-basket .qty .qtyplus:hover {
    background: var(--header);
}

.cart-section .cart-wrapper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 25px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
}

.cart-section .cart-wrapper-footer .input-area {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-section .cart-wrapper-footer .input-area input {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    outline: none;
    min-width: 200px;
}

.cart-section .cart-total {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cart-section .cart-total .table thead th {
    background-color: var(--header);
    color: white;
    padding: 20px 25px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
}

.cart-section .cart-total .table tbody td {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-section .cart-total .sub-title {
    font-weight: 600;
    color: var(--header);
    font-size: 16px;
}

.cart-section .cart-total .sub-price {
    font-weight: 600;
    color: var(--theme);
    font-size: 16px;
}

.cart-section .cart-total .sub-price-total {
    font-size: 20px;
    color: var(--header);
}

.cart-section .cart-total .sub-text {
    color: var(--text);
    font-weight: 500;
}

.cart-section .cart-total .order-total td {
    background: #f8f9fa;
    font-weight: 700;
    border-bottom: none;
}

.cart-section .proceed-checkout .checkout-button {
    width: 100%;
    background: var(--theme);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cart-section .proceed-checkout .checkout-button:hover {
    background: var(--header);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Checkout Section Styles */
.checkout-section .checkout-single {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.checkout-section .checkout-single h4 {
    margin-bottom: 25px;
    color: var(--header);
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.checkout-section .input-single {
    margin-bottom: 25px;
}

.checkout-section .input-single span,
.checkout-section .input-single label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--header);
    font-size: 15px;
}

.checkout-section .input-single input,
.checkout-section .input-single select,
.checkout-section .input-single textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    outline: none;
    font-weight: 500;
    color: var(--text);
    background-color: white;
    transition: border-color 0.3s ease;
}

.checkout-section .input-single input:focus,
.checkout-section .input-single select:focus,
.checkout-section .input-single textarea:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(255, 123, 107, 0.1);
}

.checkout-section .checkout-order-area {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.checkout-section .checkout-order-area h3 {
    margin-bottom: 25px;
    color: var(--header);
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.checkout-section .checkout-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.checkout-section .checkout-item:last-child {
    border-bottom: 2px solid var(--theme);
    font-weight: 600;
    font-size: 18px;
    color: var(--header);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-section .cart-wrapper-footer {
        flex-direction: column;
        gap: 20px;
    }
    
    .cart-section .cart-wrapper-footer .input-area {
        width: 100%;
    }
    
    .cart-section .cart-wrapper-footer .input-area input {
        flex: 1;
        min-width: auto;
    }
    
    .cart-section .d-flex.gap-5 {
        gap: 15px !important;
    }
    
    .cart-section .cart-title {
        max-width: none;
        margin-top: 10px;
    }
    
    .checkout-section .checkout-order-area {
        position: static;
        margin-top: 30px;
    }
}
