:root {
  --ink: #382b2d;
  --muted: #76666a;
  --berry: #8f3f55;
  --berry-dark: #6f2d42;
  --rose: #f3dce2;
  --blush: #fff6f7;
  --cream: #fbf6ed;
  --white: #ffffff;
  --line: rgba(77, 45, 52, 0.14);
  --shadow: 0 18px 60px rgba(94, 53, 66, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--blush); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #c86b85; outline-offset: 3px; }

.site-shell { min-height: 100vh; overflow: hidden; background:
  radial-gradient(circle at 6% 16%, rgba(233, 184, 198, .28), transparent 25rem),
  radial-gradient(circle at 96% 48%, rgba(244, 212, 188, .26), transparent 28rem),
  linear-gradient(180deg, #fff9fa, #fbf5ee 68%, #fff8f8); }
.site-shell::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(circle, rgba(118,78,90,.25) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 55%); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.topbar { background: var(--ink); color: #fff7f8; padding: 9px 24px; text-align: center; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.site-header { position: relative; z-index: 20; max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand span { display: grid; }
.brand strong { font-family: Georgia, serif; font-weight: 500; font-size: 25px; letter-spacing: -.03em; }
.brand small { color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .24em; margin-top: 3px; }
.main-nav { display: flex; justify-content: center; gap: 28px; font-size: 14px; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--berry); transition: right .2s; }
.main-nav a:hover::after { right: 0; }
.menu-button { display: none; }
.cart-button { border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.cart-button span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 7px; border-radius: 99px; background: var(--berry); color: white; }

.hero { max-width: 1240px; min-height: 660px; margin: 0 auto; padding: 52px 24px 90px; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 14px; color: var(--berry); font-size: 11px; line-height: 1.4; letter-spacing: .19em; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(48px, 5.4vw, 78px); line-height: .98; }
.hero-text { max-width: 590px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 22px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.primary-button { background: var(--berry); color: white; box-shadow: 0 10px 24px rgba(143,63,85,.2); }
.primary-button:hover { background: var(--berry-dark); transform: translateY(-1px); }
.secondary-button { border-color: var(--line); background: rgba(255,255,255,.62); }
.trust-row { padding: 20px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); list-style: none; }
.trust-row li { display: grid; gap: 5px; }
.trust-row strong { font-family: Georgia, serif; font-weight: 500; }
.trust-row span { color: var(--muted); font-size: 12px; }
.hero-gallery { position: relative; min-height: 560px; }
.hero-gallery::before { content: ""; position: absolute; width: 440px; height: 440px; right: 18px; top: 52px; border: 1px solid rgba(143,63,85,.18); border-radius: 50%; }
.hero-gallery img { position: absolute; border-radius: 180px 180px 28px 28px; object-fit: cover; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,.74); }
.hero-main { width: 350px; height: 500px; right: 48px; top: 20px; }
.hero-small { width: 180px; height: 235px; border-radius: 90px 90px 22px 22px !important; }
.hero-small.first { left: 0; top: 56px; }
.hero-small.second { left: 52px; bottom: 8px; }
.handmade-note { position: absolute; right: -4px; bottom: 7px; transform: rotate(-4deg); font-family: Georgia, serif; font-style: italic; color: var(--berry); font-size: 18px; }

.shop-section { position: relative; padding: 100px max(24px, calc((100vw - 1192px)/2)); background: rgba(255,255,255,.74); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading h2, .atelier-card h2 { margin: 0; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.7; }
.section-heading.compact { margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px 17px; border-radius: 999px; cursor: pointer; }
.filters button.active { background: var(--ink); color: white; border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(88,52,62,.06); transition: transform .22s, box-shadow .22s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image { position: relative; display: block; width: 100%; aspect-ratio: 4/5; padding: 0; border: 0; overflow: hidden; background: var(--cream); cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border-radius: 99px; padding: 8px 11px; color: var(--berry-dark); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-copy { padding: 22px; }
.product-copy h3 { margin-bottom: 10px; font-family: Georgia, serif; font-weight: 500; font-size: 25px; }
.product-summary { min-height: 52px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-bottom strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; white-space: nowrap; }
.text-link { border: 0; padding: 8px 0; color: var(--berry); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }

.how-section { padding: 100px max(24px, calc((100vw - 1192px)/2)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 0 0; }
.steps span { color: var(--berry); font-family: Georgia, serif; font-size: 34px; }
.steps h3 { margin: 22px 0 10px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.atelier-section { margin: 0 max(24px, calc((100vw - 1192px)/2)) 100px; display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 32px; overflow: hidden; background: var(--ink); color: white; }
.atelier-card { padding: 70px; background: linear-gradient(140deg, rgba(143,63,85,.72), rgba(56,43,45,.9)); }
.atelier-card .eyebrow { color: #f6dce3; }
.atelier-card p:not(.eyebrow) { max-width: 580px; margin: 24px 0 30px; color: #f1e6e8; line-height: 1.75; }
.atelier-card .secondary-button { color: var(--ink); background: white; }
.atelier-values { padding: 46px; display: grid; gap: 0; }
.atelier-values article { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.atelier-values article:last-child { border: 0; }
.atelier-values strong { color: #e8afbe; font-family: Georgia, serif; }
.atelier-values h3 { display: inline; margin-left: 14px; font-family: Georgia, serif; font-weight: 500; }
.atelier-values p { margin: 10px 0 0 38px; color: #cdbfc2; font-size: 14px; line-height: 1.6; }
footer { padding: 60px max(24px, calc((100vw - 1192px)/2)) 28px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; background: #2e2426; color: white; }
footer div { display: grid; align-content: start; gap: 8px; }
footer strong { font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
footer span, footer a { color: #cbbfc2; font-size: 13px; line-height: 1.6; }
footer p { grid-column: 1/-1; margin: 20px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #a99a9e; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(32,23,25,.65); backdrop-filter: blur(8px); }
.product-modal { position: relative; width: min(940px, 100%); max-height: min(760px, 92vh); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--blush); border-radius: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.modal-close { position: absolute; z-index: 2; right: 16px; top: 16px; border: 0; border-radius: 99px; background: rgba(255,255,255,.9); padding: 10px 14px; cursor: pointer; }
.modal-image { min-height: 620px; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-copy { padding: 62px 46px 40px; }
.modal-copy h2 { margin: 0 0 8px; font-size: 48px; }
.modal-price { display: block; margin-bottom: 20px; color: var(--berry); font-family: Georgia, serif; font-size: 26px; }
.modal-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.modal-copy dl { margin: 22px 0; border-block: 1px solid var(--line); }
.modal-copy dl div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.modal-copy dl div:last-child { border: 0; }
.modal-copy dt { color: var(--muted); font-size: 13px; }
.modal-copy dd { margin: 0; text-align: right; font-size: 13px; }
.modal-copy label { display: grid; gap: 7px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.modal-copy select, .modal-copy input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 0 12px; color: var(--ink); }
.primary-button.full { width: 100%; margin-top: 14px; border: 0; }
.modal-copy small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .menu-button { display: block; grid-column: 3; justify-self: end; border: 1px solid var(--line); background: white; border-radius: 99px; padding: 9px 14px; }
  .cart-button { grid-column: 2; grid-row: 1; }
  .main-nav { display: none; position: absolute; left: 24px; right: 24px; top: 96px; padding: 18px; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 20px; }
  .hero-gallery { min-height: 540px; max-width: 650px; width: 100%; margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .atelier-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { font-size: 9px; padding-inline: 12px; }
  .site-header { padding: 12px 16px; gap: 8px; grid-template-columns: 1fr auto auto; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .cart-button { grid-column: 2; padding: 7px 9px; font-size: 0; }
  .cart-button::before { content: "Sacola"; font-size: 11px; }
  .cart-button span { min-width: 20px; height: 20px; margin-left: 4px; font-size: 11px; }
  .menu-button { grid-column: 3; font-size: 11px; }
  .main-nav { left: 16px; right: 16px; top: 76px; }
  .hero { min-height: auto; padding: 38px 20px 68px; }
  h1 { font-size: 47px; }
  .hero-text { font-size: 16px; }
  .hero-actions { display: grid; }
  .trust-row { grid-template-columns: 1fr; }
  .hero-gallery { min-height: 430px; }
  .hero-main { width: 72%; height: 400px; right: 0; }
  .hero-small { width: 37%; height: 180px; }
  .hero-small.first { left: 0; top: 38px; }
  .hero-small.second { left: 8px; bottom: 0; }
  .handmade-note { display: none; }
  .section-heading { display: grid; gap: 14px; }
  .section-heading h2, .atelier-card h2 { font-size: 40px; }
  .shop-section, .how-section { padding: 70px 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-summary { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .atelier-section { margin: 0 18px 70px; }
  .atelier-card, .atelier-values { padding: 38px 26px; }
  footer { grid-template-columns: 1fr; padding: 48px 24px 24px; }
  footer p { grid-column: auto; }
  .product-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-image { min-height: 340px; max-height: 45vh; }
  .modal-copy { padding: 36px 24px; }
  .modal-copy h2 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
.flash { width: min(1160px, calc(100% - 32px)); margin: 8px auto 18px; padding: 13px 16px; border-radius: 12px; font-size: 14px; position: relative; z-index: 12; }
.flash-success { background: #edf8f1; color: #28603e; border: 1px solid #cbe7d4; }
.flash-error { background: #fff0f1; color: #8a303a; border: 1px solid #f2cdd2; }
.flash-info { background: #f4f0ff; color: #544180; border: 1px solid #ddd2f4; }
.center-action { display: flex; justify-content: center; margin-top: 38px; }
.service-strip { padding: 28px max(24px, calc((100vw - 1192px)/2)); display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; background: #fff; border-top: 1px solid var(--line); }
.service-strip div { display: grid; gap: 5px; }
.service-strip strong { font-family: Georgia,serif; font-size: 17px; font-weight: 500; }
.service-strip span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-hero { padding: 86px max(24px,calc((100vw - 1050px)/2)) 70px; text-align: center; }
.page-hero.small { padding-bottom: 46px; }
.page-hero h1 { margin: 0 auto 18px; font-size: clamp(50px,7vw,78px); }
.page-hero > p:last-child { width: min(680px,100%); margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.7; }
.catalog-shell { padding: 0 max(24px,calc((100vw - 1192px)/2)) 100px; }
.catalog-shell .filters { justify-content: center; }
.filters a { border: 1px solid var(--line); color: var(--muted); padding: 10px 17px; border-radius: 999px; }
.filters a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-count { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.catalog-shell .product-copy h2 { margin-bottom: 10px; font-family: Georgia,serif; font-weight: 500; font-size: 25px; }
.breadcrumbs { width: min(1192px,calc(100% - 48px)); margin: 24px auto 0; display: flex; gap: 8px; color: var(--muted); font-size: 12px; }
.product-page { width: min(1192px,calc(100% - 48px)); margin: 38px auto 100px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: start; }
.product-gallery { min-width: 0; }
.product-gallery-main { aspect-ratio: 4/5; overflow: hidden; border-radius: 28px; background: var(--cream); box-shadow: var(--shadow); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 12px; }
.product-thumbs button { aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 12px; border: 2px solid transparent; background: transparent; cursor: pointer; }
.product-thumbs button.active { border-color: var(--berry); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 24px; padding: 18px 0; }
.product-info h1 { margin: 0 0 10px; font-size: clamp(46px,5vw,68px); }
.product-price { display: block; margin-bottom: 24px; color: var(--berry); font: 500 30px Georgia,serif; }
.product-description { color: var(--muted); font-size: 16px; line-height: 1.7; }
.product-specs { margin: 26px 0; border-block: 1px solid var(--line); }
.product-specs div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-specs div:last-child { border: 0; }
.product-specs dt { color: var(--muted); font-size: 13px; }
.product-specs dd { margin: 0; font-size: 13px; text-align: right; }
.detail-list { margin: 0 0 24px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.add-form { display: grid; gap: 13px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.add-form label, .auth-card label, .form-grid label, .cart-controls label, .admin-product label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.add-form label span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.add-form input, .add-form select, .add-form textarea, .auth-card input, .form-grid input, .form-grid textarea, .cart-controls input, .admin-product input, .inline-form select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 12px; }
.add-form textarea, .form-grid textarea { min-height: 90px; resize: vertical; }
.add-form small, .form-grid small { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.payment-note { display: grid; gap: 5px; margin-top: 18px; padding: 16px; border-radius: 14px; background: #f1f7f3; }
.payment-note strong { font-size: 13px; color: #2d5e41; }
.payment-note span { color: #597064; font-size: 12px; line-height: 1.5; }
.product-care { width: min(1192px,calc(100% - 48px)); margin: 0 auto 100px; padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-radius: 28px; background: var(--rose); }
.product-care h2 { margin: 0; font-size: 40px; }
.product-care > p { align-self: end; color: var(--muted); line-height: 1.8; }
.cart-layout, .checkout-layout, .order-page { width: min(1120px,calc(100% - 48px)); margin: 0 auto 100px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.cart-item > img { width: 150px; height: 188px; object-fit: cover; border-radius: 14px; }
.cart-item-copy h2 { margin: 0 0 12px; font-size: 27px; }
.cart-item-copy p { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.line-price { display: block; margin-top: 12px; color: var(--berry); }
.cart-controls { display: grid; align-content: space-between; gap: 16px; }
.cart-controls form { display: grid; gap: 8px; }
.cart-controls input { max-width: 90px; }
.cart-controls button, .inline-form button, .admin-product button { border: 1px solid var(--line); border-radius: 9px; background: white; padding: 9px 12px; cursor: pointer; }
.cart-controls .remove-link { color: #982f3c; border-color: #efcdd1; }
.order-summary { position: sticky; top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(88,52,62,.07); }
.order-summary h2 { font-size: 30px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-summary > p { margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.back-link { display: block; margin-top: 16px; text-align: center; color: var(--berry); font-size: 13px; font-weight: 700; }
.empty-state { padding: 70px 28px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; background: rgba(255,255,255,.55); }
.empty-state h1, .empty-state h2 { font-size: 38px; }
.empty-state p { color: var(--muted); }
.checkout-fields { display: grid; gap: 20px; }
.checkout-fields fieldset { padding: 25px; margin: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.checkout-fields legend { padding: 0 8px; font: 500 24px Georgia,serif; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1/-1; }
.delivery-options { display: grid; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio-card span { display: grid; gap: 3px; }
.radio-card small { color: var(--muted); }
.create-account, .terms-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hidden { display: none !important; }
.checkout-line { display: grid !important; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px !important; }
.checkout-line img { width: 52px; height: 66px; object-fit: cover; border-radius: 8px; }
.checkout-line span { display: grid; font-size: 12px; }
.checkout-line small { color: var(--muted); }
.auth-shell { width: min(1020px,calc(100% - 40px)); margin: 60px auto 100px; display: grid; grid-template-columns: 1fr .8fr; min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-card { padding: clamp(32px,6vw,70px); }
.auth-card h1 { font-size: clamp(44px,5vw,62px); }
.auth-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.auth-card form { display: grid; gap: 15px; margin-top: 26px; }
.auth-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; color: var(--berry); font-size: 13px; font-weight: 700; }
.auth-aside { position: relative; min-height: 100%; background: var(--rose); }
.auth-aside img { width: 100%; height: 100%; object-fit: cover; }
.auth-aside div { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 4px; padding: 18px; border-radius: 15px; background: rgba(255,255,255,.9); }
.auth-aside strong { font-family: Georgia,serif; font-size: 21px; }
.auth-aside span { color: var(--muted); font-size: 12px; }
.account-hero, .admin-hero { width: min(1120px,calc(100% - 48px)); margin: 60px auto 40px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.account-hero h1, .admin-hero h1 { margin-bottom: 12px; font-size: clamp(48px,6vw,72px); }
.account-hero p:last-child, .admin-hero p:last-child { color: var(--muted); }
.admin-callout { width: min(1120px,calc(100% - 48px)); margin: 0 auto 30px; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 15px; background: var(--rose); }
.admin-callout span { flex: 1; color: var(--muted); font-size: 13px; }
.orders-section, .admin-section { width: min(1120px,calc(100% - 48px)); margin: 0 auto 90px; }
.orders-list { display: grid; gap: 10px; }
.order-card { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.order-card div { display: grid; gap: 5px; }
.order-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.status-pill { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 99px; background: #f0ecec; color: var(--ink); font-size: 11px; }
.status-paid { background: #e7f6ec; color: #28603e; }.status-pending{background:#fff5dc;color:#7e5b16}.status-rejected,.status-cancelled{background:#fff0f1;color:#8a303a}.status-refunded{background:#eef1f6;color:#526177}
.order-main { display: grid; gap: 16px; }
.order-status-block { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.order-status-block > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.order-status-block p { margin: 14px 0 0; color: var(--muted); }
.order-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-item img { width: 92px; height: 115px; object-fit: cover; border-radius: 10px; }
.order-item h3 { margin: 0 0 8px; font: 500 22px Georgia,serif; }
.order-item p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.order-summary .total { padding-top: 18px; font-size: 18px; }
.prose-page { width: min(840px,calc(100% - 48px)); margin: 0 auto 100px; padding: 46px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.prose-page section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose-page h2 { font-size: 34px; }
.prose-page p, .prose-page li { color: var(--muted); line-height: 1.8; }
.not-found { width: min(760px,calc(100% - 48px)); margin: 100px auto; }
.admin-stats { width: min(1120px,calc(100% - 48px)); margin: 0 auto 50px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.admin-stats article { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-stats span { color: var(--muted); font-size: 12px; }
.admin-stats strong { font: 500 28px Georgia,serif; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th,td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.inline-form { display: flex; gap: 7px; }
.inline-form select { min-width: 160px; }
.admin-products { display: grid; gap: 10px; }
.admin-product { display: grid; grid-template-columns: 76px 1.1fr .7fr 1.2fr auto auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-product > img { width: 76px; height: 90px; object-fit: cover; border-radius: 9px; }
.admin-product > div { display: grid; gap: 4px; }.admin-product > div span{color:var(--muted);font-size:12px}.admin-product .check-row{display:flex;align-items:center;white-space:nowrap}.admin-product .check-row input{width:auto;min-height:auto}

@media(max-width:980px){
  .header-actions{grid-column:2;grid-row:1}.cart-layout,.checkout-layout,.order-page{grid-template-columns:1fr}.order-summary{position:static}.product-page{grid-template-columns:1fr;gap:36px}.product-info{position:static}.auth-shell{grid-template-columns:1fr}.auth-aside{display:none}.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-product{grid-template-columns:70px 1fr 1fr}.admin-product label,.admin-product button{grid-column:auto}.order-card{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .header-actions{gap:4px}.account-link{display:none}.service-strip{grid-template-columns:1fr}.page-hero{padding:60px 20px 42px}.catalog-shell{padding:0 18px 70px}.product-page,.breadcrumbs,.product-care,.cart-layout,.checkout-layout,.order-page,.account-hero,.admin-hero,.orders-section,.admin-section,.admin-stats{width:calc(100% - 32px)}.product-page{margin-top:24px}.product-gallery-main{border-radius:18px}.product-care{grid-template-columns:1fr;padding:28px;gap:20px}.cart-item{grid-template-columns:90px 1fr}.cart-item>img{width:90px;height:113px}.cart-controls{grid-column:1/-1;display:flex;justify-content:space-between}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.checkout-fields fieldset{padding:18px}.auth-shell{margin-top:30px}.account-hero,.admin-hero{align-items:flex-start;flex-direction:column}.admin-callout{width:calc(100% - 32px);align-items:flex-start;flex-direction:column}.order-card{grid-template-columns:1fr}.order-item{grid-template-columns:75px 1fr}.order-item img{width:75px;height:94px}.order-item>strong{grid-column:2}.prose-page{width:calc(100% - 32px);padding:26px}.admin-stats{grid-template-columns:1fr 1fr}.admin-product{grid-template-columns:64px 1fr}.admin-product>img{width:64px;height:76px}.admin-product label,.admin-product button{grid-column:1/-1}.inline-form{display:grid}.service-strip+footer{grid-template-columns:1fr}
}
