:root {
    --wr-bg: #f4f7fb;
    --wr-surface: #ffffff;
    --wr-surface-soft: #f8fbff;
    --wr-text: #0f172a;
    --wr-muted: #5f6b7a;
    --wr-border: #d7e0ec;
    --wr-primary: #11408d;
    --wr-primary-strong: #0c2f68;
    --wr-accent: #f59e0b;
    --wr-shadow: 0 16px 36px rgba(16, 40, 80, 0.12);
}

body,
button,
input,
select,
textarea {
    font-family: "Manrope", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Sora", sans-serif !important;
    letter-spacing: -0.02em;
}

body {
    color: var(--wr-text);
    background:
        radial-gradient(circle at 2% -20%, rgba(17, 64, 141, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.14) 0%, transparent 40%),
        var(--wr-bg);
}

#app {
    min-height: 100vh;
}

.wr-header {
    margin-inline: auto;
    margin-bottom: 8px;
    width: min(1840px, calc(100% - 24px));
    border: 1px solid rgba(215, 224, 236, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(16, 40, 80, 0.14);
    top: 0 !important;
    z-index: 300 !important;
    position: sticky;
    overflow: visible !important;
    backdrop-filter: none;
}

.wr-header div[class*="min-h-[78px]"] {
    min-height: 82px;
    padding-left: 28px !important;
    padding-right: 28px !important;
    border: 0 !important;
}

.wr-header img[width="131"][height="29"] {
    width: auto;
    height: 56px;
}

.wr-header form[role="search"] {
    max-width: 480px !important;
}

.wr-header input[name="query"] {
    border: 1px solid var(--wr-border) !important;
    border-radius: 999px !important;
    background: #f4f8ff !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.wr-header input[name="query"]:focus {
    border-color: #91a9cc !important;
    box-shadow: 0 0 0 4px rgba(17, 64, 141, 0.1);
}

.wr-header div[class*="h-[77px]"] {
    height: auto !important;
    border-bottom: 0 !important;
}

.wr-header div[class*="h-[77px]"] > span > a {
    text-transform: none !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1f2f4d;
    border-radius: 999px;
    padding: 10px 14px !important;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wr-header div[class*="h-[77px]"]:hover > span > a,
.wr-header div[class*="h-[77px]"] > span > a:hover {
    background: rgba(17, 64, 141, 0.1);
    color: var(--wr-primary);
    transform: translateY(-1px);
}

.wr-header .wr-menu-item {
    position: relative;
}

.wr-header .wr-menu-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}

.wr-header .wr-menu-link {
    position: relative;
    z-index: 1;
}

.wr-header .wr-menu-dropdown {
    top: calc(100% - 2px) !important;
    transform: translateY(0) !important;
    z-index: 320 !important;
    min-width: min(980px, calc(100vw - 72px));
    max-width: min(1180px, calc(100vw - 44px)) !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(215, 224, 236, 0.95) !important;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(16, 40, 80, 0.16) !important;
}

.wr-header v-header-switcher,
.wr-header v-desktop-header,
.wr-header v-mobile-header {
    display: block;
    overflow: visible !important;
}

.wr-header .wr-menu-dropdown > div {
    gap: 18px 22px !important;
}

.wr-header .wr-menu-dropdown [class*="max-w-[150px]"] {
    max-width: 220px !important;
    min-width: 180px !important;
    gap: 10px !important;
    padding-right: 6px;
}

.wr-header .wr-menu-dropdown p.font-medium > a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(17, 64, 141, 0.08);
    color: #123b77;
    font-weight: 800;
    line-height: 1.2;
}

.wr-header .wr-menu-dropdown p.font-medium > a:hover {
    background: #11408d;
    color: #fff;
}

.wr-header .wr-menu-dropdown li a {
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    color: #42556f;
    line-height: 1.25;
}

.wr-header .wr-menu-dropdown li a:hover {
    background: rgba(17, 64, 141, 0.06);
    color: #123b77;
}

.wr-header .icon-compare,
.wr-header .icon-cart,
.wr-header .icon-users,
.wr-header .icon-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--wr-border);
    border-radius: 999px;
    background: #fff;
    color: #153360;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.wr-header .icon-compare:hover,
.wr-header .icon-cart:hover,
.wr-header .icon-users:hover,
.wr-header .icon-hamburger:hover {
    background: rgba(17, 64, 141, 0.08);
    border-color: rgba(17, 64, 141, 0.32);
    color: #0f2b57;
}

.wr-header-main {
    gap: 22px;
}

.wr-nav-shell {
    display: grid;
    gap: 0;
    align-content: center;
    max-width: 820px;
    position: relative;
}

.wr-nav-top {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 2px;
}

.wr-nav-top::-webkit-scrollbar {
    display: none;
}

.wr-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(17, 64, 141, 0.14);
    background: rgba(17, 64, 141, 0.06);
    color: #1a3561;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.wr-nav-pill:hover,
.wr-nav-pill.is-active {
    background: linear-gradient(135deg, #11408d, #1b56b5);
    color: #fff;
    border-color: transparent;
}

.wr-nav-item {
    position: relative;
    flex: 0 0 auto;
}

.wr-nav-mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(980px, calc(100vw - 120px));
    padding: 16px 18px;
    border: 1px solid var(--wr-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(16, 40, 80, 0.16);
    z-index: 40;
}

.wr-nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px 18px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.wr-nav-mega-grid::-webkit-scrollbar {
    width: 8px;
}

.wr-nav-mega-grid::-webkit-scrollbar-thumb {
    background: rgba(17, 64, 141, 0.24);
    border-radius: 999px;
}

.wr-nav-mega-col {
    display: grid;
    gap: 6px;
    align-content: start;
}

.wr-nav-mega-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(17, 64, 141, 0.1);
    color: #12386d;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.wr-nav-mega-title:hover {
    transform: translateY(-1px);
    background: #123d79;
    color: #fff;
}

.wr-nav-mega-link {
    display: block;
    color: #334862;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
}

.wr-nav-mega-link:hover {
    color: #0f3771;
    text-decoration: underline;
}

header.sticky {
    border-bottom: 1px solid rgba(215, 224, 236, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 28px rgba(16, 40, 80, 0.07);
}

main#main {
    position: relative;
    isolation: isolate;
    background: transparent;
    min-height: calc(100vh - 260px);
}

main#main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 210px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: -1;
}

.wr-home-shell {
    padding-top: 10px;
}

.wr-home-hero {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto 26px;
    border: 1px solid rgba(215, 224, 236, 0.95);
    border-radius: 18px;
    padding: 24px 28px;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        repeating-linear-gradient(45deg, rgba(17, 64, 141, 0.03) 0 10px, transparent 10px 20px);
    box-shadow: var(--wr-shadow);
}

.wr-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wr-primary);
    background: rgba(17, 64, 141, 0.08);
}

.wr-home-title {
    margin: 14px 0 8px;
    font-size: clamp(26px, 3.3vw, 40px);
    font-weight: 800;
    line-height: 1.08;
}

.wr-home-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--wr-muted);
    font-size: 15px;
    line-height: 1.6;
}

.wr-home-grid {
    width: min(1360px, calc(100% - 20px));
    margin: 0 auto 18px;
    display: grid;
    gap: 14px;
}

.wr-section {
    background: var(--wr-surface);
    border: 1px solid var(--wr-border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 40, 80, 0.08);
    overflow: hidden;
}

.wr-section-content {
    padding: 20px;
}

.wr-home-slider {
    margin-top: 2px;
}

.wr-home-slider .relative.m-auto.flex.w-full.overflow-hidden {
    max-height: none;
}

.wr-home-slider .inline-flex > div {
    max-height: none;
}

.wr-home-slider .inline-flex > div img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    background: #eef3fb;
}

.wr-home-products {
    margin-top: 4px;
}

.wr-animate-in {
    opacity: 0;
    transform: translateY(14px);
    animation: wr-rise 0.55s ease-out forwards;
}

.wr-animate-in:nth-child(1) {
    animation-delay: 0.02s;
}

.wr-animate-in:nth-child(2) {
    animation-delay: 0.08s;
}

.wr-animate-in:nth-child(3) {
    animation-delay: 0.14s;
}

.wr-animate-in:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes wr-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.primary-button {
    border-radius: 14px !important;
    border-color: var(--wr-primary) !important;
    background: linear-gradient(135deg, var(--wr-primary), #1a5cc8) !important;
    box-shadow: 0 10px 20px rgba(17, 64, 141, 0.26);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(17, 64, 141, 0.3);
    filter: saturate(1.03);
}

.secondary-button {
    border-radius: 14px !important;
    border-color: var(--wr-primary) !important;
    color: var(--wr-primary) !important;
    background: rgba(17, 64, 141, 0.04) !important;
}

.secondary-button:hover {
    background: rgba(17, 64, 141, 0.1) !important;
}

.wr-product-card {
    border: 1px solid var(--wr-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--wr-surface);
    box-shadow: 0 10px 24px rgba(16, 40, 80, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.wr-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 40, 80, 0.14);
}

.wr-product-info {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.wr-product-list-card {
    border: 1px solid var(--wr-border);
    border-radius: 16px;
    background: var(--wr-surface);
    box-shadow: 0 12px 24px rgba(16, 40, 80, 0.08);
}

.wr-feed-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.wr-feed-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wr-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--wr-surface);
    box-shadow: 0 10px 24px rgba(16, 40, 80, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wr-feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(16, 40, 80, 0.14);
}

.wr-feed-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    background: #eef3fb;
}

.wr-feed-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wr-feed-card-body {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.wr-feed-card-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #1b2433;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wr-feed-card-price .price-label,
.wr-feed-card-price .regular-price {
    display: none !important;
}

.wr-feed-card-price .final-price {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #102850;
}

.wr-feed-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(17, 64, 141, 0.28);
    color: var(--wr-primary);
    background: rgba(17, 64, 141, 0.04);
    font-size: 13px;
    font-weight: 700;
}

.wr-feed-loader {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid rgba(17, 64, 141, 0.22);
    border-top-color: var(--wr-primary);
    animation: wr-spin 0.9s linear infinite;
}

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

@media (max-width: 1180px) {
    .wr-header {
        width: calc(100% - 10px);
        border-radius: 14px;
        margin-bottom: 6px;
    }

    .wr-header div[class*="min-h-[78px]"] {
        min-height: 74px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .wr-header img[width="131"][height="29"] {
        height: 48px;
    }

    .wr-header .icon-compare,
    .wr-header .icon-cart,
    .wr-header .icon-users,
    .wr-header .icon-hamburger {
        width: 34px;
        height: 34px;
    }

    .wr-header-main {
        gap: 12px;
    }

    .wr-nav-shell {
        max-width: 520px;
    }

    .wr-nav-pill {
        padding: 8px 12px;
        font-size: 13px;
    }

    .wr-nav-mega-panel {
        width: min(680px, calc(100vw - 60px));
    }

    .wr-header .wr-menu-dropdown {
        min-width: min(680px, calc(100vw - 36px));
        max-width: min(760px, calc(100vw - 20px)) !important;
        padding: 14px !important;
    }

    .wr-header .wr-menu-dropdown [class*="max-w-[150px]"] {
        min-width: 150px !important;
        max-width: 170px !important;
    }

    .wr-home-hero {
        width: calc(100% - 20px);
        margin-bottom: 18px;
        padding: 20px;
        border-radius: 14px;
    }

    .wr-home-title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .wr-home-subtitle {
        font-size: 14px;
    }

    .wr-home-grid {
        width: calc(100% - 12px);
        gap: 12px;
    }

    .wr-section {
        border-radius: 12px;
    }

    .wr-section-content {
        padding: 12px;
    }

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

@media (max-width: 820px) {
    .wr-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {
    .wr-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wr-feed-card-body {
        padding: 10px;
    }

    .wr-feed-card-name {
        font-size: 13px;
    }
}
