:root {
  --cocoa: #321c24;
  --ink: #271f22;
  --cream: #fbf7f0;
  --paper: #fffdfa;
  --berry: #bd5870;
  --sage: #73845a;
  --gold: #d7ad59;
  --line: #e7ddd3;
  --muted: #82777a;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--berry); }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.announcement { min-height: 34px; display: flex; justify-content: center; gap: 12px; align-items: center; padding: 5px 16px; background: var(--cocoa); color: #fff8f0; font-size: 11px; letter-spacing: .04em; }
.announcement span { color: #e7c98e; }
.nav-main { min-height: 78px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cocoa); font-family: "Playfair Display", serif; font-size: 23px; }
.brand img { width: 34px; height: 34px; }
.brand b, .footer-brand b { color: var(--berry); font-style: italic; }
.navbar-nav .nav-link { color: var(--ink); font-size: 13px; }
.cart-link span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; }
.admin-link { color: var(--berry) !important; }
.store-hero { background: #f3eadc; overflow: hidden; }
.hero-grid { position: relative; min-height: 460px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.hero-copy { position: relative; z-index: 1; padding: 28px 0; }
.eyebrow { margin: 0 0 12px; color: var(--sage); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--cocoa); font-family: "Playfair Display", serif; font-weight: 600; }
.hero-copy h1 { margin: 0 0 18px; font-size: 48px; line-height: 1.08; }
.hero-copy h1 em, .page-title em { color: var(--berry); font-style: normal; }
.hero-copy>p:not(.eyebrow) { max-width: 390px; margin: 0 0 25px; color: #685c5f; font-size: 16px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 0; padding: 12px 19px; font-size: 13px; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--cocoa); color: white; }
.button-dark:hover { background: var(--berry); color: white; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 32px; color: var(--muted); font-size: 11px; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero-photo { position: relative; min-height: 360px; background: #6a453b url("https://images.unsplash.com/photo-1511381939415-e44015466834?auto=format&fit=crop&w=1400&q=85") center 48% / cover no-repeat; }
.photo-caption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 24px; color: white; background: rgba(36, 20, 25, .6); }
.photo-caption span { font-size: 9px; letter-spacing: .13em; }
.photo-caption b { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 500; }
.hero-stamp { position: absolute; top: 57px; right: 42%; z-index: 2; display: grid; place-content: center; width: 76px; height: 76px; transform: rotate(9deg); border: 1px solid var(--cocoa); border-radius: 50%; color: var(--cocoa); background: var(--gold); text-align: center; font-size: 9px; letter-spacing: .08em; line-height: 1.3; }
.hero-stamp b { font-size: 12px; }
.shop-section { padding-top: 72px; padding-bottom: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 33px; }
.result-count { color: var(--muted); font-size: 12px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.category-tabs a { padding: 9px 13px; color: var(--muted); font-size: 12px; }
.category-tabs a.selected { border-bottom: 2px solid var(--berry); color: var(--cocoa); font-weight: 700; }
.search-form { display: flex; min-width: 210px; border-bottom: 1px solid var(--line); }
.search-form input { width: 100%; border: 0; padding: 8px 4px; outline: 0; background: transparent; font-size: 12px; }
.search-form button { border: 0; background: transparent; color: var(--cocoa); font-size: 19px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.product-card { min-width: 0; }
.product-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.7; overflow: hidden; background: #f1e7dc; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-photo:hover img { transform: scale(1.035); }
.product-placeholder { color: var(--berry); font-family: "Playfair Display", serif; font-size: 48px; font-style: italic; }
.sale-tag { position: absolute; top: 12px; left: 12px; padding: 5px 8px; background: var(--berry); color: white; font-size: 10px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.product-card h3 { margin: 5px 0 4px; font-size: 19px; }
.product-price { display: flex; align-items: baseline; gap: 9px; font-size: 12px; }
.product-price strong { color: var(--cocoa); font-size: 14px; }
.product-price del { color: var(--muted); }
.product-price span { color: var(--muted); font-size: 9px; }
.quick-add { width: 100%; display: flex; justify-content: space-between; margin-top: 12px; border: 1px solid var(--line); padding: 10px 12px; background: transparent; color: var(--cocoa); text-align: left; font-size: 11px; }
.quick-add:hover:not(:disabled) { border-color: var(--cocoa); background: var(--cocoa); color: white; }
.quick-add:disabled { opacity: .5; }
.promise-band { background: #e9eee2; }
.promise-grid { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.promise-grid span { color: var(--sage); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.promise-grid p { margin: 0; color: var(--cocoa); font-family: "Playfair Display", serif; font-size: 20px; }
.site-footer { padding: 52px 0 18px; background: var(--cocoa); color: #f8efe7; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px; padding-bottom: 40px; }
.footer-brand { color: white; font-size: 21px; }
.footer-grid p { max-width: 250px; margin: 12px 0 0; color: #c9b9ba; font-size: 12px; }
.footer-grid>div>a:not(.footer-brand), .footer-grid>div>span:not(.footer-label) { display: block; margin: 8px 0; color: #e4d7d2; font-size: 12px; }
.footer-label { color: #e5bf76; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #634c52; padding-top: 14px; color: #c1b2b4; font-size: 10px; }
.page-section { padding-top: 56px; padding-bottom: 80px; }
.narrow-section { max-width: 1040px; }
.page-title { margin: 0 0 30px; font-size: 42px; line-height: 1.12; }
.empty-state { padding: 70px 20px; border: 1px solid var(--line); text-align: center; }
.empty-state h3 { margin-bottom: 8px; font-size: 25px; }
.empty-state p { margin-bottom: 23px; color: var(--muted); }
.empty-mark { display: block; margin-bottom: 12px; color: var(--berry); font-family: "Playfair Display", serif; font-size: 54px; font-style: italic; }
.breadcrumbs { display: flex; gap: 10px; padding: 22px 0; color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; padding-bottom: 60px; }
.detail-main-image, .detail-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1e7dc; }
.detail-placeholder { display: grid; place-content: center; color: var(--berry); font-family: "Playfair Display", serif; font-size: 38px; }
.detail-thumbnails { display: flex; gap: 10px; margin-top: 10px; }
.detail-thumbnails img { width: 74px; height: 74px; object-fit: cover; }
.detail-copy { padding-top: 32px; }
.detail-copy h1 { margin-bottom: 14px; font-size: 40px; }
.detail-price { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.detail-price strong { font-size: 17px; }
.detail-price del { color: var(--muted); font-size: 12px; }
.detail-description { max-width: 480px; color: #665c5e; line-height: 1.75; }
.stock-line { margin: 22px 0; color: var(--sage); font-size: 12px; }
.add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.add-form label { width: 100%; font-size: 11px; font-weight: 700; }
.add-form input { width: 70px; min-height: 48px; border: 1px solid var(--line); padding: 9px; }
.detail-note { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr .8fr; align-items: start; gap: 35px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 17px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item>img, .cart-placeholder { width: 84px; height: 96px; object-fit: cover; background: #f1e7dc; }
.cart-placeholder { display: grid; place-content: center; color: var(--berry); font-family: "Playfair Display", serif; font-size: 24px; }
.cart-item-copy>a { display: block; margin-bottom: 5px; font-family: "Playfair Display", serif; font-size: 16px; }
.cart-item-copy span { color: var(--muted); font-size: 11px; }
.cart-item>strong { font-size: 12px; }
.icon-command { border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.order-summary { padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.order-summary h2 { margin: 0 0 18px; font-size: 21px; }
.order-summary>div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; color: #665c5e; font-size: 12px; }
.order-summary .summary-total { margin: 5px 0 18px; border-top: 1px solid var(--line); color: var(--cocoa); font-size: 14px; }
.order-summary>p { margin: 12px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.checkout-form, .admin-form { display: grid; gap: 9px; }
.checkout-form label, .admin-form label { margin-top: 5px; color: var(--cocoa); font-size: 11px; font-weight: 700; }
.checkout-form label span { color: var(--muted); font-weight: 400; }
.checkout-form input:not([type=checkbox]), .checkout-form textarea, .admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; background: white; }
.checkout-form textarea, .admin-form textarea { min-height: auto; }
.checkout-form .button, .admin-form .button { justify-self: start; margin-top: 12px; }
.payment-choice { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--sage); background: #f3f5ec; }
.payment-icon { display: grid; place-items: center; width: 38px; height: 30px; background: var(--sage); color: white; font-size: 9px; font-weight: 700; }
.payment-choice strong, .payment-choice span { display: block; }
.payment-choice strong { font-size: 12px; }
.payment-choice div span { color: var(--muted); font-size: 10px; }
.confirmation-section { max-width: 640px; text-align: center; }
.confirmation-section>.page-title { margin-bottom: 16px; }
.confirmation-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%; background: #e9eee2; color: var(--sage); font-size: 23px; }
.confirmation-summary { margin: 28px 0; text-align: left; }
.auth-section { max-width: 480px; min-height: 62vh; }
.auth-form { padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.check-line { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.check-line input { accent-color: var(--berry); }
.text-danger { font-size: 11px; }
.admin-page { padding-top: 42px; padding-bottom: 80px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-heading h1 { margin: 0; font-size: 38px; }
.admin-nav { display: flex; gap: 25px; overflow-x: auto; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 12px 2px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.admin-nav a.active { border-bottom: 2px solid var(--berry); color: var(--cocoa); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 22px; background: var(--line); border: 1px solid var(--line); }
.metric-grid article { min-height: 128px; padding: 18px; background: var(--cream); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 10px; }
.metric-grid strong { display: inline-block; margin-top: 12px; color: var(--cocoa); font-family: "Playfair Display", serif; font-size: 29px; font-weight: 600; }
.metric-grid small { display: inline-block; margin-left: 5px; }
.admin-content-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; margin-bottom: 22px; }
.admin-panel { min-width: 0; border: 1px solid var(--line); padding: 20px; background: white; }
.admin-panel h2 { margin: 0; font-size: 19px; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 15px; }
.panel-heading a, .panel-heading>span { color: var(--muted); font-size: 10px; }
.quiet { color: var(--muted); font-size: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 10px; color: var(--muted); font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 12px 10px; border-top: 1px solid #f0e9e3; vertical-align: middle; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.product-cell { display: flex; align-items: center; gap: 9px; min-width: 155px; font-weight: 600; }
.product-cell img { width: 34px; height: 38px; object-fit: cover; background: var(--cream); }
.row-actions, .status-form { display: flex; align-items: center; gap: 10px; }
.row-actions a, .text-command { border: 0; padding: 2px; background: none; color: var(--cocoa); font-size: 10px; font-weight: 700; }
.danger-command { color: #aa435b; }
.status-pill { display: inline-block; padding: 4px 7px; background: #eef1e8; color: var(--sage); font-size: 9px; }
.status-form select { min-width: 100px; border: 1px solid var(--line); padding: 5px; background: white; font-size: 10px; }
.stock-row, .category-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #f0e9e3; font-size: 11px; }
.stock-row strong { color: var(--sage); white-space: nowrap; }
.stock-row .out-stock { color: var(--berry); }
.narrow-admin { max-width: 860px; }
.admin-form { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.field-span { grid-column: 1 / -1; }
.admin-form small { color: var(--muted); font-size: 9px; }
.admin-form .check-line { margin-top: 5px; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.form-actions>a { color: var(--muted); font-size: 11px; }
.category-row { display: block; }
.category-row>div { display: flex; justify-content: space-between; gap: 14px; }
.category-row span, .category-row p { color: var(--muted); font-size: 10px; }
.category-row p { margin: 5px 0 0; }
.social-grid { grid-template-columns: .8fr 1.2fr; }
.connected-label { color: var(--sage); font-size: 12px; }
.social-post { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.social-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; align-content: start; }
.social-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream); }
.post-copy { min-width: 0; }
.post-copy p { margin: 9px 0; white-space: pre-line; font-size: 11px; }
.post-copy small { display: block; color: var(--muted); font-size: 9px; }
.post-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.schedule-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.schedule-form label { width: 100%; margin: 0; color: var(--muted); font-size: 9px; }
.schedule-form input { width: auto !important; min-height: 32px !important; padding: 5px !important; font-size: 10px; }
.admin-heading form { margin: 0; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-content-grid, .social-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .announcement { font-size: 9px; }
  .announcement span { display: none; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding-top: 35px; padding-bottom: 26px; }
  .hero-copy { padding: 10px 0; }
  .hero-copy h1 { font-size: 38px; }
  .hero-photo { min-height: 245px; }
  .hero-stamp { top: auto; right: 20px; bottom: 210px; width: 62px; height: 62px; }
  .photo-caption { padding: 15px; }
  .photo-caption b { font-size: 15px; }
  .shop-section { padding-top: 45px; padding-bottom: 55px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 27px; }
  .shop-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 10px; padding-bottom: 12px; }
  .search-form { width: 100%; }
  .category-tabs { gap: 0; }
  .category-tabs a { padding: 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .product-card h3 { font-size: 16px; }
  .promise-grid { min-height: 85px; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 16px 0; text-align: center; }
  .promise-grid p { width: 100%; order: -1; font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid>div:first-child { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; font-size: 9px; }
  .page-section { padding-top: 36px; padding-bottom: 55px; }
  .page-title { font-size: 34px; }
  .detail-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 25px; }
  .detail-copy { padding-top: 0; }
  .detail-copy h1 { font-size: 34px; }
  .cart-item { grid-template-columns: 62px 1fr auto; gap: 10px; }
  .cart-item>img, .cart-placeholder { width: 62px; height: 72px; }
  .cart-item form { grid-column: 3; }
  .cart-item>strong { grid-column: 3; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 100px; padding: 13px; }
  .metric-grid strong { font-size: 24px; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-heading h1 { font-size: 32px; }
  .admin-panel { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .social-post { grid-template-columns: 72px 1fr; gap: 9px; }
}