/* Coast and Garden 3D Prints: colors and type taken from the market sign */
:root {
  --navy: #24505e;        /* lettering + state outlines */
  --navy-dark: #1a3b46;
  --green: #4b7a2a;       /* palm, leaves, "3D PRINTS" */
  --green-dark: #3b6220;
  --orange: #f59a0f;      /* sun */
  --orange-soft: #fff3df;
  --sand: #f8f5ee;
  --line: #e2e8e5;
  --text: #20343c;
  --muted: #667a80;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(36, 80, 94, .08);
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center img { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }
.warn { color: #b45309; }
.danger { color: #b42318 !important; }
.hp { position: absolute; left: -9999px; }
code { background: var(--sand); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .1s, background .2s; letter-spacing: .02em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-primary:disabled { background: #a7b3ae; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wide { width: 100%; text-align: center; }
.small-btn { padding: 6px 14px; font-size: .85rem; }
.link-btn { background: none; border: 0; color: var(--green); cursor: pointer; font: inherit; padding: 2px 4px; text-decoration: underline; }

/* Header */
.announce { background: var(--orange); color: var(--navy-dark); text-align: center; font-weight: 700; padding: 6px 16px; font-size: .9rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-decoration: none; }
.logo-sun { grid-row: 1 / 3; width: 50px; height: auto; }
.logo-script { font-family: var(--script); color: var(--navy); font-size: 1.7rem; line-height: 1; }
.logo-script small { font-size: .6em; color: var(--navy); }
.logo-sub { font-weight: 800; color: var(--green); letter-spacing: .28em; font-size: .7rem; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { background: var(--sand); }
.nav-cart { background: var(--navy); color: #fff !important; }
.nav-cart:hover { background: var(--navy-dark) !important; }
.nav-admin { color: var(--orange) !important; }
.badge { display: inline-block; background: var(--orange); color: var(--navy-dark); border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 0 7px; margin-left: 6px; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 980px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-burger span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
}

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: #eaf4e2; color: var(--green-dark); border: 1px solid #cfe5bf; }
.flash.err { background: #fdecea; color: #912018; border: 1px solid #f7c8c2; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--orange-soft) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { text-align: center; padding: 40px 16px 56px; position: relative; z-index: 1; }
.hero-sun { width: 170px; margin: 0 auto -6px; }
.script { font-family: var(--script); font-weight: 400; color: var(--navy); }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin: 0; line-height: 1.05; }
.hero h1 span { font-size: .45em; vertical-align: middle; }
.script.big { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: .2em 0; }
.rule-title { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 8px auto 4px; max-width: 520px; }
.rule-title::before, .rule-title::after { content: ''; height: 3px; background: var(--green); flex: 1; border-radius: 2px; }
.rule-title span { font-weight: 800; color: var(--green); letter-spacing: .25em; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.tagline { font-family: var(--hand); color: var(--navy); font-size: 1.35rem; font-weight: 700; margin: 0; }
.tagline span { color: var(--green); padding: 0 4px; }
.tagline.big { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 14px; }
.hero-copy { max-width: 560px; margin: 0 auto 22px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-state { position: absolute; top: 50%; transform: translateY(-50%); height: 62%; width: auto; opacity: .9; }
.hero-state.left { left: 3%; }
.hero-state.right { right: 4%; }
@media (max-width: 900px) { .hero-state { opacity: .12; height: 70%; } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { text-align: center; text-decoration: none; padding: 26px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile img { width: 64px; margin: 0 auto 10px; }
.cat-tile h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; font-weight: 800; }
.cat-tile p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 800px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Products */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 22px; }
.product-card { text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--sand); }
.card-img > img, .card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); font-weight: 700; }
.price { font-weight: 800; color: var(--navy); }
.price s { color: var(--muted); font-weight: 500; margin-left: 8px; font-size: .9em; }
.price.big { font-size: 1.7rem; margin: 6px 0 10px; }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.tag.sale { background: var(--orange); color: var(--navy-dark); }
.tag.soldout { background: var(--navy); color: #fff; }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, var(--sand), var(--orange-soft)); color: var(--muted); font-size: .85rem; aspect-ratio: 1; }
.img-placeholder img { width: 38%; opacity: .55; }

/* Band + steps */
.band { background: var(--navy); color: #e8f0f1; }
.band h2, .band h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.steps > div { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--navy-dark); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.market { display: flex; gap: 28px; align-items: center; }
.market-leaf { width: 120px; flex-shrink: 0; }
@media (max-width: 600px) { .market { flex-direction: column; text-align: center; } }

/* Shop listing */
.page-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 18px; }
.shop-bar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .88rem; background: #fff; }
.chip.on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.shop-filter { display: flex; gap: 8px; }

/* Forms */
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #c9d4d1; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; }
.stack > * + * { margin-top: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; font-weight: 500; cursor: pointer; }
.radio input { margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.custom-form > * + *, .market-form > * + *, .checkout-form > * + * { margin-top: 14px; }

/* Product detail */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.gallery-main img, .gallery-main .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumb.on { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 4px 0; }
.lead { font-size: 1.05rem; }
.avail { font-weight: 700; font-size: .9rem; }
.avail.instock { color: var(--green); }
.avail.low { color: #b45309; }
.avail.soldout { color: #912018; }
.avail.mto { color: var(--navy); }
.buy-form { display: grid; gap: 12px; margin: 16px 0; }
.buy-form .qty input { max-width: 110px; }
.custom-nudge { background: var(--orange-soft); border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 14px 0; }
.details { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .93rem; }
.details th { text-align: left; color: var(--navy); width: 34%; padding: 9px 10px 9px 0; vertical-align: top; }
.details td { padding: 9px 0; }
.details tr + tr { border-top: 1px solid var(--line); }
.description { max-width: 760px; margin-top: 36px; }

/* Cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct-img { width: 84px; }
.ct-img img, .ct-img .img-placeholder { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.ct-img .img-placeholder span { display: none; }
.qty-input { width: 70px; }
.cart-actions { text-align: right; margin: 12px 0; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; display: grid; gap: 10px; }
.summary > div { display: flex; justify-content: space-between; gap: 14px; }
.summary.inline { border: 0; padding: 0; }
.summary.inline > div:last-child { border-top: 1px solid var(--line); padding-top: 10px; }
.free-ship { color: var(--green); font-weight: 700; margin: 0; }
.empty { text-align: center; padding: 30px 0; }
.checkout-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .checkout-choice { grid-template-columns: 1fr; } }

/* Account / auth / pages */
.auth { max-width: 460px; }
.auth form > * + * { margin-top: 14px; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th.right { text-align: right; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #eef2f1; color: var(--navy); white-space: nowrap; }
.s-paid, .s-new { background: var(--orange-soft); color: #92400e; }
.s-processing, .s-in_progress, .s-quoted { background: #e6f0f3; color: var(--navy); }
.s-shipped, .s-ready_for_pickup, .s-completed { background: #eaf4e2; color: var(--green-dark); }
.s-cancelled, .s-refunded, .s-declined { background: #f3f4f6; color: #6b7280; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.about-sign { border-radius: var(--radius); border: 1px solid var(--line); margin: 10px 0 24px; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-leaf { width: 130px; margin-top: 10px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.custom-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.custom-hero img { width: 90px; flex-shrink: 0; }
@media (max-width: 600px) { .custom-hero { flex-direction: column; text-align: center; } }

/* Footer */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h4 { text-transform: uppercase; font-size: .82rem; letter-spacing: .1em; }
.footer-grid a { display: block; color: var(--navy); text-decoration: none; padding: 3px 0; font-size: .92rem; word-break: break-word; }
.footer-grid a:hover { text-decoration: underline; }
.footer-script { font-family: var(--script); color: var(--navy); font-size: 2rem; }
.states { display: flex; gap: 14px; margin: 12px 0 6px; align-items: flex-end; }
.states img { height: 56px; width: auto; }
.copyright { padding: 24px 16px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin-top: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Admin */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 28px; align-items: start; }
.admin-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; background: var(--sand); padding: 14px; border-radius: var(--radius); }
.admin-brand { font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; padding: 4px 10px 10px; }
.admin-nav a { color: var(--navy); text-decoration: none; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a.on, .admin-nav a:hover { background: #fff; }
.admin-main { min-width: 0; }
.admin-main > * + * { margin-top: 18px; }
.admin-title { font-size: 1.7rem; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.admin-table { background: #fff; }
.admin-table tr.dim td { opacity: .55; }
.thumb-cell { width: 56px; }
.thumb-cell img, .thumb-cell .img-placeholder { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.thumb-cell .img-placeholder span { display: none; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--orange-soft); color: #92400e; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.clip { max-width: 280px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.admin-form > * + * { margin-top: 18px; }
.admin-images { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-img { width: 130px; text-align: center; font-size: .8rem; }
.admin-img img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 4px; }
.file-link { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.form-actions { display: flex; gap: 12px; position: sticky; bottom: 0; background: rgba(255,255,255,.95); padding: 12px 0; border-top: 1px solid var(--line); }
.danger-zone { margin-top: 28px; text-align: right; }
.range-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.range-bar label { display: flex; gap: 6px; align-items: center; }
.range-bar input { width: auto; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.kpi span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi b { font-size: 1.6rem; color: var(--navy); margin: 4px 0; }
.kpi small { color: var(--muted); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.bars .bar-cell { width: 34%; white-space: nowrap; }
.bar { display: inline-block; height: 12px; vertical-align: middle; }
.bar.online { background: var(--navy); border-radius: 4px 0 0 4px; }
.bar.market { background: var(--green); border-radius: 0 4px 4px 0; }
.legend { display: flex; gap: 8px; align-items: center; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.online { background: var(--navy); }
.sw.market { background: var(--green); margin-left: 12px; }
.export-links { display: flex; gap: 10px; flex-wrap: wrap; }
.message.unread { border-left: 4px solid var(--orange); }
.message.read { opacity: .8; }
.message-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { width: auto; }
.narrow-form { max-width: 640px; }
ul.plain { padding-left: 18px; margin: 0; }

.flash.warn-box { background: var(--orange-soft); color: #92400e; border: 1px solid #f8d9a8; font-weight: 500; margin-top: 0; }
.cf-turnstile { min-height: 65px; }
