:root {
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-soft: #fff5f5;
    --surface-muted: #f8fafc;
    --border: #e5e7eb;
    --text: #101828;
    --muted: #667085;
    --accent: #d61f26;
    --accent-dark: #b7181e;
    --accent-soft: #fff0f0;
    --success: #0f9f63;
    --warning: #f59e0b;
    --danger: #d61f26;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 22px 50px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Titillium Web', 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(214, 31, 38, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
}

body.admin-body {
    background: #eef2f7;
}

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

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

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.promo-bar {
    background: #111827;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.promo-inner,
.header-wrap,
.hero-search,
.hero-actions,
.promo-links,
.site-nav,
.header-actions,
.social-list,
.product-card-topline,
.tag-list,
.product-card-actions,
.hero-feature-actions,
.section-heading.inline-heading,
.footer-bottom,
.footer-mini-links,
.stats-row,
.flash-inner,
.project-links,
.table-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.promo-inner {
    justify-content: space-between;
    min-height: 48px;
    padding: 0.55rem 0;
}

.promo-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.promo-copy strong {
    color: #ffffff;
    font-weight: 700;
}

.promo-links {
    justify-content: flex-end;
}

.promo-links a {
    color: rgba(255, 255, 255, 0.88);
}

.promo-close,
.flash-close,
.nav-toggle {
    border: 0;
    background: transparent;
    color: inherit;
}

.promo-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-wrap {
    justify-content: space-between;
    min-height: 88px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #ff5c62 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.brand-copy strong {
    font-size: 1.2rem;
    line-height: 1.1;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.site-nav {
    gap: 1.2rem;
}

.site-nav a,
.admin-nav a,
.header-link {
    color: #344054;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.admin-nav a:hover,
.admin-nav a.active,
.header-link:hover {
    color: var(--accent);
}

.header-actions {
    justify-content: flex-end;
}

.btn,
.header-cta,
.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.header-cta:hover,
.header-link:hover {
    transform: translateY(-1px);
}

.btn-primary,
.header-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #ef3d44 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(214, 31, 38, 0.22);
}

.btn-secondary,
.header-link {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    padding: 0.2rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--text);
}

.catalog-hero,
.page-hero {
    padding: 2rem 0 3rem;
}

.catalog-hero {
    padding-top: 2.2rem;
}

.hero-shell,
.hero-stage,
.page-hero-grid,
.split-section,
.catalog-layout,
.detail-layout,
.card-grid.three,
.card-grid.two,
.footer-grid,
.hero-panel,
.form-grid.two,
.admin-grid,
.admin-shell {
    display: grid;
    gap: 1.5rem;
}

.hero-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.category-panel,
.hero-stage,
.hero-feature-card,
.feature-card,
.product-showcase-card,
.testimonial-card,
.blog-card,
.content-box,
.stack-card,
.sidebar-card,
.detail-visual-card,
.cta-box,
.stats-card,
.mini-stat-card,
.page-hero-summary article,
.flash,
.admin-sidebar,
.admin-main,
.login-box,
.admin-topbar,
.metric-card,
.table-wrap,
.manage-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.category-panel,
.hero-stage,
.feature-card,
.product-showcase-card,
.testimonial-card,
.blog-card,
.content-box,
.stack-card,
.sidebar-card,
.detail-visual-card,
.cta-box,
.stats-card,
.flash,
.admin-sidebar,
.login-box,
.table-wrap,
.manage-form-card {
    border-radius: var(--radius);
}

.category-panel,
.feature-card,
.testimonial-card,
.blog-card,
.content-box,
.stack-card,
.sidebar-card,
.stats-card,
.detail-visual-card,
.login-box,
.manage-form-card {
    padding: 1.5rem;
}

.panel-heading,
.section-heading,
.hero-copy,
.hero-feature-content,
.product-card-content,
.stacked-cards,
.catalog-main,
.detail-main,
.detail-sidebar,
.footer-brand-block {
    display: grid;
    gap: 1rem;
}

.panel-heading h2,
.section-heading h2,
.page-hero h1,
.catalog-hero h1,
.cta-box h2,
.content-box h2,
.stack-card h3,
.feature-card h3,
.product-showcase-card h3,
.testimonial-card h3,
.blog-card h3,
.sidebar-card h2,
.hero-feature-content h3,
.detail-sidebar h2 {
    margin: 0;
    line-height: 1.08;
}

.catalog-hero h1,
.page-hero h1,
.section-heading h2,
.cta-box h2 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    letter-spacing: -0.03em;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.panel-heading h2,
.feature-card h3,
.product-showcase-card h3,
.testimonial-card h3,
.blog-card h3,
.sidebar-card h2,
.hero-feature-content h3,
.detail-sidebar h2,
.stack-card h3,
.content-box h2 {
    font-size: 1.35rem;
}

.hero-stage {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
    align-items: stretch;
    padding: 1.6rem;
    background:
        linear-gradient(135deg, rgba(214, 31, 38, 0.08), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at top right, rgba(255, 110, 110, 0.2), transparent 35%),
        #ffffff;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.content-box p,
.feature-card p,
.product-showcase-card p,
.testimonial-card p,
.blog-card p,
.stack-card p,
.cta-box p,
.hero-feature-content p,
.empty-state,
.page-hero-summary span,
.metric-card span,
.mini-stat-card span,
.product-card-meta,
.brand-copy small,
.footer-links,
.footer-brand-block p,
.admin-topbar p,
.admin-list,
.form-card label span,
.rich-content {
    color: var(--muted);
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(214, 31, 38, 0.12);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.category-list,
.sidebar-link-list,
.footer-links {
    display: grid;
    gap: 0.7rem;
}

.category-link,
.sidebar-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.category-link:hover,
.sidebar-link-list a:hover,
.sidebar-link-list a.is-active {
    transform: translateX(2px);
    color: var(--accent);
    border-color: rgba(214, 31, 38, 0.3);
}

.category-link strong {
    color: var(--accent);
}

.hero-search input,
.sidebar-card input,
.form-card input,
.form-card textarea,
.login-box input,
.manage-fields input,
.manage-fields textarea,
.manage-fields select {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus,
.sidebar-card input:focus,
.form-card input:focus,
.form-card textarea:focus,
.login-box input:focus,
.manage-fields input:focus,
.manage-fields textarea:focus,
.manage-fields select:focus {
    border-color: rgba(214, 31, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(214, 31, 38, 0.08);
}

.form-card textarea,
.manage-fields textarea {
    min-height: 160px;
    resize: vertical;
}

.hero-feature-card {
    overflow: hidden;
}

.hero-feature-media,
.product-thumb,
.detail-visual-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(214, 31, 38, 0.06)),
        #fff8f8;
    border: 1px solid rgba(214, 31, 38, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.hero-feature-media {
    min-height: 220px;
}

.product-thumb {
    min-height: 230px;
}

.product-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.detail-image {
    max-height: 560px;
}

.mini-stats,
.page-hero-summary,
.stats-row {
    display: grid;
    gap: 1rem;
}

.mini-stats,
.page-hero-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-stat-card,
.page-hero-summary article {
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.mini-stat-card strong,
.page-hero-summary strong,
.stats-card strong,
.metric-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.section-block {
    padding: 1.2rem 0 4rem;
}

.alt-section {
    background: linear-gradient(180deg, rgba(214, 31, 38, 0.03), rgba(255, 255, 255, 0));
}

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

.inline-heading {
    align-items: end;
    justify-content: space-between;
}

.inline-heading.compact {
    margin-bottom: 1rem;
}

.card-grid.three,
.product-grid,
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.card-grid.three.service-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.two,
.split-section,
.detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.product-showcase-card,
.testimonial-card,
.blog-card {
    height: 100%;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(214, 31, 38, 0.12), rgba(214, 31, 38, 0.22));
    color: var(--accent);
    font-weight: 700;
}

.product-showcase-card {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.product-card-topline {
    justify-content: space-between;
}

.product-badge,
.blog-date,
.tag-list span,
.social-list a,
.project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid rgba(214, 31, 38, 0.1);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-card-actions {
    margin-top: auto;
}

.product-card-actions .btn,
.hero-feature-actions .btn,
.stacked-buttons .btn {
    flex: 1 1 180px;
}

.filter-chip-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.filter-chip {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.catalog-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
}

.catalog-main,
.detail-main {
    min-width: 0;
}

.detail-layout {
    grid-template-columns: minmax(0, 1.25fr) 360px;
    align-items: start;
}

.sticky-card {
    position: sticky;
    top: 120px;
}

.stacked-buttons {
    display: grid;
    gap: 0.8rem;
}

.product-detail-summary-card {
    padding: 1.8rem;
    gap: 1.2rem;
}

.product-detail-summary-card .product-badge {
    margin-bottom: 0.15rem;
}

.product-detail-summary-card h2 {
    margin: 0;
    line-height: 1.24;
    font-size: 2rem;
}

.product-detail-summary-text {
    margin: 0;
    line-height: 1.9;
    font-size: 1.02rem;
    color: var(--muted);
}

.product-detail-tags {
    gap: 0.9rem;
    margin-top: 0.15rem;
}

.product-detail-tags span {
    min-height: 40px;
    padding: 0.5rem 0.95rem;
}

.product-detail-actions {
    gap: 1rem;
    margin-top: 0.35rem;
}

.product-detail-actions .btn {
    min-height: 54px;
}

.cta-box {
    justify-content: space-between;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(214, 31, 38, 0.95), rgba(239, 61, 68, 0.9)),
        #d61f26;
    color: #ffffff;
}

.cta-box .eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.cta-box p,
.cta-box h2 {
    color: #ffffff;
}

.cta-box .btn-primary {
    background: #ffffff;
    color: var(--accent);
    box-shadow: none;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 3.2rem;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
    padding-bottom: 2rem;
}

.footer-brand-block {
    min-width: 0;
}

.footer-social-list {
    gap: 0.75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.footer-social-link:hover {
    background: rgba(214, 31, 38, 0.18);
    border-color: rgba(214, 31, 38, 0.34);
}

.footer-social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #ef3d44 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-social-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}

.footer-social-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-footer .brand-copy small,
.site-footer p,
.footer-links,
.site-footer .social-list a,
.footer-mini-links {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h4 {
    margin: 0 0 1rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    justify-content: space-between;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mini-links span {
    padding: 0.2rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-mini-links span:last-child {
    border-right: 0;
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.25);
}

.whatsapp-float-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.page-hero {
    background:
        linear-gradient(180deg, rgba(214, 31, 38, 0.06), rgba(255, 255, 255, 0)),
        #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-hero-grid {
    grid-template-columns: minmax(0, 1.25fr) 360px;
    align-items: center;
}

.content-image-wrap,
.reference-image-wrap {
    overflow: hidden;
    min-height: 210px;
    border-radius: 20px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.reference-image-wrap {
    min-height: 120px;
    padding: 1rem;
}

.content-image,
.reference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-image {
    object-fit: contain;
}

.testimonial-card blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(214, 31, 38, 0.25);
    color: #475467;
}

.empty-state {
    margin: 1rem 0 0;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px dashed rgba(214, 31, 38, 0.28);
}

.form-card,
.manage-form-card {
    display: grid;
    gap: 1rem;
}

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

.form-card label,
.manage-fields label {
    display: grid;
    gap: 0.45rem;
}

.form-card button {
    width: fit-content;
}

.flash {
    margin: 1rem auto 0;
    width: min(var(--container), calc(100% - 2rem));
}

.flash-inner {
    justify-content: space-between;
    padding: 1rem 1.2rem;
}

.flash-success {
    border-color: rgba(15, 159, 99, 0.2);
    background: #f0fdf4;
}

.flash-error {
    border-color: rgba(214, 31, 38, 0.18);
    background: #fff5f5;
}

.flash-close {
    font-size: 1.1rem;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 0;
}

.rich-content p:last-child {
    margin-bottom: 0;
}

.stats-row {
    justify-content: space-between;
}

.stats-card {
    flex: 1 1 220px;
}

.admin-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 1.5rem;
    border-right: 1px solid #d6dae1;
}

.admin-brand {
    margin-bottom: 2rem;
}

.admin-nav {
    display: grid;
    gap: 0.4rem;
}

.admin-nav a {
    padding: 0.9rem 1rem;
    border-radius: 14px;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--accent-soft);
}

.admin-main {
    padding: 1.5rem;
}

.admin-topbar {
    padding: 1.5rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.admin-topbar h1 {
    margin: 0;
}

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

.metric-card {
    border-radius: 20px;
    padding: 1.25rem;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.95rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--text);
}

.admin-table td {
    color: var(--muted);
}

.manage-fields,
.stacked-cards,
.admin-list {
    display: grid;
    gap: 1rem;
}

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

.table-actions a,
.table-actions button {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.table-actions button {
    color: var(--text);
}

.login-box {
    width: min(480px, calc(100% - 2rem));
    margin: 5rem auto;
}

@media (max-width: 1180px) {
    .hero-shell,
    .catalog-layout,
    .page-hero-grid,
    .detail-layout,
    .admin-shell,
    .admin-grid,
    .hero-stage,
    .card-grid.three,
    .split-section {
        grid-template-columns: 1fr;
    }

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

    .sticky-card {
        position: static;
    }

    .card-grid.three.service-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-panel.is-open,
    .site-nav,
    .header-actions {
        display: flex;
    }

    .site-nav,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions .btn,
    .header-actions .header-link,
    .product-card-actions .btn,
    .hero-feature-actions .btn {
        width: 100%;
    }

    .card-grid.two,
    .form-grid.two,
    .mini-stats,
    .page-hero-summary,
    .product-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .card-grid.three.service-grid-four {
        grid-template-columns: 1fr;
    }

    .footer-social-text {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 1.2rem));
    }

    .catalog-hero,
    .page-hero,
    .section-block {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }

    .promo-inner,
    .header-wrap,
    .inline-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-stage,
    .feature-card,
    .product-showcase-card,
    .testimonial-card,
    .blog-card,
    .content-box,
    .stack-card,
    .sidebar-card,
    .category-panel,
    .detail-visual-card,
    .cta-box,
    .admin-sidebar,
    .admin-topbar,
    .admin-main,
    .metric-card,
    .table-wrap {
        padding: 1.2rem;
    }

    .catalog-hero h1,
    .page-hero h1,
    .section-heading h2,
    .cta-box h2 {
        font-size: 2rem;
    }

    .whatsapp-float-text {
        display: none;
    }

.whatsapp-float {
        padding: 0.85rem;
    }
}

.market-hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background:
        linear-gradient(rgba(8, 15, 31, 0.52), rgba(8, 15, 31, 0.52)),
        url('/assets/images/hero-portfolio-bg.png') center center / cover no-repeat;
    color: #ffffff;
}

.market-hero-inner-page {
    padding: 4.5rem 0 3.8rem;
}

.market-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22));
}

.market-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 1020px;
}

.light-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.market-hero-kicker,
.market-hero-copy,
.market-hero-member {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.market-hero-kicker {
    font-size: 1.4rem;
    font-weight: 600;
}

.market-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.market-hero-copy {
    max-width: 860px;
    font-size: 1.05rem;
}

.market-search {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 1rem;
    margin-top: 0.8rem;
}

.market-search input {
    min-height: 50px;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: var(--text);
}

.market-search-button {
    min-height: 50px;
    border-radius: 0;
    box-shadow: none;
}

.market-category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.4rem;
}

.market-category-pill {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
}

.compact-products-section {
    background: #efefef;
}

.products-list-heading {
    margin-bottom: 0.85rem;
}

.compact-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.catalog-product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.catalog-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 0.65rem;
    border: 10px solid #f8f8f8;
    background: #ffffff;
}

.catalog-product-thumb .product-image {
    max-height: 235px;
}

.catalog-product-body {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem 0.75rem 0.75rem;
}

.catalog-product-body h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
}

.catalog-product-body h3 a {
    color: #004a8f;
}

.catalog-product-stack,
.catalog-product-category {
    margin: 0;
    font-size: 0.94rem;
    color: #6a6a6a;
    line-height: 1.4;
}

.catalog-product-category strong {
    color: #3d3d3d;
    font-weight: 600;
}

.catalog-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding-top: 0.8rem;
    border-top: 1px solid #ededed;
}

.catalog-product-stat {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    background: #27b05f;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.catalog-product-link {
    color: #004a8f;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .compact-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .market-search {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .market-hero {
        padding: 3.3rem 0 2.8rem;
    }

    .market-hero h1 {
        font-size: 2.3rem;
    }

    .market-hero-kicker {
        font-size: 1.05rem;
    }

    .compact-product-grid {
        grid-template-columns: 1fr;
    }
}
