.all_shop_intro_2,
.all_shop_intro_inner_2{
  overflow: visible !important;
}
.all_shop_intro_inner_2{
  position: relative;
  z-index: 1;
}

/* ✅ 배경 기준 */
.all_shop_intro_2{
  position: relative !important;
  min-height: 100vh !important;
  height: auto !important;
  background: transparent !important;
  isolation: isolate !important;
  overflow: visible !important;
  padding-bottom: 300px !important;
  padding-top: 200px;
}

.all_shop_intro_2 > .all_shop_bg{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.all_shop_intro_2 > .all_shop_bg > img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.all_shop_intro_2 > .all_shop_intro_inner_2{
  position: relative !important;
  z-index: 2 !important;
}

/* 배경 */
.all_shop_bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.all_shop_bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   ✅ all_shop modal
   ========================= */

.all_shop_cell{
  cursor:pointer;
  margin: 0px 0px;
}

.all_shop_modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;

  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;
}
.all_shop_modal.is-open{ display:flex; }

.all_shop_modal_dim{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65) !important;
  backdrop-filter: blur(6px);
  z-index:0;
}

.all_shop_modal_panel{
  position:relative;
  z-index: 1;

  width:min(560px, 56vw);
  max-height: 70vh;
  overflow:auto;

  margin: 0;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 18px;

  background:#FDD000 !important;
  border: 1px solid rgba(255, 200, 0, 0.65) !important;
  box-shadow: 0 0 28px rgba(255, 200, 0, 0.35) !important;
}

.all_shop_modal_close{
  position:absolute;
  right:14px;
  top:10px;
  font-size: 34px;
  background: transparent;
  color: #cfffff;
  border:0;
  cursor:pointer;
}

/* 모달 바디 */
.all_shop_modal_body{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* ✅ 모달 이미지 공통 */
.all_shop_modal_img{
  width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

/* 글 1줄(밑줄) */
.all_shop_modal_line1{
  color:#000000;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.25;

  display:inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid #ffffff;
}

/* 글 1줄 */
.all_shop_modal_line2{
  color: rgba(255,255,255,0.82);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.55;
  white-space: pre-line;
}

/* 유튜브(선택) */
.all_shop_modal_video{
  width:100%;
  aspect-ratio: 16/9;
}
.all_shop_modal_video iframe{
  width:100%;
  height:100%;
  border-radius:14px;
}

/* =========================
   그리드
   ========================= */

.all_shop_grid{
  margin-top: 120px;
  margin-left: 280px;
  display:grid !important;

  /* 4열 */
  grid-template-columns: repeat(4, 300px);

  /* 6행 */
  grid-template-rows: repeat(2, 220px);

  /* 간격 */
  gap: 60px !important;

  justify-items: center !important;
  align-items: center !important;
}

/* 개별 셀 */
.all_shop_grid > .all_shop_cell{
  position: relative;
  border-radius: 18px;
  overflow: visible;
}

.all_shop_grid > .all_shop_cell{
  position: relative;
  border-radius: 18px;
  overflow: visible;
  justify-self: center;
}

@media (max-width: 900px){
  .all_shop_grid{ grid-template-columns: repeat(6, 1fr) !important; }
  .all_shop_grid > .all_shop_cell{ grid-column: span 2 !important; }

  .all_shop_grid > .all_shop_cell:nth-child(1),
  .all_shop_grid > .all_shop_cell:nth-child(2),
  .all_shop_grid > .all_shop_cell:nth-child(3),
  .all_shop_grid > .all_shop_cell:nth-child(4),
  .all_shop_grid > .all_shop_cell:nth-child(5){
    grid-column: span 2 !important;
  }
}

@media (max-width: 520px){
  .all_shop_grid{ grid-template-columns: repeat(4, 1fr) !important; }
  .all_shop_grid > .all_shop_cell{ grid-column: span 2 !important; }
}

/* ✅ 셀 높이 */
.all_shop_cell{
  min-height: clamp(110px, 11vw, 160px);
}

/* ✅ 박스 이미지 */
.all_shop_box{
  width: 120%;
  height: auto;
  transition: opacity .25s ease;
  will-change: opacity;
}

.all_shop_box.is-fading{
  opacity: 0;
}

/* =========================
   hover 크로스페이드
   ========================= */

.all_shop_cell{ position: relative; }

.all_shop_box_wrap{
  width: 350px;
  height: 260px;            /* ✅ 세로도 지정 */
  display:flex;
  align-items:center;
  justify-content:center;
}


/* 기본값(없으면 229) */
.all_shop_cell .all_shop_box_wrap{ width:229px; }

/* data-size별 */
.all_shop_cell[data-size="229"] .all_shop_box_wrap{
  width:350px;
  height:350px;
}
.all_shop_cell[data-size="500"] .all_shop_box_wrap{
  width:370px;
  height:260px;
}

.all_shop_box_wrap img,
.all_shop_box_wrap .all_shop_box,
.all_shop_box_wrap .all_shop_box_hover{
  width:100%;
  height:auto;
  display:block;
}

.all_shop_box_wrap img{
  width:100%;
  height:100%;              /* ✅ 세로도 채움 */
  object-fit: contain;      /* 잘리지 않게 */
}
