/* css/shop.css - cart, checkout, success. All classes start with "ct-" */
:root { --green:#0b4426; --green-dark:#083a1a; --gold:#d6a43a; --gold-light:#f0cd7c; --text:#222; --muted:#777; --line:#e8e2d2; --paper:#faf7ee; }
.ct-wrap { max-width:1200px; margin:0 auto; padding:0 24px; font-family:'Poppins',Arial,sans-serif; color:var(--text); }
.ct-wrap *, .ct-wrap *::before, .ct-wrap *::after { box-sizing:border-box; }
.ct-title { font-family:'Cormorant Garamond',Georgia,serif; font-size:44px; color:var(--green); margin:34px 0 6px; font-weight:600; }
.ct-sub { color:var(--muted); font-size:14px; margin:0 0 26px; }
.ct-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:40px; align-items:start; padding-bottom:70px; }

.ct-btn { display:inline-block; width:100%; text-decoration:none; text-align:center; padding:15px 24px; font:inherit; font-size:13px; font-weight:600; letter-spacing:2px; text-transform:uppercase; border:1.5px solid var(--green); background:var(--green); color:var(--gold-light); cursor:pointer; transition:.2s; }
.ct-btn:hover { background:var(--gold); border-color:var(--gold); color:var(--green-dark); }
.ct-btn[disabled] { background:#bbb; border-color:#bbb; color:#fff; cursor:not-allowed; }
.ct-btn-line { background:#fff; color:var(--green); }
.ct-btn-auto { width:auto; }

/* cart rows */
.ct-notes { margin:0 0 16px; padding:12px 16px; background:#fbf0d3; color:#7a560c; font-size:13.5px; display:none; }
.ct-notes.show { display:block; }
.ct-row { display:grid; grid-template-columns:96px minmax(0,1fr) auto; gap:18px; padding:20px 0; border-bottom:1px solid var(--line); }
.ct-row:first-child { border-top:1px solid var(--line); }
.ct-row img { width:96px; height:128px; object-fit:cover; background:#efe8d4; display:block; }
.ct-name { font-size:16px; font-weight:500; color:var(--text); text-decoration:none; line-height:1.35; }
.ct-name:hover { color:var(--gold); }
.ct-meta { font-size:13px; color:var(--muted); margin:4px 0 12px; }
.ct-qty { display:inline-flex; border:1.5px solid var(--line); }
.ct-qty button { width:36px; border:0; background:#fff; font-size:18px; color:var(--green); cursor:pointer; }
.ct-qty button:hover { background:var(--paper); }
.ct-qty span { min-width:42px; display:flex; align-items:center; justify-content:center; border-left:1.5px solid var(--line); border-right:1.5px solid var(--line); font-size:14px; font-weight:500; }
.ct-rm { display:block; margin-top:10px; background:none; border:0; padding:0; font:inherit; font-size:13px; color:#b3261e; text-decoration:underline; cursor:pointer; }
.ct-right { text-align:right; font-weight:600; color:var(--green); font-size:16px; }
.ct-right small { display:block; margin-top:4px; font-weight:400; color:var(--muted); font-size:12.5px; }

/* summary */
.ct-box { background:var(--paper); border:1px solid var(--line); padding:26px; position:sticky; top:16px; }
.ct-box h2 { font-family:'Cormorant Garamond',Georgia,serif; font-size:28px; color:var(--green); margin:0 0 16px; }
.ct-sum { display:flex; justify-content:space-between; padding:8px 0; font-size:14.5px; }
.ct-sum.total { border-top:1px solid var(--line); margin-top:8px; padding-top:16px; font-size:19px; font-weight:600; color:var(--green); }
.ct-free { color:var(--green); font-weight:600; }
.ct-hint { font-size:13px; color:var(--muted); margin:10px 0 18px; }
.ct-bar { height:6px; background:var(--line); margin:10px 0 4px; }
.ct-bar i { display:block; height:100%; background:var(--gold); width:0; transition:width .3s; }
.ct-mini { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; align-items:center; padding:9px 0; font-size:13.5px; }
.ct-mini img { width:52px; height:68px; object-fit:cover; background:#efe8d4; }
.ct-mini small { display:block; color:var(--muted); }

.ct-empty { text-align:center; padding:70px 10px 90px; display:none; }
.ct-empty h2 { font-family:'Cormorant Garamond',Georgia,serif; font-size:38px; color:var(--green); margin:0 0 8px; }
.ct-empty p { color:var(--muted); margin:0 0 24px; }

/* checkout form */
.ct-form h2 { font-family:'Cormorant Garamond',Georgia,serif; font-size:28px; color:var(--green); margin:0 0 14px; }
.ct-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:30px; }
.ct-field { display:flex; flex-direction:column; gap:6px; }
.ct-field.full { grid-column:1 / -1; }
.ct-field label { font-size:13px; font-weight:500; }
.ct-field input, .ct-field textarea, .ct-field select { font:inherit; font-size:14.5px; padding:12px 13px; border:1.5px solid var(--line); background:#fff; color:var(--text); width:100%; }
.ct-field input:focus, .ct-field textarea:focus, .ct-field select:focus { outline:2px solid var(--gold); outline-offset:0; border-color:var(--gold); }
.ct-field textarea { min-height:84px; resize:vertical; }
.ct-field .err { color:#b3261e; font-size:12.5px; }
.ct-pay { display:grid; gap:10px; margin-bottom:30px; }
.ct-pay label { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border:1.5px solid var(--line); cursor:pointer; font-size:14.5px; }
.ct-pay label:has(input:checked) { border-color:var(--green); background:var(--paper); }
.ct-pay small { display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
.ct-alert { padding:14px 16px; margin-bottom:22px; background:#fdecea; color:#8c1d18; font-size:14px; }
.ct-alert ul { margin:0; padding-left:18px; }

/* success */
.ct-ok { text-align:center; padding:60px 0 20px; }
.ct-tick { width:74px; height:74px; border-radius:50%; background:var(--green); margin:0 auto 20px; display:flex; align-items:center; justify-content:center; }
.ct-tick svg { width:36px; height:36px; fill:none; stroke:var(--gold-light); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ct-ok h1 { font-family:'Cormorant Garamond',Georgia,serif; font-size:44px; color:var(--green); margin:0 0 8px; }
.ct-ok p { color:var(--muted); margin:0; }
.ct-ono { display:inline-block; margin:18px 0 0; padding:10px 22px; border:1.5px dashed var(--gold); font-weight:600; letter-spacing:1.5px; color:var(--green); }
.ct-card { max-width:760px; margin:34px auto 70px; border:1px solid var(--line); padding:26px; }
.ct-card h3 { font-family:'Cormorant Garamond',Georgia,serif; font-size:26px; color:var(--green); margin:0 0 12px; }
.ct-two { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:22px; font-size:14px; line-height:1.7; }
.ct-two b { display:block; color:var(--muted); font-weight:500; font-size:12.5px; }
.ct-acts { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.ct-acts .ct-btn { flex:1 1 200px; width:auto; }

@media (max-width:980px) {
    .ct-layout { grid-template-columns:1fr; gap:26px; }
    .ct-box { position:static; }
}
@media (max-width:560px) {
    .ct-wrap { padding:0 16px; }
    .ct-title { font-size:34px; }
    .ct-row { grid-template-columns:78px minmax(0,1fr); }
    .ct-row img { width:78px; height:104px; }
    .ct-right { grid-column:2; text-align:left; }
    .ct-grid, .ct-two { grid-template-columns:1fr; }
}