/*
 Theme Name:   Astra Child
 Theme URI:    https://lfshop1.com/
 Description:  Astra 테마용 라페르샵 자식테마
 Author:       LaFaire
 Template:     astra
 Version:      1.0.1
*/

/* 여기 아래부터 커스텀 CSS 작성 */

body {
  font-family: 'SUIT Variable', 'Noto Sans KR', sans-serif;
}

/* ✅ 메인, 카테고리, 숏코드 상품 목록에서 옵션 숨기기 */
body.home ul.products li.product .variations_form,
body.front-page ul.products li.product .variations_form,
body.archive ul.products li.product .variations_form,
body.woocommerce-page ul.products li.product .variations_form,
body.home ul.products li.product .woo-variation-swatches,
body.front-page ul.products li.product .woo-variation-swatches,
body.archive ul.products li.product .woo-variation-swatches,
body.woocommerce-page ul.products li.product .woo-variation-swatches,
body.home ul.products li.product .variable-items-wrapper,
body.front-page ul.products li.product .variable-items-wrapper,
body.archive ul.products li.product .variable-items-wrapper,
body.woocommerce-page ul.products li.product .variable-items-wrapper,
body.home ul.products li.product .variable-item,
body.front-page ul.products li.product .variable-item,
body.archive ul.products li.product .variable-item,
body.woocommerce-page ul.products li.product .variable-item {
    display: none !important;
}

/* ❌ 상세페이지(상품 단일 페이지)에서는 옵션 표시 유지 */
body.single-product .variations_form,
body.single-product .woo-variation-swatches,
body.single-product .variable-items-wrapper,
body.single-product .variable-item {
    display: block !important;
}


.woocommerce-checkout-review-order-table td.product-name img {
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 4px;
}

/* WooCommerce 상품 카드에서 '상세보기' 버튼 숨기기 */
.woocommerce ul.products li.product .button {
  display: none !important;
}

/* 슬라이더(캐러셀)에서도 동일하게 숨기기 */
.wpcs-product .wpcs-button,
.wpcs-product .button {
  display: none !important;
}

/* 버튼 공간 제거 (여백 정리) */
.woocommerce ul.products li.product {
  padding-bottom: 0 !important;
}

/* 🔧 서브메뉴 배경색 수정 */
.main-header-menu .sub-menu {
  background-color: #111 !important; /* 어두운 배경 */
  border: none !important;
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* 🔧 서브메뉴 글씨 스타일 */
.main-header-menu .sub-menu a {
  color: #fff !important;
  padding: 10px 20px;
  font-weight: 400;
  font-size: 15px;
}

/* 🔧 서브메뉴 hover 효과 */
.main-header-menu .sub-menu a:hover {
  background-color: #ffb6c1 !important; /* 라페르샵 핑크 */
  color: #000 !important;
}

/* 🔧 메뉴간 경계선 제거 */
.main-header-menu .sub-menu li {
  border-bottom: none !important;
}

.lafaire-kakao-btn {
  position: fixed;
  bottom: 100px;   /* 화면 아래에서 25px */
  right: 25px;    /* 오른쪽에서 25px */
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #3C1E1E;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 40px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 99999;
  transition: all 0.3s ease;
  animation: lafaire-bounce 2.5s infinite;
}

.lafaire-kakao-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.lafaire-kakao-btn:hover {
  transform: scale(1.08);
  background: #FFD400;
}

/* 부드러운 위아래 움직임 */
@keyframes lafaire-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.kakao-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url('https://lfshop1.com/wp-content/uploads/2025/10/kakaocorp_talk-icon.svg') no-repeat center center;
  background-size: contain;
}

.cs-sidebar {
  position: sticky;
  top: 120px;
  padding: 20px;
  border-right: 1px solid #eee;
}

.cs-sidebar h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cs-sidebar ul {
  list-style: none;
  padding: 0;
}

.cs-sidebar ul li {
  margin-bottom: 12px;
}

.cs-sidebar ul li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-sidebar ul li a:hover {
  color: #ffb6c1; /* 라페르샵 포인트 컬러 */
}

@import url('https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css');

/* 사이트 전체 글씨체 변경 */
body, p, a, h1, h2, h3, h4, h5, h6, span, div, input, textarea, button {
  font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif !important;
  font-weight: 400;
}

/* 📱 모바일 / 오프캔버스 메뉴 아이콘 (드롭다운 화살표) 색상 고정 */
.ast-builder-menu-mobile .ast-menu-toggle,
.ast-builder-menu-mobile .ast-menu-toggle::before,
.ast-builder-menu-mobile .ast-menu-toggle::after {
  color: #ffffff !important; /* 흰색 화살표 */
  stroke: #ffffff !important;
  fill: #ffffff !important;
}




/* 배너 이미지 높이 자동 조정 (PC에서 짤림 방지) */
.elementor-slides .swiper-slide-bg,
.elementor-widget-image-carousel img,
.elementor-image img {
  height: auto !important;
  object-fit: contain !important;
}

/* 슬라이더 전체 높이 자동 */
.elementor-slides,
.elementor-swiper {
  height: auto !important;
  overflow: visible !important;
}





/* 🧱 모바일일 때 한 줄에 2개 유지 (가로폭 줄어들면 자동 반응형) */
@media (max-width: 768px) {
  .commentlist.cr-ajax-reviews-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 아주 작은 화면(아이폰 SE 등)에서는 1개씩 */
@media (max-width: 480px) {
  .commentlist.cr-ajax-reviews-list {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 768px) {
    .elementor-widget-shortcode .lafaire-reviews {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* 👉 이모지 크기 줄이기 */
.lafaire-review-item a img.emoji {
  width: 16px !important;   /* 크기 조정 (기본 16px 정도가 자연스러움) */
  height: 18px !important;
  vertical-align: middle !important;
  margin-right: 4px !important;
}



/* 💻 PC 기본 팝업 스타일 */
.pum-container {
  width: 500px !important;          /* 기본 가로폭 */
  max-width: 90% !important;        /* 혹시 화면이 좁을 때 자동 조정 */
  border-radius: 14px !important;   /* 모서리 둥글게 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important; /* 그림자 */
  padding: 0 !important;            /* 이미지 여백 제거 */
  background-color: #fff !important;
  overflow: hidden !important;      /* 이미지 잘림 방지 */
}

/* 📱 모바일(태블릿 이하) 자동 조정 */
@media (max-width: 768px) {
  .pum-container {
    width: 90% !important;          /* 화면 기준 90% 폭 */
    max-width: 360px !important;    /* 너무 넓지 않게 제한 */
    border-radius: 10px !important;
    padding: 0 !important;
  }
}

/* 📱 작은 모바일 (아이폰 SE 등) */
@media (max-width: 480px) {
  .pum-container {
    width: 92% !important;
    max-width: 320px !important;
  }
}

/* ✨ 팝업 내부 이미지 정렬 */
.pum-content img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
}

/* ❌ 닫기 버튼 스타일 */
.pum-close {
  top: 10px !important;
  right: 10px !important;
  background: #000 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 16px !important;
  line-height: 22px !important;
  opacity: 0.85 !important;
  transition: 0.2s ease-in-out;
}
.pum-close:hover {
  opacity: 1 !important;
  background: #f4b7c3 !important; /* 라페르샵 포인트 컬러 */
}


/* WooCommerce 마이페이지 > 계정 정보에서 '성' 필드 숨기기 */
.woocommerce-EditAccountForm label[for="account_last_name"],
.woocommerce-EditAccountForm input#account_last_name,
.woocommerce-EditAccountForm .form-row-last {
    display: none !important;
    visibility: hidden !important;
}


.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    animation: none !important;
}


/* 로그인 상태일 때만 표시 */
body.logged-in .show-when-logged-in {
  display: inline-block !important;
}

/* 로그아웃 상태일 때는 숨김 */
body:not(.logged-in) .show-when-logged-in {
  display: none !important;
}





.slick-next,
.slick-prev {
    display: none !important;
}
