/* ===== 꼭푸드 v22 : 흰 배경 · 큰 글씨 · 특가 강조 · 카카오 연동 =====
   v21.css 다음에 불러오는 덮어쓰기 파일입니다. 이 파일 링크만 빼면 v21 화면으로 돌아가요. */

/* ---------- 1) 흰 배경 + 기본 글자 키우기 (40~60대 가독성) ---------- */
:root{
  --kk-bg:#ffffff;
  --kk-card:#ffffff;
  --kk-line:#e8e3dc;
  --kk-ink:#1f1a16;
  --kk-muted:#6f665e;
  --kk-red:#e02b1d;
  --kk-deep:#5e3828;
}
html{-webkit-text-size-adjust:100%}
body.home-v14-body,body.product-detail-page,body.auth-page{background:#fff;color:var(--kk-ink)}
.home-v14-main,.product-detail-main{background:#fff}
.home-fixed-header{background:rgba(255,255,255,.97);border-bottom:1px solid #eee7df}
.home-v14-body{font-size:16px;line-height:1.55}
.modern-product{background:#fff;border:1px solid #ece6df;box-shadow:none}
.modern-product-info h3{font-size:16px;line-height:1.45;min-height:46px;color:#22201d;font-weight:750}
.modern-product-info s{font-size:14px}
.modern-price strong{font-size:21px;font-weight:900}
.modern-price em{font-size:19px}
.mp-meta,.modern-rating{font-size:13px}
.mp-ship{font-size:12px}
.section-title-row h2{font-size:23px}
.section-title-row p{font-size:14px}
.section-more,.section-more-wide{font-size:15px}
.home-bottom-nav>a,.home-bottom-nav>button{font-size:11.5px}
.home-bottom-nav i{width:24px;height:24px}
.kakao-modern-copy h2{font-size:19px}
.home-desktop-nav a{font-size:15px}
@media(max-width:640px){
  .home-v14-body{font-size:16px}
  .modern-product-info h3{font-size:15.5px;min-height:44px}
  .modern-price strong{font-size:20px}
  .section-title-row h2{font-size:21px}
  .home-desktop-nav a{font-size:14.5px;padding:9px 16px}
}

/* ---------- 2) 썸네일 규격 통일 (정사각형) ---------- */
.modern-product-photo{aspect-ratio:1/1!important;background:#f5f2ee}
.modern-product-photo img{width:100%;height:100%;object-fit:cover;display:block}
.detail-main-image{aspect-ratio:1/1;object-fit:cover;background:#f5f2ee}

/* ---------- 3) 검색: 헤더 돋보기 → 전체화면 검색 ---------- */
.home-search-row{display:none!important}
.header-search-btn{display:block!important}
.kk-search-layer{position:fixed;inset:0;z-index:200;background:#fff;display:none;flex-direction:column}
.kk-search-layer.open{display:flex}
.kk-search-bar{display:flex;align-items:center;gap:10px;padding:14px 14px;border-bottom:1px solid #eee7df}
.kk-search-bar input{flex:1;min-width:0;height:52px;border:1px solid #ddd2c6;border-radius:12px;padding:0 14px;font-size:17px;background:#fff}
.kk-search-bar input:focus{outline:none;border-color:#5e3828}
.kk-search-bar button{flex:none;border:0;background:#5e3828;color:#fff;border-radius:12px;height:52px;padding:0 18px;font-size:16px;font-weight:800;cursor:pointer}
.kk-search-bar .kk-search-close{background:#f4efe9;color:#4a3a30}
.kk-search-body{flex:1;overflow:auto;padding:16px 14px 40px}
.kk-search-body h3{font-size:14px;color:#6f665e;margin:0 0 10px}
.kk-search-hit{display:flex;align-items:center;gap:12px;padding:12px 6px;border-bottom:1px solid #f2ede7;text-decoration:none;color:inherit}
.kk-search-hit img{width:60px;height:60px;border-radius:10px;object-fit:cover;background:#f2ede7;flex:none}
.kk-search-hit b{display:block;font-size:15.5px;line-height:1.4}
.kk-search-hit span{font-size:15px;font-weight:900;color:var(--kk-red)}
.kk-search-empty{padding:40px 0;text-align:center;color:#8d8178;font-size:15px}

/* ---------- 4) 특가 강조 ---------- */
.modern-product.is-sale{border-color:#f3b7ad;box-shadow:0 6px 18px rgba(224,43,29,.08)}
.modern-discount{display:none}
.mp-rate{position:absolute;left:0;top:0;z-index:2;background:var(--kk-red);color:#fff;font-weight:900;font-size:17px;line-height:1;padding:10px 12px 11px;border-bottom-right-radius:14px;letter-spacing:-.5px}
.mp-rate small{display:block;font-size:10px;font-weight:800;opacity:.92;margin-top:3px;letter-spacing:0}
.mp-badge.best{left:auto;right:10px;top:10px}
.mp-timechip{display:inline-flex;align-items:center;gap:6px;background:#2b211b;color:#ffd84d;font-size:12.5px;font-weight:900;padding:6px 10px;border-radius:8px;margin-top:10px;font-variant-numeric:tabular-nums}
.mp-timechip.hot{background:var(--kk-red);color:#fff}
.mp-timechip b{font-variant-numeric:tabular-nums;letter-spacing:.3px}
.modern-price{align-items:baseline}
.modern-price em{color:var(--kk-red)}
.is-sale .modern-price strong{color:var(--kk-red)}
.mp-promo span{font-size:12px}

/* 홈 타임특가 띠 */
.kk-timebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(100deg,#2b211b,#5e3828);color:#fff;border-radius:16px;padding:14px 18px;margin:0 0 14px}
.kk-timebar b{font-size:17px}
.kk-timebar .kk-clock{margin-left:auto;background:rgba(255,255,255,.14);border-radius:10px;padding:8px 12px;font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;color:#ffd84d}
.kk-timebar small{display:block;font-size:12.5px;opacity:.85;margin-top:3px}
@media(max-width:640px){.kk-timebar{padding:13px 15px;gap:8px}.kk-timebar b{font-size:15.5px}.kk-timebar .kk-clock{font-size:17px;padding:7px 10px}}

/* 상세페이지 타임특가 박스 */
.kk-detail-time{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff4f2;border:1px solid #f3c2ba;border-radius:14px;padding:13px 15px;margin-top:12px}
.kk-detail-time span{font-size:14px;font-weight:800;color:#a3342a}
.kk-detail-time b{font-size:20px;font-weight:900;color:var(--kk-red);font-variant-numeric:tabular-nums}

/* ---------- 5) 상품 상세 가독성 ---------- */
.detail-name{font-size:22px;line-height:1.35}
.detail-short{font-size:15px;color:#6f665e}
.detail-sale{font-size:29px}
.detail-discount{font-size:22px;color:var(--kk-red)}
.detail-text,.notice-box{font-size:16px;line-height:1.85}
.detail-tabs button{font-size:14.5px;padding:16px 4px}
.detail-tabs button em{font-style:normal;color:var(--kk-red);margin-left:3px}
.ship-box div{font-size:14px}
.ship-box dt{font-size:13.5px}
.detail-cart-btn,.detail-buy-btn{font-size:17px;padding:16px}
.full-review{padding:16px 0}
.full-review b{font-size:16px;color:#e7a21a}
.full-review p{font-size:15.5px;line-height:1.7;margin:8px 0 0}
.full-review small{font-size:13px}
.inquiry-item p{font-size:15.5px}
.inquiry-form input,.inquiry-form textarea{font-size:16px}
.review-copy p{font-size:13.5px}
.detail-rating-inline{font-size:15px}
.detail-rating-inline b{font-size:17px}

/* ---------- 6) 카카오 연동 ---------- */
.kk-kakao-strip{position:fixed;left:0;right:0;top:0;z-index:120;display:flex;align-items:center;gap:10px;background:#fae100;color:#191600;padding:11px 42px 11px 16px;font-size:14.5px;font-weight:800;text-decoration:none;line-height:1.4}
.kk-kakao-strip .kk-strip-cta{margin-left:auto;background:#191600;color:#fae100;border-radius:999px;padding:7px 13px;font-size:13px;font-weight:900;white-space:nowrap}
.kk-strip-close{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:22px;line-height:1;color:#4a4300;padding:6px 8px;cursor:pointer}
body.has-kk-strip .home-fixed-header{top:var(--kk-strip-h,46px)}
body.has-kk-strip .detail-backbar,body.has-kk-strip .auth-top{top:var(--kk-strip-h,46px)}
body.has-kk-strip.product-detail-page,body.has-kk-strip.auth-page{padding-top:var(--kk-strip-h,46px)}
body.has-kk-strip .detail-tabs{top:calc(62px + var(--kk-strip-h,46px))}
body.has-kk-strip.home-v14-body{padding-top:calc(106px + var(--kk-strip-h,46px))}
@media(max-width:640px){
  body.has-kk-strip.home-v14-body{padding-top:calc(114px + var(--kk-strip-h,46px))}
  .kk-kakao-strip{font-size:13.5px;padding:10px 38px 10px 13px}
  .kk-kakao-strip .kk-strip-cta{font-size:12px;padding:6px 10px}
}
.kk-float{position:fixed;right:16px;bottom:84px;z-index:110;display:flex;align-items:center;gap:8px;background:#fae100;color:#191600;border-radius:999px;padding:12px 16px;font-size:14.5px;font-weight:900;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.kk-float svg{width:20px;height:20px}
.product-detail-page .kk-float{bottom:96px}
@media(max-width:640px){.product-detail-page .kk-float{bottom:86px}}
@media(min-width:641px){.kk-float{bottom:24px}}
@media(max-width:640px){
  .kk-float{right:12px;bottom:78px;width:54px;height:54px;padding:0;border-radius:50%;justify-content:center;gap:0}
  .kk-float span{display:none}
  .kk-float svg{width:26px;height:26px}
}
.kk-kakao-card{background:#fffbe6;border:1px solid #f2e08a;border-radius:16px;padding:18px;margin:16px 0}
.kk-kakao-card h3{margin:0 0 6px;font-size:17px}
.kk-kakao-card p{margin:0 0 12px;font-size:14.5px;color:#5f5a3f;line-height:1.6}
.kk-kakao-card a{display:block;text-align:center;background:#fae100;color:#191600;text-decoration:none;border-radius:12px;padding:15px;font-size:16px;font-weight:900}
.kk-notify-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px;background:#fae100;color:#191600;border:0;border-radius:12px;padding:15px;font-size:16px;font-weight:900;text-decoration:none}

/* ---------- 7) 버튼·입력 터치 영역 ---------- */
.checkout-button,.bottom button,.auth-primary{font-size:17px}
.field input,.field textarea,.field select{font-size:16px}

/* ---------- 상세: 상품 기본 안내 박스 + 이미지 확대 보기 ---------- */
.detail-basic-box{padding:22px 18px 30px;border-top:1px solid #f0eae3}
.detail-basic-box h2{font-size:18px;margin:0 0 12px}
.detail-basic-box .detail-text{white-space:pre-wrap;line-height:1.85;font-size:16px;color:#3d342d;background:#faf7f3;border:1px solid #efe7de;border-radius:14px;padding:16px}
.detail-long-image img{cursor:zoom-in}
.kk-zoom{position:fixed;inset:0;z-index:300;background:rgba(20,15,12,.94);display:none}
.kk-zoom.open{display:block}
.kk-zoom-scroll{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:54px 0 60px}
.kk-zoom-scroll img{display:block;max-width:none;width:auto;height:auto;margin:0 auto;cursor:zoom-out}
.kk-zoom-scroll img.fit{width:100%;max-width:100%}
.kk-zoom-x{position:absolute;right:12px;top:12px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.kk-zoom-tip{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);color:rgba(255,255,255,.85);font-size:12.5px;background:rgba(0,0,0,.35);padding:8px 12px;border-radius:999px;white-space:nowrap}

.detail-zoom-hint{display:none;margin:0;padding:11px 16px;background:#faf7f3;border-bottom:1px solid #f0eae3;color:#6f665e;font-size:13.5px;font-weight:700}
@media(max-width:820px){.detail-zoom-hint{display:block}}

/* ---------- 상품 상세에도 홈과 같은 상단 헤더 ---------- */
body.kk-has-site-header .detail-backbar{display:none!important}
body.kk-has-site-header{--kk-head-h:106px;padding-top:calc(var(--kk-head-h) + var(--kk-strip-h,0px))!important}
body.kk-has-site-header:not(.has-kk-strip){--kk-strip-h:0px}
body.kk-has-site-header .home-fixed-header{position:fixed;left:0;right:0;top:var(--kk-strip-h,0px);z-index:80}
body.kk-has-site-header .detail-tabs{top:calc(var(--kk-head-h) + var(--kk-strip-h,0px))!important}
body.kk-has-site-header .kk-float{bottom:96px}
.kk-site-header .header-cart-btn{display:block;text-decoration:none;color:inherit}
@media(max-width:640px){body.kk-has-site-header{--kk-head-h:114px}}
.detail-info.kk-has-share{position:relative;padding-right:0}
.detail-info.kk-has-share #detailShareBtn{float:right;margin:0 0 8px 12px}
@media(max-width:640px){.detail-info.kk-has-share #detailShareBtn{min-width:0;height:38px;padding:0 12px;font-size:12px}.detail-info.kk-has-share #detailShareBtn span{display:none}}

/* ---------- 당일발송 마감시간 ---------- */
.ship-box .kk-cutoff-row dd{font-weight:900}
.kk-cutoff{display:inline-block;line-height:1.5}
.kk-cutoff.open{color:#1f7a3a}
.kk-cutoff.closed{color:#6f665e;font-weight:700}

.mp-ship{white-space:normal;line-height:1.35}

.mp-ship{display:inline-block;line-height:1.45;padding:5px 8px}
.ship-box dd{white-space:pre-line}
.detail-tags span{white-space:normal}
.mp-ship{word-break:keep-all}
