/*
 Theme Name:   Astra Child - Cosmetica
 Theme URI:    https://weedspayments.com
 Description:  Child theme for cosmetics stores. No Elementor required.
 Author:       602 Team
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child-cosmetica
*/

/* ============================================
   GLOBAL RESETS & TYPOGRAPHY
   ============================================ */

body {
  font-family: "Montserrat", sans-serif;
}

/* ============================================
   CUSTOM CSS (previously in WP Customizer, 2887 bytes)
   Replaces the Elementor-generated styles
   ============================================ */

/* --- Header --- */
.ast-primary-header-bar {
  border-bottom: 1px solid #eee;
}

.ast-builder-menu-1 .menu-item > .menu-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* --- Footer custom --- */
.site-footer-custom {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 14px;
  text-align: center;
}

.site-footer-custom a {
  color: #fff;
  text-decoration: none;
}

.site-footer-custom a:hover {
  text-decoration: underline;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-contact {
  margin-bottom: 12px;
}

.footer-contact a {
  color: #e0e0e0;
}

.footer-copyright {
  margin-bottom: 16px;
  color: #999;
  font-size: 13px;
}

.footer-logos {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logos img,
.footer-logos svg {
  height: 28px;
  opacity: 0.7;
}

.footer-legal {
  border-top: 1px solid #333;
  padding-top: 16px;
}

.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal li a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
}

.footer-legal li a:hover {
  color: #fff;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

.demo-homepage {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Hero Banner --- */
.hero-banner {
  width: 100%;
  margin-bottom: 40px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Section titles --- */
.demo-homepage h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #222;
  text-transform: none;
}

/* --- Products sections (WooCommerce) --- */
.products-featured,
.products-bestsellers {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.products-featured .woocommerce ul.products,
.products-bestsellers .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products-featured .woocommerce ul.products li.product,
.products-bestsellers .woocommerce ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
}

/* --- Promo images --- */
.promo-images {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promo-images a,
.promo-images .promo-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.promo-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.promo-images a:hover img {
  transform: scale(1.03);
}

/* --- Testimonials --- */
.testimonials {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
}

.testimonial-name {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}

/* --- Features grid --- */
.features-section {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-item i {
  font-size: 40px;
  color: #b8860b;
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #222;
}

.feature-item p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .promo-images {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-featured .woocommerce ul.products,
  .products-bestsellers .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-homepage h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WOOCOMMERCE PRODUCT CARD STYLING
   ============================================ */

.woocommerce ul.products li.product a img {
  border-radius: 8px;
  margin-bottom: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.woocommerce ul.products li.product .price {
  color: #222;
  font-weight: 600;
}

.woocommerce ul.products li.product .button {
  background: #222;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce ul.products li.product .button:hover {
  background: #444;
}

/* Hide default Astra footer (we use custom) */
.site-footer .site-above-footer-wrap,
.site-footer .ast-footer-copyright,
.site-footer .site-below-footer-wrap:not(.site-footer-custom) {
  display: none;
}
