/* ==========================================
   쿠팡 Full Auto Shortcode 스타일
   Version: 1.5.1
   ========================================== */

/* ==========================================
   1) 컨테이너 전체
   ========================================== */
.cfasc-container {
  padding: 1.5em;
  background: #ffffff;
  color: #333333;
  margin-bottom: 2em;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 제목 */
.cfasc-title {
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 1em;
  line-height: 1.3;
  color: #222;
}

/* ==========================================
   2) 이미지 섹션
   ========================================== */
.cfasc-image-section {
  margin-bottom: 2em;
  text-align: center;
}

/* 이미지 래퍼 */
.cfasc-image-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 1.5em;
}

/* 스와이프 래퍼 */
.cfasc-swipe-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: default;
}

.cfasc-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #ffffff;
  position: relative;
}

.cfasc-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* 커튼 오버레이 (처음엔 전체를 덮음) */
.cfasc-curtain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0,0,0,0.95) 0%, 
    rgba(20,20,20,0.90) 50%,
    rgba(40,40,40,0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  touch-action: pan-y; /* 수평 스와이프만 허용 */
}

.cfasc-curtain-overlay.dragging {
  transition: none;
  cursor: grabbing;
}

/* 초기 애니메이션으로 1/3 걷힘 */
.cfasc-curtain-overlay.revealed {
  transform: translateX(33%);
}

/* 스와이프 안내 텍스트 */
.cfasc-swipe-hint {
  color: white;
  text-align: center;
  padding: 0 20px;
  animation: pulse 2s infinite;
}

.cfasc-swipe-hint h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cfasc-swipe-hint p {
  font-size: 0.75em;
  opacity: 0.5;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

/* 스와이프 아이콘 */
.cfasc-swipe-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 24px;
  animation: slideHint 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes slideHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* 호버 효과 (데스크톱용) */
.cfasc-swipe-wrapper:hover .cfasc-figure img {
  transform: scale(1.02);
}

/* 구매 버튼 영역 - Brutalist Style */
.cfasc-buy-btns {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.cfasc-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2em 2.5em;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 900;
  border: 4px solid #000000;
  border-radius: 0;
  transition: all 0.1s;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  box-shadow: 8px 8px 0 #000000;
}

.cfasc-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  transform: translate(4px, 4px);
  z-index: -1;
  transition: transform 0.1s;
}

.cfasc-buy-btn.cfasc-btn-design {
  background: #ffeb3b;
  border-color: #000000;
}

.cfasc-buy-btn.cfasc-btn-design::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: repeating-linear-gradient(
    45deg,
    #ffeb3b,
    #ffeb3b 10px,
    #fff 10px,
    #fff 20px
  );
  z-index: -2;
}

.cfasc-buy-btn.cfasc-btn-price {
  background: #00e676;
  border-color: #000000;
}

.cfasc-buy-btn.cfasc-btn-price::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: repeating-linear-gradient(
    -45deg,
    #00e676,
    #00e676 10px,
    #fff 10px,
    #fff 20px
  );
  z-index: -2;
}

.cfasc-buy-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 #000000;
}

.cfasc-buy-btn:hover::before {
  transform: translate(8px, 8px);
}


/* ==========================================
   3) Description 섹션
   ========================================== */
.cfasc-description {
  margin-bottom: 2em;
  line-height: 1.6;
}

.cfasc-description p {
  font-size: 1.05em;
  color: #444;
  margin-bottom: 1em;
}

.cfasc-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfasc-features li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.5;
  color: #555;
}

.cfasc-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

/* ==========================================
   4) 장점·단점 박스
   ========================================== */
.cfasc-pros-cons {
  display: flex;
  gap: 2rem;
  margin-bottom: 2em;
}

.cfasc-box {
  flex: 1;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5em;
}

/* PROS 박스 */
.cfasc-box:nth-child(1) {
  background: #f0fdf4;
}

/* CONS 박스 */
.cfasc-box:nth-child(2) {
  background: #fef2f2;
}

.cfasc-box-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* PROS 제목 */
.cfasc-box:nth-child(1) .cfasc-box-title {
  color: #16a34a;
}

/* CONS 제목 */
.cfasc-box:nth-child(2) .cfasc-box-title {
  color: #dc2626;
}

.cfasc-box-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cfasc-box-list li {
  margin-bottom: 0.75em;
  line-height: 1.5;
  color: #555;
  display: flex;
  align-items: flex-start;
}

.cfasc-icon {
  margin-right: 0.5em;
  font-weight: bold;
  flex-shrink: 0;
}

/* PROS 아이콘 */
.cfasc-box:nth-child(1) .cfasc-icon {
  color: #16a34a;
}

/* CONS 아이콘 */
.cfasc-box:nth-child(2) .cfasc-icon {
  color: #dc2626;
}

/* ==========================================
   5) 스펙 테이블
   ========================================== */
.cfasc-specs-wrap {
  margin-bottom: 2em;
}

.cfasc-specs-title {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222;
}

.cfasc-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.cfasc-specs th,
.cfasc-specs td {
  border-bottom: 1px solid #e5e5e5;
  padding: 1em;
  text-align: left;
}

.cfasc-specs tbody tr:last-child th,
.cfasc-specs tbody tr:last-child td {
  border-bottom: none;
}

.cfasc-specs tbody th {
  width: 35%;
  font-weight: 500;
  color: #666;
}

.cfasc-specs tbody td {
  color: #333;
}

/* ==========================================
   6) 리뷰 섹션
   ========================================== */
.cfasc-review {
  margin-top: 2em;
  padding-top: 2em;
  border-top: 2px solid #e5e5e5;
}

.cfasc-review-title {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222;
}

.cfasc-review-content {
  line-height: 1.7;
  color: #444;
  font-size: 1.05em;
  font-style: italic;
  position: relative;
  padding: 0 1em;
}

.cfasc-review-content p {
  margin-bottom: 1em;
}

/* ==========================================
   7) 반응형 (모바일)
   ========================================== */
@media only screen and (max-width: 768px) {
  .cfasc-container {
    padding: 1em;
  }

  .cfasc-title {
    font-size: 1.5em;
  }

  .cfasc-pros-cons {
    flex-direction: column;
    gap: 1em;
  }

  .cfasc-box {
    width: 100%;
  }

  .cfasc-specs tbody th {
    width: 40%;
  }

  .cfasc-buy-btns {
    flex-direction: column;
  }

  .cfasc-buy-btn {
    width: 100%;
    text-align: center;
  }
  
  /* 모바일에서 커튼 오버레이 */
  .cfasc-curtain-overlay.revealed {
    transform: translateX(25%); /* 모바일에서는 1/4만 걷힘 */
  }
}