/*
Theme Name: Frost Child
Theme URI: http://example.com
Description: Child theme for Frost
Author: Your Name
Template: frost
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../frost/style.css");

body.home header .wp-block-post-title {
  display: none;
}

body.home .wp-site-blocks main.wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home .entry-content {
  margin-top: 0 !important;
}

/*Nav in post (tabs) styling*/
.wp-block-group.sticky-row {
  position: sticky !important;
  top: 0;
  z-index: 9999;

  .wp-block-columns {
    box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.1);
  }
}

.post-nav-buttons .wp-element-button {
  background-color: white;
  color: #433d4f;
  font-size: 20px;
  font-weight: 400;
  height: 100px;
}

.tab-btn {
  border-bottom: 4px solid transparent;
  transition: border-bottom-color 0.2s;
}

.active-tab,
.first-tab-btn {
  border-bottom-color: #652088;
}

/*Add button*/
.wp-block-group.add-btn-row {
  position: relative;
  width: 100%;
}
.add-btn {
  border-radius: 50%;
  background-color: transparent;
  border: 3px solid aquamarine;
  color: aquamarine;
  font-weight: bold;
  padding-bottom: 2px;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 0;
  cursor: pointer;
  transition: scale 0.2s ease-in;

  &:hover {
    transform: scale(1.1);
  }
}

/*Category SEO styling*/
.category-seo-content {
  width: 70%;
  margin: auto;

  img {
    border-radius: 5px;
    max-height: 700px;
    object-fit: cover;
  }
}

.category-seo-content img.alignleft {
  float: left;
  margin: 0 2rem 1rem 0;
  max-width: 50%;
}

.category-seo-content img.alignright {
  float: right;
  margin: 0 0 1rem 2rem;
  max-width: 50%;
}

.category-seo-content p > img.aligncenter {
  display: flex;
  justify-content: center;
  max-width: 50%;
  margin: auto;
}

.category-seo-content::after {
  content: "";
  display: table;
  clear: both;
}

/*FAQ styling*/
.wp-block-group .faq {
  max-width: 900px;

  details {
    border-bottom: 1px solid #e9e9ea;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
  }

  summary {
    position: relative;
    list-style: none;
    cursor: pointer;
  }

  summary::after {
    content: "❮";
    position: absolute;
    right: 0;
    top: 5px;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
    color: #6d6685;
  }

  details[open] summary::after {
    transform: rotate(270deg);
  }

  .faq-answer {
    display: flex;
    width: 100%;
    flex-direction: row;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 300;
    color: #6d6685;
    gap: 0.5rem;

    svg {
      width: 3%;
    }

    span {
      width: 97%;
    }
  }
}

/*Step-numbers in the how-to-section template part*/
.wp-block-heading .step {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 16px;
  background-color: #1c1126;
  color: white;
  width: 25px;
  height: 25px;
  margin-right: 0.3rem;
  position: relative;
  top: -3px;
}

/*Underline links on hover*/
.underline-on-hover a:hover {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
}

.no-underline a {
  text-decoration: none;
}

/*Breadcrumb styling*/
.breadcrumbs {
  .taxonomy {
    margin: 0 0.5rem;
    text-decoration: none;
  }

  a.home {
    margin-right: 0.5rem;
    text-decoration: none;
  }
  .current-item {
    font-weight: 500;
  }
}

/*Search input and button styling*/
.wp-block-search__input {
  border-radius: 5px;
  background-color: #f5f4f5;
  border-color: #d1d1d1;
}

.header-search .wp-block-search__button {
  padding: 0;
  width: 6rem;
  background-color: #652088;

  svg {
    font-size: 2rem;
  }
}

/*Price*/
.price-block {
  font-weight: 400;
}

/*Image grid on artist page*/
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  height: 100%;
}

/* Thumbnails (images + videos) */
.image-grid img,
.image-grid video,
.image-grid .video-thumb {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 5px;
}

.image-grid img,
.image-grid .video-thumb {
  opacity: 0.8;
}

/* Make thumbnails clickable */
.thumb {
  cursor: pointer;
  position: relative;
}

.thumb.active {
  opacity: 1;
}

.thumb:hover {
  opacity: 1;
}

/* Product gallery grid */
.product-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  max-width: 1200px;
  height: 500px;
}

/* Big image/video container */
.big-image {
  height: 100%;
  max-height: 530px;
}

.big-image img,
.big-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.play-icon {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-icon::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  pointer-events: none;
  z-index: 2;
}

/*Comments/recensioner*/
.wp-block-comments .comments-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/*Ninja form styling*/
#nf-form-2-cont {
  margin-top: 10px !important;
}

/*Heart and phone icon in header hover animation*/
.icon-phone img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.icon-heart img:hover {
  animation: heart-thump 0.8s ease-in-out;
  cursor: pointer;
}

@keyframes heart-thump {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  50% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/*Artist slider*/
.related-slider.swiper-container {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
}

.related-slider .swiper-slide .slide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 555px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  padding-bottom: 1.5rem;

  a {
    text-decoration: none;
    color: #24bd89;

    &:hover {
      color: #4cd9bc;
    }
  }

  h3,
  p,
  .slide-categories,
  .btn-container,
  .slider-price {
    margin: 0 0.8rem;
  }

  .slide-categories {
    color: #24bd89;
  }

  .slide-category {
    font-size: 16px;
  }

  h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: 500;

    a {
      color: #433d4f;

      &:hover {
        color: #433d4f;
      }
    }
  }

  p {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 16px;

    a {
      display: inline-block;
      font-weight: 400;
    }
  }
}

.related-slider .swiper-slide img {
  height: 175px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  box-sizing: border-box;
}

.related-slider .swiper-slide button {
  border: none;
  background-color: #24bd89;
  width: 100%;
  border-radius: 5px;
  padding: 1rem;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  margin-top: 10px;
  cursor: pointer;
}

.related-slider .swiper-slide .price-and-btn {
  margin-top: auto;
}

.related-slider .swiper-slide .slider-price {
  color: #652088;
  font-weight: 600;
  font-size: 24px;
}

.related-slider .swiper-button-next,
.related-slider .swiper-button-prev {
  color: #433d4f;
  margin: 1rem;
}

.related-slider .swiper-pagination-bullet {
  background: #433d4f;
}

/*Filter*/
.widget_wpc_filters_widget .wpc-filters-ul-list a {
  color: #1c1126;
}

.widget_wpc_filters_widget .wpc-filter-title {
  font-size: 24px;
  font-weight: 400;
  border-bottom: 1px solid #e8e8e8;
}

/*Forms*/
#contact-form {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #ffffff;
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 100001;
  overflow-y: auto;
}

#contact-form.form-active {
  right: 0;
}

#close-form {
  background: none;
  border: none;
  font-size: 22px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.post-ccc_favorite {
  width: 100%;
  gap: 10px;

  a {
    font-size: 14px;
  }

  h3 {
    margin: 5px 0;
    text-align: center;
  }

  img {
    border-radius: 5px;
  }
}

.list-ccc_favorite {
  width: 30% !important;
}

#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"]
  .ccc-favorite-post-toggle {
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  #contact-form {
    width: 100%;
  }
}
