:root {
  --bg: #fff8f3; --card: #ffffff; --ink: #211918; --muted: #746765; --accent: #ff4f7b; --line: #f0ded6; --shadow: 0 24px 70px rgba(93,42,34,.16); --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; } html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at top left, rgba(255,79,123,.18), transparent 30rem), radial-gradient(circle at top right, rgba(255,177,79,.2), transparent 26rem), var(--bg); }
a { color: inherit; text-decoration: none; } button, input, textarea, select { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(18px, 4vw, 44px); background: rgba(255,248,243,.82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.7); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 900; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 28px rgba(255,79,123,.24); }
.brand-mark { display: none; }
.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 800; } .nav-links a:hover { color: var(--accent); }
.link-btn { border: 0; background: transparent; color: var(--accent); font-weight: 900; cursor: pointer; }

.customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; width: min(1440px, 100%); margin: 0 auto; padding: 28px clamp(18px, 3vw, 36px); align-items: start; }
.customer-main { min-width: 0; display: grid; gap: 28px; }
.page-wrap { width: min(1180px, 100%); margin: 0 auto; padding: 42px clamp(18px, 4vw, 36px); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 26px; align-items: start; }
.compact-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; padding: 26px 0; }
.eyebrow, .section-kicker { display: block; color: var(--accent); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, .page-title { margin: 0; line-height: .98; letter-spacing: -.05em; } h1, .page-title { font-size: clamp(3rem, 7vw, 5.8rem); } h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); }
.hero-text, .muted, .hint { color: var(--muted); line-height: 1.65; } .hero-text { max-width: 700px; font-size: 1.15rem; } .hint { margin: 10px 0 0; font-size: .94rem; }
.panel, .basket-sidebar { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.basket-sidebar { position: sticky; top: 94px; height: calc(100vh - 116px); display: flex; flex-direction: column; overflow: hidden; }
.basket-scroll-area { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.basket-sidebar .basket-grid { min-height: 0; overflow-y: auto; padding-right: 4px; }
.basket-footer { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.primary-btn, .secondary-btn, .tab { border: 0; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 900; cursor: pointer; }
.primary-btn { background: linear-gradient(135deg, var(--accent), #ff7c4f); color: white; box-shadow: 0 16px 34px rgba(255,79,123,.28); } .secondary-btn, .tab { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.primary-btn:hover, .secondary-btn:hover, .tab:hover { transform: translateY(-1px); } .disabled { opacity: .45; pointer-events: none; } .checkout-btn { width: 100%; }

.pin-face, .pin-preview, .mini-preview { border-radius: 50%; overflow: hidden; position: relative; background: #eee; box-shadow: inset 0 0 0 8px rgba(255,255,255,.38), var(--shadow); }
.hero-logo { width: 230px; height: 230px; border-radius: 34px; object-fit: cover; box-shadow: var(--shadow); }
.builder-grid-inner { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 24px; }
.preview-stage { display: grid; place-items: center; gap: 14px; } .size-ruler { color: var(--muted); font-weight: 900; }
.pin-preview { width: min(72vw, 330px); height: min(72vw, 330px); border: 10px solid white; }
.preview-art, .preview-art-copy { position: absolute; inset: 0; background-size: cover; background-position: center; transform-origin: center; }
.placeholder-art { background: linear-gradient(135deg, #fff, #ffe8ef); } .placeholder-art::after { content: 'Click to upload'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 900; }
.shine { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.5), transparent 42%); pointer-events: none; }
.controls-stack { display: grid; gap: 18px; } .range-row { display: grid; gap: 10px; color: var(--muted); font-weight: 800; } .range-row label { display: flex; justify-content: space-between; gap: 16px; } .range-row strong { color: var(--ink); } .range-row input { accent-color: var(--accent); width: 100%; }
.two-buttons, .admin-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.size-options { display: grid; gap: 10px; } .size-options label { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: white; font-weight: 900; color: var(--muted); } .size-options input { accent-color: var(--accent); }
.upload-circle { border: 10px solid white; cursor: pointer; padding: 0; } .upload-circle.has-image { cursor: default; } .remove-image-btn { position: absolute; inset: auto 40px 28px; z-index: 4; display: none; justify-content: center; padding: 10px 12px; border-radius: 999px; background: rgba(33,25,24,.82); color: white; font-weight: 900; pointer-events: auto; } .upload-circle.has-image:hover .remove-image-btn { display: flex; } .visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.field { display: grid; gap: 9px; margin-top: 20px; color: var(--muted); font-weight: 800; } .field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; background: white; color: var(--ink); outline: none; } .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,79,123,.12); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; } .admin-grid { grid-template-columns: repeat(5, 1fr); }
.image-card { border: 1px solid var(--line); background: white; border-radius: 22px; cursor: pointer; transition: .18s ease; padding: 12px; text-align: left; } .image-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(93,42,34,.12); } .image-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; background: #eee; } .image-card strong { display: block; margin-top: 10px; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .admin-card { cursor: default; } .admin-card:hover { transform: none; } .card-size-select { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); font-weight: 900; font-size: .84rem; } .card-size-select select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: white; } .add-hint { display: block; color: var(--accent); font-weight: 900; margin-top: 8px; font-size: .88rem; }
.text-btn { border: 0; background: transparent; color: var(--accent); font-weight: 900; padding: 8px 0 0; cursor: pointer; }
.basket-grid { display: grid; gap: 14px; margin: 18px 0; } .empty-basket { padding: 24px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }
.basket-card { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 22px; } .basket-card .mini-preview { width: 86px; height: 86px; border: 4px solid white; box-shadow: inset 0 0 0 4px rgba(255,255,255,.3), 0 8px 20px rgba(93,42,34,.12); }
.basket-info { min-width: 0; display: grid; gap: 6px; } .basket-info strong, .basket-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .basket-info span { color: var(--muted); font-size: .9rem; } .basket-info label { color: var(--muted); font-weight: 800; } .basket-info input { width: 74px; margin-left: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 7px; }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); } .order-output { margin-top: 22px; padding: 16px; border-radius: 18px; background: #fff3f6; color: var(--ink); white-space: pre-wrap; line-height: 1.5; }
.login-panel { max-width: 620px; margin: 0 auto; } .error-text { margin-top: 16px; color: #b42318; font-weight: 900; } .admin-tab-panel { display: none; margin-top: 18px; } .admin-tab-panel.active { display: block; } .tab.active { color: white; border-color: transparent; background: var(--ink); }
.orders-grid { display: grid; gap: 18px; margin-top: 20px; } .order-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px; } .order-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; } .order-head span { display: block; color: var(--muted); margin-top: 4px; } .order-head select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: white; } .order-items { display: grid; gap: 10px; margin-top: 14px; }
@media (max-width: 1050px) { .customer-layout, .checkout-layout, .compact-hero, .builder-grid-inner { grid-template-columns: 1fr; } .basket-sidebar { position: static; height: auto; } .basket-sidebar .basket-grid { max-height: none; } .hero-logo { display: none; } .image-grid, .admin-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .topbar { align-items: flex-start; flex-direction: column; } .nav-links { flex-wrap: wrap; gap: 12px; } .two-columns { grid-template-columns: 1fr; } .image-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); } .basket-card { grid-template-columns: 72px 1fr; } .basket-card .mini-preview { width: 72px; height: 72px; } }
