/* ============================
   GRID GENERAL
   ============================ */

.amarello-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  max-width: 1300px;
  margin: 60px auto 80px;
}

.amarello-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: left;
  transition: 0.2s ease;
}

.amarello-card:hover {
  transform: translateY(-6px);
}

.amarello-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.amarello-name {
  color: #1F1F1F !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  text-decoration: none;
  display: block;
  margin-top: 12px;
}

.amarello-name:hover {
  color: #7D8D7A !important;
}

.amarello-price {
  color: #7D8D7A !important;
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

.desc-transferencia {
  font-size: 14px;
  color: #7D8D7A;
  font-weight: 600;
  margin-top: 6px;
}

.precio-transferencia {
  font-size: 15px;
  color: #000;
  font-weight: 500;
  margin-top: 4px;
}

.amarello-btn {
  margin-top: 12px;
  background: #7D8D7A !important;
  padding: 12px 26px;
  border-radius: 999px;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.amarello-btn:hover {
  background: #5f6d5f !important;
}

/* RESPONSIVE GRID */
@media (max-width: 768px) {
  .amarello-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px auto 60px;
  }

  .amarello-img img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .amarello-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 30px auto 50px;
  }

  .amarello-img img {
    height: 280px;
  }
}

/* ============================
   HEADER
   ============================ */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 75px;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-menu a {
    font-size: 18px;
    color: #1F1F1F;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
}

.header-menu a:hover {
    color: #7D8D7A;
}

/* SUBMENÚ */
.menu-item { position: relative; }

.submenu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 240px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
    z-index: 9999;
}

.menu-item:hover .submenu { display: flex; }

.submenu-item { position: relative; }

.submenu-nivel2 {
    position: absolute;
    top: 0;
    left: 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.submenu-item:hover .submenu-nivel2 { display: flex; }

.submenu a,
.submenu-nivel2 a {
    padding: 12px 20px;
    font-size: 17px;
    color: #1F1F1F;
    text-decoration: none;
    font-weight: 500;
}

.submenu a:hover,
.submenu-nivel2 a:hover {
    background: #F3F5F2;
    color: #7D8D7A;
}

.header-cart a {
    font-size: 28px;
    color: #1F1F1F;
    margin-left: 20px;
}

.header-cart a:hover { color: #7D8D7A; }

/* ============================
   HOME
   ============================ */

.home-banner img {
  width: 100%;
  border-radius: 12px;
}

.home-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #1F1F1F;
}

/* ============================
   HECHO CON AMOR
   ============================ */

.hecho-con-amor {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: #F3F5F2;
    border-radius: 16px;
    text-align: center;
}

.hecho-con-amor h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1F1F1F;
    margin-bottom: 20px;
}

.hecho-con-amor p {
    font-size: 18px;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hecho-con-amor a {
    display: inline-block;
    background: #7D8D7A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.hecho-con-amor a:hover { background: #6f7e6c; }

@media (max-width: 768px) {
    .hecho-con-amor { padding: 30px 15px; }
    .hecho-con-amor h2 { font-size: 26px; }
    .hecho-con-amor p { font-size: 16px; }
    .hecho-con-amor a { font-size: 16px; padding: 12px 22px; }
}

/* ============================
   FOOTER
   ============================ */

.amarello-footer {
  background: #f8f8f8;
  padding: 50px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1F1F1F;
}

.footer-column a {
  color: #7D8D7A;
  text-decoration: none;
  font-size: 18px;
}

.footer-column a:hover { color: #5f6d5f; }

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: #777;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* ============================
   PRODUCTO — CONTENEDOR
   ============================ */
.product-single-layout {
    width: 100%;
    max-width: 1400px;
    margin: 50px auto;
    padding: 20px;
}

/* ============================
   LAYOUT REAL — GALERÍA 55% / INFO 45%
   ============================ */
.single-product .product-main-columns {
    display: grid !important;
    grid-template-columns: 55% 45% !important;
    gap: 70px !important;
    align-items: start !important;
}

/* ============================
   GALERÍA — PRINCIPAL
   ============================ */
.single-product .product-gallery {
    width: 100%;
}

/* Romper height inline del slider */
.single-product .product-gallery .flex-viewport {
    height: auto !important;
    max-height: none !important;
    min-height: unset !important;
}

/* Imagen principal más grande */
.single-product .product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 1300px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

/* ============================
   MINIATURAS SOLO DEL PRODUCTO
   ============================ */
.single-product .product-gallery .flex-control-thumbs {
    margin-top: 14px;
}

.single-product .product-gallery .flex-control-thumbs li {
    width: 27% !important;
    margin-right: 2% !important;
}

.single-product .product-gallery .flex-control-thumbs img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

/* ============================
   INFORMACIÓN DEL PRODUCTO — COLUMNA DERECHA
   ============================ */
.single-product .product-summary {
    width: 100% !important;
    padding-left: 60px !important;
    padding-right: 40px !important;
}

.product_title {
    font-size: 32px;
    font-weight: 700;
    color: #1F1F1F;
    margin-bottom: 12px;
}

.price {
    font-size: 26px;
    font-weight: 600;
    color: #7D8D7A;
    margin-bottom: 20px;
}

/* ============================
   SELECTS — QUE NO SE CORTEN
   ============================ */
.single-product .product-summary select {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    font-size: 18px !important;
    padding: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #ccc !important;
}

/* ============================
   BLOQUE DE NOTAS
   ============================ */
.product-notas-box {
    background: #F3F5F2;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
    border-left: 4px solid #7D8D7A;
}

.product-notas-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1F1F1F;
    margin-bottom: 10px;
}

.product-notas-box textarea {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 16px;
    resize: vertical;
}

.product-notas-box textarea:focus {
    border-color: #7D8D7A;
    outline: none;
}

/* ============================
   BOTÓN AÑADIR AL CARRITO — TEXTO BLANCO SIEMPRE
   ============================ */
.single-product .single_add_to_cart_button,
.single-product .add_to_cart_button {
    background: #7D8D7A !important;
    color: #fff !important;
    padding: 14px 30px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none !important;
    width: 100%;
    margin-top: 10px;
}

.single-product .single_add_to_cart_button:hover,
.single-product .add_to_cart_button:hover {
    background: #5f6d5f !important;
}

/* ============================
   MINIATURAS DE PRODUCTOS RELACIONADOS — NORMAL
   ============================ */
.single-product .related .flex-control-thumbs li,
.single-product .upsells .flex-control-thumbs li,
.single-product .cross-sells .flex-control-thumbs li {
    width: 22% !important;
}

.single-product .related .flex-control-thumbs img,
.single-product .upsells .flex-control-thumbs img,
.single-product .cross-sells .flex-control-thumbs img {
    height: auto !important;
    border-radius: 10px !important;
}

/* ============================
   RESPONSIVE PRODUCTO
   ============================ */
@media (max-width: 900px) {
    .single-product .product-main-columns {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .single-product .product-gallery .woocommerce-product-gallery__image img {
        max-height: 450px !important;
    }
}

@media (max-width: 480px) {
    .single-product .product-gallery .woocommerce-product-gallery__image img {
        max-height: 360px !important;
    }

    .single-product .product-gallery .flex-control-thumbs li {
        width: 30% !important;
    }
}
/* ============================
   BOTONES — UNIFICACIÓN GLOBAL
   ============================ */

.woocommerce a.button,
.woocommerce button.button,
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce input.button,
button[name="update_cart"],
.checkout-button,
.woocommerce-cart .coupon button,
#place_order {
    background: #7D8D7A !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 26px !important;
    transition: background 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
button[name="update_cart"]:hover,
.checkout-button:hover,
.woocommerce-cart .coupon button:hover,
#place_order:hover {
    background: #5f6d5f !important;
}

/* ============================
   COLORES — UNIFICACIÓN GLOBAL
   ============================ */

a,
a:visited,
.woocommerce a,
.related a,
.product a,
.woocommerce-breadcrumb a,
.woocommerce-tabs ul.tabs li a {
    color: #1F1F1F !important;
}

a:hover,
.woocommerce a:hover,
.related a:hover,
.product a:hover,
.woocommerce-breadcrumb a:hover,
.woocommerce-tabs ul.tabs li a:hover {
    color: #7D8D7A !important;
}

.price,
.amount,
.woocommerce-Price-amount {
    color: #7D8D7A !important;
}

/* ============================
   CARRITO — CONTENEDOR GENERAL
   ============================ */

.woocommerce-cart-form,
.cart_totals {
    background-color: #F3F5F2 !important;
    padding: 50px !important;
    border-radius: 16px !important;
    border: none !important;
    margin-bottom: 50px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* ============================
   CARRITO — TABLA
   ============================ */

.woocommerce-cart table {
    border: none !important;
}

.woocommerce-cart table th {
    background: transparent !important;
    color: #1F1F1F !important;
    font-size: 18px !important;
    border-bottom: 1px solid #ddd !important;
}

.woocommerce-cart table td {
    border-bottom: 1px solid #eee !important;
    padding: 22px 12px !important;
}

/* Imagen del producto */
.woocommerce-cart table img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-right: 15px !important;
}

/* Nombre del producto */
.woocommerce-cart .product-name {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.woocommerce-cart .product-name a {
    color: #1F1F1F !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.woocommerce-cart .product-name a:hover {
    color: #7D8D7A !important;
}

/* ============================
   CUPÓN
   ============================ */

.woocommerce-cart .coupon input {
    border-radius: 999px !important;
    padding: 10px 20px !important;
    border: 1px solid #ccc !important;
}

/* ============================
   TOTALES DEL CARRITO
   ============================ */

.cart_totals table {
    border: none !important;
}

.cart_totals table th,
.cart_totals table td {
    font-size: 18px !important;
    color: #1F1F1F !important;
    padding: 12px 0 !important;
}

/* ============================
   CHECKOUT — CONTENEDOR GENERAL
   ============================ */

.woocommerce-checkout form.checkout {
    background: #F3F5F2 !important;
    padding: 30px !important;
    border-radius: 16px !important;
    border: none !important;
    margin-bottom: 40px !important;
}

/* ============================
   CHECKOUT — CAMPOS
   ============================ */

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    width: 100% !important;
    box-shadow: none !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #7D8D7A !important;
    outline: none !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 18px !important;
}

/* ============================
   CHECKOUT — RESUMEN DEL PEDIDO
   ============================ */

#order_review {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 16px !important;
    border: 1px solid #eee !important;
}

#order_review table {
    border: none !important;
}

#order_review table th,
#order_review table td {
    font-size: 18px !important;
    color: #1F1F1F !important;
    padding: 12px 0 !important;
}

/* ============================
   MENSAJES DE ERROR / AVISO
   ============================ */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: #fff !important;
    border-left: 4px solid #7D8D7A !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

/* ============================
   RESPONSIVE — CARRITO Y CHECKOUT
   ============================ */

@media (max-width: 768px) {
    .woocommerce-cart-form,
    .cart_totals,
    .woocommerce-checkout form.checkout {
        padding: 25px !important;
    }

    .woocommerce-cart table img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* ============================
   PRODUCTO — LAYOUT REAL
   ============================ */

/* CONTENEDOR PRINCIPAL DEL PRODUCTO */
.single-product .product-main-columns {
    display: grid !important;
    grid-template-columns: 55% 45% !important;
    gap: 60px !important;
    align-items: start !important;
}

/* GALERÍA REAL DE WOOCOMMERCE */
.single-product .woocommerce-product-gallery {
    width: 100% !important;
}

/* IMAGEN PRINCIPAL */
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

/* MINIATURAS */
.single-product .flex-control-thumbs li {
    width: 25% !important;
    margin-right: 2% !important;
}

.single-product .flex-control-thumbs img {
    border-radius: 10px !important;
}

/* ENSANCHAR LA COLUMNA DERECHA DEL PRODUCTO */
.single-product .product-summary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ENSANCHAR EL CONTENIDO INTERNO */
.single-product .summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
}

/* HACER QUE EL TEXTO NO QUEDE COMPRIMIDO */
.single-product .summary.entry-summary * {
    max-width: 100% !important;
}

/* AGRANDAR SELECTS Y CAMPOS */
.single-product .summary.entry-summary select,
.single-product .summary.entry-summary textarea,
.single-product .summary.entry-summary input {
    width: 100% !important;
    max-width: 100% !important;
}

/* AGRANDAR EL BOTÓN */
.single-product .single_add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
}
