/*
Theme Name: 산지수확 (Sanji Harvest)
Description: 산지수확 절임배추 예약 쇼핑몰 전용 테마. 우커머스 지원.
Version: 1.0.2
Requires PHP: 7.4
Text Domain: sanji-harvest
*/
:root{
  --ink:#1d241f; --sub:#58625c; --line:#e3dccb; --bg:#fbf8f1; --paper:#fff; --tint:#f3eddf;
  --green:#2f5d46; --green-d:#22463a; --green-l:#e6eee8; --red:#a3372a; --red-l:#f8e9e5;
  --r:6px; --wrap:1160px;
  --f-body:"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --f-head:"Gowun Batang","Pretendard Variable",serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:break-word}
img{max-width:100%;height:auto;display:block}
a{color:var(--green)}
a:hover{color:var(--green-d)}
h1,h2,h3{line-height:1.3;margin:0 0 .5em}
h1,h2{font-family:var(--f-head);font-weight:700;letter-spacing:-.01em}
h3{font-size:1.06rem;font-weight:700}
p{margin:0 0 1em}
.sh-wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
.sh-narrow{max-width:860px}
.sh-skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:8px 12px;z-index:100}
.sh-skip:focus{left:8px}
.sh-ico{width:22px;height:22px;flex:none}
.sh-ph{display:inline-block;background:#fff6d6;border:1px dashed #c8a43a;color:#6b5512;border-radius:4px;padding:0 6px;font-size:.92em}
.sh-small{font-size:.9rem;color:var(--sub)}
.sh-note{font-size:.85rem;color:var(--sub);font-weight:500}

/* 버튼 */
.sh-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:var(--r);
  font:600 1rem/1.2 var(--f-body);text-decoration:none;cursor:pointer;border:1.5px solid var(--green);background:var(--green);color:#fff;transition:background .15s,color .15s}
.sh-btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:var(--green-d);border-color:var(--green-d);color:#fff}
.sh-btn--line{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.sh-btn--line:hover{background:#fff;color:var(--green-d);border-color:#fff}
.sh-btn--light{background:#fff;color:var(--green-d);border-color:#fff}
.sh-btn--light:hover{background:var(--tint);color:var(--green-d);border-color:var(--tint)}
.sh-btn--sm{min-height:44px;padding:10px 16px;font-size:.95rem}
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{background:#5f6963;border-color:#5f6963;color:#fff;opacity:1}

/* 머리글 */
.sh-topbar{background:var(--green-d);color:#f3efe4;font-size:.86rem}
.sh-topbar .sh-wrap{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:38px}
.sh-topbar p{margin:0}
.sh-topbar .sh-ico{width:16px;height:16px;vertical-align:-3px;margin-right:4px}
.sh-topbar a{color:#fff;text-underline-offset:3px;white-space:nowrap}
.sh-header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.sh-header-in{display:flex;align-items:center;gap:24px;min-height:68px}
.sh-logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font:700 1.35rem/1 var(--f-head)}
.sh-logo svg{width:34px;height:34px}
.custom-logo{max-height:44px;width:auto}
.sh-nav{margin-left:auto}
.sh-menu{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.sh-menu a{display:block;padding:10px 12px;color:var(--ink);text-decoration:none;font-weight:600;border-radius:var(--r)}
.sh-menu a:hover,.sh-menu .current-menu-item>a{color:var(--green);background:var(--green-l)}
.sh-tools{display:flex;align-items:center;gap:4px}
.sh-tool{display:flex;align-items:center;gap:6px;padding:10px;color:var(--ink);text-decoration:none;border-radius:var(--r);position:relative;font-size:.92rem}
.sh-tool:hover{background:var(--green-l);color:var(--green-d)}
.sh-cart-n{min-width:20px;height:20px;border-radius:10px;background:var(--red);color:#fff;font-size:.75rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.sh-burger{display:none;background:none;border:0;padding:10px;color:var(--ink);cursor:pointer}

/* 첫 화면 */
.sh-hero{position:relative;overflow:hidden;background:var(--green);color:#fff}
.sh-hero-art{position:absolute;right:-60px;top:50%;transform:translateY(-50%);width:620px;height:620px;color:rgba(255,255,255,.13)}
.sh-hero-in{position:relative;padding:88px 20px 96px}
.sh-eyebrow{display:inline-block;font-weight:600;font-size:.92rem;color:#dfe9e2;border-bottom:1px solid rgba(255,255,255,.4);padding-bottom:4px;margin-bottom:18px}
.sh-hero h1{font-size:clamp(2rem,5vw,3.3rem);margin-bottom:18px;color:#fff}
.sh-lead{font-size:1.1rem;max-width:560px;color:#eaf1ec}
.sh-hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}

/* 바로가기 */
.sh-quick{background:var(--paper);border-bottom:1px solid var(--line)}
.sh-quick .sh-wrap{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding-top:14px;padding-bottom:14px}
.sh-quick a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;color:var(--ink);text-decoration:none;font-size:.9rem;font-weight:600;border-radius:var(--r);text-align:center}
.sh-quick a:hover{background:var(--green-l);color:var(--green-d)}
.sh-quick .sh-ico{width:28px;height:28px;color:var(--green)}

/* 구역 공통 */
.sh-sec{padding:72px 0}
.sh-sec--tint{background:var(--tint)}
.sh-sec-head{margin-bottom:28px;max-width:680px}
.sh-sec-head h2{font-size:clamp(1.5rem,3vw,2rem)}
.sh-sec-head p{color:var(--sub);margin:0}

/* 상품 */
.sh-prod-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.sh-prod{background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.sh-prod-media{display:block;background:var(--tint)}
.sh-prod-img{width:100%;aspect-ratio:1/1;object-fit:cover}
.sh-prod-body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:6px;flex:1}
.sh-prod-body h3{font-size:1.2rem;margin:0}
.sh-prod-body h3 a{color:var(--ink);text-decoration:none}
.sh-prod-body .sh-btn{margin-top:auto;align-self:flex-start}
.sh-tag{margin:0;font-size:.85rem;font-weight:600;color:var(--green)}
.sh-price{font-size:1.3rem;font-weight:700;margin:2px 0 14px}

/* 수령일 표 */
.sh-sched{width:100%;border-collapse:collapse;background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow:hidden;font-size:1rem}
.sh-sched th,.sh-sched td{padding:14px 18px;border-bottom:1px solid var(--line);text-align:left}
.sh-sched thead th{background:var(--green-d);color:#fff;font-weight:600}
.sh-sched tbody tr:last-child td{border-bottom:0}
.sh-sched td.sh-no{color:var(--red);font-weight:600}
.sh-sched caption{caption-side:bottom;text-align:left;padding-top:10px;font-size:.9rem;color:var(--sub)}

/* 사실 목록 */
.sh-facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:2px solid var(--ink)}
.sh-facts li{padding:26px 24px 8px 0;border-right:1px solid var(--line);padding-left:24px}
.sh-facts li:first-child{padding-left:0}
.sh-facts li:last-child{border-right:0}
.sh-facts .sh-ico{width:30px;height:30px;color:var(--green);margin-bottom:12px}
.sh-facts p{color:var(--sub);margin:0}

/* 요령 */
.sh-tips{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.sh-tips li{display:flex;gap:16px;align-items:flex-start;padding:20px 22px;background:var(--paper);border-left:3px solid var(--green);border-radius:0 var(--r) var(--r) 0}
.sh-tips li.sh-warn{border-left-color:var(--red);background:var(--red-l)}
.sh-tips li.sh-warn .sh-ico{color:var(--red)}
.sh-tips .sh-ico{width:26px;height:26px;color:var(--green);margin-top:2px}
.sh-tips h3{margin:0 0 4px}
.sh-tips p{margin:0;color:var(--sub)}

/* 질문 */
.sh-faq details{border-bottom:1px solid var(--line);padding:4px 0}
.sh-faq summary{cursor:pointer;font-weight:600;padding:14px 28px 14px 0;list-style:none;position:relative}
.sh-faq summary::-webkit-details-marker{display:none}
.sh-faq summary::after{content:"";position:absolute;right:6px;top:22px;width:9px;height:9px;border-right:2px solid var(--sub);border-bottom:2px solid var(--sub);transform:rotate(45deg);transition:transform .15s}
.sh-faq details[open] summary::after{transform:rotate(-135deg);top:26px}
.sh-faq details p{color:var(--sub);margin:0 0 14px}

/* 주문 띠 */
.sh-band{background:var(--red);color:#fff}
.sh-band-in{display:flex;gap:24px;align-items:center;justify-content:space-between;padding-top:44px;padding-bottom:44px}
.sh-band h2{margin:0 0 6px;color:#fff;font-size:1.6rem}
.sh-band p{margin:0;color:#f7e3de}

/* 일반 페이지 */
.sh-main{min-height:50vh}
.sh-page{padding:48px 0 72px}
.sh-page-head h1{font-size:clamp(1.6rem,3.4vw,2.2rem);margin-bottom:20px}
.sh-content h2{font-size:1.35rem;margin-top:1.8em}
.sh-content h3{margin-top:1.4em}
.sh-content table{width:100%;border-collapse:collapse;margin:0 0 1.2em;background:var(--paper)}
.sh-content th,.sh-content td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.sh-content th{background:var(--tint)}
.sh-content ul,.sh-content ol{padding-left:1.3em}
.sh-draft{background:#fff6d6;border:1px dashed #c8a43a;color:#5c4a12;padding:14px 16px;border-radius:var(--r);margin-bottom:1.4em}
.sh-callout{background:var(--red-l);border-left:3px solid var(--red);padding:14px 16px;margin:0 0 1.2em}

/* 문의 폼 */
.sh-form{display:grid;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:24px}
.sh-form label{display:grid;gap:6px;font-weight:600}
.sh-form input[type=text],.sh-form input[type=tel],.sh-form input[type=email],.sh-form textarea,.sh-form select{width:100%;padding:12px 14px;border:1px solid #cfc7b4;border-radius:var(--r);font:inherit;background:#fff}
.sh-form .sh-check{display:flex;gap:8px;align-items:flex-start;font-weight:500}
.sh-form .sh-check input{margin-top:6px}
.sh-msg{padding:12px 14px;border-radius:var(--r);background:var(--green-l);color:var(--green-d)}
.sh-msg--err{background:var(--red-l);color:var(--red)}

/* 바닥 */
.sh-footer{background:#1a201c;color:#c9cfc9;font-size:.92rem;padding:56px 0 28px;margin-top:0}
.sh-footer h2{font:700 1rem/1.4 var(--f-body);color:#fff;margin-bottom:12px}
.sh-footer a{color:#e4ebe5}
.sh-foot-grid{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:32px}
.sh-foot-tel{font-size:1.3rem;color:#fff;font-weight:700;margin-bottom:4px}
.sh-foot-links ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sh-foot-biz dl{margin:0;display:grid;gap:4px}
.sh-foot-biz dl div{display:flex;gap:10px}
.sh-foot-biz dt{min-width:118px;color:#9aa49c}
.sh-foot-biz dd{margin:0}
.sh-footer .sh-ph{background:#3a3520;border-color:#8f7a2f;color:#f0dc9a}
.sh-copy{margin:36px 0 0;padding-top:18px;border-top:1px solid #333b35;color:#8d978f}

/* 우커머스 */
.sh-shop{padding:40px 0 72px}
.woocommerce-products-header__title,.product_title{font-family:var(--f-head)}
.woocommerce ul.products li.product{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:0 0 18px;overflow:hidden;text-align:left}
.woocommerce ul.products li.product a img{margin:0 0 14px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 18px;font-size:1.1rem;color:var(--ink)}
.woocommerce ul.products li.product .price{padding:0 18px;color:var(--ink);font-weight:700;font-size:1.1rem}
.woocommerce ul.products li.product .button{margin:8px 18px 0}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-weight:700;font-size:1.6rem}
.woocommerce span.onsale{background:var(--red)}
.woocommerce-message,.woocommerce-info{border-top-color:var(--green)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--green)}
.woocommerce-error{border-top-color:var(--red)}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.woocommerce div.product form.cart .sanji-date{flex:1 1 100%}
.woocommerce .quantity .qty{min-height:48px;width:5em;border:1px solid #cfc7b4;border-radius:var(--r)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container .select2-selection--single{min-height:46px;border:1px solid #cfc7b4;border-radius:var(--r);padding:10px 12px}
.woocommerce-checkout #payment{background:var(--tint);border-radius:10px}
.woocommerce table.shop_table{border-color:var(--line);border-radius:10px;background:var(--paper)}
.woocommerce-store-notice,p.demo_store{position:fixed!important;top:auto!important;bottom:0!important;left:0;right:0;margin:0;z-index:90;background:var(--red);font-size:.92rem;padding:10px 16px}
body.woocommerce-demo-store{padding-bottom:48px}
.sanji-date label{display:block;font-weight:700;margin-bottom:6px}
.sanji-date select{width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--green);border-radius:var(--r);font:inherit;background:#fff}
.sanji-date small{display:block;color:var(--sub);margin-top:6px}
.sanji-box{background:var(--red-l);border-left:3px solid var(--red);padding:12px 14px;margin:14px 0;font-size:.95rem}
.sanji-agree{display:grid;gap:8px;margin:0 0 16px;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r)}
.sanji-agree label{display:flex;gap:8px;align-items:flex-start;font-size:.95rem}
.sanji-agree input{margin-top:6px}

/* 휴대폰 */
@media (max-width:900px){
  .sh-foot-grid{grid-template-columns:1fr 1fr}
  .sh-foot-biz{grid-column:1 / -1}
  .sh-facts{grid-template-columns:1fr;border-top:0}
  .sh-facts li{border-right:0;border-top:1px solid var(--line);padding:22px 0 10px}
  .sh-facts li:first-child{border-top:2px solid var(--ink)}
}
@media (max-width:960px){
  .sh-header-in{min-height:60px;gap:8px}
  .sh-tool-t{display:none}
  .sh-burger{display:block}
  .sh-tools{margin-left:auto}
  .sh-nav{position:absolute;top:100%;left:0;right:0;background:var(--paper);border-bottom:1px solid var(--line);display:none;margin:0;padding:8px 16px 16px;max-height:75vh;overflow:auto}
  body.sh-menu-open .sh-nav{display:block}
  .sh-menu{flex-direction:column}
  .sh-menu a{padding:14px 8px;border-bottom:1px solid var(--line);border-radius:0}
}
@media (max-width:760px){
  body{font-size:15.5px}
  .sh-wrap{padding:0 16px}
  .sh-topbar .sh-wrap{flex-direction:column;align-items:flex-start;gap:2px;padding-top:7px;padding-bottom:7px}
  .sh-hero-in{padding:56px 16px 64px}
  .sh-hero-art{width:420px;height:420px;right:-170px}
  .sh-hero-cta .sh-btn{flex:1 1 100%}
  .sh-quick .sh-wrap{grid-template-columns:repeat(3,1fr)}
  .sh-sec{padding:52px 0}
  .sh-prod-grid{grid-template-columns:1fr}
  .sh-sched th,.sh-sched td{padding:12px}
  .sh-band-in{flex-direction:column;align-items:flex-start}
  .sh-band .sh-btn{width:100%}
  .sh-foot-grid{grid-template-columns:1fr}
  .sh-foot-biz dt{min-width:104px}
  .woocommerce ul.products[class*=columns-] li.product{width:100%;float:none;margin-right:0}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* 상품 설명 탭 */
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 20px;border-bottom:2px solid var(--ink)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-weight:700;color:var(--ink);padding:10px 0}
.woocommerce-Tabs-panel h2{font-size:1.25rem;margin-top:1.6em}
.woocommerce-Tabs-panel h2:first-child{margin-top:0}
.woocommerce-Tabs-panel table:not(.sh-sched){width:100%;border-collapse:collapse;margin:0 0 1.2em;background:var(--paper)}
.woocommerce-Tabs-panel table:not(.sh-sched) th,.woocommerce-Tabs-panel table:not(.sh-sched) td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.woocommerce-Tabs-panel table:not(.sh-sched) th{background:var(--tint);width:38%}
.woocommerce-Tabs-panel caption,.sh-content caption{caption-side:top;text-align:left;font-weight:700;padding:0 0 8px}
.woocommerce-Tabs-panel .sh-callout{margin-top:1em}
.product_meta{display:none}
