:root {
    /* Paleta principal inspirada em tons nude e bege */
    --bg: #f7f1ea;
    --surface: rgba(255, 252, 248, 0.82);
    --surface-strong: #fffaf5;
    --stroke: rgba(120, 86, 60, 0.14);
    --text: #4d3a2e;
    --text-soft: #7d6554;
    --accent: #b68a68;
    --accent-deep: #8c6246;
    --highlight: #e8d3c3;
    --shadow: 0 24px 60px rgba(109, 78, 58, 0.12);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
        radial-gradient(circle at bottom right, rgba(232, 211, 195, 0.8), transparent 28%),
        linear-gradient(160deg, #f9f4ee 0%, #f4ece3 46%, #efe5db 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(12px);
}

body::before {
    top: 90px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: rgba(230, 205, 185, 0.45);
}

body::after {
    bottom: 80px;
    left: -90px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.4);
}

.page-shell {
    position: fixed;
    inset: 16px;
    border: 1px solid rgba(182, 138, 104, 0.12);
    border-radius: 34px;
    pointer-events: none;
    z-index: -1;
}

.view-hidden {
    display: none !important;
}

.topbar,
main,
.footer {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.topbar {
    padding: 34px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Botao hamburger */
.hamburger-button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(182, 138, 104, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hamburger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(140, 98, 70, 0.12);
}

.hamburger-button span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--accent-deep);
}

/* Menu lateral de categorias */
.category-menu.hidden {
    display: none;
}

.category-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.category-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(77, 58, 46, 0.38);
    backdrop-filter: blur(8px);
}

.category-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 320px);
    height: 100%;
    padding: 26px 22px;
    background: rgba(255, 251, 247, 0.98);
    border-right: 1px solid rgba(182, 138, 104, 0.12);
    box-shadow: 18px 0 40px rgba(61, 46, 37, 0.16);
    overflow-y: auto;
}

.category-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.category-menu-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    line-height: 0.95;
    color: var(--text);
}

.category-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-deep);
    font-size: 1.4rem;
    cursor: pointer;
}

.category-menu-list {
    list-style: none;
    display: grid;
    gap: 6px;
}

.category-menu-list ul {
    list-style: none;
    padding-left: 16px;
    display: grid;
    gap: 4px;
}

.category-menu-group {
    margin-top: 10px;
}

.category-menu-group-title {
    display: block;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.category-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease;
}

.category-menu-item:hover {
    background: rgba(232, 211, 195, 0.35);
}

.category-menu-item.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fffdf9;
    font-weight: 700;
}

/* Busca e ordenação dentro do menu */
.category-menu-tools {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(182, 138, 104, 0.14);
}

.category-menu-search,
.category-menu-sort {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
}

.category-menu-sort {
    cursor: pointer;
}

.brand-mark {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-line {
    margin-top: 6px;
    max-width: 360px;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.admin-entry,
.secondary-button {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(182, 138, 104, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--accent-deep);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.admin-entry:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(140, 98, 70, 0.12);
}

main {
    padding-bottom: 110px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 24px;
}

.hero-copy,
.collection-intro {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 54px);
    border-radius: var(--radius-lg);
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(232, 211, 195, 0.72), transparent 70%);
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin-top: 18px;
    max-width: none;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 0.92;
}

.hero-copy p {
    margin-top: 14px;
    max-width: 48ch;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.buy-button,
.secondary-link {
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button,
.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fffdf9;
    box-shadow: 0 16px 30px rgba(140, 98, 70, 0.24);
}

.primary-button {
    min-height: 52px;
    padding: 0 26px;
    font-weight: 700;
}

.secondary-link {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    color: var(--accent-deep);
    border: 1px solid rgba(182, 138, 104, 0.26);
    background: rgba(255, 255, 255, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-button:hover,
.buy-button:hover,
.secondary-link:hover,
.floating-whatsapp:hover {
    transform: translateY(-2px);
}

.collection-intro {
    margin-top: 14px;
    padding: 28px 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.collection-intro h2 {
    margin-top: 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
}

.collection-intro p {
    max-width: 54ch;
}

.catalog-toolbar {
    margin-top: 24px;
    padding: 14px 20px;
    border-radius: 24px;
    background: rgba(255, 252, 248, 0.7);
    border: 1px solid rgba(182, 138, 104, 0.12);
    box-shadow: 0 14px 30px rgba(92, 64, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.catalog-toolbar > div:first-child {
    min-width: 0;
}

.catalog-toolbar-controls {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-search,
.catalog-sort {
    display: block;
}

.catalog-search input,
.catalog-sort select {
    min-height: 44px;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

.catalog-search input {
    min-width: 240px;
    width: min(100%, 280px);
}

.catalog-sort select {
    min-width: 170px;
    cursor: pointer;
}

.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;
}

.catalog-toolbar-title {
    margin-top: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 0.95;
}

.catalog-status {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.catalog-status span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(182, 138, 104, 0.12);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filter-chip {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--accent-deep);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
}

.filter-chip.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fffdf9;
    box-shadow: 0 14px 26px rgba(140, 98, 70, 0.2);
}

.product-catalog {
    display: grid;
    gap: 28px;
    margin-top: 30px;
}

.category-section {
    background: rgba(255, 252, 248, 0.56);
    border: 1px solid rgba(182, 138, 104, 0.12);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(92, 64, 46, 0.08);
}

.category-header {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-header h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 0.95;
}

.category-count {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.admin-hub,
.admin-panel,
.login-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.admin-hub {
    margin-top: 34px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.admin-panel h2,
.login-card h2,
.form-heading h3 {
    margin-top: 12px;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.98;
}

.admin-panel h2,
.login-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.admin-panel p,
.login-card p,
.admin-list-card p,
.form-heading p,
label span {
    color: var(--text-soft);
}

.admin-open-button,
.admin-submit-button,
.login-submit {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.admin-open-button,
.admin-submit-button,
.login-submit {
    min-height: 52px;
    padding: 0 26px;
}

.admin-form-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-cancel-button.hidden {
    display: none;
}

.admin-panel {
    margin-top: 28px;
    padding: 30px;
    border-radius: var(--radius-md);
}

.admin-panel.hidden,
.login-modal.hidden {
    display: none;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-panel-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 22px;
}

.admin-form,
.admin-products {
    background: rgba(255, 250, 245, 0.72);
    border: 1px solid rgba(182, 138, 104, 0.14);
    border-radius: 24px;
    padding: 24px;
}

.form-heading p {
    margin-top: 8px;
    line-height: 1.65;
}

.form-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
}

label span {
    font-size: 0.92rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus {
    border-color: rgba(182, 138, 104, 0.5);
    box-shadow: 0 0 0 4px rgba(232, 211, 195, 0.45);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-product-list {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.admin-list-card,
.admin-list-empty {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(182, 138, 104, 0.14);
    border-radius: 20px;
    padding: 18px;
}

.admin-list-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.admin-list-image {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
}

.admin-list-card h4 {
    font-size: 1.05rem;
}

.admin-list-card p {
    margin-top: 4px;
    line-height: 1.55;
    font-size: 0.92rem;
}

.admin-list-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.danger-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(140, 98, 70, 0.18);
    border-radius: 999px;
    background: rgba(255, 245, 240, 0.95);
    color: var(--accent-deep);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.edit-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.95);
    color: var(--accent-deep);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(77, 58, 46, 0.38);
    backdrop-filter: blur(8px);
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: 30px;
    border-radius: 28px;
}

.login-card p {
    margin-top: 14px;
    line-height: 1.7;
}

.login-form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    color: var(--accent-deep);
    font-size: 1.4rem;
    cursor: pointer;
}

.product-card {
    position: relative;
    background: var(--surface-strong);
    border: 1px solid rgba(182, 138, 104, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(92, 64, 46, 0.1);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 50px rgba(92, 64, 46, 0.16);
    border-color: rgba(182, 138, 104, 0.26);
}

.image-wrap {
    position: relative;
    aspect-ratio: 0.86;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(250, 246, 241, 0.6), rgba(232, 211, 195, 0.6));
    cursor: zoom-in;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease, filter 250ms ease;
}

.product-card:hover .image-wrap img {
    transform: scale(1.05);
    filter: saturate(1.03);
}

.product-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 12px;
    background: rgba(255, 250, 245, 0.88);
    color: var(--accent-deep);
    border: 1px solid rgba(182, 138, 104, 0.16);
    backdrop-filter: blur(10px);
}

.image-view-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.9);
    color: var(--accent-deep);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.favorite-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 245, 0.9);
    color: var(--accent-deep);
    font-size: 1.1rem;
    cursor: pointer;
}

.favorite-button.is-active {
    background: linear-gradient(135deg, #c98f79 0%, #a65f4e 100%);
    color: #fffdf9;
}

.product-chip {
    padding: 7px 12px;
    background: rgba(232, 211, 195, 0.42);
    color: var(--accent-deep);
}

.product-price {
    color: var(--accent-deep);
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.product-title-wrap {
    min-height: 3.9em;
}

.product-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #5b4435;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-description {
    display: none;
}

.product-detail-page {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.detail-back-button {
    width: fit-content;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(182, 138, 104, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 252, 248, 0.72);
    border: 1px solid rgba(182, 138, 104, 0.12);
    box-shadow: 0 18px 40px rgba(92, 64, 46, 0.08);
}

.product-detail-media {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
}

.product-detail-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.product-detail-content {
    display: grid;
    gap: 16px;
    align-content: start;
    padding-top: 10px;
}

.product-detail-breadcrumb {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.product-detail-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.015em;
    color: #4f382b;
    text-wrap: balance;
}

.product-detail-price {
    color: var(--accent-deep);
    font-size: 1.9rem;
}

.product-detail-description {
    color: var(--text-soft);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.product-detail-actions {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.product-detail-buy,
.product-detail-cart {
    width: 100%;
}

.product-description {
    font-size: 0.92rem;
}

.buy-button {
    min-height: 48px;
    padding: 0 20px;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
}

.card-actions {
    display: grid;
    gap: 10px;
}

.add-cart-button {
    min-height: 44px;
    border: 1px solid rgba(182, 138, 104, 0.2);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.9);
    color: var(--accent-deep);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    min-width: 146px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(37, 211, 102, 0.32);
    z-index: 20;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(77, 58, 46, 0.94);
    color: #fffaf5;
    box-shadow: 0 16px 28px rgba(61, 46, 37, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 60;
    max-width: min(calc(100% - 32px), 560px);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: grid;
    place-items: center;
    padding: 18px;
}

.image-viewer.hidden {
    display: none;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(61, 46, 37, 0.6);
    backdrop-filter: blur(8px);
}

.image-viewer-card {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    max-height: calc(100vh - 36px);
    background: rgba(255, 251, 247, 0.96);
    border: 1px solid rgba(182, 138, 104, 0.12);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 26px 70px rgba(61, 46, 37, 0.28);
    overflow: hidden;
}

.image-viewer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.image-viewer-label {
    color: var(--text-soft);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.image-viewer-topbar h2 {
    margin-top: 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.image-viewer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-viewer-control {
    min-width: 46px;
    padding: 0;
}

.image-viewer-zoom {
    min-width: 58px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-deep);
}

.image-viewer-frame {
    display: grid;
    place-items: center;
    min-height: min(72vh, 680px);
    overflow: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbf7f2 0%, #f3e7dc 100%);
    touch-action: none;
    cursor: grab;
}

.image-viewer-frame img {
    max-width: 100%;
    max-height: 70vh;
    transform-origin: center center;
    transition: transform 180ms ease;
    border-radius: 20px;
    user-select: none;
    pointer-events: none;
}

.image-viewer-frame.is-dragging {
    cursor: grabbing;
}

.image-viewer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-deep);
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    min-height: 56px;
    padding: 0 16px 0 22px;
    border: none;
    border-radius: 999px;
    background: rgba(77, 58, 46, 0.95);
    color: #fffaf5;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 35px rgba(61, 46, 37, 0.28);
    cursor: pointer;
    z-index: 24;
}

.cart-fab strong {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
}

.cart-drawer.hidden {
    display: none;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 46;
}

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(61, 46, 37, 0.42);
    backdrop-filter: blur(8px);
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 430px);
    height: 100%;
    padding: 26px 22px;
    background: rgba(255, 251, 247, 0.98);
    border-left: 1px solid rgba(182, 138, 104, 0.12);
    box-shadow: -18px 0 40px rgba(61, 46, 37, 0.16);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cart-panel-header h2 {
    margin-top: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 0.95;
}

.cart-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-deep);
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-summary {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 248, 242, 0.95);
    border: 1px solid rgba(182, 138, 104, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-summary p {
    color: var(--text-soft);
}

.cart-summary strong {
    color: var(--accent-deep);
    font-size: 1.15rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.cart-customer-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 248, 242, 0.9);
    border: 1px solid rgba(182, 138, 104, 0.12);
}

.cart-customer-form textarea {
    min-height: 88px;
}

.cart-item,
.cart-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(182, 138, 104, 0.12);
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.cart-item h4 {
    font-size: 1rem;
}

.cart-item-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.cart-item-controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.qty-button,
.remove-cart-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(182, 138, 104, 0.16);
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.92);
    color: var(--accent-deep);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cart-actions {
    display: grid;
    gap: 10px;
}

.cart-whatsapp-button {
    width: 100%;
}

.cart-clear-button {
    width: 100%;
}

.footer {
    padding: 12px 0 36px;
    color: var(--text-soft);
    text-align: center;
}

.admin-orders {
    width: min(calc(100% - 40px), var(--container));
    margin: 28px auto 0;
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.admin-orders.hidden {
    display: none;
}

.admin-orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-orders-header h2 {
    margin-top: 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
}

.admin-orders-header p {
    max-width: 48ch;
    color: var(--text-soft);
    line-height: 1.65;
}

.admin-orders-list {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.order-card,
.order-empty {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(182, 138, 104, 0.14);
    border-radius: 22px;
    padding: 20px;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-card-title h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    line-height: 0.95;
}

.order-card-title p,
.order-meta,
.order-notes,
.order-item-list li {
    color: var(--text-soft);
}

.order-status-select {
    min-height: 42px;
    min-width: 190px;
    border: 1px solid rgba(182, 138, 104, 0.18);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent-deep);
    font: inherit;
    font-weight: 700;
}

.order-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 248, 242, 0.94);
    border: 1px solid rgba(182, 138, 104, 0.12);
}

.order-item-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.order-notes {
    margin-top: 14px;
    line-height: 1.6;
}

.reveal {
    /* Entrada suave para seções e cards durante o scroll */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .admin-panel-grid {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-toolbar-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .collection-intro {
        align-items: flex-start;
    }

    .catalog-search,
    .catalog-sort {
        flex: 1 1 220px;
    }

    .catalog-search input,
    .catalog-sort select {
        width: 100%;
    }

    .category-header,
    .image-viewer-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 920px) {
    .topbar,
    main,
    .footer {
        width: min(calc(100% - 28px), var(--container));
    }

    .topbar {
        padding: 26px 0 14px;
    }

    .collection-intro {
        padding: 24px;
        gap: 16px;
    }

    .catalog-toolbar {
        padding: 18px;
    }

    .cart-panel {
        width: min(100%, 400px);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-orders {
        width: min(calc(100% - 28px), var(--container));
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        inset: 10px;
        border-radius: 26px;
    }

    body::before,
    body::after {
        display: none;
    }

    .topbar {
        padding: 20px 0 10px;
        gap: 12px;
    }

    .topbar > div {
        flex: 1;
        min-width: 0;
    }

    .brand-mark {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .brand-line {
        font-size: 0.78rem;
        margin-top: 2px;
    }

    .admin-entry {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-copy,
    .collection-intro,
    .admin-hub,
    .admin-panel,
    .login-card {
        padding: 18px;
        border-radius: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 20px;
    }

    .primary-button,
    .secondary-link {
        width: 100%;
        min-height: 46px;
        font-size: 0.88rem;
    }

    .admin-form,
    .admin-products {
        padding: 20px;
    }

    .catalog-toolbar {
        padding: 16px;
        border-radius: 20px;
    }

    .catalog-toolbar-controls {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search,
    .catalog-sort {
        width: 100%;
    }

    .catalog-search input,
    .catalog-sort select {
        width: 100%;
        min-width: 0;
    }

    .catalog-toolbar-title {
        font-size: 1.5rem;
    }

    .catalog-filters {
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
    }

    .filter-chip {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .collection-intro p,
    .hero-copy p,
    .admin-panel p,
    .form-heading p,
    .product-description {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .collection-intro {
        flex-direction: column;
    }

    .collection-intro h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-tag,
    .eyebrow,
    .product-chip,
    .product-tag {
        font-size: 0.64rem;
    }

    .category-section {
        padding: 12px;
        border-radius: 18px;
    }

    .category-header {
        margin-bottom: 12px;
    }

    .category-header h3 {
        font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-card {
        grid-template-columns: 1fr;
    }

    .admin-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-list-image {
        width: 100%;
        height: 180px;
    }

    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-status {
        font-size: 0.8rem;
    }

    .hamburger-button {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        gap: 4px;
    }

    .hamburger-button span {
        width: 18px;
        height: 2px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card:hover {
        transform: none;
    }

    .product-body {
        padding: 10px;
        gap: 8px;
    }

    .product-meta {
        gap: 6px;
    }

    .product-card h3 {
        font-size: 1.05rem;
    }

    .product-detail-layout {
        padding: 16px;
        border-radius: 20px;
        gap: 18px;
    }

    .product-detail-content h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 0.92rem;
    }

    .buy-button {
        min-height: 38px;
        font-size: 0.82rem;
    }

    .add-cart-button {
        min-height: 36px;
        font-size: 0.8rem;
    }

    .image-wrap {
        aspect-ratio: 0.9;
    }

    .image-view-button {
        min-height: 34px;
        font-size: 0.72rem;
    }

    .favorite-button {
        width: 36px;
        height: 36px;
    }

    .admin-hub {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-open-button,
    .secondary-button,
    .login-submit,
    .admin-submit-button,
    .admin-cancel-button {
        width: 100%;
    }

    .image-viewer {
        padding: 10px;
    }

    .image-viewer-card {
        padding: 16px;
        border-radius: 22px;
    }

    .cart-fab {
        left: 18px;
        bottom: 84px;
        min-height: 50px;
        font-size: 0.88rem;
    }

    .cart-panel {
        width: 100%;
        padding: 18px 14px;
    }

    .cart-summary,
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-orders,
    .admin-orders-header {
        display: grid;
        gap: 14px;
    }

    .order-card-header {
        flex-direction: column;
    }

    .order-status-select {
        width: 100%;
        min-width: 0;
    }

    .cart-whatsapp-button,
    .cart-clear-button {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item img {
        width: 100%;
        height: 160px;
    }

    .image-viewer-frame {
        min-height: 56vh;
    }

    .image-viewer-frame img {
        max-height: 54vh;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        min-width: 0;
        min-height: 48px;
        padding: 0 16px;
        font-size: 0.82rem;
    }

    .toast {
        width: calc(100% - 32px);
        text-align: center;
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .topbar,
    main,
    .footer {
        width: min(calc(100% - 16px), var(--container));
    }

    .page-shell {
        inset: 4px;
        border-radius: 16px;
    }

    .brand-mark {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    }

    .brand-line {
        font-size: 0.72rem;
    }

    .admin-entry {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .hero-copy,
    .collection-intro,
    .admin-hub,
    .admin-panel,
    .login-card,
    .admin-orders,
    .catalog-toolbar,
    .category-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    }

    .hero-copy p {
        font-size: 0.78rem;
    }

    .collection-intro h2 {
        font-size: clamp(1.3rem, 4.5vw, 1.7rem);
    }

    .catalog-status {
        gap: 6px;
        font-size: 0.75rem;
    }

    .product-card h3 {
        font-size: 0.92rem;
    }

    .product-price {
        font-size: 0.84rem;
    }

    .product-description {
        font-size: 0.76rem;
    }

    .buy-button {
        min-height: 36px;
        font-size: 0.78rem;
    }

    .add-cart-button {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .product-body {
        padding: 8px;
        gap: 6px;
    }

    .product-grid {
        gap: 6px;
    }

    .category-section {
        padding: 10px;
        border-radius: 14px;
    }

    .category-header h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-actions {
        gap: 6px;
    }

    .cart-fab {
        left: 10px;
        bottom: 78px;
        min-width: 0;
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.82rem;
    }

    .floating-whatsapp {
        right: 10px;
        bottom: 10px;
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.78rem;
    }

    .image-view-button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .favorite-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .product-tag {
        top: 10px;
        left: 10px;
        padding: 5px 8px;
        font-size: 0.58rem;
    }
}