:root {
    --ink: #17354b;
    --muted: #647b8d;
    --blue: #2f91cf;
    --blue-dark: #166592;
    --pale: #eff9ff;
    --pale-strong: #dff2fd;
    --line: #d9eaf4;
    --white: #fff;
    --green: #21b765;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fcff;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body.dialog-open {
    overflow: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

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

.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;
}

.container {
    width: min(100% - 24px, 1440px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid rgba(217, 234, 244, 0.9);
    background: rgba(248, 252, 255, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.42rem;
    font-weight: 600;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-whatsapp {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
}

.header-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.catalog-intro {
    padding: 28px 0 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(109, 190, 235, 0.22), transparent 34%),
        linear-gradient(135deg, #f7fcff, #eaf7ff);
}

.intro-inner {
    display: grid;
    gap: 12px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--blue-dark);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.15rem, 10vw, 4.3rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1 em {
    color: var(--blue);
    font-weight: inherit;
}

.intro-inner > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.catalog {
    padding: 16px 0 52px;
}

.category-scroll {
    display: flex;
    margin-inline: -12px;
    padding: 2px 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
}

.category-scroll::-webkit-scrollbar,
.weight-filters::-webkit-scrollbar {
    display: none;
}

.category-chip,
.weight-chip,
.order-toggle {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.category-chip {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-chip.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.weight-filters {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
}

.weight-chip {
    min-height: 35px;
    padding: 7px 10px;
    border-radius: 9px;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
}

.weight-chip.is-active {
    border-color: #9dcce8;
    background: var(--pale-strong);
    color: var(--blue-dark);
}

.order-toggle {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
}

.order-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.design-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 14px;
    gap: 14px;
}

.design-card {
    min-width: 0;
}

.design-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(40, 105, 145, 0.07);
    cursor: zoom-in;
}

.design-open img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--white);
    object-fit: contain;
    transition: transform 180ms ease;
}

.design-open:active img {
    transform: scale(0.985);
}

.design-code {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(21, 51, 72, 0.77);
    color: var(--white);
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.catalog-loader {
    display: none;
    padding: 24px 0 8px;
    color: var(--muted);
    text-align: center;
}

.catalog-loader.is-visible {
    display: block;
}

.catalog-loader span {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border: 3px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.catalog-loader p {
    margin: 7px 0 0;
    font-size: 0.7rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-sentinel {
    width: 100%;
    height: 1px;
}

.empty-state {
    padding: 54px 20px;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--pale);
}

.footer-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    color: var(--muted);
    font-size: 0.7rem;
    gap: 10px;
}

.footer-inner strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    margin-left: auto;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 13px;
}

.footer-links a {
    text-underline-offset: 3px;
}

.info-main {
    min-height: calc(100svh - 140px);
    padding: 38px 0 64px;
}

.info-card {
    width: min(100%, 780px);
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 38px rgba(40, 105, 145, 0.08);
}

.info-card h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 9vw, 3.5rem);
}

.info-card h2 {
    margin: 27px 0 8px;
    font-family: var(--serif);
    font-size: 1.3rem;
}

.info-card p,
.info-card li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-card ul {
    padding-left: 20px;
}

.info-card a {
    color: var(--blue-dark);
    font-weight: 700;
}

.info-contact {
    display: inline-flex;
    min-height: 46px;
    margin-top: 8px;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white) !important;
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    z-index: 25;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: grid;
    width: 54px;
    height: 54px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 10px 25px rgba(21, 120, 68, 0.28);
    color: var(--white);
    place-items: center;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.design-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: rgba(7, 22, 32, 0.96);
    color: var(--white);
}

.design-dialog::backdrop {
    background: rgba(7, 22, 32, 0.78);
}

.dialog-shell {
    display: grid;
    height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
}

.dialog-close {
    position: absolute;
    z-index: 2;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(9, 28, 40, 0.76);
    color: var(--white);
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    place-items: center;
}

.dialog-image-wrap {
    display: grid;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    place-items: center;
}

.dialog-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dialog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dialog-bar strong,
.dialog-bar span {
    display: block;
}

.dialog-bar strong {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.dialog-bar span {
    margin-top: 2px;
    color: #bcd0dc;
    font-size: 0.68rem;
}

.dialog-bar i {
    font-style: normal;
}

.dialog-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.dialog-cta span {
    margin: 0;
    color: inherit;
    font-size: 0.95rem;
}

@media (min-width: 680px) {
    .container {
        width: min(100% - 40px, 1440px);
    }

    .catalog-intro {
        padding: 42px 0 30px;
    }

    .intro-inner {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: end;
    }

    .design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog {
        padding-top: 22px;
    }

    .category-scroll {
        margin-inline: 0;
        padding-inline: 0;
    }
}

@media (min-width: 1020px) {
    .header-inner {
        min-height: 68px;
    }

    .catalog-intro {
        padding: 56px 0 38px;
    }

    .intro-inner > p {
        font-size: 0.95rem;
    }

    .design-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .design-open {
        border-radius: 16px;
    }

    .design-open:hover img {
        transform: scale(1.025);
    }

    .design-dialog {
        width: min(94vw, 1120px);
        height: min(92vh, 900px);
        margin: auto;
        border-radius: 20px;
    }

    .dialog-shell {
        height: 100%;
        padding: 16px;
    }

    .dialog-image-wrap {
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.01ms !important;
    }
}
