:root {
    --navy: #15224C;
    --navy-deep: #071331;
    --blue: #2d73f6;
    --ink: #081126;
    --muted: #6f7684;
    --line: #e8edf5;
    --soft: #f3f6fb;
    --bg: #fbfcff;
    --card: #ffffff;
    --shadow: 0 16px 34px rgba(21, 34, 76, 0.12);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-bottom: 78px;
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 9%, rgba(45, 115, 246, 0.06), transparent 130px),
        linear-gradient(180deg, #fff 0%, var(--bg) 42%, #f4f7fc 100%);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

img,
video {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 58px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: #fff;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 12px 28px rgba(8, 17, 38, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
}

.brand-name {
    display: none;
}

.brand-mark {
    width: 76px;
    height: 43px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: transparent url("/assets/logo.png") center / contain no-repeat;
}

.brand-mark img,
.brand-mark video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.menu-button {
    width: 34px;
    height: 30px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

.mobile-menu {
    position: fixed;
    top: 66px;
    left: 18px;
    right: 18px;
    z-index: 25;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-menu.open {
    display: grid;
}

.mobile-menu a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 800;
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

.section {
    width: min(1110px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    display: grid;
    gap: 26px;
    padding: 38px 0 26px;
}

.hero-copy {
    max-width: 520px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(43px, 12vw, 60px);
    line-height: 1.04;
    letter-spacing: 0;
}

h1 em {
    display: block;
    color: var(--blue);
    font-style: normal;
}

h2 {
    margin-bottom: 0;
    font-size: 22px;
    line-height: 1.2;
}

h3 {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.25;
}

.hero-text,
.muted {
    color: var(--muted);
    line-height: 1.65;
}

.hero-text {
    max-width: 430px;
    margin-bottom: 0;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.primary-button,
.ghost-button,
.link-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 168px;
    padding: 0 20px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 14px 30px rgba(21, 34, 76, 0.22);
}

.primary-button b {
    font-size: 17px;
    line-height: 1;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--navy);
    white-space: nowrap;
}

.full {
    width: 100%;
}

.promo-shell {
    display: grid;
    gap: 12px;
}

.hero-video-card {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.promo-card {
    position: relative;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.promo-media {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--navy) url("/assets/logo.png") center / contain no-repeat;
}

.promo-card.is-changing .promo-media {
    animation: promoFade 520ms ease both;
}

@keyframes promoFade {
    from {
        opacity: 0.55;
        transform: scale(1.015);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #9aa1aa;
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--blue);
}

.products-section,
.checkout-section,
.features,
.track-section {
    padding: 24px 0;
}

.section-heading,
.category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.popular-grid,
.brand-grid,
.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.popular-card,
.brand-card,
.product-card,
.skeleton-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(21, 34, 76, 0.06);
}

.popular-card {
    min-height: 190px;
    padding: 20px 54px 16px 20px;
    display: block;
    position: relative;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.popular-logo {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f2f4fa;
    color: #70788a;
    font-size: 19px;
    font-weight: 800;
    overflow: hidden;
}

.popular-logo.has-image {
    padding: 2px;
    background: #fff;
}

.popular-logo img,
.logo-chip img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.popular-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
    margin-top: 18px;
    overflow: hidden;
}

.popular-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    line-height: 1.2;
}

.popular-copy small {
    color: var(--muted);
    font-size: 13px;
}

.popular-copy em {
    margin-top: 4px;
    color: var(--ink);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.arrow-chip {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 21px;
    font-style: normal;
    line-height: 1;
}

.popular-card .arrow-chip,
.brand-card .arrow-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
}

.category-heading {
    margin-top: 36px;
}

.category-heading .eyebrow {
    margin-bottom: 7px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 190px) auto;
    gap: 8px;
}

input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(45, 115, 246, 0.1);
}

.search-panel button {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 14px;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.catalog-breadcrumb button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
}

.category-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
}

.category-tabs button.active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.brand-card {
    min-height: 134px;
    padding: 16px 52px 16px 16px;
    position: relative;
    text-align: left;
    cursor: pointer;
}

.category-icon,
.logo-chip {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #f1f3f8;
    color: #748095;
}

.brand-logo.has-image {
    padding: 2px;
    background: #fff;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.category-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-card strong,
.product-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 17px;
    line-height: 1.2;
}

.brand-card > span:not(.category-icon):not(.arrow-chip),
.product-card > span:not(.logo-chip) {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.product-card {
    min-height: 178px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
}

.brand-card:hover,
.product-card:hover,
.product-card.active,
.popular-card:hover {
    border-color: rgba(45, 115, 246, 0.45);
    box-shadow: 0 16px 30px rgba(21, 34, 76, 0.12);
}

.logo-chip {
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.logo-chip.has-image {
    padding: 2px;
    background: #fff;
}

.price {
    margin: 10px 0 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.skeleton-card {
    min-height: 118px;
    background: linear-gradient(90deg, #fff, #eef2f8, #fff);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

.checkout-shell {
    display: grid;
    gap: 16px;
}

.checkout-main,
.order-panel,
.track-card,
.account-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    scroll-margin-top: 80px;
}

.checkout-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    gap: 12px;
}

.buyer-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid rgba(45, 115, 246, 0.18);
    border-radius: 12px;
    background: #f8fbff;
}

.buyer-panel div:first-child {
    display: grid;
    gap: 4px;
}

.buyer-panel strong {
    color: var(--navy);
    font-size: 14px;
}

.buyer-panel span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.buyer-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.account-card {
    display: grid;
    gap: 16px;
}

.account-summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(45, 115, 246, 0.18);
    border-radius: 12px;
    background: #f8fbff;
}

.account-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
}

.account-avatar svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.account-summary strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.account-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.account-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.account-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.account-actions a {
    text-align: center;
    text-decoration: none;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.payment-method {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.payment-method select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.selected-product {
    margin: 14px 0;
    padding: 12px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--muted);
    line-height: 1.6;
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.order-card {
    display: grid;
    gap: 14px;
}

.order-card img {
    width: min(260px, 100%);
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.order-receipt {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.order-receipt p {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(45, 115, 246, 0.1);
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.invoice-link {
    text-align: center;
    text-decoration: none;
}

.success-animation {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    color: #16a34a;
}

.success-animation span {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
    animation: successPop 600ms ease both;
}

.success-animation span::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 16px;
    width: 24px;
    height: 13px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(-45deg);
}

@keyframes successPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 26px 0 4px;
}

.features article {
    min-height: 108px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    background: #f7f9fd;
    box-shadow: 0 8px 22px rgba(21, 34, 76, 0.05);
}

.features span {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.features svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.features p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.track-form {
    display: grid;
    gap: 10px;
}

.track-result {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 26px;
    padding: 28px 24px 96px;
    display: grid;
    gap: 22px;
    background: var(--navy);
    color: #fff;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer div {
    display: grid;
    gap: 8px;
}

.footer-brand {
    color: #fff;
}

.toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 92px;
    z-index: 40;
    display: none;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    font-weight: 700;
}

.toast.show {
    display: block;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    min-height: 72px;
    padding: 9px 18px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 -14px 30px rgba(8, 17, 38, 0.12);
}

.bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
}

.bottom-nav a.active {
    color: var(--blue);
}

.bottom-nav svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 420px) {
    .section {
        width: min(100% - 44px, 420px);
    }

    .hero {
        padding-top: 34px;
        gap: 24px;
    }

    h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 15px;
    }

    .popular-grid,
    .brand-grid {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        overflow: hidden;
    }

    .popular-card {
        min-height: 190px;
        padding: 18px 46px 15px 16px;
        overflow: hidden;
    }

    .popular-logo {
        width: 76px;
        height: 76px;
    }

    .popular-copy {
        margin-top: 18px;
    }

    .popular-copy strong {
        font-size: 15px;
    }

    .brand-card {
        min-height: 138px;
        padding: 16px 48px 16px 16px;
    }

    .brand-card strong {
        font-size: 16px;
    }

    .category-icon {
        width: 66px;
        height: 66px;
        margin-bottom: 14px;
    }

    .arrow-chip {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

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

    .features article {
        min-height: 112px;
        padding: 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .features span {
        width: 48px;
        height: 48px;
    }

    .features svg {
        width: 23px;
        height: 23px;
    }

    .features h3 {
        font-size: 15px;
    }

    .features p {
        font-size: 12px;
        line-height: 1.45;
    }

    .category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-panel {
        width: 100%;
        grid-template-columns: 1fr auto;
    }
}

@media (min-width: 760px) {
    body {
        padding-bottom: 0;
    }

    .site-header {
        min-height: 64px;
        padding: 10px 7vw;
        border-radius: 0;
    }

    .brand-name {
        display: inline;
    }

    .desktop-nav {
        display: flex;
    }

    .menu-button {
        display: none;
    }

    .bottom-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 0.72fr 1fr;
        align-items: center;
        padding-top: 48px;
    }

    .popular-grid,
    .brand-grid,
    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .checkout-shell {
        grid-template-columns: 1.25fr 0.75fr;
        align-items: start;
    }

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

    .track-form {
        grid-template-columns: 1fr auto;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
        padding: 34px 7vw;
    }
}

@media (min-width: 1060px) {
    .popular-grid,
    .brand-grid,
    .product-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.store-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.nickname-panel {
    display: grid;
    gap: 3px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.nickname-panel.success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #f0fdf4;
    color: #166534;
}

.nickname-panel.checking {
    border: 1px solid rgba(45, 115, 246, 0.18);
}

.nickname-panel.error {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: #fff7f7;
    color: #991b1b;
}

.nickname-panel strong {
    color: var(--ink);
    font-size: 14px;
}

@media (max-width: 620px) {
    .buyer-login {
        grid-template-columns: 1fr;
    }
}
