/* ---------- Ceramic London storefront ---------- */
:root {
    --clay:   #7c5c43;
    --clay-d: #5f4733;
    --sand:   #f6f1ec;
    --cream:  #fbf9f6;
    --ink:    #2b2b2b;
    --muted:  #8a8178;
    --line:   #e7e0d8;
    --green:  #3f7d58;
    --red:    #b4453a;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(60, 45, 30, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}

h1, h2, h3, .brand { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

a { color: var(--clay-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.brand { font-size: 22px; color: var(--clay-d); }
.brand-mark { color: var(--clay); }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.main-nav a { color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
    background: var(--clay); color: #fff; font-size: 12px; font-weight: 600;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.search { display: flex; align-items: center; flex: 1; max-width: 320px; margin: 0 22px; }
.search input {
    flex: 1; min-width: 0; padding: 9px 14px; font: inherit; background: #fff;
    border: 1px solid var(--line); border-right: none; border-radius: 999px 0 0 999px;
}
.search input:focus { outline: none; border-color: var(--clay); }
.search button {
    padding: 9px 15px; border: 1px solid var(--clay); background: var(--clay); color: #fff;
    border-radius: 0 999px 999px 0; cursor: pointer; font-size: 17px; line-height: 1;
}
.search button:hover { background: var(--clay-d); }
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; }
    .search { order: 3; width: 100%; max-width: 100%; margin: 12px 0 0; }
}

/* ---------- flash ---------- */
.flash {
    margin: 18px 0; padding: 12px 16px; border-radius: var(--radius);
    border: 1px solid transparent;
}
.flash-success { background: #eef6f0; border-color: #cfe6d6; color: #285c3e; }
.flash-error   { background: #fbeeec; border-color: #f0cfc9; color: #8e3328; }

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(120deg, var(--sand), #efe7df);
    border-radius: 16px; padding: 56px 44px; margin: 28px 0 36px;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; }
.hero p  { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block; cursor: pointer; font: inherit; font-weight: 600;
    padding: 11px 20px; border-radius: 999px; border: 1px solid var(--clay);
    background: var(--clay); color: #fff; transition: .15s; text-align: center;
}
.btn:hover { background: var(--clay-d); border-color: var(--clay-d); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--clay-d); }
.btn-ghost:hover { background: var(--sand); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- product grid ---------- */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb {
    aspect-ratio: 1 / 1; background: var(--sand); display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .placeholder { font-size: 44px; color: #cdbfae; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card .name { font-family: 'Fraunces', serif; font-size: 17px; }
.card .price { font-weight: 600; }
.card .body .btn { margin-top: auto; }
.badge-out { font-size: 12px; color: var(--red); font-weight: 600; }

/* ---------- product detail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; }
.product .gallery {
    aspect-ratio: 1/1; background: var(--sand); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product .gallery .placeholder { font-size: 90px; color: #cdbfae; }
.product h1 { font-size: 32px; margin: 4px 0 8px; }
.product .price-lg { font-size: 24px; font-weight: 600; margin: 10px 0; }
.qty { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty input { width: 64px; padding: 9px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* ---------- tables / cart ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
table.lines { width: 100%; border-collapse: collapse; }
table.lines th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
table.lines td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.line-qty { width: 58px; padding: 7px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.totals { margin-left: auto; max-width: 320px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .row.grand { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

/* ---------- forms ---------- */
.auth { max-width: 420px; margin: 40px auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 8px; font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--clay); border-color: var(--clay); }
.otp-input { letter-spacing: 12px; text-align: center; font-size: 24px !important; }
.hint { font-size: 13px; color: var(--muted); }
.dev-note { background: #fff7e6; border: 1px dashed #e0b768; color: #8a6d2f; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 54px; }
.tag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--clay-d); }
.status-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-pending, .st-unverified { background: #fdf0e2; color: #9a6212; }
.st-verified, .st-shipped { background: #eaf5ee; color: #2c6b46; }
.st-cancelled { background: #f3e9e8; color: #8e3328; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--sand); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; padding: 30px 0; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .product, .cart-layout { grid-template-columns: 1fr; }
    .main-nav { gap: 14px; font-size: 14px; }
    .hero { padding: 38px 24px; }
}

/* ---------- content: journal, articles, cause ---------- */
.page-hero { background: linear-gradient(120deg, var(--sand), #efe7df); border-radius: 16px; padding: 48px 40px; margin: 28px 0 34px; }
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--clay); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 0 0 12px; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0; }

.journal-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--clay); font-weight: 600; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.25; font-family: 'Fraunces', serif; }
.post-card h3 a { color: var(--ink); }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .meta { margin-top: auto; font-size: 13px; color: var(--muted); }

.article { max-width: 760px; margin: 0 auto; }
.article-hero { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--sand); margin: 16px 0 8px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; margin: 18px 0 12px; }
.byline { color: var(--muted); font-size: 14px; margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prose { font-size: 17px; line-height: 1.75; color: #34322f; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 24px; margin: 30px 0 12px; }
.prose blockquote { margin: 24px 0; padding: 14px 22px; border-left: 3px solid var(--clay); background: var(--sand); border-radius: 0 8px 8px 0; font-size: 19px; font-style: italic; color: var(--clay-d); }
.prose ul { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.note-box { background: #fff7e6; border: 1px dashed #e0b768; color: #8a6d2f; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 18px 0; }

.cta-band { background: var(--clay); color: #fff; border-radius: 14px; padding: 34px 30px; margin: 36px 0; text-align: center; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0 auto 18px; max-width: 54ch; opacity: .92; }
.cta-band .btn { background: #fff; color: var(--clay-d); border-color: #fff; }
.cta-band .btn:hover { background: var(--sand); }

.band { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin: 40px 0; }
.band img { width: 100%; border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.band.reverse .text { order: 2; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 26px 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.step .num { width: 34px; height: 34px; border-radius: 999px; background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.stat-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 30px 0; }
.stat-box { text-align: center; background: var(--sand); border-radius: 12px; padding: 24px; }
.stat-box .n { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 600; color: var(--clay-d); }
.stat-box .l { color: var(--muted); font-size: 14px; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.photo-strip img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; background: var(--sand); }

.cause-teaser { background: var(--sand); border-radius: 16px; padding: 36px 32px; margin: 44px 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; }
.cause-teaser img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }

.pager { display: flex; gap: 10px; justify-content: center; margin: 34px 0; align-items: center; flex-wrap: wrap; }
.pager a, .pager span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.pager a:hover { background: var(--sand); text-decoration: none; }
.pager .current { background: var(--clay); color: #fff; border-color: var(--clay); }

@media (max-width: 760px) {
    .band, .cause-teaser { grid-template-columns: 1fr; }
    .band.reverse .text { order: 0; }
}
