/* Zero World: calm, editorial look. Warm paper background, serif headings, small spaced capitals, square edges, thin lines. */
:root {
  --zw-paper: #f6f2eb;        /* page background */
  --zw-surface: #fbf9f5;      /* cards, header */
  --zw-sand: #ece5d9;         /* image backgrounds, subtle fills */
  --zw-line: #e2dacd;         /* thin borders */
  --zw-ink: #2a2620;          /* main text */
  --zw-muted: #7a7164;        /* secondary text */
  --zw-brown: #4a3626;        /* primary buttons (deep umber) */
  --zw-brown-dark: #33251a;
  --zw-clay: #a65a36;         /* small accents: sale, active states */
  --zw-gold: #b48a3c;         /* rating stars */
  --zw-dark: #2a2620;
  --zw-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --zw-sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --bs-body-font-family: var(--zw-sans);
  --bs-body-font-weight: 300;
  --bs-body-color: var(--zw-ink);
  --bs-body-bg: var(--zw-paper);
  --bs-border-color: var(--zw-line);
  --bs-border-radius: 2px;
  --bs-border-radius-sm: 2px;
  --bs-border-radius-lg: 2px;
  --bs-border-radius-xl: 2px;
  --bs-border-radius-pill: 2px;
  --bs-link-color-rgb: 74, 54, 38;
  --bs-link-hover-color-rgb: 166, 90, 54;
  --bs-secondary-color: var(--zw-muted);
}

body { background: var(--zw-paper); color: var(--zw-ink); font-family: var(--zw-sans); font-weight: 300; letter-spacing: .01em; }
a { color: var(--zw-brown); text-underline-offset: 3px; }
a:hover { color: var(--zw-clay); }
strong, b, .fw-bold, .fw-semibold { font-weight: 500 !important; }
.text-muted { color: var(--zw-muted) !important; }
::selection { background: var(--zw-sand); }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .display-5 { font-family: var(--zw-serif); font-weight: 500; letter-spacing: 0; line-height: 1.1; color: var(--zw-ink); }
h1, .h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.h3 { font-size: 2rem; }
h6, .h6 { font-family: var(--zw-sans); font-weight: 500; }

/* Small spaced capitals used for labels, menus and buttons */
.eyebrow, .zw-caps { font-family: var(--zw-sans); font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-muted); }

/* ---------- Header ---------- */
.navbar-zw { background: var(--zw-surface); border-bottom: 1px solid var(--zw-line); padding-top: .9rem; padding-bottom: .9rem; }
.zw-wordmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--zw-ink); }
.zw-wordmark:hover { color: var(--zw-ink); }
.zw-wordmark .name { font-family: var(--zw-serif); font-size: 1.75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.zw-wordmark .tag { font-size: .55rem; letter-spacing: .24em; text-transform: uppercase; color: var(--zw-muted); margin-top: .35rem; }
.navbar-zw .nav-link { color: var(--zw-ink); font-size: .72rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; padding-left: 1rem !important; padding-right: 1rem !important; }
.navbar-zw .nav-link:hover, .navbar-zw .nav-link:focus, .navbar-zw .nav-link.active { color: var(--zw-clay); }
.navbar-zw .nav-link .bi { font-size: 1.05rem; letter-spacing: 0; }
.navbar-zw .navbar-toggler { border: 1px solid var(--zw-line); border-radius: 2px; }
.navbar-zw .navbar-toggler:focus { box-shadow: none; }
.zw-search { border-bottom: 1px solid var(--zw-line); }
.zw-search .form-control { border: 0; background: transparent; font-size: .85rem; padding-left: 0; box-shadow: none; }
.zw-search .btn { border: 0; color: var(--zw-ink); padding: .25rem .5rem; }
.zw-search .btn:hover { color: var(--zw-clay); }
.cart-badge { position: absolute; top: 0; right: 2px; font-size: .58rem; font-weight: 500; background: var(--zw-brown) !important; color: #fff !important; border-radius: 50% !important; min-width: 1.15rem; }

/* ---------- Buttons: square, small spaced capitals ---------- */
.btn { border-radius: 2px; font-family: var(--zw-sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: .85rem 1.5rem; }
.btn-sm { font-size: .64rem; padding: .5rem .9rem; letter-spacing: .14em; }
.btn-lg { font-size: .76rem; padding: 1rem 1.9rem; }
.btn-gold, .btn-brown { background: var(--zw-brown); border: 1px solid var(--zw-brown); color: #f6f2eb; }
.btn-gold:hover, .btn-gold:focus, .btn-brown:hover, .btn-brown:focus { background: var(--zw-brown-dark); border-color: var(--zw-brown-dark); color: #fff; }
.btn-outline-brown, .btn-outline-secondary, .btn-outline-dark { background: transparent; border: 1px solid var(--zw-ink); color: var(--zw-ink); }
.btn-outline-brown:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover { background: var(--zw-ink); border-color: var(--zw-ink); color: var(--zw-paper); }
.btn-outline-light { border-radius: 2px; }
.btn-link { text-transform: none; letter-spacing: 0; font-size: inherit; padding: 0; }
.btn:focus-visible { box-shadow: 0 0 0 .2rem rgba(74, 54, 38, .25); }
.zw-arrow-link { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-ink); text-decoration: none; border-bottom: 1px solid var(--zw-ink); padding-bottom: 2px; }
.zw-arrow-link:hover { color: var(--zw-clay); border-color: var(--zw-clay); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 2px; border-color: var(--zw-line); background-color: #fff; font-weight: 300; }
.form-control:focus, .form-select:focus { border-color: var(--zw-brown); box-shadow: 0 0 0 .2rem rgba(74, 54, 38, .12); }
.form-label { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--zw-muted); }
.form-check-input:checked { background-color: var(--zw-brown); border-color: var(--zw-brown); }
.form-text { color: var(--zw-muted); }

/* ---------- Cards, tables, alerts, badges ---------- */
.card { --bs-card-border-color: var(--zw-line); --bs-card-bg: var(--zw-surface); border-radius: 2px; }
.card-header { background: transparent; border-bottom-color: var(--zw-line); font-family: var(--zw-serif); font-size: 1.2rem; font-weight: 500; }
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--zw-line); }
.table thead th { font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--zw-muted); }
.alert { border-radius: 2px; font-weight: 400; }
.badge { border-radius: 2px; font-weight: 500; letter-spacing: .08em; }
.dropdown-menu { border-radius: 2px; border-color: var(--zw-line); box-shadow: 0 .75rem 1.5rem rgba(42, 38, 32, .08); font-size: .9rem; }
.dropdown-item:active { background: var(--zw-brown); }
.pagination { --bs-pagination-color: var(--zw-ink); --bs-pagination-active-bg: var(--zw-brown); --bs-pagination-active-border-color: var(--zw-brown); --bs-pagination-border-color: var(--zw-line); --bs-pagination-border-radius: 2px; }
.list-group { --bs-list-group-border-color: var(--zw-line); --bs-list-group-active-bg: var(--zw-brown); --bs-list-group-active-border-color: var(--zw-brown); }
.nav-tabs { --bs-nav-tabs-link-active-color: var(--zw-ink); }

/* ---------- Home page ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: var(--zw-surface); border: 1px solid var(--zw-line); min-height: 30rem; }
.hero-copy { padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 400; line-height: 1.02; margin: 1rem 0 1.25rem; }
.hero-copy h1 em { font-style: italic; color: var(--zw-brown); }
.hero-copy p { color: var(--zw-muted); max-width: 30rem; margin-bottom: 2rem; }
.hero-media { position: relative; overflow: hidden; background: var(--zw-sand); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(251, 249, 245, .92); padding: .55rem .85rem; }
.hero-rule { width: 3rem; height: 1px; background: var(--zw-ink); margin: 0 0 1.5rem; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; margin: .4rem 0 0; }

.category-tile { display: block; background: var(--zw-surface); border: 1px solid var(--zw-line); text-decoration: none; color: var(--zw-ink); height: 100%; transition: border-color .2s; }
.category-tile:hover { border-color: var(--zw-ink); color: var(--zw-ink); }
.category-tile .ct-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--zw-sand); }
.category-tile .ct-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category-tile:hover .ct-img img { transform: scale(1.04); }
.category-tile .ct-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; }
.category-tile .ct-name { font-family: var(--zw-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.category-tile .ct-cta { white-space: nowrap; }

.moment-card { display: block; height: 100%; background: var(--zw-surface); border: 1px solid var(--zw-line); color: var(--zw-ink); text-decoration: none; transition: border-color .2s; }
.moment-card:hover { border-color: var(--zw-ink); color: var(--zw-ink); }
.moment-card .mc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--zw-sand); }
.moment-card .mc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moment-card:hover .mc-img img { transform: scale(1.04); }
.moment-card .mc-body { padding: 1.4rem 1.5rem 1.6rem; }
.moment-card h3 { font-size: 1.7rem; font-weight: 400; margin: .5rem 0 .6rem; }
.moment-card p { color: var(--zw-muted); font-size: .92rem; margin-bottom: 1.1rem; }

.story-band { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--zw-surface); border: 1px solid var(--zw-line); }
.story-media { position: relative; min-height: 26rem; background: var(--zw-sand); overflow: hidden; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; margin: .75rem 0 1rem; }
.story-copy h2 em { color: var(--zw-brown); }
.story-copy p { color: var(--zw-muted); max-width: 32rem; }
.story-copy .story-quote { font-family: var(--zw-serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--zw-ink); border-left: 2px solid var(--zw-gold); padding-left: 1rem; margin: 0 0 1.25rem; }
.story-stats { display: flex; gap: 2.5rem; margin: 1.25rem 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--zw-line); width: 100%; }
.story-stats > div { display: flex; flex-direction: column; }
.story-stats .num { font-family: var(--zw-serif); font-size: 2.4rem; line-height: 1; color: var(--zw-ink); }

.value-strip { border-top: 1px solid var(--zw-line); border-bottom: 1px solid var(--zw-line); }
.value-strip .col-md-4 + .col-md-4 { border-left: 1px solid var(--zw-line); }
.value-strip h3 { font-size: 1.45rem; font-weight: 500; margin: .6rem 0 .4rem; }
.value-strip .num { font-family: var(--zw-serif); font-style: italic; color: var(--zw-clay); font-size: 1.1rem; }

/* ---------- Product cards ---------- */
.product-card { background: var(--zw-surface); border: 1px solid var(--zw-line); border-radius: 2px; overflow: hidden; position: relative; transition: border-color .2s; }
.product-card:hover { border-color: var(--zw-ink); box-shadow: none; }
.product-card img { width: 100%; height: 100%; object-fit: cover; background: var(--zw-sand); transition: transform .6s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card .card-body { padding: 1rem 1.1rem 1.15rem; }
.product-card .card-title { font-family: var(--zw-serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.product-card .badge { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; padding: .4rem .55rem; }
.product-card .badge.bg-danger { background: var(--zw-clay) !important; }
.product-card .badge.bg-secondary { background: var(--zw-ink) !important; }
.price { color: var(--zw-ink); font-weight: 500; letter-spacing: .02em; }
.stars { color: var(--zw-gold); }

.product-gallery-main { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 2px; background: var(--zw-sand); border: 1px solid var(--zw-line); }
.product-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; cursor: pointer; border: 1px solid var(--zw-line); opacity: .75; }
.product-thumb.active, .product-thumb:hover { border-color: var(--zw-ink); opacity: 1; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.6rem; color: #d6cfc2; cursor: pointer; text-transform: none; letter-spacing: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--zw-gold); }
.rating-input input:focus-visible + label { outline: 2px solid var(--zw-brown); }

.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; background: var(--zw-sand); }
.wish-btn.active { color: var(--zw-clay); border-color: var(--zw-clay); }

/* ---------- Footer ---------- */
.footer-zw { background: var(--zw-surface); color: var(--zw-muted); border-top: 1px solid var(--zw-line); }
.footer-zw h5 { color: var(--zw-ink); }
.footer-zw h6 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--zw-ink); margin-bottom: 1rem; }
.footer-zw li { margin-bottom: .45rem; }
.footer-zw a { color: var(--zw-ink); text-decoration: none; }
.footer-zw a:hover { color: var(--zw-clay); }
.footer-zw hr { border-color: var(--zw-line) !important; opacity: 1 !important; }

/* ---------- Admin ---------- */
.admin-body { background: var(--zw-paper); }
.admin-topbar { background: var(--zw-dark); }
.admin-topbar .navbar-brand { font-family: var(--zw-serif); letter-spacing: .2em; text-transform: uppercase; font-size: 1.2rem; }
.admin-topbar .btn-gold { background: var(--zw-paper); border-color: var(--zw-paper); color: var(--zw-ink); }
.admin-topbar .btn-gold:hover { background: #fff; color: var(--zw-ink); }
.admin-sidebar { background: var(--zw-surface); border-right: 1px solid var(--zw-line); min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .admin-sidebar { position: sticky; top: 0; align-self: flex-start; } }
.admin-sidebar .nav-link { color: var(--zw-ink); padding: .7rem 1.4rem; font-size: .9rem; border-left: 2px solid transparent; }
.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover { background: var(--zw-paper); color: var(--zw-brown); border-left-color: var(--zw-brown); font-weight: 400; }
.stat-card { border: 1px solid var(--zw-line); border-top: 2px solid var(--zw-brown); box-shadow: none; background: var(--zw-surface); }
.stat-card .stat-value { font-family: var(--zw-serif); font-size: 2.2rem; font-weight: 500; }
.table-actions form { display: inline; }
.admin-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; background: var(--zw-sand); }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  .navbar-zw .nav-link { padding-left: 0 !important; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 18rem; order: -1; }
  .story-band { grid-template-columns: 1fr; }
  .story-media { min-height: 16rem; }
  .story-copy { padding: 2.25rem 1.5rem; }
}
@media (max-width: 767.98px) {
  .value-strip .col-md-4 + .col-md-4 { border-left: 0; border-top: 1px solid var(--zw-line); }
}
@media (max-width: 575.98px) {
  .hero-copy { padding: 2.25rem 1.4rem; }
  .zw-wordmark .name { font-size: 1.4rem; letter-spacing: .22em; }
  .category-tile .ct-body { flex-direction: column; align-items: flex-start; }
  .category-tile .ct-name { font-size: 1.1rem; }
  .btn { letter-spacing: .14em; }
  .story-stats { gap: 1.5rem; }
  .story-stats .num { font-size: 1.9rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Connect with us (social icons) ---------- */
.zw-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.zw-social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--zw-line); color: var(--zw-ink); text-decoration: none; font-size: 1.05rem; transition: background .2s, color .2s, border-color .2s; }
.zw-social-link:hover, .zw-social-link:focus { background: var(--zw-brown); border-color: var(--zw-brown); color: #fff; }

/* ---------- Contact page ---------- */
.contact-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--zw-line); }
.contact-item > .bi { font-size: 1.3rem; color: var(--zw-brown); line-height: 1.2; }
.contact-item .eyebrow { margin-bottom: .2rem; }
