* {
    box-sizing: border-box;
}

:root {
    --font: Arial, Helvetica, sans-serif;
    --black: #000000;
    --graphite-dark: #121212;
    --graphite: #242424;
    --graphite-light: #333333;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --line: #3d3d3d;
    --soft: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.6);
    --red: #ff5a4d;
    --green: #22b86a;
    --orange: #ff7300;
    --orange-light: #ff9d47;
    --orange-soft: rgba(255, 115, 0, 0.15);
    --orange-deep: #cc5c00;
    --blue: #246bff;
    --panel: #242424;
    --page-bg: #1a1a1a;
    --body-text: #e0e0e0;
    --body-bg: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    --panel-soft: #1f1f1f;
}

body {
    font-family: var(--font);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--body-bg);
    color: var(--body-text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.page {
    width: min(1200px, calc(100vw - 40px));
    min-height: 680px;
    padding: 24px 40px 40px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--page-bg);
    box-shadow: 0 20px 60px var(--shadow);
}

.site-header {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: transparent;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    border: 1px solid transparent;
    padding: 0;
}

.site-header .brand {
    width: 100%;
    position: relative;
}

.site-header .banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 4px;
    margin: 0 auto;
    transform: none;
}

.banner-cta {
    position: absolute;
    top: 18px;
    right: 28px;
    z-index: 2;
    background: var(--orange);
    color: var(--black);
    border: 1px solid var(--orange);
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 18px var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.banner-cta:hover {
    background: var(--orange-light);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px var(--shadow);
}

.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.social-link {
    flex: 1 1 220px;
    max-width: 260px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: 1px solid var(--line);
    padding: 10px 16px;
    text-align: center;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
    border-color: var(--orange);
    color: var(--orange);
}

.social-link .icon-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: var(--panel-soft);
    padding: 2px;
    display: block;
    flex: 0 0 34px;
    transform: none;
}

.social-link .text {
    line-height: 1;
    white-space: nowrap;
}

.social-link.whatsapp {
    background: var(--graphite);
}

.social-link.instagram {
    background: var(--graphite);
}

.social-link.shopee {
    background: var(--graphite);
}

.catalog-layout {
    display: flex;
    gap: 22px;
    align-items: stretch;
    min-height: 420px;
    width: 100%;
    padding: 22px 0;
}

.categories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.category-collapse {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 4px 12px var(--shadow);
    flex: 0 0 auto;
    align-self: center;
}

.category-collapse-icon {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    color: currentColor;
}

.category-collapse:hover {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.15);
}

.categories-panel {
    flex: 0 0 260px;
    width: 260px;
    min-width: 240px;
    max-width: 360px;
    background: linear-gradient(180deg, var(--graphite), var(--graphite-dark));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 18px var(--shadow);
    align-content: stretch;
    align-items: stretch;
}

.category-title {
    color: var(--orange);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
    border-bottom: none;
    margin: 0;
    line-height: 1.3;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 50px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}

.category-item {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
}

.category-item:hover,
.category-item.active {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-soft);
    box-shadow: 0 10px 20px var(--shadow);
}

.category-item[data-category="utilidades-casa"] {
    color: var(--text);
}

.category-item[data-category="infantil"] {
    color: var(--text);
}

.category-item[data-category="sensoriais"] {
    color: var(--text);
}

.category-item[data-category="decoracao"] {
    color: var(--text);
}

.category-item[data-category="religioso"] {
    color: var(--text);
}

.category-item[data-category="nfc"] {
    color: var(--text);
}

.category-item[data-category="chaveiros"] {
    color: var(--text);
}

.category-item[data-category="utilidades-casa"]:hover,
.category-item[data-category="utilidades-casa"].active,
.category-item[data-category="infantil"]:hover,
.category-item[data-category="infantil"].active,
.category-item[data-category="sensoriais"]:hover,
.category-item[data-category="sensoriais"].active,
.category-item[data-category="decoracao"]:hover,
.category-item[data-category="decoracao"].active,
.category-item[data-category="religioso"]:hover,
.category-item[data-category="religioso"].active,
.category-item[data-category="nfc"]:hover,
.category-item[data-category="nfc"].active,
.category-item[data-category="chaveiros"]:hover,
.category-item[data-category="chaveiros"].active {
    border-color: var(--orange);
    background: var(--orange-soft);
    color: var(--orange);
    box-shadow: 0 10px 20px var(--shadow);
}

.products-panel {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 18px var(--shadow);
}

.custom-order-panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--graphite-dark), var(--panel));
}

.custom-order-panel[hidden] {
    display: none;
}

.custom-order-intro {
    color: var(--muted);
    margin: 8px 0 20px;
}

.custom-order-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.custom-order-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.custom-order-form input,
.custom-order-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
    color: var(--text);
    font: inherit;
}

.custom-order-form__full {
    grid-column: 1 / -1;
}

.custom-order-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.order-submit {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--orange);
    color: var(--black);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#order-feedback {
    color: var(--green);
    font-weight: 700;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 16px var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--orange);
}

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    min-height: 0;
}

.product-name {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-description {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: max-height 180ms ease;
}

.product-description.is-expanded {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    color: var(--orange);
    font-weight: 800;
    padding: 2px 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    transition: color 160ms ease, border-color 160ms ease;
}

.read-more::after {
    content: '↓';
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.read-more.is-expanded::after {
    transform: rotate(180deg);
}

.read-more:hover,
.read-more:focus-visible {
    border-bottom-color: currentColor;
    color: var(--orange);
}

.read-more:focus-visible {
    outline: 3px solid rgba(255, 138, 29, 0.2);
    outline-offset: 3px;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.product-price {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

.product-buy {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: var(--orange);
    color: var(--black);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.product-buy--disabled {
    background: var(--graphite-light);
    border: 1px solid var(--line);
    color: var(--muted);
    pointer-events: none;
}

@media screen and (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media screen and (max-width: 900px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .page {
        width: min(100%, 960px);
        padding: 20px;
        min-height: auto;
    }

    .catalog-layout {
        flex-direction: column;
    }

    .categories-panel {
        flex-basis: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 10px;
    }

    .category-item {
        flex: 1 1 160px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .custom-order-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 640px) {
    body {
        padding: 12px;
    }

    .page {
        width: min(100%, 100vw);
        padding: 14px;
        border-radius: 16px;
    }

    .site-header {
        min-height: 100px;
    }

    .site-header .brand {
        min-height: 100px;
    }

    .site-header .brand .banner-frame {
        min-height: 100px;
    }

    .site-header .brand .banner {
        width: min(720px, 100%);
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .social-link {
        flex: 1 1 33%;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .social-link .icon-image {
        width: 34px;
        height: 34px;
        object-fit: contain;
        object-position: center;
    }

    .social-link .text {
        font-size: 0.82rem;
    }

    .catalog-layout {
        flex-direction: column;
        gap: 16px;
    }

    .categories-panel {
        flex-basis: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .category-item {
        flex-basis: calc(50% - 8px);
    }

    .products-top {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrap {
        width: 100%;
        margin-left: 0;
    }

    .search-label {
        display: none;
    }

    .search-input {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .product-card img {
        height: 150px;
    }

    .custom-order-form {
        grid-template-columns: 1fr;
    }
}

.products-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.products-title {
    color: var(--orange);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.search-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-input {
    width: min(280px, 260px);
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--text);
    padding: 10px 14px;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    border-color: var(--orange);
    background: var(--panel-soft);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.15);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    align-content: flex-start;
    padding-top: 16px;
}

.product-card {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 16px var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--orange);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-card .product-content {
    padding: 14px;
}

.product-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.product-card p {
    font-size: 0.84rem;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.45;
}

.product-tag {
    display: inline-block;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-price {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

.product-card a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    background: var(--orange);
    color: var(--black);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

@media screen and (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media screen and (max-width: 900px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }

    .page {
        width: min(100%, 960px);
        padding: 20px;
        min-height: auto;
    }

    .catalog-layout {
        flex-direction: column;
    }

    .categories-panel {
        flex-basis: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 10px;
    }

    .category-item {
        flex: 1 1 160px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media screen and (max-width: 640px) {
    body {
        padding: 12px;
    }

    .page {
        width: min(100%, 100vw);
        padding: 14px;
        border-radius: 16px;
    }

    .site-header {
        min-height: 100px;
    }

    .site-header .brand {
        min-height: 100px;
    }

    .site-header .brand .banner-frame {
        min-height: 100px;
    }

    .site-header .brand .banner {
        width: min(720px, 100%);
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .social-link {
        flex: 1 1 33%;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .social-link .icon-image {
        width: 34px;
        height: 34px;
        object-fit: contain;
        object-position: center;
    }

    .social-link .text {
        font-size: 0.82rem;
    }

    .catalog-layout {
        flex-direction: column;
        gap: 16px;
    }

    .categories-panel {
        flex-basis: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .category-item {
        flex-basis: calc(50% - 8px);
    }

    .products-top {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrap {
        width: 100%;
        margin-left: 0;
    }

    .search-label {
        display: none;
    }

    .search-input {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .product-card img {
        height: 150px;
    }
}
