/* Add this style to change the color of the icon for products in the wishlist */
svg.wishlist path {
    fill: #FF826B; /* Peach */
  }
  
  svg.nowishlist path {
    fill: currentColor; /* Inherit color, usually black or whatever the parent defines */
  }
  
  
  .add-to-cart-icon:hover svg {
      color: #FF826B;
      fill: #FF826B;
    }
  
  .favorite-icon:hover .wishlist-button svg path {
      fill: #FF826B;
  }

  .share-btn .layer-svg {
    color: #FF826B;
  }
  

/* Artist Profile Styles */

.profile-container {
    /* max-width: 1200px; */
    background: white;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 12px 32px;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    /* margin-bottom: 24px; */
}

.profile-image {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 220px;
  min-width: 120px;
  min-height: 120px;
  aspect-ratio: 1 / 1;  
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.name {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: #222;
    text-transform: capitalize;
}

.title {
    color: #666;
    font-size: 15px;
    margin-top: 4px;
}

.location {
    /* font-size: 13px; */
    color: #666;
    /* margin-top: 6px;
    margin-bottom: 10px; */
}

.artworks-box {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.artworks-count {
    font-weight: 600;
    color: #ff826b;
    /* margin-right: 4px; */
    font-size: 14px;
}

.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f3f4f6;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 14px;
    color: #444;
}

.share-btn {
    background-color: transparent;
    color:#000;
    border: none;
    padding: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.share-btn:hover {
    opacity: 0.7;
}

.share-btn svg {
    width: 35px;
    height: 35px;
    fill: #666;
}



.about-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    border-left: 4px solid #ff826b;
    padding-left: 8px;
}

.about-text {
    position: relative;
    font-size: 15px;
    margin-left: 8px;
    color: #444;
    line-height: 1.7;
    max-height: 6.8em;
    /* ~4 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-transform: none;
}

.fade-overlay {
    position: relative;
    margin-top: -40px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.read-more-container {
    text-align: center;
    margin-top: 8px;
}

.read-more-link {
    color: #ff826b;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.read-more-link:hover {
    text-decoration: underline;
}

.about-text.expanded {
    max-height: none;
}

.fade-overlay.hidden {
    display: none;
}

.artworks-share-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide share button in default desktop layout (still shown in header) */
@media (min-width: 768px) {
    .profile-header .share-btn {
        display: inline-flex;
    }

    .artworks-share-wrapper .share-btn {
        display: none;
    }
}

/* For mobile layout */
@media (max-width: 768px) {
    .profile-header .share-btn {
        display: none;
    }

    .artworks-share-wrapper .share-btn {
        display: inline-flex;
    }

    .artworks-share-wrapper {
        justify-content: center;
        /* margin-top: 10px; */
    }

    .artworks-box {
      margin-bottom: 0px;
  }

    .share-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-info {
    width: 100%;
    min-width: unset;
  }

  .profile-image {
    max-width: 140px;
    max-height: 140px;
    min-width: 100px;
    min-height: 100px;
  }

  .artworks-share-wrapper {
    justify-content: center;
  }

  .about-section {
    margin-top: 16px;
    text-align: left;
  }
}


/* Responsive adjustments */
@media (max-width: 576px) {
    .profile-container {
        padding: 16px 20px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info {
        align-items: center;
    }

    .share-btn {
        align-self: center;
        /* margin-top: 8px; */
    }

    .about-title {
        font-size: 14px;
    }

    .about-text {
        font-size: 12px;
    }

    .name {
        font-size: 20px;
    }

    .title,
    .location,
    .tag {
        font-size: 13px;
    }
}


section.artist-art_sec {
  position: relative;
  /*z-index: -1;*/
}

/* Input and button styles */
/* input[type="text"] {
  width: 100%;
  margin-bottom: 5px;
  padding: 5px;
} */

/* button {
  background-color: #212529;
  color: white;
  border: none;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 0px 2px;
  cursor: pointer;
} */

.wishlist-button.in-wishlist #wishlist-svg {
  fill: red;
  /* Change this color as needed */
}

.listing-wishlist {
  position: inherit;
}

.icon-container {
  position: relative;
  display: inline-flex;
  /* Display icons in a row */
  align-items: center;
  /* Vertically center icons */
  cursor: pointer;
  /* Change cursor to pointer */
}

.card-wrapper{
  position: relative;
  overflow: visible;
}
.share-wrapper, .icon-container {
  position: relative;
}
.share-wrapper .social-icons,
.icon-container .social-icons {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* important for Safari */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.35s ease;
  z-index: 10;
}


/* This rule will ONLY apply the hover effect to show the popup on
   devices with a mouse. It will be ignored on touchscreens. */
@media (hover: hover) and (pointer: fine) {
    .share-wrapper:hover .social-icons,
    .icon-container:hover .social-icons,
    .share-wrapper:focus-within .social-icons,
    .icon-container:focus-within .social-icons {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .icon-container:hover .social-icons.position-above {
        transform: translateX(-50%) translateY(0);
    }

    .icon-container:hover .social-icons.position-left {
        transform: translateX(0) translateY(0);
    }
}

/* Positioning rules remain outside the media query */
.social-icons.position-above {
    top: auto;
    bottom: 95%; /* Adjusted for consistency with the other file */
}

.social-icons.position-left {
    left: auto;
    right: 0;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  /* background: rgba(255, 255, 255, 0.3); */
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.12); */
  transform: scale(0.8);
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
  /* background: rgba(255, 255, 255, 0.6); */
}


.col-rt-prod-list {
  break-inside: avoid;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 5px;
}

/* Style for the chat button */
.btn-dark {
  background-color: #343a40;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* Add your modal styles here */
.chat-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/*chat process*/

#chat-box {
  height: 300px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 10px;
}

#notification-icon {
  color: red;
  cursor: pointer;
}

.user-message {
  text-align: right;
  margin-bottom: 10px;
  clear: both;
}

.artist-message {
  text-align: left;
  margin-bottom: 10px;
  clear: both;
}
@media (min-width: 761px) and (max-width: 991px) {
  .artist-product-container {
    column-count: 3 !important;
  }
  .product-grid-item {
    width: calc(33.33% - 0.75rem);
  }
}

@media (min-width: 576px) and (max-width: 760px) {
  .col-rt-prod-list {
    width: calc(50% - 0.375rem);
  }
  .artist-product-container {
    column-count: 2 !important;
  }
}

@media (max-width: 575px) {
  .col-rt-prod-list {
    width: 100%;
  }
  .artist-product-container {
    column-count: 1 !important;
  }
}

/* Default: <480px — 1 column */
.product-grid-item {
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

/* ≥480px — 2 columns with 1 gutter (1rem) */
@media (min-width: 480px) {
  .product-grid-item {
    width: calc((100% - 1rem) / 2) !important;
  }
}

/* ≥768px — 3 columns with 2 gutters (2rem total) */
@media (min-width: 768px) {
  .product-grid-item {
    width: calc((100% - 2 * 1rem) / 3) !important;
  }
}

/* ≥1200px — 4 columns with 3 gutters (3rem total) */
@media (min-width: 1200px) {
  .product-grid-item {
    width: calc((100% - 3 * 1rem) / 4) !important;
  }
}
