/*
Theme Name: Botiga Child - eloroshop
Template: botiga
Version: 1.0.1
Text Domain: botiga-child
*/

:root {
  --eloro-bg: #faf8f5;
  --eloro-accent: #1a2942;
  --eloro-accent-soft: #4a5a7a;
  --eloro-text: #2a2a2a;
  --eloro-muted: #6b6b6b;
  --eloro-border: #e5e0d8;
}

body, .site, .site-content {
  background-color: var(--eloro-bg);
}

body, p, li, a, .woocommerce-Price-amount {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5, h6,
.site-title, .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-weight: 600; }

/* When custom logo is present, hide redundant site-title text */
.wp-custom-logo .site-branding .site-title,
.wp-custom-logo .bhfb-site-title,
.wp-custom-logo .site-description {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.custom-logo {
  max-height: 42px;
  width: auto;
  height: auto;
}

.button, button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button,
.woocommerce .button, input[type="submit"] {
  font-family: "Inter", sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.woocommerce ul.products li.product {
  padding: 0.5rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  margin-top: 0.6rem;
}

/* Product badges on same row — compact, two ends, never overlap */
.woocommerce ul.products li.product .loop-image-wrap {
  position: relative;
}
.woocommerce ul.products li.product .onsale {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  padding: 4px 9px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  border-radius: 20px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  max-width: 45% !important;
}
.woocommerce ul.products li.product .elor-rank {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  padding: 4px 9px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border-radius: 20px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  max-width: 45% !important;
}
@media (max-width: 480px) {
  .woocommerce ul.products li.product .onsale,
  .woocommerce ul.products li.product .elor-rank {
    padding: 3px 7px !important;
    font-size: 9px !important;
  }
}

.site-header {
  border-bottom: 1px solid var(--eloro-border);
}

/* Custom Footer Widget Area */
.eloro-footer-widgets {
  background-color: #1a2942;
  color: #c0c4cd;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.eloro-footer-widgets .eloro-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.eloro-footer-widgets .widget {
  margin-bottom: 0;
}
.eloro-footer-widgets .widgettitle,
.eloro-footer-widgets .widget-title,
.eloro-footer-widgets h2,
.eloro-footer-widgets h3 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #faf8f5 !important;
  margin: 0 0 1.2rem 0 !important;
  letter-spacing: 0.02em;
}
.eloro-footer-widgets a {
  color: #faf8f5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.eloro-footer-widgets a:hover {
  opacity: 0.7;
  text-decoration: none;
}
.eloro-footer-widgets p,
.eloro-footer-widgets li {
  color: #c0c4cd;
  font-size: 0.92rem;
  line-height: 1.7;
}
.eloro-footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .eloro-footer-widgets .eloro-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .eloro-footer-widgets .eloro-footer-grid {
    grid-template-columns: 1fr;
  }
  .woocommerce ul.products.columns-2 { grid-template-columns: 1fr !important; }
  .woocommerce ul.products.columns-2 li.product { width: 100% !important; margin-right: 0 !important; }
}
