/**
 * Amelie Café — ajustes WooCommerce y contenido general en WordPress.
 */

/* ===== Contador del carrito ===== */
.menu-cart .cart-icon {
    position: relative;
}

.amelie-cart-count {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #D12525;
    border-radius: 50px;
    display: inline-block;
}

.menu-cart.is-bouncing .cart-icon {
    -webkit-animation: amelie-cart-bounce .7s ease;
    animation: amelie-cart-bounce .7s ease;
}

@-webkit-keyframes amelie-cart-bounce {
    0%, 100% { -webkit-transform: translateY(0); }
    30% { -webkit-transform: translateY(-6px) scale(1.08); }
    60% { -webkit-transform: translateY(3px); }
}

@keyframes amelie-cart-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px) scale(1.08); }
    60% { transform: translateY(3px); }
}

/* ===== Filtros de categoría del catálogo ===== */
.amelie-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: -10px 0 40px;
}

.amelie-cat-pills li a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid rgba(33, 33, 33, .16);
    border-radius: 50px;
    font-size: 15px;
    color: #212121;
    background: #fff;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.amelie-cat-pills li a:hover,
.amelie-cat-pills li a.is-active {
    background: #D12525;
    border-color: #D12525;
    color: #fff;
}

/* ===== Grid del catálogo ===== */
.amelie-woo-grid > * {
    padding-bottom: 0;
}

.amelie-woo-grid .catagory-product-card-2 .info-price h6 .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* ===== Avisos de WooCommerce ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: #00813D;
    border-radius: 8px;
    padding: 16px 32px 16px 56px !important;
    color: #212121;
    font-size: 16px;
}

.woocommerce-message::before {
    color: #00813D;
}

.woocommerce-info::before {
    color: #FFB936;
}

.woocommerce-error {
    border-top-color: #D12525;
}

.woocommerce-error::before {
    color: #D12525;
}

.woocommerce-message .button {
    background: #00813D;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
}

/* ===== Botones de WooCommerce ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart input.button {
    background: #00813D;
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
    padding: 16px 30px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover {
    background: #D12525;
    color: #fff;
}

/* ===== Formularios ===== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form input[type="email"],
.woocommerce form input[type="number"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="text"],
.woocommerce form input[type="url"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce table.shop_table input,
.woocommerce input[type="email"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="text"],
.woocommerce input[type="url"],
.woocommerce textarea,
.woocommerce select {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    height: 54px;
    padding: 12px 18px;
    font-size: 15px;
    color: #212121;
    background: #fff;
}

.woocommerce textarea {
    height: auto;
}

.woocommerce form .form-row label {
    font-size: 14px;
    color: #212121;
    font-weight: 600;
    margin-bottom: 8px;
}

.woocommerce form .form-row {
    margin-bottom: 18px;
}

select#calc_shipping_country,
select#billing_country,
select#shipping_country,
select#billing_state,
select#shipping_state {
    padding-right: 40px;
}

/* ===== Select2 (campos de países) ===== */
.select2-container .select2-selection--single {
    height: 54px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 12px 18px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    font-size: 15px;
    color: #212121;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 52px;
}

/* ===== Ficha de producto ===== */
.woocommerce div.product .product_title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    color: #212121;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #D12525;
    font-size: 28px;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    border-radius: 12px;
}

.woocommerce div.product form.cart {
    margin: 22px 0;
}

.woocommerce div.product form.cart .button {
    border-radius: 50px;
}

.woocommerce .quantity .qty {
    height: 54px;
    width: 90px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
}

.woocommerce div.product .product_meta {
    font-size: 14px;
    color: #555;
    margin-top: 26px;
}

.woocommerce div.product .product_meta a {
    color: #00813D;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 24px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 20px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #D12525;
    border-bottom-color: #D12525;
}

.woocommerce div.product .woocommerce-tabs .panel {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
}

/* Relacionados */
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 30px;
}

/* ===== Carrito / Finalizar compra / Mi cuenta ===== */
.woocommerce table.shop_table {
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    border-collapse: separate;
    overflow: hidden;
    font-size: 15px;
}

.woocommerce table.shop_table th {
    background: #f7f7f7;
    color: #212121;
    font-weight: 700;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    padding: 16px 18px;
    vertical-align: middle;
}

.woocommerce table.shop_table .cart_item .product-thumbnail img {
    width: 64px;
    border-radius: 8px;
}

.woocommerce table.shop_table td.product-name a {
    color: #212121;
    font-weight: 600;
}

.woocommerce table.shop_table .quantity .qty {
    width: 70px;
    height: 44px;
}

.woocommerce-cart table.cart img {
    width: 64px;
    box-shadow: none;
}

.woocommerce .cart_totals h2,
.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title {
    font-size: 26px;
    color: #212121;
}

.woocommerce #payment {
    background: #f7f7f7;
    border-radius: 12px;
}

.woocommerce #payment #place_order {
    width: 100%;
    font-size: 16px;
    padding: 18px 32px;
}

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

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #e9e9e9;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 10px;
    color: #212121;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: #D12525;
}

.woocommerce-order-received .woocommerce-thankyou-order-received {
    color: #00813D;
    font-weight: 700;
    font-size: 22px;
}

/* ===== Contenido de páginas (page.php / index.php) ===== */
.amelie-post__content {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
}

.amelie-post__content h1,
.amelie-post__content h2,
.amelie-post__content h3,
.amelie-post__content h4,
.amelie-post__content h5,
.amelie-post__content h6 {
    color: #212121;
    margin: 28px 0 16px;
}

.amelie-post__content h2 { font-size: 32px; }
.amelie-post__content h3 { font-size: 26px; }
.amelie-post__content h4 { font-size: 22px; }

.amelie-post__content img,
.amelie-post__content video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.amelie-post__content ul,
.amelie-post__content ol {
    margin: 0 0 24px 22px;
}

.amelie-post__content li {
    margin-bottom: 8px;
}

.amelie-post__content a {
    color: #00813D;
    text-decoration: underline;
}

.amelie-post__content blockquote {
    border-left: 4px solid #D12525;
    background: #f7f7f7;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin: 24px 0;
}

.amelie-post__content table {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.amelie-post__content table th,
.amelie-post__content table td {
    border: 1px solid #e9e9e9;
    padding: 12px 16px;
}

/* ===== Menú fijo bajo la barra de administración de WP ===== */
body.admin-bar #header-sticky.sticky {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar #header-sticky.sticky {
        top: 46px !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 575px) {
    .amelie-cat-pills li a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .woocommerce table.shop_table_responsive tr td::before {
        font-weight: 700;
        color: #212121;
    }
}