/* Import Lato font */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap");

/* 1. Share section headers - "Share" and "Social Sharing" text */
.item--social-share-header {
  font-family: "Lato", sans-serif !important;
  color: #666666 !important;
}

/* Pinterest button responsive styling */
.item--social-share-button-pinterest {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Hide Facebook button - corrected selector */
.item--social-share-button-facebook {
  display: none !important;
}

/* Hide embed code section - corrected selector */
.section--embed-code {
  display: none !important;
}

/* Hide original text and replace with custom text using CSS */
.item--social-share-header {
  font-size: 0 !important;
  color: transparent !important;
  position: relative !important;
}

.item--social-share-header::after {
  content: "Add to your holiday mood board!" !important;
  font-size: 14px !important;
  color: #666666 !important;
  font-family: "Lato", sans-serif !important;
  font-weight: normal !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  white-space: normal !important;
  display: block !important;
}

/* Responsive font size for mobile */
@media screen and (max-width: 767px) {
  .item--social-share-header::after {
    font-size: 13px !important;
  }
}

/* Ensure consistent text content across all screen sizes */
.item--social-share-button-pinterest .item--social-share-button-text {
  display: inline !important;
  font-size: 14px !important;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 767px) {
  .item--social-share-button-pinterest {
    width: calc(100% - 20px) !important;
    margin: 10px 10px 0 10px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Force consistent text on mobile */
  .item--social-share-button-pinterest .item--social-share-button-text {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

/* Tablet responsive adjustments */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .item--social-share-button-pinterest {
    width: calc(100% - 10px) !important;
    margin: 10px 5px 0 5px !important;
    padding: 9px 10px !important;
  }
}

/* Desktop adjustments */
@media screen and (min-width: 1025px) {
  .item--social-share-button-pinterest {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px 15px !important;
  }
}

/* 2. Product names - Product title text */
.item--product-details-name {
  font-family: "Lato", sans-serif !important;
  color: #666666 !important;
  font-weight: normal;
}

/* 3. CTA buttons - "View Details" button text */
.item--product-action-primary {
  font-family: "Lato", sans-serif !important;
  background-color: #333333 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  border: none !important;
}

.item--item-counter {
  font-family: "Lato", sans-serif !important;
  color: #666666 !important;
}

.item--product-details-price {
  font-size: .813em;
  font-weight: bold;
}

/* Product tile styling - non-transparent with greyed out effect */
/* All product tiles get solid white background (prevents background image blending) */
.section--product-container {
  background-color: #7d7d7d !important;
  opacity: 1 !important;
  position: relative !important;
}

.section--product-container:not(.active) .item--product-details-container {
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

.section--product-container:not(.active) .item--product-image-container {
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

.section--product-container:not(.active) .item--product-actions-container {
  background-color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

/* Apply greyed out filter to content within inactive products */
.section--product-container:not(.active) .item--product-details-name {
  filter: grayscale(40%) brightness(0.8) !important;
  opacity: 1 !important;
}

.section--product-container:not(.active) .item--product-image {
  filter: grayscale(40%) brightness(0.8) !important;
  opacity: 1 !important;
  background-color: #ffffff !important;
}

.section--product-container:not(.active) .item--product-action-primary {
  filter: grayscale(40%) brightness(0.8) !important;
  opacity: 1 !important;
}

/* Active product - fully opaque bright white background */
.section--product-container.active {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.section--product-container.active .item--product-details-container,
.section--product-container.active .item--product-image-container,
.section--product-container.active .item--product-actions-container {
  background-color: transparent !important;
  opacity: 1 !important;
}

/* Remove greying effects from active product */
.section--product-container.active .item--product-image,
.section--product-container.active .item--product-details-name,
.section--product-container.active .item--product-action-primary {
  filter: none !important;
  opacity: 1 !important;
}

/* Ensure images have white background */
.item--product-image-container {
  background-color: #ffffff !important;
}

.item--product-image {
  background-color: #ffffff !important;
}