/* ==========================================================================
   보라팜 — 손님이 보는 화면
   빌드 도구 없이 이 파일 하나로 갑니다 (카페24 에 FTP 로 올려야 하므로).
   ========================================================================== */

:root {
    --berry-900: #2b1b3d;
    --berry-800: #3d2857;
    --berry-700: #4f3470;
    --berry-600: #63438b;
    --berry-500: #7a57a5;
    --berry-400: #9878bd;
    --berry-200: #d6c6e8;
    --berry-100: #ece4f5;
    --berry-050: #f6f2fb;

    --leaf-600: #4a7c3f;
    --leaf-500: #5d9a4f;
    --leaf-100: #e6f0e2;

    --sun-500: #d99a2b;
    --sun-100: #fbf1dc;

    --ink: #241d2e;
    --ink-soft: #574c66;
    --ink-mute: #8c8399;

    --paper: #ffffff;
    --paper-warm: #faf8fc;
    --line: #e7e2ee;
    --line-soft: #f1eef5;

    --danger: #c0392b;
    --danger-bg: #fdeceb;
    --ok: #2f7d4f;
    --ok-bg: #e8f4ec;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(43, 27, 61, .05), 0 8px 24px rgba(43, 27, 61, .06);
    --shadow-lg: 0 12px 40px rgba(43, 27, 61, .12);

    --wrap: 1140px;
    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
            'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
    --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

/* ---------- 머리말 --------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex; align-items: center; gap: 20px;
    height: 68px;
}

/* ★ 머리말 안의 글자는 절대 두 줄이 되면 안 됩니다.
   flex 항목은 기본으로 줄어들 수 있어서, 로그인하면 «관리·홍길동님·로그아웃» 이
   늘어난 만큼 메뉴가 눌리고 «자라는 이야기» 같은 말이 띄어쓰기에서 접힙니다.
   머리말 높이는 68px 로 고정이라 접힌 둘째 줄이 아래로 삐져나옵니다. */
.header-inner .brand,
.header-inner .gnb a,
.header-inner .header-tools .icon-link,
.header-inner .header-tools .btn { white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.brand-mark {
    width: 30px; height: 30px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, var(--berry-400), var(--berry-700) 70%);
    box-shadow: inset -2px -3px 6px rgba(0,0,0,.25);
    position: relative; flex: none;
}
.brand-mark::after {
    content: ''; position: absolute; inset: 40% 0 auto 50%;
    width: 9px; height: 9px; transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.5) inset;
}
/* 이름 아래에 주소를 세로로 쌓습니다. 가로로 붙이면 머리말 폭을
   100px 가까이 잡아먹어 메뉴가 눌립니다. */
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--berry-800); }
.brand-sub { display: block; font-size: .68rem; color: var(--ink-mute); font-weight: 500; letter-spacing: .04em; }

.gnb { display: flex; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.gnb a {
    padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 600; color: var(--ink-soft);
    transition: background .15s, color .15s;
}
.gnb a:hover { background: var(--berry-050); color: var(--berry-700); }
.gnb a.is-active { color: var(--berry-700); background: var(--berry-100); }

.header-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.header-tools .icon-link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: .88rem; font-weight: 600; color: var(--ink-soft);
}
.header-tools .icon-link:hover { background: var(--berry-050); color: var(--berry-700); }
.header-tools .icon-link.is-name { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; }
.cart-badge {
    display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--berry-600); color: #fff;
    font-size: .7rem; font-weight: 700;
}

.nav-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
    margin-inline: auto; position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ''; position: absolute; top: 6px; }

/* 로그인 상태에서는 «관리·이름·로그아웃» 이 더 붙어 자리가 빠듯합니다.
   1100px 부터 햄버거 메뉴로 접어 글자가 눌리지 않게 합니다. */
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .gnb, .header-tools { display: none; }
    .site-nav-open .gnb,
    .site-nav-open .header-tools {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: 68px;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 10px 20px; gap: 2px; margin: 0;
    }
    .site-nav-open .header-tools { top: auto; position: static; border: 0; border-top: 1px solid var(--line-soft); }
    .site-nav-open .gnb { box-shadow: var(--shadow); }
    .site-nav-open .gnb a,
    .site-nav-open .header-tools .icon-link { white-space: normal; }
}

/* ---------- 첫 화면 -------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--berry-800), var(--berry-600) 55%, var(--berry-500));
    color: #fff;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(closest-side at 80% 20%, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 100px; }
.hero-eyebrow {
    display: inline-block; padding: 5px 13px; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .06em;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-family: var(--serif); font-weight: 700; line-height: 1.3; }
.hero p { margin-top: 18px; font-size: clamp(1rem, 2.2vw, 1.15rem); color: rgba(255,255,255,.86); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* 사진이 있으면 왼쪽 글 · 오른쪽 사진으로 나눕니다.
   사진을 배경으로 늘리지 않는 이유: 원본이 900px 라서 넓은 화면에서 흐려집니다.
   제 크기에 가깝게 두어야 알알이 선명하게 보입니다. */
.hero.has-photo .hero-inner {
    display: grid; grid-template-columns: 1.02fr .98fr;
    gap: 52px; align-items: center;
    padding: 76px 0 80px;
}
.hero.has-photo h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero-copy { min-width: 0; }

/* 사진에 테두리를 두르지 않습니다. 가장자리를 흐리게 지워
   배경 보라색 위로 스며들게 합니다 — 액자에 넣은 것이 아니라
   화면 자체가 블루베리 밭인 것처럼 보이게 하려는 것. */
.hero-figure { margin: 0; position: relative; }

/* 사진 뒤에 옅은 보랏빛을 퍼뜨려 두면, 지워진 가장자리가
   허공으로 끊기지 않고 은은하게 이어집니다. */
.hero-figure::before {
    content: ''; position: absolute; inset: -12%;
    background: radial-gradient(closest-side, rgba(152,120,189,.42), rgba(122,87,165,0) 74%);
    filter: blur(30px);
    z-index: 0;
}

.hero-figure img {
    position: relative; z-index: 1;
    width: 100%; aspect-ratio: 5 / 4; object-fit: cover;

    /* 네 변을 각각 부드럽게 지웁니다. 가로·세로 두 장의 그러데이션을
       겹쳐(intersect) 쓰는 이유: 타원 하나로 파내면 사진이 동그래지는데,
       이렇게 하면 사진 모양은 그대로 두고 테두리만 녹습니다.
       ★ 그러데이션 반지름을 50% 보다 크게 잡으면 가장자리에 닿기 전에 잘려
         페이드가 안 보입니다 — radial 로 하려다 그 함정에 빠졌었습니다. */
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0, rgba(0,0,0,.55) 14%, #000 30%, #000 70%, rgba(0,0,0,.55) 86%, transparent 100%),
        linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 14%, #000 30%, #000 70%, rgba(0,0,0,.55) 86%, transparent 100%);
            mask-image:
        linear-gradient(to right,  transparent 0, rgba(0,0,0,.55) 14%, #000 30%, #000 70%, rgba(0,0,0,.55) 86%, transparent 100%),
        linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 14%, #000 30%, #000 70%, rgba(0,0,0,.55) 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
}

/* mask 를 못 읽는 아주 오래된 브라우저에서는 페이드가 없을 뿐
   사진은 정상으로 보입니다 (모서리만 각져 보임). */

/* 같은 사진을 아주 흐리게 깔아 두면 배경색과 사진이 한 덩어리로 보입니다. */
.hero-backdrop {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: .16; filter: blur(22px) saturate(1.2);
    transform: scale(1.1);
}

@media (max-width: 860px) {
    .hero.has-photo .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 62px 0 66px; }
    .hero-figure img { aspect-ratio: 16 / 11; }
}

/* ---------- 버튼 ----------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-size: .94rem; font-weight: 650; cursor: pointer;
    white-space: nowrap;
    transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry-600); color: #fff; }
.btn-primary:hover { background: var(--berry-700); box-shadow: 0 6px 18px rgba(99,67,139,.28); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-line { background: #fff; color: var(--berry-700); border-color: var(--berry-200); }
.btn-line:hover { border-color: var(--berry-500); background: var(--berry-050); }
.btn-soft { background: var(--berry-100); color: var(--berry-700); }
.btn-soft:hover { background: var(--berry-200); }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-quiet:hover { background: var(--paper-warm); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c7c2; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- 구획 ----------------------------------------------------------- */

.section { padding: 76px 0; }
.section-warm { background: var(--paper-warm); }
.section-berry { background: var(--berry-050); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head .more { font-size: .9rem; font-weight: 650; color: var(--berry-600); white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

.eyebrow {
    display: block; margin-bottom: 9px;
    font-size: .8rem; font-weight: 700; letter-spacing: .1em;
    color: var(--berry-500); text-transform: uppercase;
}
.section-title { font-size: clamp(1.5rem, 3.2vw, 2rem); font-family: var(--serif); }
.section-desc { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }

.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-family: var(--serif); }
.page-head p { margin-top: 12px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- 격자 ----------------------------------------------------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 카드 ----------------------------------------------------------- */

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
    display: flex; flex-direction: column;
}
a.card:hover, .card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--berry-200); }
.card-thumb { aspect-ratio: 4 / 3; background: var(--berry-050); overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.is-empty { display: grid; place-items: center; color: var(--berry-200); font-size: 2rem; }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 1.04rem; font-weight: 700; }
.card-text { color: var(--ink-soft); font-size: .92rem; line-height: 1.65;
             display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--ink-mute); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 딱지 ----------------------------------------------------------- */

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .76rem; font-weight: 650; line-height: 1.6;
    background: var(--berry-100); color: var(--berry-700);
}
.chip-leaf { background: var(--leaf-100); color: var(--leaf-600); }
.chip-sun  { background: var(--sun-100); color: #9a6a12; }
.chip-gray { background: var(--line-soft); color: var(--ink-mute); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-lg { padding: 5px 13px; font-size: .84rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar a {
    padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: #fff;
}
.filter-bar a:hover { border-color: var(--berry-400); color: var(--berry-700); }
.filter-bar a.is-active { background: var(--berry-600); border-color: var(--berry-600); color: #fff; }

/* ---------- 재배일지 ------------------------------------------------------- */

.grow-item {
    display: grid; grid-template-columns: 340px 1fr; gap: 30px;
    padding: 32px 0; border-bottom: 1px solid var(--line-soft);
}
.grow-item:first-child { padding-top: 8px; }
.grow-item .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--berry-050); }
.grow-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.grow-date { font-size: .84rem; color: var(--berry-600); font-weight: 700; letter-spacing: .02em; }
.grow-item h3 { font-size: 1.3rem; margin: 8px 0 10px; }
.grow-item .body { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.grow-strip { display: flex; gap: 8px; margin-top: 14px; }
.grow-strip img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; }
@media (max-width: 780px) { .grow-item { grid-template-columns: 1fr; gap: 18px; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figcaption { margin-top: 7px; font-size: .84rem; color: var(--ink-mute); }

.prose { font-size: 1.02rem; line-height: 1.85; color: var(--ink-soft); white-space: pre-line; }
.prose strong { color: var(--ink); }

/* ---------- 상품 ----------------------------------------------------------- */

.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price .now { font-size: 1.16rem; font-weight: 800; color: var(--berry-800); }
.product-price .was { font-size: .88rem; color: var(--ink-mute); text-decoration: line-through; }
.product-price .off { font-size: .82rem; font-weight: 700; color: var(--danger); }

.ribbon {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
    background: rgba(43,27,61,.82); color: #fff; backdrop-filter: blur(4px);
}
.ribbon-soldout { background: rgba(43,27,61,.75); }
.ribbon-sale { background: var(--danger); }

.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } }
.product-gallery .main { border-radius: var(--radius); overflow: hidden; background: var(--berry-050); aspect-ratio: 1; }
.product-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery .thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.product-gallery .thumbs img.is-active { border-color: var(--berry-500); }

.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.buy-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.buy-row:last-of-type { border-bottom: 0; }
.buy-row dt { color: var(--ink-mute); }
.buy-row dd { margin: 0; font-weight: 600; text-align: right; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 16px; border-top: 2px solid var(--berry-100); }
.buy-total .amount { font-size: 1.5rem; font-weight: 800; color: var(--berry-800); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 36px; height: 38px; border: 0; background: #fff; cursor: pointer; font-size: 1.05rem; color: var(--ink-soft); }
.qty button:hover { background: var(--berry-050); }
.qty input { width: 52px; height: 38px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; font-weight: 650; }

.notice-box {
    padding: 16px 18px; border-radius: var(--radius-sm);
    background: var(--sun-100); border: 1px solid #f0dfb8; color: #7a5510; font-size: .92rem;
}
.notice-box-berry { background: var(--berry-050); border-color: var(--berry-200); color: var(--berry-800); }

/* ---------- 표 ------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th, table.data td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data thead th { background: var(--paper-warm); font-size: .84rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--berry-050); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .center { text-align: center; }
table.data .nowrap { white-space: nowrap; }

.board-title { font-weight: 650; }
.board-title .lock { color: var(--ink-mute); margin-right: 5px; }
.board-notice td { background: var(--sun-100); }

/* ---------- 폼 ------------------------------------------------------------- */

.field { margin-bottom: 20px; }
.field > label, .field-label {
    display: block; margin-bottom: 7px;
    font-size: .89rem; font-weight: 650; color: var(--ink-soft);
}
.field .req { color: var(--danger); margin-left: 3px; }
.field .hint { margin-top: 6px; font-size: .82rem; color: var(--ink-mute); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=url], input[type=search], input[type=datetime-local],
select, textarea {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: 0; border-color: var(--berry-500);
    box-shadow: 0 0 0 3px rgba(122,87,165,.14);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238c8399' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
         background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
input[type=file] { font-size: .9rem; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: .93rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--berry-600); flex: none; }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

.form-error { margin-top: 6px; font-size: .84rem; color: var(--danger); font-weight: 600; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }

.auth-box {
    max-width: 460px; margin: 60px auto 90px; padding: 36px;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 6px; font-family: var(--serif); }
.auth-box .lead { color: var(--ink-soft); font-size: .93rem; margin-bottom: 26px; }
.auth-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); text-align: center; font-size: .9rem; color: var(--ink-soft); }
.auth-alt a { color: var(--berry-600); font-weight: 650; }

/* ---------- 알림 ----------------------------------------------------------- */

.flash { padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .93rem; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.error-list { background: var(--danger-bg); color: var(--danger); padding: 14px 18px 14px 34px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .9rem; }
.error-list li { margin: 3px 0; }

.empty { padding: 66px 20px; text-align: center; color: var(--ink-mute); }
.empty .big { font-size: 2.4rem; margin-bottom: 12px; opacity: .5; }
.empty p { margin: 0; }

/* ---------- 쪽 넘김 -------------------------------------------------------- */

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 600; color: var(--ink-soft); background: #fff;
}
.pagination a:hover { border-color: var(--berry-400); color: var(--berry-700); }
.pagination .is-current { background: var(--berry-600); border-color: var(--berry-600); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ---------- 꼬리말 --------------------------------------------------------- */

.site-footer { margin-top: 90px; padding: 54px 0 40px; background: var(--berry-900); color: rgba(255,255,255,.62); font-size: .88rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-biz { padding-top: 24px; font-size: .8rem; line-height: 1.9; color: rgba(255,255,255,.45); }
.footer-biz .sep { margin: 0 8px; opacity: .4; }

/* ---------- 자잘한 것들 ---------------------------------------------------- */

.stack   { display: flex; flex-direction: column; gap: 14px; }
.row     { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-end { justify-content: flex-end; }
.row-between { justify-content: space-between; }
.muted   { color: var(--ink-mute); }
.small   { font-size: .86rem; }
.tiny    { font-size: .78rem; }
.strong  { font-weight: 700; }
.center  { text-align: center; }
.right   { text-align: right; }
.nowrap  { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 34px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px } .mb-4 { margin-bottom: 34px }
.divider { height: 1px; background: var(--line-soft); margin: 30px 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }

.kv { display: grid; grid-template-columns: 132px 1fr; gap: 10px 16px; font-size: .93rem; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 100px 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
    padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.stat .label { font-size: .82rem; color: var(--ink-mute); font-weight: 600; }
.stat .value { font-size: 1.6rem; font-weight: 800; color: var(--berry-800); line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: .8rem; color: var(--ink-mute); }
.stat.is-alert .value { color: var(--danger); }

/* ---------- 고객 후기 ------------------------------------------------------ */

/* 후기는 사진이 주인공이라 글 목록이 아니라 사진 격자로 놓습니다.
   사진 크기가 제각각이라 masonry 대신 카드 안에서 잘라 맞춥니다. */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--berry-200); }

.review-photo { position: relative; aspect-ratio: 1; background: var(--berry-050); overflow: hidden; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.review-card:hover .review-photo img { transform: scale(1.04); }
.review-photo.is-empty {
    display: grid; place-items: center; aspect-ratio: 16/9;
    background: linear-gradient(150deg, var(--berry-050), var(--berry-100));
    color: var(--berry-400); font-size: 1.8rem;
}
/* 사진이 여러 장이면 몇 장인지 알려 줍니다. */
.review-photo .count {
    position: absolute; right: 10px; top: 10px;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(43,27,61,.66); color: #fff;
    font-size: .74rem; font-weight: 700; backdrop-filter: blur(4px);
}

.review-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.review-text {
    color: var(--ink-soft); font-size: .93rem; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-meta {
    margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between;
    gap: 10px; font-size: .8rem; color: var(--ink-mute);
}

/* 별점 — 글자로 그립니다. 이미지를 쓰면 로딩 전에 자리가 흔들립니다. */
.stars { color: var(--sun-500); letter-spacing: 1px; font-size: .95rem; line-height: 1; }
.stars .off { color: var(--line); }
.stars-lg { font-size: 1.3rem; }

/* 별점 고르기 — 라디오를 감추고 별을 누르게 합니다. */
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-pick label {
    cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line);
    transition: color .12s, transform .12s;
}
.star-pick label:hover, .star-pick label:hover ~ label,
.star-pick input:checked ~ label { color: var(--sun-500); }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible ~ label { outline: 2px solid var(--berry-500); outline-offset: 2px; }

.review-summary {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 18px 22px; border-radius: var(--radius);
    background: var(--berry-050); border: 1px solid var(--berry-200);
}
.review-summary .big { font-size: 2rem; font-weight: 800; color: var(--berry-800); line-height: 1; }

/* 후기 상세의 사진들 */
.review-photos { display: grid; gap: 12px; }
.review-photos img { width: 100%; border-radius: var(--radius); }

/* 올리기 전 고른 사진 미리보기 */
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
