:root {
    --cream: #f8f2e8;
    --sand: #e4d7c3;
    --ink: #1f1a17;
    --gold: #b98b49;
    --gold-dark: #8e6631;
    --white: #ffffff;
    --soft: #fffaf4;
    --border: rgba(31, 26, 23, 0.08);
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffdf9 0%, #f6efe6 100%);
    overflow-x: hidden;
}

main {
    overflow-x: clip;
}

.site-header {
    background: rgba(255, 250, 244, 0.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.site-logo,
.admin-logo {
    max-width: 154px;
    width: 100%;
    height: auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-nav .navbar-collapse {
    flex-grow: 1;
}

.site-nav {
    flex: 1 1 auto;
    margin-top: 0 !important;
}

.site-nav .navbar-nav {
    align-items: center;
}

.navbar-toggler {
    border-color: var(--gold);
    padding: 0.45rem 0.7rem;
    background: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link,
.admin-sidebar .nav-link {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.admin-sidebar .nav-link:hover {
    color: var(--gold-dark);
}

.navbar-nav .nav-link {
    padding: 0.45rem 0.2rem;
}

.hero-section,
.inner-hero {
    padding: 5rem 0;
    background:
        radial-gradient(circle at top right, rgba(185, 139, 73, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 242, 232, 0.95));
}

.hero-section h1,
.inner-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.eyebrow,
.section-heading span {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-card,
.content-card,
.filter-card,
.info-panel,
.product-card,
.empty-card,
.map-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(31, 26, 23, 0.08);
}

.hero-card,
.content-card,
.filter-card,
.info-panel,
.empty-card {
    padding: 2rem;
}

.hero-section p,
.content-card p,
.info-panel p,
.site-footer p,
.site-footer div {
    word-break: break-word;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.category-grid span {
    padding: 0.85rem 1rem;
    background: var(--soft);
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.btn-brand {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline-brand {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.btn-outline-brand:hover {
    background: var(--gold);
    color: var(--white);
}

.bg-soft {
    background: rgba(255, 250, 244, 0.8);
}

.section-heading {
    margin-bottom: 2rem;
}

.product-card {
    overflow: hidden;
}

.product-card .p-3,
.content-card,
.info-panel,
.filter-card {
    min-width: 0;
}

.product-card img,
.main-image,
.thumb-grid img {
    width: 100%;
    object-fit: cover;
}

.product-card img {
    aspect-ratio: 1 / 1;
}

.product-code {
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.styled-list {
    padding-left: 1.2rem;
}

.map-card {
    overflow: hidden;
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.site-footer {
    background: #201916;
    color: #f9efe1;
}

.site-footer h3 {
    margin-bottom: 1rem;
}

.site-footer p {
    margin-bottom: 0;
    line-height: 1.65;
}

.footer-hours-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1.5rem;
}

.footer-hours-block {
    display: block;
    line-height: 1.6;
}

.floating-whatsapp {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    background: #25d366;
    color: #fff;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    z-index: 999;
}

.admin-body {
    background: #f4efe8;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: #1f1a17;
    color: #f8f2e8;
    padding: 2rem 1.25rem;
}

.admin-sidebar .nav-link {
    color: #f8f2e8;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-content {
    min-width: 0;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-admin-main-thumb {
    width: 180px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(31, 26, 23, 0.08);
}

.product-admin-gallery-thumb,
.product-admin-list-thumb {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.product-admin-list-thumb {
    width: 64px;
    min-width: 64px;
}

.product-featured-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(185, 139, 73, 0.16);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.8rem;
}

.product-row-featured td {
    background: rgba(185, 139, 73, 0.08);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(248, 242, 232, 0.72);
}

.captcha-question {
    font-weight: 700;
    color: var(--gold-dark);
    white-space: nowrap;
}

.password-toggle-group .form-control {
    border-right: 0;
}

.password-toggle-button {
    min-width: 96px;
    border-color: #ced4da;
    background: #fff;
}

.password-toggle-button:hover,
.password-toggle-button:focus {
    background: var(--soft);
    color: var(--gold-dark);
    border-color: #ced4da;
}

@media (max-width: 991px) {
    .site-header {
        position: static;
    }

    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 1rem;
        padding-bottom: 0.85rem;
    }

    .site-logo {
        max-width: 140px;
    }

    .site-nav {
        width: 100%;
        margin-top: 0.35rem !important;
    }

    .site-nav .navbar-collapse {
        width: 100%;
        margin-top: 0.9rem;
        padding: 0.75rem 0.5rem 0.25rem;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(31, 26, 23, 0.08);
    }

    .site-nav .navbar-toggler {
        margin-left: auto;
        margin-right: auto;
    }

    .site-nav .navbar-nav {
        width: 100%;
        gap: 0.35rem !important;
        align-items: stretch;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid rgba(31, 26, 23, 0.07);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: 0;
    }

    .hero-section,
    .inner-hero {
        padding: 3.5rem 0;
    }

    .hero-card,
    .content-card,
    .filter-card,
    .info-panel,
    .empty-card {
        padding: 1.5rem;
    }

    .map-card,
    .map-card iframe {
        min-height: 320px;
    }

    .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .floating-whatsapp {
        right: 1rem;
        bottom: 1rem;
        padding: 0.9rem 1.05rem;
    }

    .site-footer {
        padding-top: 3rem !important;
        padding-bottom: 5.5rem !important;
    }

    .footer-hours-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 0.98rem;
    }

    .hero-section h1,
    .inner-hero h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.08;
    }

    .eyebrow,
    .section-heading span {
        letter-spacing: 0.14em;
        font-size: 0.72rem;
    }

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

    .btn-brand,
    .btn-outline-brand {
        width: 100%;
    }

    .hero-section .d-flex,
    .product-card .d-flex {
        flex-direction: column;
    }

    .product-card .btn,
    .hero-section .btn,
    .info-panel .btn {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 1.4rem;
    }

    .site-footer .row {
        gap: 1.5rem !important;
    }

    .floating-whatsapp {
        left: 1rem;
        right: 1rem;
        bottom: 0.85rem;
        text-align: center;
        padding: 0.95rem 1rem;
    }
}
