:root {
    --laya-pink: #f9a8d4;
    --laya-pink-deep: #ec4899;
    --laya-mint: #86efac;
    --laya-yellow: #fcd34d;
    --laya-lavender: #c4b5fd;
    --laya-bg: #fff0f6;
    --laya-text: #334155;
    --laya-card: #ffffff;
    --laya-shadow: 0 12px 40px rgba(236, 72, 153, 0.12);
    --laya-pattern-dot: rgba(236, 72, 153, 0.06);
    --laya-watermark-opacity: 0.07;
    --laya-watermark-size: 104px;
}

html {
    scroll-behavior: smooth;
}

body.laya-store,
body.laya-admin {
    position: relative;
    isolation: isolate;
}

body.laya-store::before,
body.laya-admin::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('../images/logo_semfundo.png');
    background-repeat: repeat;
    background-size: var(--laya-watermark-size) auto;
    opacity: var(--laya-watermark-opacity);
    z-index: -1;
}

@media (max-width: 575.98px) {
    :root {
        --laya-watermark-size: 80px;
        --laya-watermark-opacity: 0.055;
    }
}

body.laya-store {
    color: var(--laya-text);
    background-color: var(--laya-bg);
    background-image:
        radial-gradient(circle at 1px 1px, var(--laya-pattern-dot) 1px, transparent 0),
        radial-gradient(ellipse 120% 80% at 0% 0%, #ffe4ef 0%, transparent 55%),
        radial-gradient(ellipse 100% 70% at 100% 100%, rgba(253, 242, 255, 0.9) 0%, transparent 50%),
        linear-gradient(180deg, var(--laya-bg) 0%, #fdf2ff 100%);
    background-size: 20px 20px, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
}

.laya-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(249, 168, 212, 0.35);
}

.laya-store-menu-btn {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.laya-store-menu-btn .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.laya-store-body {
    min-height: 0;
    flex: 1 1 auto;
}

.laya-store-sidebar {
    width: 258px;
    flex-shrink: 0;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(252, 231, 243, 0.95) 0%, transparent 55%),
        radial-gradient(90% 60% at 100% 30%, rgba(233, 213, 255, 0.55) 0%, transparent 45%),
        linear-gradient(195deg, #fffafd 0%, #fae8ff 38%, #ede9fe 100%);
    border-right: 1px solid rgba(244, 114, 182, 0.22);
    box-shadow: 6px 0 32px rgba(192, 132, 252, 0.12);
}

.laya-store-offcanvas.offcanvas-start {
    max-width: min(320px, 92vw);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(252, 231, 243, 0.95) 0%, transparent 55%),
        linear-gradient(195deg, #fffafd 0%, #fae8ff 45%, #ede9fe 100%);
    border-right: 1px solid rgba(244, 114, 182, 0.2);
}

.laya-store-offcanvas .offcanvas-title {
    color: #9d174d;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.laya-store-nav-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #be185d;
    background: rgba(255, 255, 255, 0.65);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 113, 133, 0.35);
    box-shadow: 0 2px 10px rgba(244, 114, 182, 0.15);
}

.laya-store-side-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #831843;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(190, 24, 93, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.laya-store-side-item:hover,
.laya-store-side-item:focus {
    background: rgba(255, 255, 255, 0.88);
    color: #9d174d;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.18);
}

.laya-store-side-item--home .laya-side-ico {
    background: linear-gradient(145deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.laya-store-side-item--cat .laya-side-ico,
.laya-store-side-item--cat.laya-store-side-cat-toggle .laya-side-ico {
    background: linear-gradient(145deg, #e9d5ff, #ddd6fe);
    color: #7c3aed;
}

.laya-store-side-item--shop .laya-side-ico {
    background: linear-gradient(145deg, #bbf7d0, #86efac);
    color: #15803d;
}

.laya-store-side-item--cat.laya-store-side-cat-toggle {
    padding-right: 0.5rem;
    color: #831843 !important;
}

.laya-store-side-item--cat.laya-store-side-cat-toggle:hover,
.laya-store-side-item--cat.laya-store-side-cat-toggle:focus {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #9d174d !important;
}

.laya-side-ico {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.laya-side-ico svg {
    display: block;
}

.laya-store-side-chevron::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.65;
    color: #a21caf;
}

.laya-store-side-cat-toggle[aria-expanded='true'] .laya-store-side-chevron::after {
    content: '▴';
}

.laya-store-subwrap {
    margin-left: 0.35rem;
    padding: 0.5rem 0.6rem 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    border: 1px dashed rgba(192, 132, 252, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.laya-store-side-sublink {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b21a8 !important;
    text-decoration: none;
    transition: background 0.15s ease;
}

.laya-side-subdot {
    font-size: 0.45rem;
    color: #e879f9;
    line-height: 1;
}

.laya-store-side-sublink:hover {
    background: rgba(250, 232, 255, 0.95) !important;
    color: #581c87 !important;
}

.laya-store-side-empty {
    display: block;
    padding: 0.5rem;
    color: #a78bfa;
    font-style: italic;
}

.laya-store-main-column {
    background: transparent;
}

.laya-brand {
    background: linear-gradient(120deg, var(--laya-pink-deep), var(--laya-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.laya-navbar-logo {
    display: block;
    height: 62px;
    width: auto;
    max-width: min(168px, 42vw);
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .laya-navbar-logo {
        height: 52px;
        max-width: min(148px, 46vw);
    }
}

.laya-admin-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.laya-dropdown {
    border-radius: 1rem;
}

.laya-btn-primary {
    background: linear-gradient(120deg, var(--laya-pink-deep), #f472b6);
    border: none;
    color: #fff;
    box-shadow: var(--laya-shadow);
}

.laya-btn-primary:hover,
.laya-btn-primary:focus {
    filter: brightness(1.05);
    color: #fff;
}

.laya-card {
    border-radius: 1.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.laya-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--laya-shadow);
}

.laya-hero {
    background: linear-gradient(135deg, rgba(249, 168, 212, 0.35), rgba(196, 181, 253, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.laya-hero-kicker {
    letter-spacing: 0.12em;
    color: #db2777;
}

.laya-hero-title {
    color: #9d174d;
}

.laya-hero-logo-wrap {
    width: min(340px, 78vw);
    max-height: min(340px, 52vh);
    animation: laya-float 7s ease-in-out infinite;
}

.laya-hero-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(340px, 52vh);
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(157, 23, 77, 0.18));
}

@keyframes laya-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

.laya-cat-placeholder {
    background: linear-gradient(145deg, rgba(134, 239, 172, 0.55), rgba(196, 181, 253, 0.55));
}

.laya-footer {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(249, 168, 212, 0.35);
}

.laya-badge-soft {
    background: rgba(196, 181, 253, 0.45);
    color: #5b21b6;
}

.laya-carousel .carousel-control-prev-icon,
.laya-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.laya-thumb.is-active span {
    border-color: var(--laya-pink-deep) !important;
}

.laya-product-desc {
    line-height: 1.65;
}

#photoModal .modal-content {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}

#photoModal .btn-close-white {
    filter: invert(1);
}

.laya-modal-gallery {
    min-height: min(70vh, 520px);
}

.laya-modal-gallery-img {
    display: inline-block;
    max-width: 100%;
    max-height: min(78vh, 880px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
}

.laya-modal-gallery-arrow {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    opacity: 0.95;
}

.laya-modal-gallery-arrow:hover {
    background: #fff;
    opacity: 1;
}

.laya-modal-gallery-arrow:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.laya-modal-gallery-arrow .carousel-control-prev-icon,
.laya-modal-gallery-arrow .carousel-control-next-icon {
    filter: none;
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 575.98px) {
    .laya-modal-gallery-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .laya-modal-gallery-img {
        max-height: min(65vh, 560px);
    }
}

.laya-empty {
    border: 1px dashed rgba(249, 168, 212, 0.65);
}

.laya-banner img {
    filter: saturate(1.05);
}

/* Admin — fundo e paleta pastel */
body.laya-admin {
    --laya-admin-bg: #fdf8fc;
    --laya-admin-surface: #fffbfe;
    --laya-admin-muted: #9ca3af;
    --laya-admin-accent: #c084fc;
    --laya-admin-accent2: #f9a8d4;
    --laya-admin-text: #57534e;
    background-color: var(--laya-admin-bg);
    background-image:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(252, 231, 243, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 20%, rgba(237, 233, 254, 0.75) 0%, transparent 50%),
        linear-gradient(180deg, var(--laya-admin-bg) 0%, #faf5ff 100%);
    background-attachment: fixed;
    color: var(--laya-admin-text);
}

.laya-admin-banner-preview {
    min-height: 140px;
}

.laya-admin-banner-preview-img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(380px, 55vh);
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
}

.laya-sidebar {
    width: 260px;
    background: linear-gradient(195deg, #e9d5ff 0%, #fbcfe8 45%, #fce7f3 100%);
    min-height: 100vh;
    border-right: 1px solid rgba(244, 114, 182, 0.2);
    box-shadow: 4px 0 24px rgba(192, 132, 252, 0.08);
}

.laya-sidebar .nav-link {
    color: #7c2d6a;
    font-weight: 600;
}

.laya-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.65);
    color: #9d174d;
}

.laya-sidebar .text-white-50 {
    color: rgba(91, 33, 82, 0.55) !important;
}

.laya-sidebar hr {
    border-color: rgba(192, 132, 252, 0.35) !important;
    opacity: 1;
}

.laya-admin-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 251, 254, 0.92) !important;
    border-bottom: 1px solid rgba(244, 114, 182, 0.18) !important;
    backdrop-filter: blur(10px);
}

.laya-admin-top .text-muted {
    color: #a18a9b !important;
}

body.laya-admin .laya-badge-soft {
    background: rgba(233, 213, 254, 0.85);
    color: #6b21a8;
    border: 1px solid rgba(192, 132, 252, 0.25);
    font-weight: 600;
}

/* Ícone hambúrguer: SVG inline (não depende do Bootstrap) */
.laya-admin-menu-toggler {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(192, 132, 252, 0.45);
    border-radius: 0.65rem;
    background: linear-gradient(145deg, rgba(250, 245, 255, 0.95), rgba(252, 231, 243, 0.9));
    color: #86198f;
    box-shadow: 0 2px 10px rgba(192, 132, 252, 0.12);
}

.laya-admin-menu-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(192, 132, 252, 0.28);
    outline: none;
}

.laya-admin-menu-icon {
    display: block;
    flex-shrink: 0;
}

.laya-admin-email-badge {
    max-width: min(220px, 48vw);
}

.laya-admin-offcanvas.offcanvas-start {
    max-width: min(300px, 88vw);
    z-index: 1046;
    background: linear-gradient(195deg, #e9d5ff 0%, #fbcfe8 50%, #fef3c7 100%);
    border-right: 1px solid rgba(244, 114, 182, 0.2);
}

.laya-admin-offcanvas .nav-link {
    color: #7c2d6a;
    font-weight: 600;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
}

.laya-admin-offcanvas .nav-link:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #9d174d;
}

.laya-admin-offcanvas .offcanvas-title {
    color: #86198f;
}

.laya-admin-offcanvas-head {
    border-color: rgba(192, 132, 252, 0.3) !important;
}

.laya-admin-offcanvas .btn-close {
    opacity: 0.5;
}

.laya-admin-offcanvas hr {
    border-color: rgba(192, 132, 252, 0.35) !important;
    opacity: 1;
}

.laya-admin-offcanvas .text-white-50 {
    color: rgba(91, 33, 82, 0.55) !important;
}

.laya-btn-admin {
    background: linear-gradient(120deg, #c084fc, #f472b6);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(192, 132, 252, 0.35);
}

.laya-btn-admin:hover,
.laya-btn-admin:focus {
    filter: brightness(1.04);
    color: #fff;
}

body.laya-admin .bg-light-subtle {
    background-color: transparent !important;
}

.laya-stat {
    border-radius: 1.15rem;
    border: 1px solid rgba(244, 114, 182, 0.15);
    background: var(--laya-admin-surface);
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.06);
}

.laya-admin .row.g-4 .col-md-4:nth-child(1) .laya-stat {
    background: linear-gradient(145deg, rgba(255, 251, 254, 0.98), rgba(252, 231, 243, 0.55));
}

.laya-admin .row.g-4 .col-md-4:nth-child(2) .laya-stat {
    background: linear-gradient(145deg, rgba(255, 251, 254, 0.98), rgba(237, 233, 254, 0.55));
}

.laya-admin .row.g-4 .col-md-4:nth-child(3) .laya-stat {
    background: linear-gradient(145deg, rgba(255, 251, 254, 0.98), rgba(209, 250, 229, 0.45));
}

.laya-admin .laya-stat .text-muted {
    color: #a18a9b !important;
}

.laya-admin .laya-stat .display-6 {
    color: #7c2d6a;
}

body.laya-admin .card.border-0.shadow-sm {
    border: 1px solid rgba(244, 114, 182, 0.12) !important;
    background: var(--laya-admin-surface);
    box-shadow: 0 6px 24px rgba(192, 132, 252, 0.07) !important;
}

body.laya-admin .card .h5,
body.laya-admin .card h2 {
    color: #7c2d6a;
}

body.laya-admin .table {
    --bs-table-bg: transparent;
}

body.laya-admin .table thead th {
    color: #a18a9b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-color: rgba(244, 114, 182, 0.2);
}

body.laya-admin .btn-outline-secondary {
    border-color: rgba(192, 132, 252, 0.4);
    color: #86198f;
}

body.laya-admin .btn-outline-secondary:hover {
    background: rgba(233, 213, 254, 0.5);
    border-color: rgba(192, 132, 252, 0.55);
    color: #6b21a8;
}

body.laya-admin .btn-outline-primary {
    border-color: rgba(192, 132, 252, 0.55);
    color: #7c3aed;
}

body.laya-admin .btn-outline-primary:hover {
    background: rgba(237, 233, 254, 0.85);
    color: #5b21b6;
}

body.laya-admin .alert-success {
    background: linear-gradient(90deg, rgba(209, 250, 229, 0.85), rgba(236, 253, 245, 0.95));
    border: 1px solid rgba(134, 239, 172, 0.45) !important;
    color: #166534;
}

body.laya-admin .alert-danger {
    background: linear-gradient(90deg, rgba(254, 226, 226, 0.85), rgba(254, 242, 242, 0.95));
    border: 1px solid rgba(252, 165, 165, 0.5) !important;
    color: #991b1b;
}

.laya-dropzone {
    background: rgba(249, 168, 212, 0.12);
    cursor: pointer;
}

.laya-dropzone:hover,
.laya-dropzone:focus-visible {
    border-color: rgba(219, 39, 119, 0.55) !important;
    outline: none;
}

.laya-admin-thumb img {
    display: block;
}
