/*
Theme Name: Arcoiris Market
Theme URI: https://arcoirismarket.com
Description: Tema hijo custom para Arcoiris Market — Shopping virtual de mamás emprendedoras. Sistema de código arcoíris por producto con chips de impacto.
Author: Arcoiris Market
Author URI: https://arcoirismarket.com
Template: astra
Version: 1.0.0
Text Domain: arcoiris-market
*/

/* ============================================================
   ARCOIRIS MARKET — CHILD THEME CSS
   Paleta HEX definitiva · Playfair Display + Manrope
   Chips de impacto · Cards de producto · Checkout con causa
   ============================================================ */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* 7 Causas */
  --am-verde: #2BB673;
  --am-azul: #2F80ED;
  --am-violeta: #8E44AD;
  --am-naranja: #F2994A;
  --am-amarillo: #F2C94C;
  --am-turquesa: #2DCEC4;
  --am-fucsia: #EB3F93;

  /* Fondos pastel */
  --am-verde-bg: #EDFAF3;
  --am-azul-bg: #EBF2FE;
  --am-violeta-bg: #F4EBF9;
  --am-naranja-bg: #FEF3E8;
  --am-amarillo-bg: #FEF9E8;
  --am-turquesa-bg: #E8FAF8;
  --am-fucsia-bg: #FDE8F2;

  /* Neutros */
  --am-bg: #FDFCFA;
  --am-bg-warm: #FFF9F5;
  --am-white: #FFFFFF;
  --am-g50: #F9F8F6;
  --am-g100: #F1EFEC;
  --am-g200: #E3E0DC;
  --am-g300: #C8C3BD;
  --am-g400: #9E9890;
  --am-g500: #706A62;
  --am-g600: #4D4740;
  --am-g900: #1D1A17;

  /* Shadows */
  --am-sh-sm: 0 2px 8px rgba(29,26,23,0.05);
  --am-sh-md: 0 8px 24px rgba(29,26,23,0.07);
  --am-sh-lg: 0 20px 50px rgba(29,26,23,0.09);

  /* Radius */
  --am-r-xs: 6px;
  --am-r-sm: 10px;
  --am-r-md: 16px;
  --am-r-lg: 22px;
  --am-r-xl: 32px;
}

/* ===== GLOBAL TYPOGRAPHY ===== */
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: var(--am-bg) !important;
  color: var(--am-g900) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .entry-title,
.woocommerce div.product .product_title,
.woocommerce .related h2,
.woocommerce .upsells h2 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  letter-spacing: -1px !important;
  color: var(--am-g900) !important;
}

h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
}

/* ===== HEADER OVERRIDES ===== */
.ast-primary-header,
.site-header {
  background: rgba(253,252,250,0.92) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--am-g100) !important;
}

.site-title,
.site-title a {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--am-g900) !important;
  letter-spacing: -0.5px !important;
}

.main-navigation a,
.ast-header-navigation a {
  font-family: 'Manrope', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--am-g400) !important;
  transition: color 0.3s !important;
}

.main-navigation a:hover,
.ast-header-navigation a:hover {
  color: var(--am-g900) !important;
}

/* ===== WOOCOMMERCE PRODUCT CARDS ===== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border-radius: var(--am-r-md) !important;
  overflow: hidden !important;
  background: var(--am-white) !important;
  border: 1px solid var(--am-g100) !important;
  transition: all 0.35s ease !important;
  box-shadow: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--am-sh-lg) !important;
  border-color: transparent !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  letter-spacing: -0.3px !important;
  color: var(--am-g900) !important;
}

.woocommerce ul.products li.product .price {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  color: var(--am-g900) !important;
  padding: 0 16px !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--am-g300) !important;
}

.woocommerce ul.products li.product img {
  border-radius: 0 !important;
}

/* Store name above product title */
.woocommerce ul.products li.product .am-store-name {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--am-g300);
  padding: 12px 16px 0;
  display: block;
}

/* ===== IMPACT CHIPS ===== */
.am-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 3px;
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.am-chip-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.am-chip-dot svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Chip variants */
.am-chip-verde { background: var(--am-verde-bg); color: #1A7A4A; }
.am-chip-verde .am-chip-dot { background: var(--am-verde); }
.am-chip-azul { background: var(--am-azul-bg); color: #1A5AB8; }
.am-chip-azul .am-chip-dot { background: var(--am-azul); }
.am-chip-violeta { background: var(--am-violeta-bg); color: #6B2E85; }
.am-chip-violeta .am-chip-dot { background: var(--am-violeta); }
.am-chip-naranja { background: var(--am-naranja-bg); color: #B8732E; }
.am-chip-naranja .am-chip-dot { background: var(--am-naranja); }
.am-chip-amarillo { background: var(--am-amarillo-bg); color: #9E8520; }
.am-chip-amarillo .am-chip-dot { background: var(--am-amarillo); }
.am-chip-turquesa { background: var(--am-turquesa-bg); color: #1A8F87; }
.am-chip-turquesa .am-chip-dot { background: var(--am-turquesa); }
.am-chip-fucsia { background: var(--am-fucsia-bg); color: #B02565; }
.am-chip-fucsia .am-chip-dot { background: var(--am-fucsia); }

/* Chip on product card (over image) */
.am-chip-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

/* Chip on product page - impact block */
.am-impact-block {
  background: var(--am-g50);
  border-radius: var(--am-r-sm);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--am-g100);
}

.am-impact-block-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--am-g300);
  margin-bottom: 10px;
}

.am-impact-block-text {
  font-size: 0.85rem;
  color: var(--am-g500);
  line-height: 1.6;
  margin-top: 8px;
}

/* Product card impact line */
.am-card-impact {
  font-size: 0.62rem;
  color: var(--am-g400);
  padding: 8px 16px;
  border-top: 1px solid var(--am-g100);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== WOOCOMMERCE BUTTONS ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  border-radius: var(--am-r-xs) !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s !important;
  background-color: var(--am-g900) !important;
  color: white !important;
  border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--am-violeta) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--am-sh-md) !important;
}

/* Add to cart on product cards */
.woocommerce ul.products li.product .button {
  width: 100% !important;
  text-align: center !important;
  padding: 12px !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  background: var(--am-g50) !important;
  color: var(--am-g600) !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--am-g900) !important;
  color: white !important;
}

/* ===== SINGLE PRODUCT PAGE ===== */
.woocommerce div.product .product_title {
  font-size: 2rem !important;
  line-height: 1.1 !important;
}

.woocommerce div.product p.price {
  font-family: 'Manrope', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--am-g900) !important;
}

/* ===== CHECKOUT IMPACT SUMMARY ===== */
.am-checkout-impact {
  background: var(--am-g50);
  border-radius: var(--am-r-sm);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--am-g100);
}

.am-checkout-impact-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--am-g300);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.am-checkout-impact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.am-checkout-impact-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--am-g500);
}

/* ===== CART PAGE ===== */
.woocommerce-cart .shop_table {
  border-radius: var(--am-r-md) !important;
  overflow: hidden !important;
  border: 1px solid var(--am-g100) !important;
}

/* ===== SALE BADGE ===== */
.woocommerce span.onsale {
  background: var(--am-g900) !important;
  color: white !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  right: 10px !important;
  top: 10px !important;
  left: auto !important;
}

/* ===== DOKAN VENDOR STORE ===== */
.dokan-store-sidebar .dokan-store-name {
  font-family: 'Playfair Display', serif !important;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--am-g100) !important;
}

/* Rainbow bar at the very bottom */
.am-footer-rainbow {
  height: 3px;
  background: linear-gradient(90deg, var(--am-verde), var(--am-azul), var(--am-violeta), var(--am-naranja), var(--am-amarillo), var(--am-turquesa), var(--am-fucsia));
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .woocommerce ul.products[class*="columns-"] li.product {
    width: 48% !important;
    margin-right: 4% !important;
  }

  .woocommerce ul.products[class*="columns-"] li.product:nth-child(2n) {
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products[class*="columns-"] li.product {
    width: 100% !important;
    margin-right: 0 !important;
  }
}
