:root {
    --cream: #faf4ee;
    --cream-deep: #f5ede6;
    --paper: #fffdfb;
    --rose: #c26476;
    --rose-dark: #944054;
    --rose-soft: #f3e1e0;
    --sage: #788a69;
    --sage-soft: #e6ecdf;
    --ink: #3b3735;
    --muted: #817771;
    --border: #e8ddd4;
    --shadow: 0 18px 50px rgba(83, 59, 52, .08);
    --radius: 20px;
    --shell: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: radial-gradient(rgba(112, 84, 73, .16) .6px, transparent .6px);
    background-size: 12px 12px;
    z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: white; z-index: 100; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 244, 238, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232, 221, 212, .85);
}
.header-row { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 850; letter-spacing: -.8px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px 12px 12px 4px;
    color: white;
    background: var(--rose-dark);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 24px;
}
.main-nav { display: flex; gap: 24px; margin-left: 12px; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 650; padding-block: 26px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); border-color: var(--rose); }
.header-search { margin-left: auto; width: min(320px, 28vw); position: relative; }
.header-search input, .hero-search input, .mobile-menu input, .filters input, .filters select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--ink);
    border-radius: 13px;
    outline: none;
}
.header-search input { height: 44px; padding: 0 44px 0 15px; }
.header-search input:focus, .hero-search input:focus, .filters input:focus, .filters select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(194, 100, 118, .12); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--rose-dark); font-size: 24px; cursor: pointer; }
.menu-button, .mobile-menu { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 20px; border-radius: 13px; border: 1px solid transparent; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--rose-dark); box-shadow: 0 9px 24px rgba(148, 64, 84, .2); }
.button-primary:hover { background: #813649; }
.button-secondary { color: var(--rose-dark); background: var(--paper); border-color: var(--border); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--border); }
.button-large { min-height: 54px; font-size: 17px; }
.button-wide { width: 100%; }

.hero { overflow: hidden; padding: 82px 0 90px; background: linear-gradient(135deg, #fffaf6 0%, var(--cream) 52%, #f0e5df 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: 80px; align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { display: block; color: var(--rose-dark); text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; font-weight: 850; margin-bottom: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -1.5px; line-height: 1.08; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(46px, 6vw, 78px); margin-bottom: 24px; }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-search { margin-top: 34px; display: flex; gap: 10px; padding: 7px; max-width: 650px; border: 1px solid var(--border); background: rgba(255, 255, 255, .78); box-shadow: var(--shadow); border-radius: 18px; }
.hero-search input { border: 0; background: transparent; min-width: 0; padding: 0 14px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; color: var(--rose-dark); font-size: 14px; font-weight: 750; }
.hero-art { position: relative; min-height: 410px; }
.hero-art::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: var(--sage-soft); left: 55px; top: 22px; }
.art-card { position: absolute; display: flex; align-items: end; padding: 20px; border: 8px solid var(--paper); border-radius: 26px; box-shadow: var(--shadow); color: white; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.art-card-one { width: 235px; height: 300px; left: 0; top: 0; transform: rotate(-7deg); background: linear-gradient(145deg, #aebaa1, #657a5e); }
.art-card-two { width: 230px; height: 280px; right: 5px; bottom: 0; transform: rotate(8deg); background: linear-gradient(145deg, #d995a3, #9f4357); }
.art-card::before { content: "✦"; position: absolute; font-family: Georgia, serif; font-size: 100px; font-weight: 400; color: rgba(255,255,255,.74); top: 50%; left: 50%; transform: translate(-50%,-56%); }
.art-flower { position: absolute; z-index: 2; left: 52%; top: 42%; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #f1c96b; color: var(--ink); font-size: 35px; box-shadow: 0 12px 30px rgba(87,62,43,.17); }

.section { padding-block: 76px; }
.section-tinted { background: var(--cream-deep); border-block: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2, .catalog-heading h1, .product-description h2, .master-contact-card h2 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(32px, 4vw, 48px); margin-bottom: 0; }
.quiet-link { color: var(--rose-dark); font-weight: 750; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.product-card { min-width: 0; }
.product-card-image { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--rose-soft); border: 1px solid var(--border); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-image img { transform: scale(1.025); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(148,64,84,.28); font: italic 92px Georgia, serif; background: linear-gradient(145deg, var(--rose-soft), var(--sage-soft)); }
.badge-row { position: absolute; inset: 12px 12px auto 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-badge { padding: 5px 9px; border-radius: 999px; background: var(--badge-bg, var(--ink)); color: var(--badge-color, white); font-size: 11px; font-weight: 850; box-shadow: 0 3px 10px rgba(45,31,28,.12); }
.discount-badge { background: var(--rose-dark); color: white; }
.product-card-body { padding: 13px 3px 0; }
.product-card-title { display: block; font-size: 16px; line-height: 1.35; font-weight: 750; min-height: 43px; }
.product-card-title:hover { color: var(--rose-dark); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.price-line strong { font-size: 17px; }
.price-line del { color: var(--muted); font-size: 13px; }
.product-meta { display: grid; gap: 3px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.product-meta span:first-child { color: var(--sage); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; align-items: center; padding: 21px; border: 1px solid var(--border); border-radius: 17px; background: var(--paper); }
.category-card:hover { border-color: var(--rose); box-shadow: 0 10px 30px rgba(83,59,52,.07); }
.category-icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--rose-soft); color: var(--rose-dark); font-size: 22px; }
.category-card strong { font-size: 16px; }
.category-card > span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { position: relative; padding: 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--border); }
.steps article > span { display: block; color: var(--rose); font: italic 30px Georgia, serif; margin-bottom: 36px; }
.steps h3 { margin-bottom: 8px; font-size: 20px; }
.steps p, .empty-welcome p { color: var(--muted); margin-bottom: 0; }
.empty-welcome { max-width: 800px; text-align: center; }
.empty-welcome h2 { font-family: Georgia, serif; font-weight: 500; font-size: 44px; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--rose-dark); }
.catalog-page { padding-bottom: 80px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 48px 0 24px; }
.catalog-heading h1 { margin: 0; }
.catalog-heading > p { color: var(--muted); }
.catalog-tabs { display: flex; gap: 8px; padding-bottom: 25px; overflow-x: auto; }
.catalog-tabs a { white-space: nowrap; padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.catalog-tabs a.is-active { background: var(--ink); color: white; border-color: var(--ink); }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 32px; }
.filters { position: sticky; top: 98px; padding: 22px; background: rgba(255,253,251,.88); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-group { border: 0; padding: 0; margin: 0 0 18px; }
.filter-group label, .filter-group legend { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; color: var(--muted); }
.filters input, .filters select { min-height: 44px; padding: 9px 11px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reset-link { display: block; margin-top: 12px; color: var(--muted); text-align: center; font-size: 12px; }
.filter-toggle { display: none; margin-bottom: 14px; }
.catalog-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed #d7c9be; border-radius: var(--radius); background: rgba(255,255,255,.45); }
.empty-state > span { display: block; color: var(--rose); font-size: 40px; }
.empty-state h2 { margin: 8px 0; }
.empty-state p { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }
.pagination a, .pagination > span:first-child, .pagination > span:last-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px solid var(--border); }
.pagination [aria-disabled] { opacity: .4; }
.pagination > span { font-size: 13px; color: var(--muted); }

.product-page { padding-bottom: 80px; }
.product-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: clamp(40px, 6vw, 84px); padding-top: 30px; align-items: start; }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 26px; border: 1px solid var(--border); background: var(--rose-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.detail-badges { inset: 18px 18px auto; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-top: 12px; }
.gallery-thumb { flex: 0 0 76px; padding: 0; overflow: hidden; aspect-ratio: 4/5; border-radius: 12px; border: 2px solid transparent; background: var(--paper); cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--rose-dark); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { position: sticky; top: 110px; padding-top: 15px; }
.product-summary h1 { font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; margin-bottom: 24px; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.detail-price strong { font-size: 27px; }
.detail-price del { color: var(--muted); font-size: 16px; }
.detail-price small { flex-basis: 100%; color: var(--muted); }
.availability-box { display: flex; align-items: center; gap: 12px; padding: 15px; background: var(--sage-soft); border-radius: 14px; }
.availability-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(120,138,105,.13); }
.availability-box div { display: grid; }
.availability-box span { color: #5f7052; font-size: 13px; }
.summary-description { margin: 22px 0; color: var(--muted); }
.product-summary > .button { width: 100%; margin-bottom: 9px; }
.master-mini { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 13px; margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 17px; background: var(--paper); }
.master-mini img, .avatar-placeholder { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.avatar-placeholder { display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-dark); font: 30px Georgia, serif; }
.master-mini > span { display: grid; min-width: 0; }
.master-mini small, .master-mini em { color: var(--muted); font-style: normal; font-size: 12px; }
.master-mini strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.master-mini b { color: var(--rose-dark); }
.product-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 70px; padding-top: 80px; align-items: start; }
.prose { color: #514b47; font-size: 17px; line-height: 1.75; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.details-grid > div { padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--paper); }
.details-grid h3 { margin-bottom: 8px; font-size: 14px; }
.details-grid p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.master-contact-card { scroll-margin-top: 100px; padding: 25px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.master-contact-card h2 { font-size: 30px; }
.master-contact-card > p { color: var(--muted); }
.contact-list { display: grid; margin-top: 20px; }
.contact-list a, .contact-list > div { display: grid; padding: 11px 0; border-top: 1px solid var(--border); }
.contact-list span { color: var(--muted); font-size: 11px; }
.contact-list strong { font-size: 14px; overflow-wrap: anywhere; }
.contact-list a:hover strong { color: var(--rose-dark); }
.safety-note { margin: 20px 0 0; padding: 14px; background: var(--cream); border-radius: 12px; font-size: 11px; }

.master-page { padding-bottom: 60px; }
.master-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; align-items: center; gap: 42px; padding: 48px; margin-top: 28px; border: 1px solid var(--border); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.master-hero > img, .master-avatar-large { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 8px solid var(--cream); }
.master-avatar-large { display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-dark); font: 80px Georgia, serif; }
.master-intro h1 { font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; margin-bottom: 8px; }
.master-city { color: var(--sage); font-weight: 750; }
.master-contacts { display: grid; align-self: stretch; align-content: center; gap: 8px; padding-left: 28px; border-left: 1px solid var(--border); }
.master-contacts > strong { margin-bottom: 8px; }
.master-contacts a { display: flex; justify-content: space-between; color: var(--rose-dark); font-size: 14px; font-weight: 700; }
.master-contacts > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.master-options { display: grid; grid-template-columns: 240px 1fr; gap: 30px; margin-top: 28px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.55); }
.master-options h2 { margin: 0; font: 500 28px Georgia, serif; }
.option-chips { display: flex; flex-wrap: wrap; gap: 7px; align-content: start; }
.option-chips span { padding: 7px 11px; border-radius: 999px; background: var(--sage-soft); color: #526246; font-size: 12px; font-weight: 700; }
.master-options > p { grid-column: 2; color: var(--muted); margin: -12px 0 0; font-size: 13px; }
.master-works { padding-bottom: 20px; }

.withdrawn { min-height: 66vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 700px; padding-block: 80px; }
.withdrawn-symbol { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 25px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark); font-size: 37px; }
.withdrawn h1 { font: 500 clamp(40px, 6vw, 62px) Georgia, serif; margin-bottom: 18px; }
.withdrawn > p { color: var(--muted); max-width: 580px; }
.withdrawn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.site-footer { border-top: 1px solid var(--border); background: #eee4dc; padding: 52px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 180px 1.2fr; gap: 55px; }
.brand-footer { margin-bottom: 14px; }
.footer-grid p { color: var(--muted); font-size: 13px; max-width: 420px; }
.footer-grid > div:nth-child(2) { display: grid; align-content: start; gap: 8px; font-size: 13px; }
.footer-grid strong { font-size: 13px; }
.footer-note { padding: 18px; background: rgba(255,255,255,.5); border-radius: 15px; }
.footer-note p { margin: 6px 0 0; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid #ddcfc4; color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
    .main-nav { display: none; }
    .header-search { width: 360px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { gap: 30px; }
    .catalog-products { grid-template-columns: repeat(2, 1fr); }
    .master-hero { grid-template-columns: 170px 1fr; }
    .master-hero > img, .master-avatar-large { width: 170px; height: 170px; }
    .master-contacts { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
    :root { --shell: min(100% - 28px, 680px); --radius: 17px; }
    .header-row { min-height: 66px; gap: 14px; }
    .header-search { display: none; }
    .menu-button { display: block; margin-left: auto; border: 0; background: var(--paper); border-radius: 10px; padding: 8px 12px; color: var(--ink); }
    .mobile-menu { padding: 12px 14px 18px; border-top: 1px solid var(--border); background: var(--cream); }
    .mobile-menu.is-open { display: grid; gap: 10px; }
    .mobile-menu form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
    .mobile-menu input { padding: 9px 12px; min-width: 0; }
    .hero { padding: 58px 0 62px; }
    .hero-grid { display: block; }
    .hero-art { display: none; }
    .hero h1 { font-size: clamp(43px, 13vw, 62px); }
    .hero-search { display: grid; }
    .hero-search input { min-height: 45px; }
    .section { padding-block: 56px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .category-grid, .steps { grid-template-columns: 1fr; }
    .catalog-heading { padding-top: 32px; }
    .catalog-heading > p { display: none; }
    .catalog-layout { display: block; }
    .filter-toggle { display: inline-flex; }
    .filters { display: none; position: static; margin-bottom: 18px; }
    .filters.is-open { display: block; }
    .catalog-products { grid-template-columns: repeat(2, 1fr); }
    .product-main, .product-content { display: block; }
    .product-summary { position: static; padding-top: 30px; }
    .product-content { padding-top: 55px; }
    .master-contact-card { margin-top: 35px; }
    .master-hero { display: block; padding: 28px; text-align: center; }
    .master-hero > img, .master-avatar-large { width: 150px; height: 150px; margin: 0 auto 24px; }
    .master-contacts { display: grid; grid-template-columns: 1fr 1fr; text-align: left; margin-top: 25px; }
    .master-options { display: block; }
    .option-chips { margin-top: 20px; }
    .master-options > p { margin-top: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .brand { font-size: 21px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero-search { padding: 6px; }
    .hero-links { display: grid; gap: 10px; }
    .section-heading { align-items: start; }
    .section-heading .quiet-link { display: none; }
    .product-card-title { min-height: 40px; font-size: 14px; }
    .product-meta { font-size: 11px; }
    .catalog-products { gap-inline: 10px; }
    .details-grid { grid-template-columns: 1fr; }
    .gallery-main { border-radius: 20px; }
    .product-summary h1 { font-size: 39px; }
    .master-contacts { grid-template-columns: 1fr; }
    .withdrawn-actions { display: grid; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
