:root {
    --ecom-bg: #f5f7fb;
    --ecom-surface: #ffffff;
    --ecom-surface-2: #f8fafc;
    --ecom-surface-3: #eef3f8;
    --ecom-text: #0f172a;
    --ecom-text-soft: #64748b;
    --ecom-border: rgba(15, 23, 42, 0.08);
    --ecom-border-strong: rgba(15, 23, 42, 0.14);
    --ecom-primary: #0f766e;
    --ecom-primary-dark: #115e59;
    --ecom-accent: #0d6efd;
    --ecom-accent-dark: #0b57d0;
    --ecom-danger: #dc2626;
    --ecom-warning: #b45309;
    --ecom-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --ecom-shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
    --ecom-radius-sm: 10px;
    --ecom-radius-md: 16px;
    --ecom-radius-lg: 22px;
    --ecom-radius-full: 999px;
    --ecom-container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ecom-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ecom-text);
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.06), transparent 24%),
        var(--ecom-bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.ecom-container {
    width: min(100% - 32px, var(--ecom-container));
    margin-inline: auto;
}

.ecom-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ecom-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.ecom-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.ecom-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ecom-icon-link {
    position: relative;
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ecom-text);
    border: 1px solid var(--ecom-border);
    box-shadow: var(--ecom-shadow-sm);
    transition: all 0.22s ease;
}

.ecom-icon-link:hover {
    color: var(--ecom-primary);
    border-color: rgba(15, 118, 110, 0.18);
    transform: translateY(-1px);
}

.ecom-nav-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.ecom-nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ecom-danger);
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ecom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.22s ease;
    white-space: nowrap;
    cursor: pointer;
}

.ecom-btn:hover {
    transform: translateY(-1px);
}

.ecom-btn-accent {
    background: linear-gradient(135deg, var(--ecom-accent) 0%, var(--ecom-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.22);
}

.ecom-btn-accent:hover {
    color: #fff;
}

.ecom-btn-dark {
    background: var(--ecom-text);
    color: #fff;
    width: 100%;
}

.ecom-btn-dark:hover {
    color: #fff;
    background: #020617;
}

.ecom-icon-link:focus-visible,
.ecom-btn:focus-visible,
.ecom-chip:focus-visible,
.ecom-search-input:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 3px;
}

.ecom-main {
    padding: 34px 0 64px;
}

.ecom-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--ecom-border);
    border-radius: 28px;
    box-shadow: var(--ecom-shadow-md);
    padding: 34px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ecom-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.ecom-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--ecom-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ecom-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.ecom-hero p {
    margin: 0;
    max-width: 62ch;
    color: var(--ecom-text-soft);
}

.ecom-stats {
    display: grid;
    gap: 14px;
}

.ecom-stat {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--ecom-border);
    box-shadow: var(--ecom-shadow-sm);
}

.ecom-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.8rem;
    line-height: 1;
}

.ecom-stat span {
    color: var(--ecom-text-soft);
    font-size: 0.95rem;
}

.ecom-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.ecom-panel {
    background: var(--ecom-surface);
    border: 1px solid var(--ecom-border);
    border-radius: 24px;
    box-shadow: var(--ecom-shadow-sm);
    padding: 22px;
}

.ecom-panel-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
}

.ecom-search-wrap {
    position: relative;
}

.ecom-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ecom-text-soft);
    font-size: 1rem;
    pointer-events: none;
}

.ecom-search-input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px 0 46px;
    border-radius: 16px;
    border: 1px solid var(--ecom-border-strong);
    background: var(--ecom-surface-2);
    color: var(--ecom-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ecom-search-input::placeholder {
    color: #94a3b8;
}

.ecom-search-input:focus {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
    background: #fff;
    outline: none;
}

.ecom-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ecom-chip {
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ecom-border);
    background: #fff;
    color: var(--ecom-text);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ecom-chip:hover {
    border-color: rgba(13, 110, 253, 0.25);
    color: var(--ecom-accent);
}

.ecom-chip.active {
    background: rgba(13, 110, 253, 0.10);
    color: var(--ecom-accent-dark);
    border-color: rgba(13, 110, 253, 0.18);
}

.ecom-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ecom-results h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.ecom-results p {
    margin: 0;
    color: var(--ecom-text-soft);
}

.ecom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.ecom-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: var(--ecom-surface);
    border: 1px solid var(--ecom-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ecom-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ecom-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 110, 253, 0.16);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}

.ecom-card-media {
    position: relative;
    min-height: 220px;
    background: linear-gradient(180deg, #f6f9fc 0%, #eef3f7 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ecom-card-media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.ecom-card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 184px;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: multiply;
}

.ecom-card-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 184px;
    display: grid;
    place-items: center;
    color: var(--ecom-text-soft);
    font-weight: 700;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.04), rgba(15, 118, 110, 0.05)),
        #f8fafc;
    border-radius: 14px;
}

.ecom-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.ecom-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.ecom-badge-featured {
    background: rgba(180, 83, 9, 0.12);
    color: var(--ecom-warning);
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.ecom-badge-category {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ecom-text);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ecom-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    flex: 1;
}

.ecom-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
}

.ecom-meta {
    display: grid;
    gap: 6px;
    color: var(--ecom-text-soft);
    font-size: 0.92rem;
}

.ecom-meta strong {
    color: var(--ecom-text);
}

.ecom-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.ecom-price-current {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ecom-text);
}

.ecom-price-sale {
    color: var(--ecom-primary-dark);
}

.ecom-price-old {
    color: #94a3b8;
    font-size: 0.95rem;
    text-decoration: line-through;
}

.ecom-card-actions {
    margin-top: 2px;
}

.ecom-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--ecom-surface);
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 24px;
    padding: 38px 20px;
    color: var(--ecom-text-soft);
}

.ecom-empty h3 {
    margin: 0 0 8px;
    color: var(--ecom-text);
    font-size: 1.2rem;
}

.ecom-empty p {
    margin: 0;
}

.ecom-footnote {
    margin-top: 28px;
    text-align: center;
    color: var(--ecom-text-soft);
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .ecom-main {
        padding-top: 26px;
    }

    .ecom-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .ecom-hero-grid {
        grid-template-columns: 1fr;
    }

    .ecom-hero h1 {
        max-width: 16ch;
    }
}

@media (max-width: 768px) {
    .ecom-container {
        width: min(100% - 20px, var(--ecom-container));
    }

    .ecom-nav {
        padding: 12px 0;
        gap: 12px;
    }

    .ecom-brand img {
        max-height: 42px;
    }

    .ecom-nav-actions {
        gap: 8px;
    }

    .ecom-icon-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .ecom-nav-icon {
        width: 19px;
        height: 19px;
    }

    .ecom-btn {
        min-height: 40px;
        padding: 0.68rem 0.95rem;
        font-size: 0.88rem;
    }

    .ecom-hero {
        padding: 20px;
    }

    .ecom-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        max-width: none;
    }

    .ecom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        justify-content: stretch;
    }

    .ecom-card {
        border-radius: 18px;
    }

    .ecom-card-media {
        min-height: 220px;
        padding: 16px;
    }

    .ecom-card-media::after {
        inset: 16px;
        border-radius: 14px;
    }

    .ecom-card-image,
    .ecom-card-placeholder {
        height: 190px;
    }

    .ecom-card-body {
        padding: 16px;
    }

    .ecom-card-title {
        font-size: 0.98rem;
    }

    .ecom-meta {
        font-size: 0.86rem;
    }

    .ecom-price-current {
        font-size: 1.05rem;
    }

    .ecom-btn-dark {
        min-height: 42px;
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .ecom-nav {
        flex-wrap: wrap;
    }

    .ecom-nav-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .ecom-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .ecom-card {
        max-width: 100%;
        width: 100%;
    }

    .ecom-panel,
    .ecom-hero {
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}