/* Moonveil Studios Shop Archive Page Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Jost', sans-serif;
}

/* Base Container Styles */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Shop Page Wrapper */
.shop-page-wrapper {
  min-height: 100vh;
  background-color: #000;
  color: #ecf8ff;
  padding: 0 0 80px;
}

/* Shop Header */
.woocommerce-products-header {
  margin-bottom: 60px;
  text-align: center;
}

.woocommerce-products-header__title {
  font-family: 'Jost', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ecf8ff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.woocommerce-products-header .woocommerce-products-header__description {
  font-size: 18px;
  color: #ecf8ff;
  opacity: 0.8;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Shop Loop Controls */
.woocommerce-before-shop-loop {
  margin-bottom: 40px;
}

.woocommerce-result-count {
  font-size: 16px;
  color: #ecf8ff;
  opacity: 0.7;
  margin-bottom: 20px;
}

.woocommerce-ordering {
  margin-bottom: 30px;
}

.woocommerce-ordering select {
  padding: 12px 40px 12px 16px;
  background: rgba(236, 248, 255, 0.1);
  border: 2px solid rgba(236, 248, 255, 0.3);
  border-radius: 8px;
  color: #ecf8ff;
  font-size: 16px;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ecf8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: all 0.3s ease;
}

.woocommerce-ordering select:focus {
  outline: none;
  border-color: #0094fa;
  background-color: rgba(0, 148, 250, 0.1);
}

/* Products Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Product Card */
.product-card {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(236, 248, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(236, 248, 255, 0.1);
}

.product-card__inner:hover {
  background: rgba(236, 248, 255, 0.1);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 148, 250, 0.2);
  border-color: rgba(0, 148, 250, 0.3);
}

/* Product Image */
.product-card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: rgba(236, 248, 255, 0.03);
}

.product-card__image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card__inner:hover .product-card__image-wrapper img {
  transform: scale(1.05);
}

.product-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Sale Badge */
.product-card__image-wrapper .onsale {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #0094fa;
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  font-family: 'Jost', sans-serif;
}

/* Product Content */
.product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.product-card__header {
  flex: 1;
  margin-bottom: 20px;
}

.product-card__title {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ecf8ff;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.product-card__title a {
  color: #ecf8ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card__title a:hover {
  color: #0094fa;
}

/* Product Rating */
.product-card__content .star-rating {
  margin-bottom: 12px;
  font-size: 14px;
  color: #0094fa;
}

.product-card__content .star-rating::before {
  color: rgba(236, 248, 255, 0.3);
}

/* Product Price */
.product-card__content .price {
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0094fa;
  margin-bottom: 0;
}

.product-card__content .price del {
  color: #ecf8ff;
  opacity: 0.5;
  font-size: 18px;
  margin-right: 10px;
}

.product-card__content .price ins {
  text-decoration: none;
}

/* Product Footer */
.product-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 248, 255, 0.1);
}

/* Add to Cart Button */
.product-card__footer .button,
.product-card__footer .add_to_cart_button {
  width: 100%;
  padding: 14px 24px;
  background: #0094fa;
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.product-card__footer .button:hover,
.product-card__footer .add_to_cart_button:hover {
  background: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 148, 250, 0.4);
  color: #000;
}

.product-card__footer .button:disabled,
.product-card__footer .add_to_cart_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.product-card__footer .button.added {
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  border: 2px solid #00ff00;
}

/* Pagination */
.shop-page-wrapper .woocommerce-pagination {
  margin-top: 60px;
  text-align: center;
}

.shop-page-wrapper .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-page-wrapper .woocommerce-pagination ul.page-numbers li {
  margin: 0;
}

.shop-page-wrapper .woocommerce-pagination ul.page-numbers a.page-numbers,
.shop-page-wrapper .woocommerce-pagination ul.page-numbers span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: rgba(236, 248, 255, 0.1) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ecf8ff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.shop-page-wrapper
  .woocommerce-pagination
  ul.page-numbers
  a.page-numbers:hover {
  background: rgba(0, 148, 250, 0.2) !important;
  color: #0094fa !important;
}

.shop-page-wrapper
  .woocommerce-pagination
  ul.page-numbers
  span.page-numbers.current {
  background: #0094fa !important;
  color: #000 !important;
  font-weight: 600;
}

.shop-page-wrapper .woocommerce-pagination ul.page-numbers a.prev.page-numbers,
.shop-page-wrapper .woocommerce-pagination ul.page-numbers a.next.page-numbers {
  font-weight: 600;
}

/* No Products Found */
.woocommerce-info,
.woocommerce-no-products-found {
  text-align: center;
  padding: 60px 20px;
  background: rgba(236, 248, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(236, 248, 255, 0.1);
}

.woocommerce-info p,
.woocommerce-no-products-found p {
  font-size: 18px;
  color: #ecf8ff;
  margin: 0;
  opacity: 0.8;
}

/* Breadcrumbs */
.shop-page-wrapper .woocommerce-breadcrumb,
.shop-page-wrapper .studios-breadcrumb {
  font-family:
    'Jost',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 25px;
  line-height: 1.2;
  color: #0094fa;
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-page-wrapper .woocommerce-breadcrumb a,
.shop-page-wrapper .woocommerce-breadcrumb span,
.shop-page-wrapper .studios-breadcrumb a,
.shop-page-wrapper .studios-breadcrumb span {
  font-size: 25px;
}

.shop-page-wrapper .woocommerce-breadcrumb a,
.shop-page-wrapper .studios-breadcrumb a {
  color: #0094fa;
  text-decoration: none;
  position: relative;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

/* First crumb (e.g. "Home" or "Services") – accent blue */
.shop-page-wrapper .woocommerce-breadcrumb span:first-child,
.shop-page-wrapper .woocommerce-breadcrumb a:first-child,
.shop-page-wrapper .studios-breadcrumb span:first-child,
.shop-page-wrapper .studios-breadcrumb a:first-child {
  color: #0094fa;
}

.shop-page-wrapper .woocommerce-breadcrumb a::after,
.shop-page-wrapper .studios-breadcrumb a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #0094fa, #49aeff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.shop-page-wrapper .woocommerce-breadcrumb a:hover,
.shop-page-wrapper .studios-breadcrumb a:hover {
  color: #49aeff;
  text-shadow: 0 0 8px rgba(0, 148, 250, 0.7);
}

.shop-page-wrapper .woocommerce-breadcrumb a:hover::after,
.shop-page-wrapper .studios-breadcrumb a:hover::after {
  transform: scaleX(1);
}

/* Current page in breadcrumb */
.shop-page-wrapper .woocommerce-breadcrumb span:last-child,
.shop-page-wrapper .studios-breadcrumb span:last-child,
.shop-page-wrapper .studios-breadcrumb__current {
  color: #ecf8ff;
}

/* Breadcrumb separator */
.shop-page-wrapper .woocommerce-breadcrumb .breadcrumb-separator,
.shop-page-wrapper .studios-breadcrumb .breadcrumb-separator,
.shop-page-wrapper .studios-breadcrumb__separator {
  color: #0094fa;
  opacity: 0.7;
  margin: 0 8px;
}

/* Notices */
.woocommerce-notices-wrapper {
  margin-bottom: 30px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.woocommerce-message {
  background: rgba(0, 148, 250, 0.2);
  border-left: 4px solid #0094fa;
  color: #ecf8ff;
}

.woocommerce-info {
  background: rgba(236, 248, 255, 0.1);
  border-left: 4px solid #ecf8ff;
  color: #ecf8ff;
}

.woocommerce-error {
  background: rgba(255, 0, 0, 0.2);
  border-left: 4px solid #ff0000;
  color: #ecf8ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }

  .woocommerce-products-header__title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .shop-page-wrapper {
    padding: 90px 0 60px;
  }

  .woocommerce-products-header {
    margin-bottom: 40px;
  }

  .woocommerce-products-header__title {
    font-size: 28px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
  }

  .product-card__content {
    padding: 20px;
  }

  .product-card__title {
    font-size: 18px;
  }

  .product-card__content .price {
    font-size: 20px;
  }

  .woocommerce-pagination ul.page-numbers {
    flex-wrap: wrap;
    gap: 8px;
  }

  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers span {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Breadcrumbs on mobile */
  .shop-page-wrapper .woocommerce-breadcrumb,
  .shop-page-wrapper .studios-breadcrumb {
    font-size: 18px;
    margin-bottom: 32px;
  }
}

@media (max-width: 720px) {
  .shop-page-wrapper .woocommerce-breadcrumb,
  .shop-page-wrapper .studios-breadcrumb,
  .shop-page-wrapper .woocommerce-breadcrumb a,
  .shop-page-wrapper .woocommerce-breadcrumb span,
  .shop-page-wrapper .studios-breadcrumb a,
  .shop-page-wrapper .studios-breadcrumb span {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .woocommerce-products-header__title {
    font-size: 24px;
  }
}

/* Customization Classes - Easy to modify */
.woocommerce ul.products {
  /* Change grid columns and gap */
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  /* gap: 40px; */
}

.product-card__inner {
  /* Customize card background and border */
  /* background: rgba(236, 248, 255, 0.05); */
  /* border: 1px solid rgba(236, 248, 255, 0.1); */
}

.product-card__footer .button {
  /* Customize button style */
  /* background: #0094fa; */
  /* color: #000; */
}

/* Additional Services Grid Styles for Shop Page */
.additional-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1279px) {
  .additional-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .additional-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .studios-breadcrumb * {
    font-size: 15px;
  }
  .additional-services-grid {
    grid-template-columns: 1fr;
  }
  .shop-page-wrapper.woocommerce-breadcrumb a,
  .shop-page-wrapper.woocommerce-breadcrumb span,
  .shop-page-wrapper.studios-breadcrumb a,
  .shop-page-wrapper.studios-breadcrumb span {
    font-size: 15px;
  }
}

/* Additional Service Card Styles */
.additional-service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.additional-service-card-link * {
  text-decoration: none !important;
}

.additional-service-card-link:hover .additional-service-card__title {
  text-decoration: none;
}

.additional-service-card {
  background-color: #02030a;
  border-radius: 10px;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.additional-service-card__image-placeholder {
  border-radius: 8px;
  border: 1px solid #0094fa;
  background: radial-gradient(
    circle at 0 0,
    #253245 0,
    #02030a 55%,
    #000000 100%
  );
  height: 160px;
  overflow: hidden;
  position: relative;
}

.additional-service-card__image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.additional-service-card__no-image {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 0 0,
    #253245 0,
    #02030a 55%,
    #000000 100%
  );
}

.additional-service-card__title {
  font-family:
    'Jost',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #ecf8ff;
  margin: 8px 0 0;
  /* Same vertical space for 1–3 lines so price + description align across cards */
  min-height: calc(1.3em * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-decoration: none !important;
}

.additional-service-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  min-height: 1.75em;
  flex-shrink: 0;
}

.additional-service-card__price-row--placeholder {
  pointer-events: none;
}

.additional-service-card__price--placeholder {
  visibility: hidden;
  white-space: nowrap;
}

.additional-service-card__price {
  font-family:
    'Jost',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0094fa;
}

.additional-service-card__price-suffix {
  font-size: 14px;
  color: #ecf8ff;
  opacity: 0.7;
}

.additional-service-card__add-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0094fa;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.additional-service-card__add-btn:hover {
  background: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 148, 250, 0.4);
}

.additional-service-card__add-btn-plus {
  font-size: 24px;
  color: #000;
  font-weight: 700;
  line-height: 1;
}

.additional-service-card__add-btn-icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.additional-service-card__add-btn-icon-svg {
  width: 27px;
  height: 25px;
}

.additional-service-card__add-btn:hover .additional-service-card__add-btn-plus {
  opacity: 0;
}

.additional-service-card__add-btn:hover .additional-service-card__add-btn-icon {
  opacity: 1;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.additional-service-card__description {
  font-family:
    'Jost',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
  color: #ecf8ff;
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.shop-page-wrapper .additional-services-grid {
  grid-auto-rows: auto;
  align-items: stretch;
}

/* Stretch card links to equal row height in the grid */
.shop-page-wrapper .additional-service-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/*
 * Fixed grid rows so image / title / price / description start at the same Y offset
 * on every card in the row (including the “Additional services” card with a
 * placeholder price row).
 */
.shop-page-wrapper .additional-service-card {
  display: grid;
  grid-template-columns: 1fr;
  /* image | title (2 lines) | price | description */
  grid-template-rows: 148px 52px 44px minmax(0, 1fr);
  row-gap: 6px;
  padding: 10px 12px 12px;
  height: 100%;
  box-sizing: border-box;
  flex: 1;
  align-content: start;
}

.shop-page-wrapper .additional-service-card__image-placeholder {
  height: 148px;
}

.shop-page-wrapper .additional-service-card__title {
  margin: 0;
  min-height: 0;
  height: 52px;
  max-height: 52px;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-page-wrapper .additional-service-card__price-row {
  min-height: 0;
  height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  align-content: flex-start;
  overflow: hidden;
}

.shop-page-wrapper .additional-service-card__price {
  display: block;
  line-height: 1.25;
  max-width: 100%;
}

/* Sale / variable price markup: keep inside the fixed row without extra offset */
.shop-page-wrapper .additional-service-card__price .price,
.shop-page-wrapper .additional-service-card__price .woocommerce-Price-amount {
  line-height: 1.25;
}

.shop-page-wrapper .additional-service-card__price del {
  display: inline;
  margin-right: 0.35em;
  opacity: 0.75;
}

.shop-page-wrapper .additional-service-card__price ins {
  display: inline;
  text-decoration: none;
}

.shop-page-wrapper .additional-service-card__description {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  text-overflow: clip;
  margin: 0;
  align-self: stretch;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.shop-page-wrapper .additional-service-card__price--placeholder::before {
  content: '\00a0';
  display: inline-block;
  visibility: hidden;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
}
.shop-page-wrapper .woocommerce-pagination ul.page-numbers li {
  border: none;
}

@media (max-width: 480px) {
  .shop-page-wrapper {
    padding: 0px 0 24px;
  }
}
