/*
 Theme Name: Astra Child
 Template: astra
 Text Domain: astra-child
*/

@import url("../astra/style.css"); /* safe inheritance */

/* --- Footer Layout Fix --- */
#colophon {
  clear: both;
  width: 100%;
  overflow-x: hidden; /* prevent scroll issues */
}

/* --- Main Footer Styles --- */
.custom-footer {
  background-color: #f6f5f3;
  color: #333;
  padding: 50px 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}

/* --- Columns --- */
.footer-column {
  flex: 1 1 250px;
  margin-bottom: 30px;
}

.footer-info-column {
  flex: 1 1 300px;
  max-width: 350px;
}

/* --- Business Description --- */
.business-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
  color: #555;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  color: #555;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #d6a75d;
}

/* --- Column Headings --- */
.footer-column h3 {
  color: #000;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* --- Lists --- */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #d6a75d;
}

/* --- Contact Info --- */
.contact-item {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 15px;
}

.contact-item i {
  margin-right: 10px;
  color: #555;
}

/* --- Footer Bottom --- */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #e1e1e1;
  margin-top: 40px;
  padding-top: 20px;
  color: #777;
  font-size: 14px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Responsive Footer Fix (Force horizontal margins on mobile)
   ============================================================ */

/* --- Astra container fix --- */
@media (max-width: 1024px) {
  #colophon .ast-container,
  .site-footer .ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .footer-container {
    justify-content: center;
    gap: 25px;
    padding: 0 40px;
  }

  .footer-column {
    flex: 1 1 45%;
    text-align: center;
  }

  .footer-info-column {
    max-width: 100%;
  }
}

/* Mobiles (≤768px) */
@media (max-width: 768px) {
  .custom-footer {
    padding: 50px 0;
  }

  #colophon .ast-container,
  .site-footer .ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 20px !important;
    box-sizing: border-box;
  }

  .footer-column {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .footer-column h3 {
    margin-bottom: 12px;
  }

  .business-description {
    margin: 0 auto 20px auto;
    max-width: 95%;
    font-size: 15px;
    line-height: 1.6;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 12px;
  }

  .footer-bottom {
    text-align: center;
    width: 100%;
    padding: 15px 20px 0 20px;
    box-sizing: border-box;
  }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
  .custom-footer {
    padding: 40px 0;
  }

  #colophon .ast-container,
  .site-footer .ast-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .footer-container {
    width: 100%;
  }

  .business-description {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .social-icons a {
    font-size: 20px;
  }

  .footer-bottom {
    font-size: 13px;
    line-height: 1.4;
    padding: 15px 15px 0 15px;
  }
}


/* ============================================================
   WooCommerce Product Alignment Fix for Astra Theme
   Ensures price and "Ajouter au panier" button share one line
   ============================================================ */

/* --- Flex layout for price and button --- */
.astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- Wrap price and button in a flex row --- */
.astra-shop-summary-wrap .price,
.astra-shop-summary-wrap .button {
  margin-top: 0 !important;
}

/* --- Create horizontal alignment --- */
.astra-shop-summary-wrap .price {
  order: 1;
  margin-top: 10px !important; /* small space above */
  margin-right: 10px;
}

.astra-shop-summary-wrap .button {
  order: 2;
  margin-top: 10px !important; /* match price spacing */
}

/* --- Force price and button to appear inline --- */
.astra-shop-summary-wrap .price + .button {
  display: inline-block;
  vertical-align: middle;
}

.astra-shop-summary-wrap .price {
  display: inline-block;
  vertical-align: middle;
}

/* --- Optional: keep spacing under title clean --- */
.astra-shop-summary-wrap .woocommerce-loop-product__title {
  margin-bottom: 8px;
}
