@import url("https://fonts.googleapis.com/css?family=Open+Sans:wght@300;400;600;700&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  margin: 0;
  padding: 0;

  &.ast-plain-container,
  &.ast-page-builder-template {
    background-color: #efece5;
  }
}

@media (min-width: 391px) {
  body {
    padding: 0 1rem;
  }
}

/* Header */
.ast-desktop {
  .ast-primary-header-bar {
    .main-header-menu > .menu-item {
      font-size: 0.875rem;
    }
  }
}

.site-header {
  .main-header-bar {
    &.ast-primary-header-bar {
      background-color: #efece5;
      border-bottom: none;
    }
  }

  .logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
  }

  .site-navigation {
    list-style: none;
    display: flex;
    gap: 20px;

    a {
      text-decoration: none;
      color: #333;
      font-weight: 600;
      transition: color 0.3s;

      &:hover {
        color: #ff9800;
      }
    }
  }
}

@media (min-width: 391px) {
  .site-header {
    .site-primary-header-wrap > div {
      grid-template-columns: 30% 70%;
    }

    .site-header-primary-section-right {
      justify-content: flex-start;
    }
  }
}

/* Hero Section */
.entry-content > .wp-block-group.hero-section {
  padding: 0;
}

.hero-section {
  + .hero-section {
    margin-top: 1.5rem;
  }

  figure {
    border-radius: 20px;
    background-color: white;
    overflow: hidden;
    margin-top: 0;
  }
}

.hero-section-1 {
  margin-top: 1.5rem;

  &.full {
    grid-template-columns: 100%;
  }

  > figure {
    max-height: 360px;
  }

  > .wp-block-group {
    margin-top: 0;

    > figure {
      max-height: 175px;
      + figure {
        margin-top: 10px;
      }
    }
  }
}

.hero-section-2 {
  figure {
    max-height: 230px;
  }

  > div {
    width: 100%;
    text-align: center;
  }
}

.hero-section-3 {
  margin-bottom: 3rem;

  figure {
    max-height: 250px;
  }
}

@media (min-width: 391px) {
  .hero-section {
    display: grid;
    column-gap: 1%;
  }

  .hero-section-1 {
    grid-template-columns: 64% 35%;
  }

  .hero-section-2 {
    grid-template-columns: 20% 58% 20%;
  }

  .hero-section-3 {
    grid-template-columns: 24.25% 24.25% 24.25% 24.25%;
  }
}

/* Homepage */
.home {
  .wp-block-woocommerce-product-collection {
    + .wp-block-woocommerce-product-collection {
      margin-top: 1.5rem;
    }
  }
}

/* Product Grid */
.wp-block-woocommerce-product-collection,
.products {
  .product {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    img {
      max-width: 100%;
    }

    .product-title {
      font-size: 18px;
      font-weight: 600;
      margin: 10px 0;
    }

    .product-price {
      font-size: 16px;
      color: #ff9800;
      font-weight: bold;
    }
  }
}

/* Footer */
.site-footer {
  .site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background: transparent;
    border-top: none;
  }
}

/* Product Page */
.woocommerce #content .ast-woocommerce-container div.product div.images,
.woocommerce .ast-woocommerce-container div.product div.images,
.woocommerce-page #content .ast-woocommerce-container div.product div.images,
.woocommerce-page .ast-woocommerce-container div.product div.images {
  width: 66%;
}

.woocommerce #content .ast-woocommerce-container div.product div.summary,
.woocommerce .ast-woocommerce-container div.product div.summary,
.woocommerce-page #content .ast-woocommerce-container div.product div.summary,
.woocommerce-page .ast-woocommerce-container div.product div.summary {
  width: 30%;
}
