@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,500;0,600;0,700;1,600;1,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f4f6f4;
    --bg-strong: #0f1216;
    --bg-soft: #e9ece7;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-dark: rgba(12, 15, 19, 0.88);
    --border: rgba(15, 18, 22, 0.1);
    --border-strong: rgba(15, 18, 22, 0.16);
    --text: #111418;
    --text-soft: #5f666e;
    --text-inverse: #f7faf5;
    --accent: #8ccc39;
    --accent-deep: #5b9f27;
    --accent-soft: rgba(140, 204, 57, 0.16);
    --danger: #bc3838;
    --danger-soft: rgba(188, 56, 56, 0.12);
    --shadow: 0 24px 60px rgba(15, 18, 22, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(140, 204, 57, 0.18), transparent 22%),
        linear-gradient(180deg, #f8faf7 0%, #edf1eb 54%, #f3f5f2 100%);
}

img {
    display: block;
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(91, 159, 39, 0.72);
    box-shadow: 0 0 0 4px rgba(140, 204, 57, 0.14);
    background: #ffffff;
}

textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.site-shell,
.admin-shell {
    position: relative;
}

.page-shell,
.admin-shell {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
    padding-bottom: 4rem;
}

.site-shell--brand::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 46rem;
    background:
        linear-gradient(180deg, rgba(15, 18, 22, 0.98) 0%, rgba(15, 18, 22, 0.9) 62%, transparent 100%),
        radial-gradient(circle at top right, rgba(140, 204, 57, 0.24), transparent 32%);
    z-index: -1;
}

.single-state {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.status-card,
.error-card,
.auth-card,
.panel-card,
.product-card,
.metric-card,
.feature-band,
.brand-panel,
.detail-modal__card,
.catalog-section,
.empty-state {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.status-card,
.error-card,
.auth-card,
.empty-state {
    width: min(560px, 100%);
    padding: 2rem;
}

.error-card,
.empty-state,
.auth-card {
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.4rem;
    font-family: 'Archivo', sans-serif;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero {
    padding: 1.5rem 1rem 2rem;
}

.hero-frame {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

.hero-frame--logo-only {
    grid-template-columns: 1fr;
}

.chip-row,
.badge-row,
.hero-actions,
.thumb-row,
.admin-topbar__actions,
.check-grid,
.gallery-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip,
.badge,
.state-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
    padding: 0.08rem 0.12rem 0.12rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 240, 0.93));
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.site-header__brand {
    display: grid;
    gap: 0.03rem;
    width: max-content;
    max-width: 100%;
    justify-items: center;
    text-align: center;
}

.site-header__logo {
    width: clamp(330px, 50vw, 600px);
    max-width: 100%;
    height: auto;
    margin: 0;
    display: block;
}

.site-header__tag {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-size: 0.76rem;
    font-style: italic;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(17, 20, 24, 0.62);
}

.hero-stage {
    position: relative;
    min-height: 34rem;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(17, 22, 26, 0.98), rgba(41, 48, 54, 0.88));
    box-shadow: 0 32px 74px rgba(5, 9, 14, 0.34);
}

.hero-media,
.hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    object-fit: contain;
    object-position: center center;
}

.hero-fallback {
    background:
        radial-gradient(circle at top right, rgba(140, 204, 57, 0.28), transparent 24%),
        linear-gradient(135deg, #1a2025 0%, #2f363c 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 14, 18, 0.86) 0%, rgba(11, 14, 18, 0.42) 48%, rgba(11, 14, 18, 0.16) 100%),
        linear-gradient(180deg, transparent 0%, rgba(11, 14, 18, 0.35) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    color: var(--text-inverse);
}

.hero-stage__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 1.9rem);
}

.hero-copy--brand {
    padding: 0 0 clamp(1rem, 2vw, 1.6rem);
}

.hero-copy h1,
.section-head h2,
.section-head h3,
.panel-card h2,
.panel-card h3,
.auth-card h1,
.detail-modal__body h2,
.error-card h1,
.empty-state h3 {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.7rem);
    max-width: 13ch;
}

.hero-copy p {
    margin: 1rem 0 0;
    max-width: 35rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(247, 250, 245, 0.82);
}

.slider-dots {
    position: absolute;
    right: 1.6rem;
    bottom: 1.4rem;
    z-index: 2;
    display: flex;
    gap: 0.65rem;
}

.slider-dot {
    width: 0.85rem;
    height: 0.85rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.slider-dot.is-active {
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(140, 204, 57, 0.18);
}

.page-shell {
    margin-top: 1rem;
    display: grid;
    gap: 1.8rem;
}

.section-head,
.panel-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

.section-head {
    padding-inline: 0.2rem;
}

.section-head p,
.panel-card__head p,
.catalog-section > .section-head p,
.helper-text,
.product-card__summary,
.detail-copy,
.caption-note,
.auth-card > p,
.list-item span,
.inline-alert,
.preview-box p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.section-head--compact h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.chip-row {
    gap: 0.65rem;
}

.chip {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 0.72rem 1rem;
}

.chip span {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.chip--small {
    padding: 0.58rem 0.84rem;
    font-size: 0.8rem;
}

.chip.is-active,
.secondary-button.is-active,
.badge-accent,
.state-pill.is-accent {
    color: #103109;
    background: linear-gradient(135deg, rgba(140, 204, 57, 0.28), rgba(140, 204, 57, 0.68));
    border-color: rgba(91, 159, 39, 0.48);
}

.feature-band,
.catalog-section,
.panel-card {
    padding: 1.4rem;
}

.feature-grid,
.catalog-grid,
.metric-grid,
.admin-grid,
.gallery-grid,
.field-grid {
    display: grid;
    gap: 1rem;
}

.feature-grid,
.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px));
    justify-content: start;
}

.catalog-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.product-card {
    overflow: hidden;
    padding: 0;
    min-width: 0;
}

.catalog-grid--single .product-card {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 28, 33, 0.82), rgba(83, 92, 100, 0.66));
}

.catalog-grid--single .product-card__image-wrap {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
}

.product-card__image,
.detail-modal__media,
.thumb-button img,
.gallery-item img,
.list-item--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-row {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
}

.badge,
.state-pill {
    padding: 0.42rem 0.74rem;
    border: 1px solid rgba(17, 20, 24, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-soft);
}

.product-card__body {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.catalog-grid--single .product-card__body {
    align-content: start;
    padding: 1.4rem;
}

.product-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.product-card__header h3,
.metric-card strong {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-card__price {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--accent-deep);
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.catalog-grid--single .product-card__footer {
    margin-top: auto;
}

.primary-button,
.secondary-button,
.ghost-button,
.upload-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.upload-chip:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: #112009;
    background: linear-gradient(135deg, #9ad548 0%, #73ba2e 100%);
    box-shadow: 0 18px 28px rgba(115, 186, 46, 0.26);
}

.primary-button--small,
.secondary-button--small,
.ghost-button--tight {
    min-height: 2.4rem;
    padding: 0.62rem 0.98rem;
    font-size: 0.82rem;
}

.secondary-button {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.secondary-button--light {
    color: var(--text);
    background: rgba(17, 20, 24, 0.06);
    border-color: rgba(17, 20, 24, 0.1);
}

.ghost-button,
.upload-chip {
    color: var(--text);
    background: rgba(17, 20, 24, 0.04);
    border-color: rgba(17, 20, 24, 0.08);
}

.upload-chip {
    position: relative;
    overflow: hidden;
}

.upload-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.catalog-shell,
.feature-band {
    display: grid;
    gap: 1.2rem;
}

.catalog-section {
    display: grid;
    gap: 1rem;
}

.section-head--category h3 {
    font-size: 1.15rem;
}

.floating-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    color: #102008;
    background: linear-gradient(135deg, #9ad548 0%, #72b930 100%);
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(115, 186, 46, 0.34);
}

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(11, 14, 18, 0.72);
    backdrop-filter: blur(10px);
}

.detail-modal__card {
    width: min(1080px, 100%);
    padding: 1rem;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(17, 20, 24, 0.06);
}

.detail-modal__grid {
    display: grid;
    gap: 1.2rem;
}

.detail-modal__grid--gallery {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.detail-media-column {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.detail-modal__media {
    display: block;
    aspect-ratio: 4 / 3;
    min-height: clamp(16rem, 36vw, 24rem);
    max-height: min(70vh, 30rem);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.thumb-row {
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.thumb-button {
    flex: 0 0 5.6rem;
    height: 4.6rem;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
}

.thumb-button.is-active {
    border-color: var(--accent);
}

.detail-modal__body {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1rem 0.6rem 0.6rem 0.2rem;
}

.detail-copy,
.caption-note {
    font-size: 0.98rem;
}

.detail-specs {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
    line-height: 1.75;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    max-width: 480px;
    padding: 2rem;
}

.stack-form,
.gallery-editor,
.preview-box {
    display: grid;
    gap: 0.95rem;
}

.stack-form label,
.gallery-item label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.inline-alert,
.feedback-strip {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.inline-alert--error,
.feedback-strip.is-error {
    color: #732828;
    background: var(--danger-soft);
    border-color: rgba(188, 56, 56, 0.16);
}

.feedback-strip.is-ok {
    color: #1f4511;
    background: var(--accent-soft);
    border-color: rgba(91, 159, 39, 0.16);
}

.admin-shell {
    padding-top: 1.4rem;
    display: grid;
    gap: 1.4rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

.admin-topbar h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin: 0;
    font-family: 'Archivo', sans-serif;
}

.admin-topbar p {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    padding: 1.2rem;
}

.metric-card span {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-soft);
}

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

.admin-grid--catalog {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.admin-grid--bot {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.panel-card {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.panel-card--wide {
    min-width: 0;
}

.panel-card h2 {
    font-size: 1.45rem;
}

.panel-card h3 {
    font-size: 1.05rem;
}

.list-stack,
.table-lite {
    display: grid;
    gap: 0.7rem;
}

.list-stack {
    max-height: 24rem;
    overflow: auto;
    padding-right: 0.1rem;
}

.list-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.75);
}

.list-item strong {
    display: block;
    margin-bottom: 0.12rem;
}

.list-item--media {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
}

.list-item--media img {
    width: 72px;
    height: 64px;
    border-radius: 14px;
    background: var(--bg-soft);
}

.state-pill.is-active {
    color: #1f4511;
    background: var(--accent-soft);
    border-color: rgba(91, 159, 39, 0.16);
}

.field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

.check-row input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.check-row--danger {
    color: var(--danger);
}

.gallery-editor {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(17, 20, 24, 0.03);
    border: 1px solid var(--border);
}

.panel-card__head--nested {
    align-items: center;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
}

.gallery-item.is-muted {
    opacity: 0.58;
}

.gallery-item img {
    height: clamp(10rem, 24vw, 13rem);
    border-radius: 16px;
    background: var(--bg-soft);
}

.divider {
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--border);
    margin: 0.25rem 0;
}

.preview-box {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(17, 20, 24, 0.04);
    border: 1px solid var(--border);
}

@media (max-width: 1120px) {
    .hero-frame,
    .admin-grid--catalog,
    .admin-grid--bot,
    .detail-modal__grid--gallery {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 820px) {
    .hero {
        padding-inline: 0.75rem;
    }

    .page-shell,
    .admin-shell {
        width: min(var(--max-width), calc(100% - 1.2rem));
    }

    .hero-stage {
        min-height: 30rem;
    }

    .site-header {
        padding: 0.08rem 0.12rem 0.12rem;
    }

    .site-header__logo {
        width: clamp(290px, 70vw, 500px);
    }

    .site-header__tag {
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    .hero-stage__content {
        gap: 1.35rem;
        padding: 1.1rem;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .section-head,
    .panel-card__head,
    .admin-topbar,
    .product-card__header,
    .product-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-grid--two,
    .brand-panel__stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .feature-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid--single .product-card {
        grid-template-columns: 1fr;
    }

    .catalog-grid--single .product-card__image-wrap {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 620px) {
    .page-shell,
    .admin-shell {
        width: min(var(--max-width), calc(100% - 1rem));
    }

    .brand-panel,
    .feature-band,
    .catalog-section,
    .panel-card,
    .detail-modal__card,
    .auth-card,
    .status-card,
    .error-card,
    .empty-state {
        padding: 1rem;
        border-radius: 22px;
    }

    .hero-stage {
        min-height: 26rem;
        border-radius: 24px;
    }

    .site-header {
        padding: 0.08rem 0.12rem 0.12rem;
        border-radius: 10px;
    }

    .site-header__logo {
        width: clamp(250px, 88vw, 390px);
    }

    .site-header__tag {
        font-size: 0.68rem;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

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

    .list-item--media {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .list-item--media .state-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .thumb-button {
        flex-basis: 4.7rem;
        height: 4rem;
    }

    .floating-whatsapp {
        right: 0.75rem;
        left: 0.75rem;
        text-align: center;
    }
}