/* Layout modeled on a standard two-column checkout: form on the left, order summary on the right. */
:root {
  --ink:#241d18; --ink2:#4a3528; --muted:#6e625a; --line:#dcd3c6; --line2:#e9e2d8;
  --side:#f6f1ea; --accent:#36261c; --focus:#8a5a3b; --bg:#ffffff; --error:#b42318;
  --serif:"Cormorant Garamond", Georgia, serif;
}
* { box-sizing:border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 Inter, system-ui, -apple-system, sans-serif; }
a { color:var(--focus); }
.muted { color:var(--muted); }
.small { font-size:14px; }
[hidden] { display:none !important; }

/* Header */
.top { border-bottom:1px solid var(--line2); }
.top-in { max-width:1100px; margin:0 auto; padding:18px 16px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-family:var(--serif); font-size:28px; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:var(--ink); text-decoration:none; }
.logo img { max-height:40px; display:block; }
.bag { color:var(--ink); display:flex; }

/* Two columns */
.layout { display:grid; grid-template-columns:1fr; }
@media (min-width:1000px) {
  .layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:calc(100vh - 77px); }
  .main { justify-self:end; width:100%; max-width:560px; padding:36px 40px 40px 16px; }
  .side { background:var(--side); border-left:1px solid var(--line2); }
  .side-in { max-width:440px; padding:36px 16px 40px 40px; position:sticky; top:0; }
  .sum-toggle { display:none !important; }
}
@media (max-width:999px) {
  .main { padding:20px 16px 40px; max-width:600px; margin:0 auto; width:100%; }
  .side { order:-1; background:var(--side); border-bottom:1px solid var(--line2); display:none; }
  .sum-open .side { display:block; }
  .side-in { max-width:600px; margin:0 auto; padding:16px; }
}
.sum-toggle { display:flex; width:100%; justify-content:space-between; align-items:center; padding:16px; border:0; border-bottom:1px solid var(--line2); background:var(--side); color:var(--focus); font:inherit; cursor:pointer; }
.sum-toggle b { color:var(--ink); font-size:18px; }
.sum-open .sum-toggle svg { transform:rotate(180deg); }

/* Form */
section { margin-bottom:28px; }
h1 { font-family:var(--serif); font-size:34px; font-weight:600; line-height:1.15; margin:0 0 8px; }
h2 { font-size:20px; font-weight:600; margin:0 0 12px; }
input[type=email], input[type=tel], input:not([type]), select {
  width:100%; font:inherit; font-size:16px; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:6px; padding:13px 12px; margin-bottom:12px; }
input:focus, select:focus { outline:none; border-color:var(--focus); box-shadow:0 0 0 1px var(--focus); }
input.bad, select.bad { border-color:var(--error); box-shadow:0 0 0 1px var(--error); }
input:disabled, select:disabled { background:#faf8f5; color:var(--muted); }
.field { position:relative; }
.field span { position:absolute; left:12px; top:6px; font-size:12px; color:var(--muted); pointer-events:none; }
.field select { padding:20px 12px 6px; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236e625a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.three { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
@media (max-width:520px) { .three { grid-template-columns:1fr 1fr; } .three > :first-child { grid-column:1 / -1; } }
.check { display:flex; gap:10px; align-items:center; font-size:15px; }
.check input { width:18px; height:18px; accent-color:var(--accent); }

.option { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--line); border-radius:6px; padding:14px; }
.option.on { border-color:var(--focus); background:#fbf8f4; }
.option small { display:block; color:var(--muted); font-weight:400; }

.paybox { border:1px solid var(--line); border-radius:6px; overflow:hidden; margin-top:10px; }
.paybox-head { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px; background:#fbf8f4; border-bottom:1px solid var(--line); }
.cards { color:var(--muted); font-size:14px; }
.paybox-body { padding:16px 14px; background:#faf8f5; }
#frame { padding:0; background:#fff; }
#frame iframe { width:100%; height:820px; border:0; display:block; }

.btn { display:block; width:100%; text-align:center; font:inherit; font-size:18px; font-weight:600; color:#fff; background:var(--accent); border:0; border-radius:6px; padding:17px; cursor:pointer; text-decoration:none; margin-top:16px; }
.btn:hover { background:var(--ink2); }
.btn[disabled] { opacity:.6; cursor:wait; }
.link { background:none; border:0; color:var(--focus); font:inherit; cursor:pointer; padding:12px 0; text-decoration:underline; }
.err { color:var(--error); min-height:22px; margin-top:10px; }
.policies { border-top:1px solid var(--line2); padding-top:16px; display:flex; flex-wrap:wrap; gap:8px 18px; font-size:14px; }

/* Order summary */
.item { display:grid; grid-template-columns:64px 1fr auto; gap:14px; align-items:center; margin-bottom:16px; }
.thumb { position:relative; width:64px; height:64px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.thumb img { width:100%; height:100%; object-fit:cover; border-radius:7px; }
.qty { position:absolute; top:-8px; right:-8px; min-width:22px; height:22px; padding:0 6px; border-radius:11px; background:#5c5047; color:#fff; font-size:12px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.item-t small { color:var(--muted); display:block; }
.item-p { font-weight:500; }
.rows { margin-top:8px; }
.row { display:flex; justify-content:space-between; gap:12px; padding:5px 0; }
.row.total { font-size:20px; font-weight:600; padding-top:12px; }
.row.total small { font-size:13px; color:var(--muted); font-weight:400; }

/* Empty cart / thank-you */
.empty { max-width:560px; margin:0 auto; padding:48px 16px; }
.thanks .tick { width:48px; height:48px; border-radius:50%; border:2px solid var(--accent); color:var(--accent); display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:12px; }
.card { border:1px solid var(--line); border-radius:8px; padding:18px; margin:16px 0; }
.card h2 { margin-bottom:4px; }
