@charset "utf-8";
/* =====================================================================
 * 선물텐데이 상세 설명 새 틀 (gpd)
 *  - 상품 설명에 class="smd-..." 가 들어간 상품만 이 틀로 보입니다. (gpd.inc.php)
 *  - 상품 설명에는 글과 사진만, 꾸밈은 모두 이 파일에서 합니다.
 *    (상품 설명의 <style> · <script> 는 저장할 때 보안 필터가 지웁니다)
 *  - 모든 줄 앞의 .gpd.smd 는 기존 스킨 스타일(.item-explan p 등)보다 먼저 적용되게 하려는 것
 * ===================================================================== */
.gpd.smd{--ink:#222;--ink2:#555;--m:#888;--line:#e5e5e5;--soft:#f7f7f7;--o:#ff5452;
  font-family:"Pretendard Variable",Pretendard,"Malgun Gothic",sans-serif;color:var(--ink);letter-spacing:-.3px;line-height:1.6;word-break:keep-all;text-align:left;}
.gpd.smd *{box-sizing:border-box;}
.gpd.smd img{display:block;width:100%;max-width:100%;height:auto;margin:0;border:0;}
.gpd.smd p{margin:0;padding:0;}
.gpd.smd h2,.gpd.smd h3{font-family:inherit;color:var(--ink);}
.gpd.smd a{text-decoration:none;}

/* 칸 */
.gpd.smd .smd-sec{padding:64px 20px;background:#fff;}
.gpd.smd .smd-sec.soft,.gpd.smd .smd-sec.warm{background:var(--soft);}
.gpd.smd .smd-in{max-width:860px;margin:0 auto;}
.gpd.smd .smd-eyebrow{font-size:13px;font-weight:700;color:var(--o);letter-spacing:.5px;margin:0 0 12px;text-align:center;}
.gpd.smd .smd-h{font-size:32px;line-height:1.35;font-weight:700;margin:0 0 14px;text-align:center;letter-spacing:-.8px;}
.gpd.smd .smd-p{font-size:17px;color:var(--ink2);margin:0 auto;text-align:center;max-width:580px;}
.gpd.smd .smd-note{margin:24px 0 0;text-align:center;font-size:14px;color:var(--m);}
.gpd.smd .smd-gap{height:40px;}

/* 사진 비율 : 같은 칸 사진은 높이가 같게 */
.gpd.smd .smd-hero-img,.gpd.smd .smd-wide{margin-top:40px;}
.gpd.smd .smd-hero-img img{aspect-ratio:3/2;object-fit:cover;}
.gpd.smd .smd-cards img{aspect-ratio:6/5;object-fit:cover;}
.gpd.smd .smd-labels img{aspect-ratio:1/1;object-fit:cover;}
.gpd.smd .smd-z img{aspect-ratio:4/5;object-fit:cover;}

/* 첫 칸 */
.gpd.smd .smd-hero{padding-bottom:0;}
.gpd.smd .smd-hero .smd-h{font-size:40px;}
.gpd.smd .smd-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:24px 0 0;}
.gpd.smd .smd-tags span{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:14px;color:var(--ink2);background:#fff;}

/* 한눈에 3칸 */
.gpd.smd .smd-three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:36px;}
.gpd.smd .smd-three>div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:26px 20px;text-align:center;}
.gpd.smd .smd-three em{display:block;font-style:normal;font-size:13px;font-weight:700;color:var(--o);margin-bottom:8px;}
.gpd.smd .smd-three b{display:block;font-size:19px;margin-bottom:4px;}
.gpd.smd .smd-three span{font-size:15px;color:var(--ink2);}

/* 구성 카드 */
.gpd.smd .smd-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 20px;margin-top:36px;}
.gpd.smd .smd-card img{border-radius:8px;}
.gpd.smd .smd-card .txt{padding:16px 2px 0;}
.gpd.smd .smd-card b{font-size:19px;display:block;}
.gpd.smd .smd-card p{margin:4px 0 0;font-size:15px;color:var(--ink2);}
.gpd.smd .smd-card small{display:block;margin-top:6px;font-size:13px;color:var(--m);}

/* 라벨 */
.gpd.smd .smd-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:36px 0;counter-reset:s;}
.gpd.smd .smd-steps>div{background:#fff;padding:20px 18px;border:1px solid var(--line);border-radius:8px;}
.gpd.smd .smd-steps>div:before{counter-increment:s;content:"STEP " counter(s);display:block;font-size:12px;font-weight:700;color:var(--o);margin-bottom:6px;}
.gpd.smd .smd-steps b{display:block;font-size:17px;}
.gpd.smd .smd-steps span{font-size:14px;color:var(--ink2);}
.gpd.smd .smd-labels{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.gpd.smd .smd-labels img{border-radius:8px;}
.gpd.smd .smd-link{display:block;text-align:center;margin:16px 0 0;font-size:14px;}
.gpd.smd .smd-link a{color:var(--ink2);border-bottom:1px solid #bbb;padding-bottom:1px;}
.gpd.smd .smd-link a:hover{color:var(--ink);border-color:var(--ink);}

/* 특징 (사진 · 글 번갈아) */
.gpd.smd .smd-z{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px;}
.gpd.smd .smd-z + .smd-z{margin-top:56px;}
.gpd.smd .smd-z.rev>:first-child{order:2;}
.gpd.smd .smd-z img{border-radius:8px;}
.gpd.smd .smd-z .smd-h,.gpd.smd .smd-z .smd-p,.gpd.smd .smd-z .smd-eyebrow{text-align:left;margin-left:0;}
.gpd.smd .smd-z .smd-h{font-size:28px;}

/* 표 : 서류 양식 (위 굵은 검정 줄 + 왼쪽 회색 이름 칸) */
.gpd.smd .smd-tbl{width:100%;border-collapse:collapse;font-size:15px;margin:32px 0 0;background:#fff;border-top:2px solid var(--ink);}
.gpd.smd .smd-tbl th,.gpd.smd .smd-tbl td{border:0;border-bottom:1px solid var(--line);padding:13px 16px;text-align:left;vertical-align:top;line-height:1.55;}
.gpd.smd .smd-tbl th{width:30%;font-weight:600;background:#f7f7f7;color:var(--ink);}
.gpd.smd .smd-sec.soft .smd-tbl th{background:#f2f2f2;}

/* ===== 공통 머리 (모든 상품 같음 · gpd.inc.php) ===== */
.gpd.smd .gpd-head{border-bottom:1px solid var(--line);padding:24px 20px;background:#fff;}
.gpd.smd .gpd-head ul{list-style:none;margin:0 auto;padding:0;max-width:860px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.gpd.smd .gpd-head li{display:flex;align-items:center;gap:12px;justify-content:center;font-size:15px;line-height:1.45;}
.gpd.smd .gpd-head li b{display:block;font-weight:700;}
.gpd.smd .gpd-head li span{display:block;font-size:13px;color:var(--m);}
.gpd.smd .gpd-head svg{width:30px;height:30px;flex:0 0 30px;fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}

/* ===== 인원별 금액 (상품 가격으로 자동 계산) ===== */
.gpd.smd .gpd-price td,.gpd.smd .gpd-price th{text-align:center;}
.gpd.smd .gpd-price thead th{background:#f7f7f7;width:auto;font-weight:600;}
.gpd.smd .gpd-price td:last-child{font-weight:700;}
.gpd.smd .gpd-price-note{margin:12px 0 0;font-size:13px;color:var(--m);text-align:center;}

/* ===== 공통 꼬리 : 주문 안내 ===== */
.gpd.smd .gpd-flow{display:grid;grid-template-columns:repeat(4,1fr);margin-top:36px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;}
.gpd.smd .gpd-flow>div{padding:22px 18px;border-left:1px solid var(--line);}
.gpd.smd .gpd-flow>div:first-child{border-left:0;}
.gpd.smd .gpd-flow em{font-style:normal;font-size:12px;font-weight:700;color:var(--o);}
.gpd.smd .gpd-flow b{display:block;font-size:17px;margin:4px 0 2px;}
.gpd.smd .gpd-flow span{font-size:14px;color:var(--ink2);}
.gpd.smd .gpd-btns{display:flex;gap:8px;justify-content:center;margin-top:28px;flex-wrap:wrap;}
.gpd.smd .gpd-btns a{display:inline-flex;align-items:center;justify-content:center;min-width:180px;height:50px;padding:0 24px;font-size:15px;font-weight:600;border:1px solid #c8c8c8;border-radius:6px;color:var(--ink);background:#fff;transition:border-color .15s,background .15s;}
.gpd.smd .gpd-btns a:hover{border-color:var(--ink);}
.gpd.smd .gpd-btns a.on{background:var(--ink);border-color:var(--ink);color:#fff;}
.gpd.smd .gpd-btns a.on:hover{background:#000;}
.gpd.smd .gpd-info{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:44px;padding-top:28px;border-top:1px solid var(--line);font-size:14px;color:var(--ink2);line-height:1.65;}
.gpd.smd .gpd-info b{display:block;font-size:15px;color:var(--ink);margin-bottom:6px;}
.gpd.smd .gpd-info a{color:var(--ink);font-weight:700;}

/* ===== 라벨 디자인 ({라벨예시}) · 전체 보기 창 ===== */
.gpd.smd .gpd-lbl{margin-top:16px;}
.gpd.smd .gpd-lbl img{border:1px solid var(--line);border-radius:8px;background:#fff;}
.gpd.smd .gpd-lbl img + img{margin-top:10px;}
.gpd.smd .gpd-lbl-more{margin:16px 0 0;text-align:center;}
.gpd.smd .gpd-lbl-more button,.gpd-lm .gpd-lm-tabs button{font-family:inherit;cursor:pointer;}
.gpd.smd .gpd-lbl-more button{height:48px;padding:0 24px;border:1px solid var(--ink);border-radius:6px;background:#fff;color:var(--ink);font-size:15px;font-weight:600;}
.gpd.smd .gpd-lbl-more button b{color:var(--o);font-weight:700;margin-left:2px;}
.gpd.smd .gpd-lbl-more button:hover{background:var(--ink);color:#fff;}
.gpd.smd .gpd-lbl-more button:hover b{color:#fff;}
.gpd-lbl-tip{margin:10px 0 0 !important;text-align:center;font-size:13px;color:#888;line-height:1.6;}
.gpd-lbl-tip b{color:#222;}
.gpd-lbl-tip a{color:#222;text-decoration:underline;}

.gpd-lm{position:fixed;inset:0;z-index:100000;background:rgba(17,17,17,.6);display:flex;align-items:center;justify-content:center;padding:24px;font-family:"Pretendard Variable",Pretendard,"Malgun Gothic",sans-serif;letter-spacing:-.3px;}
.gpd-lm[hidden]{display:none;}
.gpd-lm *{box-sizing:border-box;}
.gpd-lm-box{position:relative;background:#fff;width:100%;max-width:900px;max-height:100%;display:flex;flex-direction:column;border-radius:10px;overflow:hidden;}
.gpd-lm-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:2px solid #222;}
.gpd-lm-top b{font-size:18px;color:#222;}
.gpd-lm-top small{font-size:13px;font-weight:700;color:#ff5452;margin-left:4px;}
.gpd-lm-x{border:0;background:none;font-size:30px;line-height:1;color:#222;cursor:pointer;padding:0 4px;}
.gpd-lm-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:14px 20px;border-bottom:1px solid #e5e5e5;background:#fafafa;}
.gpd-lm-top,.gpd-lm-tabs{flex:0 0 auto;} /* 창 높이가 모자라도 제목·탭 줄은 줄어들지 않게 */
.gpd-lm .gpd-lm-tabs button{height:34px;padding:0 16px;border:1px solid #d6d6d6;border-radius:999px;background:#fff;color:#555;font-size:13px;white-space:nowrap;}
.gpd-lm .gpd-lm-tabs button:hover{border-color:#222;color:#222;}
.gpd-lm .gpd-lm-tabs button.on{background:#222;border-color:#222;color:#fff;font-weight:600;}
.gpd-lm-body{position:relative;overflow-y:auto;padding:4px 20px 24px;overscroll-behavior:contain;}
.gpd-lm-body img{display:block;width:100%;height:auto;margin:0 0 12px;background:#f5f5f5;}
.gpd-lm-g{margin:24px 0 12px;padding:0 0 8px;font-size:17px;font-weight:700;color:#222;border-bottom:1px solid #e5e5e5;}
.gpd-lm-g:first-child{margin-top:16px;}
.gpd-lm-up{position:absolute;right:18px;bottom:18px;width:44px;height:44px;border:1px solid #d6d6d6;border-radius:50%;background:#fff;color:#222;font-size:18px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.gpd-lm-up[hidden]{display:none;}
.gpd-lm-up:hover{border-color:#222;}
.gpd-lm-body .gpd-lbl-tip{margin-top:14px !important;}
@media (max-width:768px){
  .gpd-lm{padding:0;align-items:stretch;}
  .gpd-lm-box{max-width:none;border-radius:0;}
  .gpd-lm-tabs{flex-wrap:nowrap;overflow-x:auto;padding:12px 16px;-webkit-overflow-scrolling:touch;}
  .gpd-lm-body{padding:12px 12px 20px;}
}

@media (max-width:768px){
  .gpd.smd .smd-sec{padding:48px 16px;}
  .gpd.smd .smd-h{font-size:25px;}
  .gpd.smd .smd-hero .smd-h{font-size:28px;}
  .gpd.smd .smd-p{font-size:15.5px;}
  .gpd.smd .smd-hero-img,.gpd.smd .smd-wide{margin-top:28px;}
  .gpd.smd .smd-three{grid-template-columns:1fr;gap:8px;margin-top:28px;}
  .gpd.smd .smd-three>div{padding:18px 20px;text-align:left;}
  .gpd.smd .smd-cards{gap:22px 12px;margin-top:28px;}
  .gpd.smd .smd-card b{font-size:16px;}
  .gpd.smd .smd-card p{font-size:14px;}
  .gpd.smd .smd-steps{grid-template-columns:1fr;gap:8px;margin:28px 0;}
  .gpd.smd .smd-labels{gap:10px;}
  .gpd.smd .smd-z{grid-template-columns:1fr;gap:20px;}
  .gpd.smd .smd-z.rev>:first-child{order:0;}
  .gpd.smd .smd-z + .smd-z{margin-top:44px;}
  .gpd.smd .smd-z .smd-h{font-size:23px;}
  .gpd.smd .smd-tbl{font-size:14px;}
  .gpd.smd .smd-tbl th,.gpd.smd .smd-tbl td{padding:11px 10px;}
  .gpd.smd .gpd-head{padding:16px;}
  .gpd.smd .gpd-head ul{grid-template-columns:1fr;gap:10px;}
  .gpd.smd .gpd-head li{justify-content:flex-start;}
  .gpd.smd .gpd-flow{grid-template-columns:1fr 1fr;}
  .gpd.smd .gpd-flow>div:nth-child(3){border-left:0;}
  .gpd.smd .gpd-flow>div:nth-child(n+3){border-top:1px solid var(--line);}
  .gpd.smd .gpd-btns a{flex:1 1 100%;}
  .gpd.smd .gpd-info{grid-template-columns:1fr;gap:16px;}
}

/* 약속 6칸 아래 상담 전화 */
.gpd.smd .gpd-cs{margin:28px 0 0;text-align:center;font-size:15px;color:var(--ink2);}
.gpd.smd .gpd-cs a{font-size:20px;font-weight:800;color:var(--ink);margin:0 6px;}
.gpd.smd .gpd-cs span{display:block;margin-top:4px;font-size:13px;color:var(--m);}
/* ② 기존 통이미지 상세 : .gpd-old 안은 예전 스타일 그대로 (따로 꾸미지 않음) */
/* 상품 정보 고시 (식품 정보 이미지) */
.gpd.smd .smd-notice{margin-top:28px;}
.gpd.smd .smd-notice img{border:1px solid var(--line);}
.gpd.smd .smd-notice img + img{margin-top:10px;}
