:root {
    --cream: #fffaf0;
    --paper: #fffefb;
    --ink: #17243a;
    --muted: #667085;
    --navy: #102a4c;
    --navy-light: #244d7d;
    --yellow: #f4c542;
    --yellow-soft: #fff0a8;
    --line: #e8e2d4;
    --shadow: 0 18px 50px rgba(16, 42, 76, .1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: rgba(255,253,249,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.announcement { padding: 8px 20px; background: var(--yellow); color: var(--navy); text-align: center; font-weight: 700; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: Georgia, serif; font-size: 1.65rem; color: var(--navy); font-weight: 700; }
.brand img { width: 44px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; }
.cart-link { background: var(--navy); color: white; padding: 8px 14px; border-radius: 999px; }
.hero { padding: 92px 0 72px; background: radial-gradient(circle at 85% 15%, var(--yellow-soft) 0, transparent 34%), linear-gradient(135deg, #fffdf7, #eef3f9); border-bottom: 5px solid var(--yellow); }
.eyebrow { color: var(--navy-light); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1,h2,h3 { font-family: Georgia, serif; line-height: 1.15; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 7vw, 5.3rem); max-width: 820px; margin: 14px 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 650px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, button { border: 0; border-radius: 8px; background: var(--navy); color: white; padding: 12px 20px; font-weight: 700; text-decoration: none; cursor: pointer; display: inline-block; }
.button:hover, button:hover { background: var(--navy-light); }
.button.secondary { background: var(--yellow); color: var(--navy); border: 1px solid #ddb12c; }
.section { padding: 70px 0; }
.section.soft { background: #fff4bd; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.card-image { aspect-ratio: 4/3; background: linear-gradient(135deg, #e7eef7, #fff0a8); display: grid; place-items: center; color: var(--navy); font-family: Georgia, serif; font-size: 1.2rem; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.price { color: var(--navy); font-weight: 700; font-size: 1.08rem; }
.sold-out { display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: #eee8df; color: #6c6257; font-weight: 700; font-size: .85rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cfc5b7; border-radius: 8px; padding: 11px 12px; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.alert { padding: 12px 15px; border-radius: 8px; background: #f7ded8; color: #743e35; margin-bottom: 20px; }
.notice { padding: 12px 15px; border-radius: 8px; background: #e4f1df; color: #294d2b; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th,td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer { border-top: 1px solid var(--line); padding: 35px 0; color: var(--muted); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; font-size: .9rem; }
.policy-page { max-width: 850px; }
.policy-copy { white-space: normal; line-height: 1.8; }
.checkout-agreement { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.checkout-agreement input { width: auto; margin-top: 5px; }
.story-copy { white-space: normal; }
.signup-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
.signup-form label { display: block; }
.fulfillment-options { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.fulfillment-options legend { padding: 0 6px; font-weight: 700; }
.fulfillment-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.fulfillment-option input { width: auto; margin-top: 5px; }
.field-optional { opacity: .72; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-body { background: #f4f1eb; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.admin-sidebar { background: var(--navy); color: white; padding: 28px 20px; border-right: 5px solid var(--yellow); display: flex; flex-direction: column; }
.admin-sidebar .brand { color: white; display: block; margin-bottom: 28px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a, .link-button { color: white; text-decoration: none; padding: 9px 10px; border-radius: 7px; background: transparent; font: inherit; text-align: left; }
.admin-sidebar nav a:hover, .link-button:hover { background: rgba(255,255,255,.1); }
.admin-account { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: 5px; }
.admin-account span { color: rgba(255,255,255,.7); font-size: .85rem; }
.admin-account a { color: white; font-size: .9rem; }
.admin-account form { margin-top: 2px; }
.admin-account .link-button { padding-left: 0; font-size: .9rem; }
.admin-main { padding: 34px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.admin-top h1 { font-size: 2.2rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stats-five { grid-template-columns: repeat(5, 1fr); }
.stats-six { grid-template-columns: repeat(6, 1fr); }
.stat { background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--line); }
.stat strong { display: block; font: 2rem Georgia, serif; color: var(--navy); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card { width: min(430px, 100%); }
.product-image-editor { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf0; }
.product-image-editor p { margin: 4px 0 14px; }
.product-image-preview { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; display: grid; place-items: center; }
.product-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-url-fallback { margin-top: 16px; }
.image-remove { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: 12px; font-weight: 400; }
.image-remove input { width: auto; }
.admin-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 18px; }
.admin-image-tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: white; font-weight: 400; }
.admin-image-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; }
.admin-image-tile span { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.admin-image-tile input, .recommendation-options input { width: auto; }
.recommendation-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.product-gallery-main { border-radius: 18px; overflow: hidden; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; }
.product-gallery-thumb { padding: 3px; width: 78px; height: 64px; flex: 0 0 auto; background: white; border: 2px solid transparent; }
.product-gallery-thumb.active { border-color: var(--yellow); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.cart-recommendations { margin-top: 38px; padding: 24px; border: 1px solid #e0c35d; border-left: 5px solid var(--yellow); border-radius: 14px; background: #fff9dd; }
.cart-recommendations h2 { margin: 4px 0 18px; font-size: 1.8rem; }
.cart-recommendation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cart-recommendation { display: grid; gap: 10px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.cart-recommendation a { display: grid; gap: 8px; text-decoration: none; }
.cart-recommendation img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; }
.cart-recommendation button { width: 100%; padding: 9px 12px; }
.content-settings { display: grid; gap: 22px; padding-bottom: 90px; }
.content-settings h2 { font-size: 1.7rem; margin: 0; }
.check-label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.check-label input { width: auto; }
.settings-save { position: sticky; bottom: 18px; display: flex; justify-content: flex-end; pointer-events: none; }
.settings-save button { box-shadow: 0 10px 30px rgba(16,42,76,.25); pointer-events: auto; }
.account-auth { max-width: 580px; }
.account-auth .panel { padding: 38px; }
.google-signin { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; padding: 14px 64px; border: 1px solid #d0d2d5; border-radius: 999px; background: #fff; color: #202124; text-decoration: none; font: 500 19px/1.2 Arial, sans-serif; letter-spacing: 0; box-shadow: none; }
.google-signin:hover { background: #fafafa; border-color: #aeb2b7; box-shadow: 0 2px 7px rgba(16,42,76,.1); }
.google-signin:focus-visible { outline: 3px solid rgba(26,115,232,.22); outline-offset: 2px; }
.google-signin img { width: 27px; height: 27px; margin-right: 13px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--muted); font: 17px Georgia, serif; text-transform: none; letter-spacing: 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.checkout-account-note { margin-bottom: 18px; padding: 11px 14px; border-left: 4px solid var(--yellow); background: #fffdf7; }
.muted { color: var(--muted); }
.right { text-align: right; }

@media (max-width: 800px) {
    .grid, .two-col, .stats, .stats-five, .stats-six, .cart-recommendation-grid { grid-template-columns: 1fr; }
    .nav { align-items: flex-start; padding: 16px 0; }
    .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
    .admin-shell { display: block; }
    .admin-sidebar { padding: 18px; }
    .admin-sidebar nav { grid-template-columns: repeat(4, auto); overflow-x: auto; }
    .admin-main { padding: 22px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .product-image-editor { grid-template-columns: 1fr; }
    .signup-form { grid-template-columns: 1fr; }
    .account-heading { align-items: flex-start; flex-direction: column; }
}
