/*
 Theme Name: Astra Child
 Template: astra
*/

.site-header {
  border-bottom: 1px solid #e6e6e6;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
}

.amf-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.amf-cat img {
  width: 100%;
  border-radius: 50%;
  transition: transform .3s ease;
  max-width: 160px;
  margin: 0 auto;
  display: block;
  background: #fff;
  padding: 8px;
}

.amf-cat:hover img {
  transform: scale(1.05);
}

.amf-cat {
  text-decoration: none;
  color: #222;
}

.amf-cat span {
  display: inline-block;
  margin-top: .75rem;
  padding: .4rem .9rem;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: all .25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  background: var(--ast-global-color-5);
  color: var(--ast-global-color-3);
  border: 1px solid var(--ast-global-color-5);
}

.amf-cat:hover span {
  background: var(--ast-global-color-1);
  color: #fff;
  transform: translateY(-2px);
}

.amf-products {
  display: grid;
  gap: 2rem;
}

.amf-products.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.amf-products.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.amf-product {
  background: #fff;
  border-radius: 6px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.amf-detail {
  padding: 0 1.25rem 1.25rem;
}

.amf-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.amf-product .thumb {
  display: block;
  position: relative;
  overflow: hidden;
}

.amf-product img {
  width: 100%;
  transition: opacity .3s ease;
  border-radius: 6px 6px 0 0;
}

.amf-product img.secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.amf-product:hover img.secondary {
  opacity: 1;
}

.amf-product h3 {
  font-size: 15px;
  font-weight: 500;
  margin: .75rem 0 1rem;
}

.amf-product .price {
  color: #111;
  font-weight: 600;
  font-size: 1.05rem;
}

.amf-product .price del {
  color: #999;
  font-weight: 400;
}

.amf-product .cart {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  opacity: 1;
  transition: opacity .25s ease, transform .25s ease;
}

.amf-product .cart .amf-add-btn {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  font-size: 0;
  background-color: #007cba;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2zM7.17 14h9.66c.75 0 1.41-.41 1.75-1.03l3.58-6.49a1 1 0 0 0-.88-1.48H5.21L4.27 2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amf-products .out-of-stock {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.amf-product {
  position: relative;
}

.amf-thumb-wrap {
  position: relative;
}

.amf-product .amf-quick-view {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 0, 0, .75);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;

  transform: translateY(100%);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  z-index: 5;
  user-select: none;
}

.amf-product .amf-quick-view:hover {
  background: var(--ast-global-color-0);
}

#amf-quick-view-modal {
  display: none;
}

#amf-quick-view-modal.active {
  display: block;
}

.amf-qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9998;
}

.amf-qv-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.amf-qv-loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #007cba;
  border-radius: 50%;
  animation: amf-spin 1s linear infinite;
}

@keyframes amf-spin {
  to {
    transform: rotate(360deg);
  }
}


.amf-qv-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  z-index: 9999;
}

.amf-qv-wrap {
  display: flex;
  gap: 30px;
  max-width: 900px;
}

.amf-qv-left img {
  max-width: 450px;
  width: 100%;
}

.amf-qv-right {
  flex: 1;
  padding: 24px 24px 24px 0;
}

.amf-qv-title {
  margin: 0 0 10px;
}

.amf-qv-price {
  font-size: 22px;
  margin-bottom: 20px;
  color: #111;
}

.amf-qv-carousel {
  position: relative;
  overflow: hidden;
}

.amf-qv-slide {
  display: none;
}

.amf-qv-slide.active {
  display: block;
}

.amf-qv-slide img {
  width: 100%;
  display: block;
}

.amf-qv-prev,
.amf-qv-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: none;
  width: 60px;
  height: 60px;
  font-size: 28px;
  line-height: 60px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.amf-qv-prev {
  left: 10px;
}

.amf-qv-next {
  right: 10px;
}

.amf-qv-cart .quantity {
  display: inline-block;
  margin-right: 10px;
}

.amf-qv-cart button.single_add_to_cart_button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #007cba;
  color: #fff;
  border: none;
  cursor: pointer;
}

.amf-qv-cart .amf-qv-add-btn.out-of-stock {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

.amf-contact-banner {
  background-color: #1a415e;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.amf-contact-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.49);
}

.amf-contact-banner-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.amf-contact-banner h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.amf-contact-banner p {
  font-size: 1.2rem;
}

.amf-contact-team {
  padding: 60px 20px;
  text-align: center;
  background-color: #f8f4f0;
}

.amf-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.amf-team-member {
  flex: 0 0 250px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}

.amf-team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.amf-team-member img {
  width: 150px;
  height: 150px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #1a415e;
}

.amf-team-member h4 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
  color: #1a415e;
}

.amf-team-member p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.amf-contact-form {
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto 80px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .amf-cat img {
    max-width: 110px;
  }

  .amf-products.cols-4,
  .amf-products.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .amf-product .cart {
    opacity: 1;
  }

  .amf-product .amf-quick-view {
    transform: translateY(0);
    opacity: 1;
    position: static;
  }

  .amf-team-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) {
  .amf-product:hover .cart {
    opacity: 1;
    transform: translateY(-4px);
  }

  .amf-product:hover .amf-quick-view {
    transform: translateY(0);
    opacity: 1;
  }
}