:root {
  color-scheme: light;
  --page: #fffafc;
  --ink: #392139;
  --body: #624962;
  --muted: #765d74;
  --pink: #a82764;
  --deep-pink: #8a1e51;
  --rose: #f8d5e5;
  --line: #ecdbe6;
  --gold: #c78a24;
  --white: #fff;
  --title: "Fraunces", Georgia, serif;
  --body-font: "DM Sans", system-ui, sans-serif;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
.shop-page {
  background:
    radial-gradient(ellipse at 97% 5%, #efe5f7 0, transparent 32rem),
    radial-gradient(ellipse at 0% 22%, #fce8f1 0, transparent 34rem),
    var(--page);
}
input, button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .66; cursor: wait; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 650; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); letter-spacing: -.045em; }
em { color: var(--pink); font-weight: 600; }
:focus-visible { outline: 3px solid #8860ab; outline-offset: 4px; }
::selection { background: #ffd6e8; color: var(--ink); }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.icon { display: inline-block; flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid #f2e5ed; background: #fffdfebd; }
.shop-page .header { position: sticky; top: 0; z-index: 4; background: #fffafdf0; backdrop-filter: blur(16px); }
.shop-page #conteudo, .shop-page :is(#catalogo, #personalizado) { scroll-margin-top: 94px; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.41rem / 1 var(--title); letter-spacing: -.065em; }
.brand small { color: var(--muted); font-size: .75rem; margin-top: 4px; font-weight: 700; line-height: 1; }
.brand-logo { width: 52px; flex: none; aspect-ratio: 1; object-fit: contain; border: 1px solid #f2d9e8; border-radius: 13px; background: #fff7fb; }
nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 45px); color: var(--body); font-size: .95rem; font-weight: 700; }
nav a { position: relative; padding-block: 12px; }
nav a::after { content: ""; position: absolute; inset: auto 0 6px; height: 2px; border-radius: 20px; background: #cb679b; opacity: 0; transition: opacity .2s; }
nav a:is(:hover, :focus-visible)::after { opacity: 1; }
nav a:hover, .footer a:hover { color: var(--pink); }

.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: .95rem; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; line-height: 1.25; text-align: center; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:active { transform: scale(.98); }
.button-primary { background: var(--pink); color: var(--white); box-shadow: 0 5px 12px #a8276428; }
.button-primary:hover { background: var(--deep-pink); }
.button-outline { color: var(--deep-pink); border-color: #e4b8d0; background: #fffcfe; }
.button-outline:hover { background: #fff0f7; }
.header-contact { min-height: 42px; border-radius: 999px; padding-inline: 16px; }
.full { width: 100%; }
.shop-page .button-primary { background: linear-gradient(115deg, #9b225e, #aa2c72 67%, #932760); box-shadow: 0 8px 17px #a8276433; }
.shop-page .button-primary:hover { background: #8f2059; box-shadow: 0 10px 20px #a8276444; }

.hero {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: 1.09fr .91fr;
  align-items: center;
  margin-top: 23px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #eac9de;
  border-radius: 40px 40px 88px 40px;
  background:
    radial-gradient(ellipse at 13% 15%, #fff9fc 4%, transparent 59%),
    radial-gradient(ellipse at 89% 17%, #efe0f8, transparent 62%),
    linear-gradient(125deg, #fdebf3 12%, #f9d9e9 57%, #ebd6f4 100%);
  box-shadow: 0 18px 48px #8e42721a;
}
.hero::after { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px solid #fff9; border-radius: 31px 31px 77px 31px; pointer-events: none; }
.hero-copy { padding: clamp(30px, 4.5vw, 62px) 0 clamp(30px, 4.5vw, 62px) clamp(30px, 4.5vw, 62px); position: relative; z-index: 2; animation: appear .55s both; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--deep-pink); text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; font-weight: 800; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.1rem, 5.55vw, 4.55rem); font-size: clamp(2.1rem, 5.85cqw, 4.55rem); letter-spacing: -.058em; margin: 13px 0 17px; line-height: 1.01; }
.hero h1 > span { display: block; }
.hero h1 em { color: #a12568; }
.hero-description { max-width: 465px; color: var(--body); font-size: clamp(1rem, 1.55cqw, 1.14rem); }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 23px; }
.hero-actions .button { min-height: 50px; border-radius: 13px; }
.hero-art { width: 100%; min-width: 0; position: relative; display: grid; place-items: center; padding: 36px 46px 35px 9px; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 87%;
  aspect-ratio: 1;
  max-width: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbfa 19%, #fff7fc 48%, #fff4fb93 62%, #fff4fb00 73%);
  animation: halo-light 3.5s ease-in-out both;
  pointer-events: none;
}
.hero-art img { width: min(100%, 425px); position: relative; z-index: 1; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 72% 72% at center, #000 74%, transparent 97%); animation: crest-in .8s .08s both; }
.hero-orbit { position: absolute; width: 86%; aspect-ratio: 1.02; max-width: 457px; border: 1px solid #fff9; border-radius: 50%; rotate: -19deg; scale: 1.07 .91; pointer-events: none; }
.hero-orbit::after { content: ""; position: absolute; inset: 8px; border: 1px dashed #b5709c70; border-radius: inherit; }
.sparkle { position: absolute; color: var(--gold); z-index: 2; width: 32px; height: 32px; animation: twinkle 1.7s ease-in-out 2; pointer-events: none; }
.star-one { top: 15%; right: 12%; }
.star-two { bottom: 19%; left: 7%; width: 21px; height: 21px; animation-delay: .26s; }
.star-three { bottom: 16%; right: 12%; width: 16px; height: 16px; color: #a75894; animation-delay: .54s; }
.star-four { top: 24%; left: 11%; width: 14px; height: 14px; color: #ab6097; animation-delay: .71s; }
@keyframes twinkle { 50% { transform: scale(1.28) rotate(13deg); opacity: .58; } }
@keyframes halo-light { 0%, 100% { scale: 1; opacity: .92; } 55% { scale: 1.11; opacity: 1; } }
@keyframes crest-in { from { opacity: 0; transform: translateY(13px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lift-in { from { opacity: .76; translate: 0 12px; } }

.catalog { margin-block: 47px 67px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 21px; }
.section-heading h2 { margin-top: 7px; }
.section-status { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.section-status:empty { display: none; }
.search { display: flex; align-items: center; gap: 9px; padding-inline: 14px; width: min(100%, 275px); color: var(--muted); border: 1px solid #e9d2e2; border-radius: 14px; background: var(--white); box-shadow: 0 5px 15px #56244d09; }
.search:focus-within { outline: 2px solid #8860ab; }
.search input { border: 0; background: transparent; width: 100%; min-height: 46px; outline: 0; color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { --card-gutter: 8px; --card-radius: 21px; display: flex; flex-direction: column; padding: var(--card-gutter); border: 1px solid #eddae6; border-radius: var(--card-radius); background: var(--white); box-shadow: 0 6px 19px #56244d0c; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:is(:hover, :focus-within) { box-shadow: 0 13px 29px #56244d1b; border-color: #e5bad5; }
.product-image { overflow: hidden; aspect-ratio: 1; border-radius: calc(var(--card-radius) - var(--card-gutter)); background: #fbecf4; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s cubic-bezier(.2, .75, .25, 1); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 5px 5px; gap: 8px; }
.product-card h3 { font-family: var(--body-font); font-weight: 800; font-size: clamp(.95rem, 1.55vw, 1.1rem); line-height: 1.3; overflow-wrap: anywhere; }
.product-price { align-self: flex-start; padding: 1px 9px; border-radius: 8px; background: #fbebf4; color: var(--deep-pink); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(1rem, 3vw, 1.13rem); margin-top: auto; }
.product-card .button { margin-top: 3px; min-height: 44px; font-size: .9rem; border-color: #ead0e0; background: #fff8fc; }
.product-card .button:hover { background: #f8e1ee; border-color: #d8a7c5; }
.revealed { animation: lift-in .5s cubic-bezier(.2, .75, .25, 1) both; }
.product-card.revealed:nth-child(even) { animation-delay: .055s; }

.custom-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(23px, 5vw, 65px); background: radial-gradient(ellipse at 9% 13%, #fff0f8, transparent 63%), radial-gradient(ellipse at 1% 100%, #f8d4e9, transparent 54%), #f0e0fa; border: 1px solid #e7cfe9; border-radius: 34px; padding: clamp(23px, 5.3vw, 62px); box-shadow: 0 14px 37px #81417713; }
.custom-icon { display: grid; place-items: center; width: 53px; height: 53px; border: 1px solid #fff9; border-radius: 17px; background: linear-gradient(145deg, #fff, #f9dce9); color: var(--pink); margin-bottom: 16px; font-size: 1.4rem; box-shadow: 0 7px 16px #884b7223; }
.custom h2 { max-width: 450px; }
.custom-copy p { margin-top: 14px; color: var(--body); max-width: 370px; }
.custom-form { background: #fffcff; border: 1px solid #ebd5e8; padding: 20px; border-radius: 20px; box-shadow: 0 10px 22px #89457415; }
form label { display: block; font-weight: 800; font-size: .95rem; }
form input:not([type="file"]), textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9c4d5; border-radius: 11px; color: var(--ink); background: var(--white); min-height: 45px; }
form textarea { display: block; resize: vertical; min-height: 78px; }
form input::placeholder, textarea::placeholder { color: var(--muted); }
.custom-form textarea { margin: 7px 0 12px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 36px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-brand { font-weight: 800; }
.footer a { display: inline-flex; align-items: center; gap: 5px; padding-block: 10px; font-weight: 700; }
.floating-contact { display: grid; place-items: center; position: fixed; z-index: 3; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 54px; height: 54px; background: #207649; color: white; border: 2px solid white; border-radius: 50%; box-shadow: 0 7px 22px #296b4a44; transition: transform .2s; }
.floating-contact:hover { background: #17613a; }
.floating-contact .icon { width: 26px; height: 26px; }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .shop-page .button-primary:hover, .floating-contact:hover { transform: translateY(-2px); }
  .product-card:hover { transform: translateY(-5px); }
  .product-card:hover img { scale: 1.05; }
  .shop-page .button-primary { position: relative; overflow: hidden; }
  .shop-page .button-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(118deg, transparent 28%, #fff6 50%, transparent 72%);
    translate: -125% 0;
  }
  .shop-page .button-primary:is(:hover, :focus-visible)::after { animation: shine .65s ease-out; }
}
@keyframes shine { to { translate: 125% 0; } }

dialog { width: min(465px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 24px; padding: 0; color: var(--ink); background: #fffdfd; }
dialog::backdrop { background: #30162de0; opacity: .64; }
dialog[open] { animation: appear .2s both; }
.dialog-inner { position: relative; }
.dialog-close-form { position: absolute; right: 10px; top: 10px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 1.05rem; }
.order-photo { width: 100%; height: clamp(118px, 24vh, 215px); object-fit: contain; background: #f8e9f1; }
.dialog-content { padding: 20px; }
.dialog-content h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.order-unit { color: var(--pink); font-weight: 800; margin: 4px 0 13px; }
#order-form :is(input, textarea) { margin: 4px 0 9px; }
#order-quantity { max-width: 100px; }
.order-total { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 11px; }
.order-total strong { color: var(--deep-pink); }
.muted { font-weight: 500; color: var(--muted); }

.admin-main { padding-block: 35px 56px; }
.admin-main h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.06em; margin: 8px 0 12px; }
.admin-main .eyebrow { margin-bottom: 4px; }
.admin-layout { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 18px; align-items: start; margin-top: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 19px; padding: clamp(16px, 3vw, 26px); box-shadow: 0 7px 22px #56244d0a; }
.panel h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 14px; }
.login-panel { max-width: 460px; background: #fffdff; margin: 24px auto 0; }
.login-panel .button { margin-top: 17px; }
.fields { display: grid; gap: 12px; }
.fields label { display: grid; gap: 5px; }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.admin-toolbar h1 { margin-block: 3px; }
.upload { width: 100%; color: var(--body); padding: 7px; border: 1px dashed #d9b7d1; border-radius: 11px; background: #fff8fc; }
.upload::file-selector-button { padding: 9px 10px; color: var(--deep-pink); border: 0; background: #f9ddeb; border-radius: 8px; font: inherit; font-weight: 700; margin-right: 8px; cursor: pointer; }
.photo-preview { width: 100%; max-height: 155px; object-fit: contain; background: #fcf0f5; border-radius: 10px; }
.form-note { color: var(--muted); font-size: .86rem; font-weight: 500; }
.form-feedback { color: #7c2249; font-weight: 700; font-size: .92rem; }
.form-feedback:empty { display: none; }
.form-feedback.success { color: #1e6644; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list-item { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line); padding-block: 10px; }
.list-item img { width: 57px; height: 57px; border-radius: 10px; object-fit: cover; flex: none; background: #fcf0f5; }
.list-title { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.list-title strong { line-height: 1.2; display: block; }
.list-title small { color: var(--deep-pink); font-size: .85rem; font-weight: 700; }
.edit-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.edit-actions .button { min-height: 42px; padding-inline: 10px; font-size: .84rem; }

@media (max-width: 960px) {
  .hero-art { padding-right: 28px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 600px); }
  .header-inner { min-height: 61px; gap: 10px; }
  .brand-logo { width: 46px; }
  .header nav { display: none; }
  .shop-page #conteudo, .shop-page :is(#catalogo, #personalizado) { scroll-margin-top: 74px; }
  .hero { grid-template-columns: 1fr; margin-top: 13px; border-radius: 28px 28px 62px 28px; text-align: center; }
  .hero::after { inset: 6px; border-radius: 22px 22px 54px 22px; }
  .hero-art { grid-row: 1; padding: 19px 24px 0; width: min(100%, 350px); margin: 0 auto; }
  .hero-art img { width: min(100%, 250px); width: min(100%, 67cqw, 270px); }
  .hero-art::before { width: 94%; }
  .hero-orbit { width: 79%; }
  .hero-copy { padding: 10px 16px 25px; }
  .hero .eyebrow, .hero-actions { justify-content: center; }
  .hero h1 { font-size: clamp(1.9rem, 9.1vw, 3.7rem); font-size: clamp(1.9rem, 10.25cqw, 3.7rem); margin: 8px auto 12px; max-width: 550px; }
  .hero-description { margin-inline: auto; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { min-height: 46px; }
  .star-one { top: 17%; right: 10%; width: 26px; height: 26px; }
  .star-two { bottom: 24%; left: 10%; width: 18px; height: 18px; }
  .star-three { right: 12%; }
  .catalog { margin-block: 35px 40px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 14px; }
  .search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { --card-gutter: 5px; --card-radius: 17px; }
  .product-card-body { padding: 8px 5px 5px; gap: 6px; }
  .product-card .button { padding-inline: 8px; }
  .custom-inner { grid-template-columns: 1fr; border-radius: 23px; }
  .custom-form { padding: 13px; }
  .footer { margin-top: 24px; padding-right: 38px; gap: 5px; font-size: .78rem; }
  .floating-contact { width: 49px; height: 49px; right: max(9px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-main { padding-top: 21px; }
}

@media (max-width: 355px) {
  .hero-actions .button { padding-inline: 9px; font-size: .85rem; }
  .header-contact { padding-inline: 9px; }
  .list-item { flex-wrap: wrap; }
}

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