@charset "utf-8";

.product-modal {
    width: 90%;
    max-width: 1280px;
    height: auto;
    padding: 1rem;
    margin: 0 auto;
}

.product-modal-info{
  width: 100%;
}

.wrapper {
    width: 100%;
    text-align: center;
}

.product-carousel {
    width: 89%;
    margin: 0 auto;
}

.slick-next {
    right: -5px !important;
}

.slick-slide img {
    width: 100%;
    filter: brightness(0.98);
    border: unset;
}

.slick-prev,
.slick-next {
  width: 40px;
  height: 40px;
  z-index: 10;
}

.slick-prev:before,
.slick-next:before {
  content: '' !important;
  display: block;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.slick-prev:before {
  background-image: url('/theme/PB/img/contents/btn-prev.png');
}

.slick-next:before {
  background-image: url('/theme/PB/img/contents/btn-next.png');
}

.product-thumbnail-img {
    max-width: 120px;
    min-width: 120px;
    padding: 0.5rem;
    flex-grow: 0;
    cursor: pointer;
    object-fit: cover;
    border-radius: 1.2rem;
    filter: brightness(0.97);
}

.p-product-thumbnail-img {
    max-width: 200px !important;
    min-width: 200px !important;
}

.fx-product-name {
    font-size: 1.6rem !important;
}

.product-detail-wrapper {
    position: relative;
    display: inline-block;
}

.p-product-detail-button {
  background-color: #fff;
  font-weight: 500;
  color: #ef4415;
  margin: 1rem 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ef4415;
}

.product-detail-content {
    display: none;
    position: absolute;
    width: 250px;
    bottom: 4rem;
    left: 0;
    z-index: 10;
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-wrapper:hover .product-detail-content {
    display: block;
}

.tag-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    white-space: nowrap;
    padding: 3px 0;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #f4f4f5;
    color: #333;
    border: none;
    margin-bottom: 2px;
    transition: transform 0.15s, background 0.2s;
    cursor: pointer;
    user-select: none;
    text-indent: 0;
}

.tag.yellow {
    background-color: #ffe8b3;
    color: #6a4e00;
    border: 1px solid #ffda7a;
}

.tag.blue {
    background-color: #cceeff;
    color: #005e8c;
    border: 1px solid #a7dbf5;
}

.tag.gray {
    background-color: #888888;
    color: #fff;
    border: 1px solid #888888;
}

.tag-container > .tag {
    flex-shrink: 0;
}

#selectedProducts-bank {
    display: none;
}

.product-thumbnail-img.soldout {
    filter: brightness(0.5);
}

.img-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    font-size: 1.4rem;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

#slide-counter {
    font-weight: 500;
    color: #555;
    text-align: center;
    font-size: 2rem;
    margin-top: 1rem;
    display: contents;
}

.no-product-animal-img {
    padding: 0 2.5rem;
    position: relative;
    width: 55% !important;
}

.no-product-font {
    font-size: 1.8rem;
    background-color: #ef4023;
    border-radius: 1rem;
    width: 70%;
    padding: 3rem;
    display: inline-block;
    color: #fff;
    font-weight: 500;
}

#selectedProducts-carousel {
  display: none;
}

#selectedProducts-grid{
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

#selectedProducts-grid .p-product-box {
  margin: 0 !important;
  width: 100%;
}

.tag-description-text {
  color:#888888;
  font-size:1.5rem;
}

.padding222 {
  padding: 0 2rem 2rem 2rem;
}

.margin05 {
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.margin255 {
  margin: 0.2rem 0.5rem 0.5rem 0;
}

.text-modal-type {
  font-weight: 500;
  font-size:1.2rem;
  color:#888888;
}

#selectedProducts-grid .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#selectedProducts-grid [class*="col-"]{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.product-filter {
  width: 100%;
}

.product-filter--pc {
  display: flex;
  justify-content: space-between;
}

.product-filter--mo {
  display: none;
}

.product-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px 0;
  flex-wrap: wrap;
}

.product-search{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0 0 18px 0;
}

.product-search--pc {
  justify-content: flex-end;
}

.product-search input{
  width: 350px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 45px 0 20px;
  font-size: 16px;
  outline: none;
}

.product-search button{
  height: 42px;
  border-radius: 999px;
  border: 1px solid #ef4415;
  background:#fff;
  color:#ef4415;
  font-weight:600;
  padding: 0 14px;
  font-size: 14px;
}

.product-search-box{
  display: flex;
  justify-content: space-between;
}

.p-price-label{
  font-size: 1.7rem;
  color:#8d8d8d;
  font-weight: 500;
}

.p-price-val{
  font-size: 2rem;
  color:#ed3632;
  font-weight: 700;
}

.p-promotion{
  color: #7c66ff;
  font-size: 1.7rem;
  font-weight: 500;
}

.p-promotion-stickybar{
  color: #7c66ff;
  font-size: 1.3rem;
  font-weight: 500;
}

.p-badge-img{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  z-index: 3;
  pointer-events: none;
}

.btn-badge-icon {
  width: 30px;
  margin-left: 3px;
}

.between-box {
  display: flex;
  justify-content: space-between;
}

.p-img-cat-dog {
  width: 24px !important;
  display: inline !important;
  margin-bottom: 7px !important;
  margin-left: 5px;
}

.icon-magnifier {
  background-image: url(../img/map/ico-search.png);
  background-size: 20px;
  background-position: 95% 50%;
  background-repeat: no-repeat;
}

.filter-layer{
  margin: 0;
}

.filter-select-wrap {
  position: relative;
  display: inline-block;
}

.filter-select-wrap--zzim {
  margin-left: auto;
}

.btn-promotion{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #DDDDDD;
  background: #fff;
  color: #111;
  height: 42px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 500;
  padding: 0 16px;
}

.btn-search{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: unset;
  background: #F36663;
  color: #fff;
  padding: 2px 16px;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 500;
  height: 28px;
}


.icon-arrowup-wrap{
  width:28px;
  height:28px;
  background:#F36663;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.m-icon-arrowup-wrap{

}

.btn-promotion .icon-arrowup{
  width:20px;
  height:20px;
  transition:transform .2s ease;
}

.btn-promotion.is-open .icon-arrowup{
  transform:rotate(180deg);
}

.btn-select-pet{
  border: unset;
  background: #fce9e3;
}

.ico-search{
  width: 15px;
  margin-right: 5px;
}

.filter-select-layer{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:50;
  min-width: max-content;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  overflow:hidden;
}

.filter-select-list{
  margin:0;
  padding:0;
  text-align: center;
  list-style:none;
}

.filter-select-list li{
  padding:12px 14px;
  font-size:14px;
  cursor:pointer;
  line-height:1;
  background:#fff;
}

.filter-select-list li:hover{
  background:#f5f5f5;
}

.filter-select-list li.active{
  background: #fff;
  color: #F36663;
  font-weight: 700;
  border: 1px solid #F36663;
}

.filter-select-list li:first-child.active{
  border-top-left-radius:12px;
  border-top-right-radius:12px;
}

.filter-select-list li:last-child.active{
  border-bottom-left-radius:12px;
  border-bottom-right-radius:12px;
}

.pc-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  /* border: 1px solid #dddddd; */
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.pc-filter-toggle input {
  display: none;
}

.pc-filter-toggle__slider {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .2s ease;
}

.pc-filter-toggle__slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.pc-filter-toggle input:checked + .pc-filter-toggle__slider {
  background: #ef4415;
}

.pc-filter-toggle input:checked + .pc-filter-toggle__slider::after {
  transform: translateX(14px);
}

.pc-filter-toggle__text {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

#mFilterOpenBtn{
  display: none;
}

.modal-title {
  font-size: 20px;
  text-align: left;
  color: #111;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  padding: 0 20px 10px 20px;
}


#toast {
  display: none;
  position: fixed;
  bottom: 58%;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(47, 49, 255);
  color: white;
  padding: 7px;
  width: 20%;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
  opacity: 0.8;
  z-index: 9999;
  white-space: normal;
}

#toast_msg {
  display: none;
  position: fixed;
  bottom: 58%;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(47, 49, 255);
  color: white;
  padding: 10px 10px;
  width: 20%;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
  opacity: 0.8;
  z-index: 9999;
  white-space: normal;
}

@media all and (max-width: 991px) {
  #toast { width: 70% !important; }
  #toast_msg { width: 70% !important; padding:5px 10px; text-align:left; }
  .modal-select-product{ width: 100% !important; }
}

@media (max-width:768px){
  .product-modal{
    padding:0;
    width: 100%;
  }
  .modal-title{
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    padding-bottom: 5px;
  }
  #selectedProducts-carousel {
    display: none;
  }

  #selectedProducts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #selectedProducts-grid .p-product-box {
    margin: 0 !important;
    width: 100%;
  }

  .p-product-thumbnail-img {
    filter: brightness(0.98);
    border: unset;
    max-width: 90% !important;
    min-width: 90% !important;
  }

  #productModal {
    /* padding: 0 1rem; */
    margin-bottom: 2rem;
  }

  .p-img-cat-dog {
    width: 23px !important;
    margin-bottom: 0 !important;
  }

  .tag-description-text {
    font-size:9px;
  }

  .padding222 {
    padding: 0 1rem 1rem 1rem;
  }

  .fx-product-name {
    font-size: 1.4rem !important;
  }

  .text-modal-type {
    font-weight: 500;
    font-size:1.2rem;
    color:#888888;
  }

  .p-product-detail-button {
    background-color: #fff;
    font-weight: 700;
    color: #ef4415;
    margin: 0.2rem 0;
    padding: 0 0.25rem;
    font-size: 10px;
    border: 1px solid #ef4415;
  }

  .margin05 {
    margin: 1px 2px 0 0;
  }

  .tag {
    padding: 0 8px;
    font-size: 10px;
    margin-bottom: 2px;
  }

  .product-detail-content {
    position: absolute;
    width: 150px;
    border: 1px solid #ccc;
    box-shadow: none;
    font-size: 12px;
  }

  .product-filter--pc {
    display: none !important;
  }

  .product-filter--mo {
    display: block;
  }

  #mFilterOpenBtn{
    color: #fff;
    display: inline-flex;
    background: #f36663;
  }

  .filter-layer{
    display: flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    margin: 10px 20px 5px 20px;
  }

  .btn-promotion{
    height: 28px;
    font-size: 14px;
    border-radius: 20px;
    min-width: 110px;
    padding: 0 14px;
    font-weight: 600;

    background: #FCE9E3;
    border: unset;
  }

  .btn-search{
    font-size: 14px;
    border-radius: 20px;
    font-weight: 500;
  }

  .p-badge-img{
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px;
  }

  .p-price-label{
    font-size: 1rem;
    color:#8d8d8d;
    font-weight: 500;
  }

  .p-price-val{
    font-size: 1.4rem;
    color:#ed3632;
    font-weight: 700;
  }

  .p-promotion{
    color: #7c66ff;
    font-size: 1.2rem;
    font-weight: 500;
  }

  #toast { width: 80% !important; }
  #toast_msg { width: 80% !important; padding:5px 10px; text-align:left; bottom: 50%; }

  .btn-animal-box--modal {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:0;
  }

  .btn-animal-box--modal .btn-animal {
    min-height:38px;
    padding:0 14px;
    border:1px solid #e5e7eb;
    border-radius:999px;
    background:#fff;
    color:#374151;
    font-size:13px;
    font-weight:500;
    line-height:1;
  }

  .btn-animal-box--modal .btn-animal.active {
    border-color:#FCE9E3 !important;
    background:#FCE9E3 !important;
    color:#111 !important;
    font-weight:600;
  }
  .m-filter-chip-btn.active{
    border-color:#FCE9E3;
    background:#FCE9E3;
    color:#111;
    font-weight:600;
  }

  .btn-animal-box--modal .btn-animal::after {
    display:none;
  }
  .btn-promotion .icon-arrowup{
    width:14px;
    height:14px;
  }
  .m-icon-arrowup-wrap{
    width: 20px;
    height: 20px;
    background:#F36663;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
  }
}

@media (min-width: 767px) {
  .font-size-17 {
    font-size: 1.7rem !important;
  }

  .font-size-15 {
    font-size: 1.5rem !important;
  }

  .slick-prev {
    left: -45px !important;
  }

  .slick-next {
    right: -25px !important;
  }

  .slick-prev:before,
  .slick-next:before {
    font-size: 45px !important;
  }

  .p-product-thumbnail-img {
    max-width: 250px !important;
    min-width: 250px !important;
  }

  .p-fx-product-name {
    font-size: 22px !important;
  }

  .product-detail-content {
    width: 300px;
  }

  .p-tag {
    font-size: 1.4rem !important;
  }

  .fx-no-product-animal-img {
    width: 20% !important;
  }

  .fx-no-product-font {
    width: 30% !important;
  }
}


/* 프로모션 무지개 텍스트 */
.rainbow-text {
  display: inline-block;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    #ff0000,
    #ff9900,
    #33cc33,
    #3399ff,
    #9933ff,
    #ff3399,
    #ff0000
  );

  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: rainbow-text 5s linear infinite,bounce 2s ease-in-out infinite;;
  will-change: background-position;
}

/* active 상태에서는 무지개 제거 */
.filter-select-list li[data-value="spring"].active .rainbow-text {
  background: none;
  -webkit-text-fill-color: #fff;
  animation: none;
}

@keyframes rainbow-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}
/* 바운스 */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* 핑크 그라데이션 텍스트 */
.pink-text {
  display: inline-block;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    #ff4d8d,
    #ff66a3,
    #ff85b8,
    #ffa3cc,
    #ffc2dd,
    #ff4d8d
  );

  background-size: 300% 100%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: pink-gradient 4s linear infinite;
  will-change: background-position;
}

@keyframes pink-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
