/* Shared foundations. Seasonal decoration lives only in themes.css. */
* { box-sizing: border-box; }
:root { --accent:#641b22; --paper:#f1ddbb; --wood:#392417; }
body { margin:0; color:#391b14; background:linear-gradient(90deg,#d4b28a,#f0ddc0 12%,#f0ddc0 88%,#d4b28a); font:17px/1.55 Georgia,serif; }
a { color:var(--accent); text-underline-offset:3px; }
button,input,textarea,select { font:inherit; }
button,.button { display:inline-block; background:var(--accent); color:#fff; border:3px double #efcba1; border-radius:7px; padding:10px 18px; min-height:44px; text-decoration:none; cursor:pointer; box-shadow:0 2px 3px #3c1e1540; }
button:hover,.button:hover { filter:brightness(1.12); }
button:disabled { opacity:.5; cursor:default; }
:focus-visible { outline:3px solid #a45e30; outline-offset:4px; }
input,textarea,select { max-width:100%; padding:10px; border:1px solid #967650; border-radius:4px; background:#fffaf0; color:#351c17; }
input[type=checkbox],input[type=radio] { width:auto; }
textarea { width:100%; min-height:120px; }
label { display:block; margin:12px 0; }
h2,h3 { line-height:1.2; overflow-wrap:anywhere; }
h2 { text-align:center; font-size:clamp(27px,4vw,34px); color:var(--accent); }
img { max-width:100%; }
.skip-link { position:absolute; left:12px; top:-100px; z-index:20; background:#fff; padding:12px; }
.skip-link:focus { top:12px; }
.site-header { position:relative; display:flex; align-items:center; justify-content:space-between; gap:34px; min-height:245px; padding:18px max(22px,calc((100vw - 1150px)/2)); background:url('../img/header-wood.jpg') center/cover; }
.brand { flex:0 1 590px; max-width:100%; padding:24px 32px 19px; text-align:center; border:12px solid #e9d7b6; outline:3px dotted #9b7452; outline-offset:-17px; border-radius:30px; background:radial-gradient(#fff0d3,#dfb98b); box-shadow:0 0 0 3px #a27c59,0 0 0 8px #e8d6b8,0 12px 20px #1b0b08aa; }
.brand h1 { font-size:clamp(39px,4.5vw,66px); line-height:1.04; margin:8px 0 4px; color:#60262c; overflow-wrap:anywhere; }
.brand p { font-size:clamp(16px,1.7vw,22px); margin:8px 0 0; font-style:italic; }
.ornament { font-size:14px; letter-spacing:2px; }
.header-note { flex:0 0 185px; padding:16px 12px; margin:0; background:#ebd5aeed; border:7px double #8c6242; border-radius:8px; text-align:center; line-height:1.25; font-size:20px; }
.nav { display:flex; flex-wrap:wrap; justify-content:center; background:var(--accent); border-block:3px dashed #d7b68c; }
.nav a { color:#fff4e6; text-decoration:none; padding:10px 16px; min-height:44px; }
.nav a:hover,.nav a:focus-visible { background:#ffffff25; text-decoration:underline; }
.nav a:not(:last-child)::after { content:'♥'; margin-left:23px; color:#e9c69b; }
.container { width:min(1160px,100%); min-height:65vh; margin:auto; padding:20px 20px 40px; background:linear-gradient(#f6e5ca,#e9caa0); border-inline:12px dotted #f6e4c5; }
.hero { display:grid; grid-template-columns:1fr 1.07fr; gap:12px; align-items:center; padding:12px; margin:0 0 13px; border:7px double #a87851; border-radius:20px; background:#f2d6ae; }
.hero-copy { text-align:center; padding:10px 16px; }
.hero-copy h2 { font-size:clamp(31px,3.6vw,48px); line-height:1.05; margin:0 0 12px; }
.hero-copy p { font-size:18px; line-height:1.42; }
.hero-photo { height:280px; background:url('../img/hero-dolls.jpg') center/cover; border:4px solid #d4ac7e; border-radius:8px; }
.features,.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.features { margin:12px 0 24px; border:6px double #a77c50; border-radius:14px; background:#f3d8b2; overflow:hidden; }
.feature { border-right:1px dashed #9c6b47; min-height:170px; padding:14px 12px; text-align:center; }
.feature:last-child { border-right:0; }
.feature::before { content:'♥'; font-size:21px; color:var(--accent); }
.feature h3 { font-size:16px; margin:5px 0; }
.feature p { font-size:15px; line-height:1.3; margin:8px 0; }
.feature a { font-size:14px; }
.products { gap:18px; margin:16px 15px; }
.product { min-width:0; padding:9px; border:4px double #b58b61; border-radius:5px; background:#f7dfbb; text-align:center; }
.product img { display:block; width:100%; height:200px; object-fit:cover; border:4px solid #fff9ed; }
.product h3 { font-size:19px; margin:8px 0; }
.product .button { margin:5px 0; }
.price { font-size:20px; margin:5px 0; }
.old { text-decoration:line-through; color:#776d63; }
.sale,.sold-out { color:#912426; }
.about,.newsletter { margin-top:28px; padding:25px; border:7px double #bb9368; border-radius:16px; background:#f9e9d1; text-align:center; }
.newsletter { border-style:dashed; }
footer { margin:auto; background:var(--wood); color:#f6dfbd; padding:18px 24px 26px; text-align:center; }
footer p { background:var(--accent); padding:10px; border-block:3px double #c8a47e; }
.grid-two { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.paper-panel { background:#fff7e5dc; border:2px solid #b98e68; padding:clamp(1rem,3vw,2rem); margin:1.5rem auto; max-width:900px; }
.basket-line { display:flex; align-items:center; gap:1.5rem; border-bottom:1px dashed #aa866b; padding:1rem 0; }
.basket-line img { width:110px; height:120px; object-fit:cover; }
.checkout-form,.order-admin form { display:grid; gap:1rem; max-width:650px; }
.checkout-form label,.order-admin label { display:grid; gap:.4rem; }
.checkout-form input,.checkout-form textarea,.order-admin textarea,.order-admin select { width:100%; }
.form-error { color:#8a1515; font-weight:bold; }
.order-admin { max-width:100%; overflow-wrap:anywhere; }
.admin-shell { max-width:1180px; margin:25px auto; padding:25px; background:var(--paper); }
.admin-menu { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:25px; }
table { width:100%; border-collapse:collapse; }
td,th { padding:9px; border-bottom:1px solid #bd9b70; text-align:left; }
.message { padding:10px; background:#f4dfae; }
@media(max-width:900px) {
 .site-header { padding:20px; }
 .header-note { flex-basis:155px; }
 .nav a:not(:last-child)::after { margin-left:12px; }
 .features,.products { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .feature:nth-child(2) { border-right:0; }
 .feature:nth-child(-n+2) { border-bottom:1px dashed #9c6b47; }
}
@media(max-width:700px) {
 .site-header { justify-content:center; min-height:190px; }
 .header-note { display:none; }
 .brand { padding:24px 12px; }
 .brand h1 { font-size:clamp(30px,8vw,48px); }
 .container { padding:15px 12px; border-width:6px; }
 .hero,.grid-two { grid-template-columns:1fr; }
 .hero-photo { height:250px; }
 .nav a:not(:last-child)::after { display:none; }
 .feature { min-height:0; }
 .products { margin-inline:0; }
}
@media(max-width:420px) {
 .features,.products { grid-template-columns:1fr; }
 .feature { border-right:0; border-bottom:1px dashed #9c6b47; }
 .feature:last-child { border-bottom:0; }
 .basket-line { align-items:flex-start; gap:12px; }
 .basket-line img { width:75px; height:90px; }
 .about,.newsletter { padding:16px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto; } }
