:root {
    --bg: #fff7f5;
    --bg-2: #fffdfc;
    --card: #ffffff;
    --text: #2d2220;
    --muted: #7d6d69;
    --primary: #c46a76;
    --primary-dark: #9d4754;
    --primary-soft: #fae5e8;
    --gold: #c79b5b;
    --border: #efe0dd;
    --soft: #f8ecea;
    --shadow: 0 18px 45px rgba(68, 42, 40, .09);
    --shadow-soft: 0 10px 28px rgba(68, 42, 40, .06);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(196, 106, 118, .12), transparent 34%),
        linear-gradient(180deg, #fff7f5 0%, #fffdfc 46%, #fff7f5 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: rgba(255, 253, 252, .88);
    border-bottom: 1px solid rgba(239, 224, 221, .8);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.nav-wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: .2px;
}

.brand::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, #fff 0 16%, transparent 18%),
        linear-gradient(135deg, var(--primary), #e8a7ae);
    box-shadow: 0 10px 20px rgba(196, 106, 118, .22);
}

nav {
    display: flex;
    gap: 7px;
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 999px;
}

nav a {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: .18s ease;
}

nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 21px;
    font-weight: 900;
}

/* HERO */
.hero {
    padding: 54px 0 38px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items: stretch;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,241,238,.94)),
        radial-gradient(circle at top right, rgba(196, 106, 118, .16), transparent 42%);
    border: 1px solid rgba(239, 224, 221, .95);
    border-radius: 34px;
    padding: 56px;
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(196, 106, 118, .12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    border: 1px solid rgba(196, 106, 118, .12);
}

.badge::before {
    content: "✨";
    font-size: 13px;
}

.hero h1 {
    position: relative;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -1.4px;
    max-width: 780px;
    z-index: 2;
}

.hero p {
    position: relative;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 650px;
    z-index: 2;
}

.hero-actions {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    padding: 13px 18px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
    min-height: 46px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 25px rgba(157, 71, 84, .22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(157, 71, 84, .28);
}

.btn-outline {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(196, 106, 118, .35);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hero-visual {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    background:
        linear-gradient(160deg, rgba(196,106,118,.22), rgba(255,255,255,.2)),
        radial-gradient(circle at 28% 26%, rgba(255,255,255,.96) 0 11%, transparent 12%),
        radial-gradient(circle at 82% 76%, rgba(255,255,255,.78) 0 15%, transparent 16%),
        linear-gradient(135deg, #ecc9ce, #fff1ec);
    border: 1px solid rgba(239, 224, 221, .95);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.7);
}

.hero-visual h2 {
    position: relative;
    font-size: clamp(30px, 4vw, 44px);
    color: var(--primary-dark);
    margin: 0 0 8px;
    letter-spacing: -.8px;
}

.hero-visual p {
    position: relative;
    color: var(--muted);
    font-weight: 700;
}

/* SECTIONS */
.section {
    padding: 36px 0 62px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-title h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -.7px;
}

.section-title p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* CATEGORY */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 154px;
    box-shadow: var(--shadow-soft);
    transition: .18s ease;
}

.category-card::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 900;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(196, 106, 118, .34);
}

.category-card h3 {
    margin: 0 0 9px;
    font-size: 23px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.65;
    max-width: 85%;
}

/* FILTERS */
.filters {
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: .16s ease;
}

.input:focus,
select:focus,
textarea:focus {
    border-color: rgba(196, 106, 118, .55);
    box-shadow: 0 0 0 4px rgba(196, 106, 118, .10);
}

.filters .input,
.filters select {
    width: 230px;
}

/* PRODUCTS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    position: relative;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(196, 106, 118, .30);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3.35;
    object-fit: cover;
    background: var(--soft);
    display: block;
    transition: .3s ease;
}

.product-card:hover img {
    transform: scale(1.035);
}

.product-body {
    padding: 16px;
}

.product-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    min-height: 46px;
}

.price {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 900;
}

.old-price {
    color: #a09390;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 14px;
}

.product-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    background: #fff8f7;
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 10px;
    padding: 7px 9px;
    border-radius: 999px;
}

.product-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8px;
    margin-top: 14px;
}

.product-actions .btn {
    padding: 10px 11px;
    font-size: 13px;
    min-height: 42px;
}

/* DETAIL */
.detail-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: start;
}

.detail-image {
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-panel {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.8px;
}

.detail-panel p {
    color: var(--muted);
    line-height: 1.75;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 24px 0;
    color: var(--muted);
}

.detail-info div {
    background: #fff8f7;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

/* CONTACT */
.contact-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    max-width: 800px;
    box-shadow: var(--shadow-soft);
}

.contact-card h1 {
    margin-top: 0;
    font-size: clamp(30px, 4vw, 44px);
}

.contact-card p {
    color: var(--muted);
    line-height: 1.7;
}

/* FOOTER */
.site-footer {
    background:
        radial-gradient(circle at top left, rgba(196,106,118,.16), transparent 35%),
        #2e2524;
    color: #fff;
    margin-top: 54px;
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 26px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
}

.footer-grid p {
    color: #ded2cf;
    line-height: 1.7;
}

.footer-grid a {
    display: block;
    color: #fff;
    margin: 11px 0;
    opacity: .88;
}

.footer-grid a:hover {
    opacity: 1;
    color: #ffd8dd;
}

.copyright {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 28px;
    color: #d8cfcd;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    background: #25D366;
    color: #fff;
    padding: 14px 17px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
    transition: .18s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
}

/* ADMIN */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(196,106,118,.12), transparent 28%),
        #f8f3f1;
}

.sidebar {
    background:
        linear-gradient(180deg, #332624, #241b1a);
    color: #fff;
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    margin: 0 0 28px;
    font-size: 22px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff;
    margin-bottom: 8px;
    opacity: .92;
    font-weight: 700;
}

.sidebar a:hover {
    background: rgba(255,255,255,.12);
    opacity: 1;
}

.admin-main {
    padding: 30px;
}

.admin-main h1 {
    margin-top: 0;
    font-size: 34px;
    letter-spacing: -.6px;
}

.admin-card {
    background: rgba(255,255,255,.93);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 13px;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #fff8f7;
}

tr:last-child td {
    border-bottom: 0;
}

.alert {
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-success {
    background: #eaf8ef;
    color: #226b37;
    border: 1px solid #caecd5;
}

.alert-error {
    background: #ffecec;
    color: #a12c2c;
    border: 1px solid #ffd0d0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(196,106,118,.18), transparent 33%),
        var(--bg);
}

.login-box {
    width: min(430px, 100%);
    background: rgba(255,255,255,.94);
    padding: 32px;
    border-radius: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.login-box h1 {
    margin-top: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-card {
        padding: 42px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-grid,
    .footer-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid,
    .detail-info {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 12px;
        right: 12px;
        width: auto;
        background: rgba(255,255,255,.98);
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 13px 14px;
    }

    .hero {
        padding: 28px 0;
    }

    .hero-card {
        padding: 28px;
        border-radius: 26px;
    }

    .hero h1 {
        letter-spacing: -.8px;
    }

    .hero-visual {
        min-height: 230px;
        border-radius: 26px;
    }

    .section {
        padding: 26px 0 44px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        padding: 12px;
    }

    .filters .input,
    .filters select,
    .filters .btn {
        width: 100%;
    }

    .product-card {
        border-radius: 22px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .detail-panel,
    .contact-card {
        padding: 24px;
        border-radius: 24px;
    }

    .floating-whatsapp {
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        font-size: 14px;
    }

    .admin-main {
        padding: 18px;
    }
}
