:root {
    --hero-green: #19c56f;
    --hero-green-soft: #dcfbe9;
    --brave-pink: #ef4f9a;
    --ink: #141824;
    --muted: #687281;
    --line: #e4eaf0;
    --canvas: #f4f7f8;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

body.catalog-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #dfe6ea;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.catalog-app {
    position: relative;
    width: min(100vw, 480px);
    min-height: 100vh;
    padding: 0 8px 98px;
    background: var(--canvas);
}

.catalog-search {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    gap: 9px;
    align-items: center;
    margin: 0 -8px 14px;
    padding: 10px 8px 12px;
    border-bottom: 1px solid rgba(228, 234, 240, 0.94);
    background: rgba(244, 247, 248, 0.96);
    backdrop-filter: blur(12px);
}

.catalog-logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    cursor: pointer;
}

.catalog-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    max-width: none;
}

.catalog-search label {
    position: relative;
}

.catalog-search label span {
    position: absolute;
    left: 10px;
    top: 12px;
    color: var(--muted);
    font-size: 18px;
}

.catalog-search input,
.catalog-search select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cdd5dc;
    border-radius: 22px;
    padding: 0 36px;
    font-size: 16px;
    background: #fff;
    font: inherit;
}

.catalog-search select {
    grid-column: 1 / -1;
    border-radius: 8px;
    padding: 0 10px;
}

.catalog-clear {
    display: grid;
    place-items: center;
    color: var(--muted);
    text-decoration: none;
}

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

.catalog-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.catalog-card {
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
}

.catalog-card img {
    width: 100%;
    aspect-ratio: 1 / 0.9;
    object-fit: cover;
    display: block;
}

.catalog-card div {
    padding: 10px 12px 14px;
}

.catalog-card h2 {
    min-height: 48px;
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.catalog-card strong {
    color: var(--brave-pink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

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

.catalog-card.category {
    min-height: 148px;
    display: grid;
    grid-template-columns: 126px 1fr;
    align-items: center;
    border-left: 5px solid var(--hero-green);
}

.catalog-card.category img {
    width: 126px;
    height: 100%;
    min-height: 148px;
    object-fit: cover;
}

.catalog-card.category h2 {
    min-height: 0;
    font-size: 18px;
}

.catalog-card.category p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 15px;
}

.catalog-empty {
    padding: 48px 10px;
    text-align: center;
    color: var(--muted);
}

.catalog-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 10;
    width: min(100vw, 480px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    background: #fff;
}

.catalog-bottom-nav a {
    min-height: 78px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #111;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
}

.catalog-bottom-nav a span {
    font-size: 24px;
}

.catalog-bottom-nav a.active {
    color: var(--brave-pink);
}

.catalog-back {
    position: fixed;
    z-index: 16;
    top: 14px;
    left: max(calc((100vw - 480px) / 2 + 14px), 14px);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 24, 36, 0.56);
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    cursor: pointer;
}

.catalog-back span {
    transform: translateY(-1px);
}

.catalog-back.inline {
    position: sticky;
    top: 10px;
    z-index: 16;
    margin: 10px 0 12px;
    background: #111;
}

.catalog-app.detail {
    padding: 0 0 76px;
}

.detail-slider {
    position: relative;
    overflow: hidden;
    background: #fff;
    touch-action: pan-y;
}

.detail-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.detail-slider-track::-webkit-scrollbar {
    display: none;
}

.detail-slide {
    width: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.detail-hero {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.detail-slide-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.detail-slide-button:active {
    background: var(--brave-pink);
    color: #fff;
    transform: translateY(-50%) scale(0.96);
}

.catalog-back:active {
    background: var(--brave-pink);
    color: #fff;
    transform: scale(0.96);
}

.whatsapp-button:active {
    background: var(--brave-pink);
    transform: translateX(-50%) scale(0.98);
}

.detail-slide-button.prev {
    left: 12px;
}

.detail-slide-button.next {
    right: 12px;
}

.detail-slide-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-width: 46px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(20, 24, 36, 0.68);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    backdrop-filter: blur(8px);
}

.detail-main,
.detail-spec,
.category-heading {
    padding: 16px;
    background: #fff;
}

.detail-price {
    margin: 0 0 10px;
    color: var(--brave-pink);
    font-size: 30px;
    font-weight: 900;
}

.detail-main h1 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 900;
}

.detail-spec {
    margin-top: 10px;
    line-height: 1.65;
}

.detail-spec p {
    margin: 8px 0;
}

.detail-spec p strong {
    font-weight: 900;
}

.detail-spec p span {
    font-weight: 400;
}

.detail-spec.information {
    white-space: normal;
}

.detail-spec h2,
.detail-spec h3,
.category-heading h1 {
    margin: 0 0 14px;
}

.whatsapp-button {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 10;
    width: min(calc(100vw - 20px), 460px);
    min-height: 46px;
    transform: translateX(-50%);
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 8px;
    place-items: center;
    border-radius: 6px;
    background: var(--hero-green);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.catalog-brand-modal {
    width: min(360px, calc(100% - 44px));
    border: 0;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    background: #fff;
    color: #111;
}

.catalog-brand-modal::backdrop {
    background: rgba(0, 0, 0, 0.58);
}

.catalog-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
}

.catalog-modal-logo {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.catalog-modal-logo.fallback {
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brave-pink);
    color: #fff;
    font-weight: 900;
}

.catalog-brand-modal h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

.catalog-social-links {
    display: grid;
    gap: 10px;
}

.catalog-social-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    place-items: center;
    border-radius: 8px;
    padding: 0 14px;
    background: #f7f7f7;
    color: #111;
    text-decoration: none;
    font-weight: 900;
}

.catalog-social-links a > .material-symbols-outlined,
.catalog-social-image {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.catalog-social-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-nav-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 25px;
    line-height: 1;
}
