:root {
    --orange: #ee4d2d;
    --orange-dark: #d93616;
    --orange-soft: #fff0ea;
    --text: #222222;
    --muted: #777777;
    --line: #eeeeee;
    --page: #f6f6f6;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--white);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body.sidebar-open {
    overflow: hidden;
}

body.auth-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

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

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

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--page);
    position: relative;
    padding-bottom: 88px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 58px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand {
    justify-self: center;
    color: var(--orange);
    font-size: 19px;
    font-weight: 800;
}

.icon-btn,
.cart-btn,
.searchbar button,
.meta-line button,
.add-icon {
    border: 0;
    background: transparent;
    color: var(--text);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.icon-btn,
.cart-btn {
    width: 40px;
    height: 40px;
}

.icon-btn svg,
.cart-btn svg {
    width: 24px;
    height: 24px;
}

.cart-btn {
    position: relative;
    justify-self: end;
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--white);
}

.cart-pop {
    animation: cart-pop 360ms ease;
}

.sidebar-menu {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    z-index: 60;
    width: min(100%, 480px);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: background 220ms ease, opacity 220ms ease, visibility 220ms ease;
}

.sidebar-menu.open {
    background: rgba(0, 0, 0, 0.42);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-panel {
    width: min(82%, 320px);
    height: 100%;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 260ms ease;
    box-shadow: 12px 0 28px rgba(0, 0, 0, 0.18);
}

.sidebar-menu.open .sidebar-panel {
    transform: translateX(0);
}

.sidebar-head {
    min-height: 86px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #ee4d2d, #ff8a38);
    color: var(--white);
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.sidebar-avatar svg {
    width: 24px;
    height: 24px;
}

.sidebar-head strong,
.sidebar-head span {
    display: block;
}

.sidebar-head strong {
    font-size: 15px;
}

.sidebar-head span {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.88;
}

.sidebar-head button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.sidebar-head button svg {
    width: 21px;
    height: 21px;
}

.sidebar-links {
    padding: 8px 0;
}

.sidebar-links a {
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 0 16px;
    color: var(--text);
}

.sidebar-links a + a {
    border-top: 1px solid var(--line);
}

.sidebar-links svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.sidebar-links span {
    font-size: 14px;
    font-weight: 700;
}

.sidebar-links b {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
}

.sidebar-foot {
    margin: 12px 16px 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.sidebar-foot strong,
.sidebar-foot span {
    display: block;
}

.sidebar-foot strong {
    color: var(--orange);
    font-size: 14px;
}

.sidebar-foot span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.content {
    padding: 10px 0 20px;
}

.company-hero {
    min-height: 238px;
    margin: 0;
    display: grid;
    align-items: end;
    padding: 24px 14px 18px;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.58) 68%),
        linear-gradient(90deg, rgba(238, 77, 45, 0.8), rgba(238, 77, 45, 0.38)),
        url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1000&q=85") center/cover;
}

.company-hero-copy {
    max-width: 390px;
}

.company-hero-copy span {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 900;
}

.company-hero-copy h1 {
    margin: 9px 0 0;
    font-size: 30px;
    line-height: 1.05;
}

.company-hero-copy p {
    margin: 8px 0 0;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.45;
}

.company-hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.company-hero-actions a {
    min-width: 112px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--white);
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.company-hero-actions a + a {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.company-info {
    display: grid;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.company-info div {
    min-height: 72px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 12px 14px;
}

.company-info div + div {
    border-top: 1px solid var(--line);
}

.company-info svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.company-info strong,
.company-info span {
    display: block;
}

.company-info strong {
    font-size: 14px;
}

.company-info span {
    grid-column: 2;
    margin-top: -8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.company-profile-section {
    margin-top: 8px;
    padding: 12px 0 13px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.company-address-section {
    margin-top: 8px;
    padding: 12px 0;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.company-address-box {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin: 0 14px;
    padding: 12px;
    background: var(--orange-soft);
    border: 1px dashed rgba(238, 77, 45, 0.35);
    border-radius: 6px;
}

.company-address-box svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.company-address-box strong,
.company-address-box span {
    display: block;
}

.company-address-box strong {
    font-size: 14px;
}

.company-address-box span {
    margin-top: 5px;
    color: #444444;
    font-size: 13px;
    line-height: 1.45;
}

.company-profile-text {
    padding: 0 14px;
}

.company-profile-text p {
    margin: 0;
    color: #444444;
    font-size: 13px;
    line-height: 1.55;
}

.company-profile-text p + p {
    margin-top: 8px;
}

.about-content {
    padding-top: 0;
}

.about-section {
    margin-top: 8px;
    padding: 12px 0;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.about-list {
    display: grid;
}

.about-list div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 14px;
}

.about-list div + div {
    border-top: 1px solid var(--line);
}

.about-list svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.about-list strong,
.about-list span {
    display: block;
}

.about-list strong {
    font-size: 14px;
}

.about-list span {
    grid-column: 2;
    margin-top: -8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.about-cta {
    margin-top: 8px;
    padding: 16px 14px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
}

.about-cta strong,
.about-cta span {
    display: block;
}

.about-cta strong {
    font-size: 16px;
}

.about-cta span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.about-cta a {
    height: 42px;
    margin-top: 12px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--orange);
    color: var(--white);
    font-size: 14px;
    font-weight: 900;
}

.searchbar {
    height: 44px;
    display: grid;
    grid-template-columns: 22px 1fr 34px;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 0 12px;
}

.searchbar svg {
    width: 19px;
    height: 19px;
    color: var(--orange);
}

.searchbar input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 14px;
}

.searchbar button {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: var(--orange);
    color: var(--white);
}

.searchbar button svg {
    color: var(--white);
}

.hero-strip {
    min-height: 96px;
    margin: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--white);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(238, 77, 45, 0.95), rgba(238, 77, 45, 0.68)),
        url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=900&q=80") center/cover;
}

.hero-strip p,
.hero-strip h1 {
    margin: 0;
}

.hero-strip p {
    font-size: 13px;
    font-weight: 700;
}

.hero-strip h1 {
    max-width: 250px;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.12;
}

.hero-strip span {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.section-block {
    margin-top: 8px;
    padding: 12px 0 10px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px 10px;
}

.section-title span {
    display: block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.section-title strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
}

.section-title a {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.flash-title-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 3px;
}

.countdown span {
    min-width: 21px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
}

.countdown b {
    color: var(--orange);
    font-size: 12px;
    line-height: 1;
}

.flash-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 118px;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 12px 8px;
    scrollbar-width: none;
}

.flash-row::-webkit-scrollbar {
    display: none;
}

.flash-card {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    overflow: hidden;
}

.image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #fafafa;
}

.image-wrap img {
    height: 100%;
    object-fit: cover;
}

.image-wrap small {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 5px;
    background: #ffd424;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
}

.flash-card h2 {
    min-height: 34px;
    margin: 7px 7px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.flash-card p {
    margin: 6px 7px 4px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
}

.sold-bar {
    height: 10px;
    margin: 0 7px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--orange-soft);
}

.sold-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7b4f, var(--orange));
}

.flash-card em {
    display: block;
    margin: 4px 7px 8px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.product-section {
    padding-bottom: 0;
}

.product-list {
    display: grid;
    gap: 0;
    padding: 0;
}

.product-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 150px;
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
}

.product-card:first-child {
    border-top: 0;
}

.product-card > img {
    width: 104px;
    height: 126px;
    margin: 12px 0 12px 12px;
    object-fit: cover;
    background: #fafafa;
    border-radius: 4px;
}

.product-info {
    min-width: 0;
    padding: 12px 16px 12px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.badge-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding-right: 4px;
}

.badge-line span {
    flex: 0 1 auto;
    max-width: 96px;
    padding: 3px 5px;
    border-radius: 3px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-line svg {
    width: 13px;
    height: 13px;
    color: var(--muted);
}

.badge-line small {
    flex: 1 1 auto;
    min-width: 34px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info h2 {
    margin: 8px 0 0;
    padding-right: 4px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-line {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.price-line strong {
    color: var(--orange);
    font-size: 17px;
    white-space: nowrap;
}

.price-line del {
    color: #aaaaaa;
    font-size: 12px;
    white-space: nowrap;
}

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.meta-line span {
    color: var(--muted);
    font-size: 12px;
}

.stock-text {
    display: block;
    min-width: 0;
}

.stock-text span {
    display: block;
    color: #999999;
    font-size: 11px;
    font-weight: 600;
}

.product-qty {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
}

.meta-line button,
.add-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
}

.add-icon[hidden],
.inline-qty-control[hidden] {
    display: none;
}

.inline-qty-control {
    width: 94px;
    height: 32px;
    display: grid;
    grid-template-columns: 31px 32px 31px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--orange);
    border-radius: 999px;
    background: var(--white);
}

.qty-action,
.qty-value {
    height: 30px;
    display: grid;
    place-items: center;
}

.qty-action {
    color: var(--orange);
    cursor: pointer;
}

.qty-action + .qty-value,
.qty-value + .qty-action {
    border-left: 1px solid #ffd7ce;
}

.qty-value {
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 800;
}

.meta-line svg {
    width: 18px;
    height: 18px;
}

.add-icon svg,
.qty-action svg {
    color: var(--white);
}

.qty-action svg {
    color: var(--orange);
}

.detail-shell {
    padding-bottom: 74px;
}

.detail-content {
    padding-bottom: 18px;
}

.detail-topbar .brand {
    color: var(--text);
    font-size: 16px;
}

.header-link {
    justify-self: end;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.detail-gallery {
    position: relative;
    background: var(--white);
    overflow: hidden;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f7f7f7;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.detail-info,
.detail-panel {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.detail-info {
    padding: 13px 14px 14px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-price strong {
    color: var(--orange);
    font-size: 25px;
    line-height: 1;
}

.detail-price del {
    color: #999999;
    font-size: 13px;
}

.detail-price span {
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
}

.detail-info h1 {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 1.28;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.detail-panel {
    margin-top: 8px;
    padding: 13px 14px;
}

.panel-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 0;
}

.panel-row + .panel-row {
    border-top: 1px solid var(--line);
}

.panel-row svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.panel-row strong,
.panel-row span {
    display: block;
}

.panel-row strong {
    font-size: 14px;
}

.panel-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.detail-panel h2 {
    margin: 0 0 8px;
    font-size: 15px;
}

.detail-panel p {
    margin: 0;
    color: #444444;
    font-size: 14px;
    line-height: 1.5;
}

.detail-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #444444;
    font-size: 14px;
    line-height: 1.7;
}

.detail-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    height: 64px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 72px 72px 1fr;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.detail-actions button,
.detail-actions a {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.chat-action,
.cart-icon-action {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: var(--white);
    color: var(--orange);
    font-size: 11px;
}

.chat-action svg,
.cart-icon-action svg {
    width: 21px;
    height: 21px;
}

.buy-action {
    display: grid;
    place-items: center;
    background: var(--orange);
    color: var(--white);
}

.cart-flyer {
    position: fixed;
    z-index: 80;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    animation: fly-to-cart 760ms cubic-bezier(0.2, 0.78, 0.25, 1) forwards;
}

@keyframes fly-to-cart {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    65% {
        opacity: 0.95;
        transform: translate3d(calc(var(--fly-x) * 0.78), calc(var(--fly-y) * 0.7 - 28px), 0) scale(0.58);
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--fly-x), var(--fly-y), 0) scale(0.18);
    }
}

@keyframes cart-pop {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.18);
    }
}

.checkout-shell {
    padding-bottom: 78px;
}

.checkout-content {
    padding-bottom: 18px;
}

.checkout-section {
    margin-top: 8px;
    padding: 13px 14px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.address-box {
    margin-top: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    color: inherit;
}

.address-box svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.address-box strong,
.address-box p,
.address-box span {
    display: block;
}

.address-box strong {
    font-size: 14px;
}

.address-box p {
    margin: 4px 0;
    color: #444444;
    font-size: 13px;
    line-height: 1.35;
}

.address-box span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

.checkout-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.checkout-heading svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

.checkout-product {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
}

.checkout-product img {
    width: 82px;
    height: 92px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.checkout-product h1 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.checkout-product span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.checkout-product-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.checkout-product-meta strong {
    color: var(--orange);
    font-size: 16px;
}

.checkout-product-meta em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.option-list {
    padding-top: 0;
    padding-bottom: 0;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
}

.option-row + .option-row {
    border-top: 1px solid var(--line);
}

.option-row strong,
.option-row span {
    display: block;
}

.option-row strong {
    font-size: 14px;
}

.option-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.option-row em {
    display: block;
    margin-top: 4px;
    color: #999999;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.shipping-option-row {
    align-items: flex-start;
}

.shipping-option-row > div:first-child {
    min-width: 0;
}

.shipping-option-row .shipping-service-name {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 11px;
    font-weight: 900;
}

.shipping-price-box {
    flex: 0 0 auto;
    min-width: 76px;
    text-align: right;
}

.shipping-price-box small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.option-row b {
    color: var(--text);
    font-size: 14px;
}

.option-row svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.payment-summary h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.payment-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    color: #444444;
    font-size: 13px;
}

.payment-summary .summary-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.summary-total strong {
    color: var(--orange);
    font-size: 18px;
}

.checkout-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    height: 66px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 156px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.checkout-actions div {
    display: grid;
    align-content: center;
    gap: 2px;
    padding-left: 14px;
}

.checkout-actions span {
    color: var(--muted);
    font-size: 12px;
}

.checkout-actions strong {
    color: var(--orange);
    font-size: 18px;
}

.checkout-actions button {
    border: 0;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.address-shell {
    padding-bottom: 76px;
}

.address-content {
    padding-bottom: 8px;
}

.address-list {
    background: var(--white);
}

.address-card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: start;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}

.address-person {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.address-person strong {
    font-size: 14px;
}

.address-person span {
    color: var(--muted);
    font-size: 12px;
}

.address-card p {
    margin: 6px 0 0;
    color: #444444;
    font-size: 13px;
    line-height: 1.4;
}

.address-card em {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.address-card button,
.address-edit-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--orange);
    cursor: pointer;
}

.address-card button svg,
.address-edit-btn svg {
    width: 18px;
    height: 18px;
}

.address-form {
    margin-top: 0;
    padding: 16px 18px 18px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.address-form h2 {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.2;
}

.address-form label,
.address-form label span {
    display: block;
}

.address-form label + label {
    margin-top: 12px;
}

.address-form label span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.address-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    gap: 12px;
    margin-top: 12px;
}

.address-form input,
.address-form select,
.address-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 12px;
    outline: 0;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    resize: none;
}

.address-form input,
.address-form select {
    height: 44px;
}

.address-form textarea {
    min-height: 84px;
    padding-top: 11px;
    line-height: 1.4;
}

.address-form input:focus,
.address-form select:focus,
.address-form textarea:focus {
    border-color: var(--orange);
}

.address-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    height: 66px;
    transform: translateX(-50%);
    padding: 10px 16px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.address-actions a,
.address-actions button {
    width: 100%;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: var(--orange);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.order-shell {
    padding-bottom: 78px;
}

.order-content {
    padding-bottom: 18px;
}

.order-success {
    padding: 34px 18px 28px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.order-success h1 {
    margin: 0;
    font-size: 22px;
}

.order-success p {
    max-width: 320px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.order-detail h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.order-detail div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    color: #444444;
    font-size: 13px;
}

.order-detail strong {
    max-width: 58%;
    text-align: right;
}

.bank-transfer-box h2 {
    margin: 0 0 10px;
    font-size: 15px;
}

.bank-transfer-box div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    color: #444444;
    font-size: 13px;
}

.bank-transfer-box strong {
    max-width: 58%;
    color: var(--text);
    text-align: right;
}

.bank-transfer-box .summary-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.bank-transfer-box .summary-total strong {
    color: var(--orange);
    font-size: 18px;
}

.bank-transfer-box p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.order-note {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
}

.order-note svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.order-note strong,
.order-note span {
    display: block;
}

.order-note strong {
    font-size: 14px;
}

.order-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.order-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    height: 66px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.primary-action,
.secondary-action {
    display: grid;
    place-items: center;
    border-radius: 4px;
    font-weight: 800;
}

.primary-action {
    background: var(--orange);
    color: var(--white);
}

.secondary-action {
    border: 1px solid var(--orange);
    color: var(--orange);
    background: var(--white);
}

.my-order-content {
    padding-bottom: 20px;
}

.order-tabs {
    position: sticky;
    top: 58px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.order-tabs a {
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.order-tabs a.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.myorder-card {
    margin-top: 8px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.myorder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.myorder-head strong,
.myorder-head span {
    display: block;
}

.myorder-head strong {
    font-size: 14px;
}

.myorder-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.myorder-head b {
    flex: 0 0 auto;
    color: var(--orange);
    font-size: 12px;
}

.myorder-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.myorder-product img {
    width: 72px;
    height: 82px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.myorder-product h2,
.myorder-product p {
    margin: 0;
}

.myorder-product h2 {
    font-size: 14px;
    line-height: 1.35;
}

.myorder-product p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.myorder-product strong {
    display: block;
    margin-top: 14px;
    color: var(--orange);
    font-size: 16px;
}

.myorder-note {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 0 12px 12px;
    padding: 10px;
    border-radius: 5px;
    background: var(--orange-soft);
}

.myorder-note svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

.myorder-note.complete {
    background: #eefaf4;
}

.myorder-note.complete svg {
    color: #0f8a5f;
}

.myorder-note strong,
.myorder-note span {
    display: block;
}

.myorder-note strong {
    font-size: 13px;
}

.myorder-note span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.myorder-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 12px 12px;
}

.myorder-actions a {
    min-width: 104px;
    height: 34px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #444444;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.myorder-actions .orange-action {
    min-width: 112px;
    border-color: var(--orange);
    color: var(--orange);
}

.order-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.order-card {
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
}

.order-card-head div {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.order-card-head svg {
    width: 17px;
    height: 17px;
    color: var(--orange);
}

.order-card-head strong {
    font-size: 14px;
}

.order-card-head span {
    flex: 0 0 auto;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.order-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.order-item img {
    width: 82px;
    height: 92px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.order-item h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.order-item p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.order-item em {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.order-card-foot {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
}

.order-card-foot span {
    color: var(--muted);
    font-size: 12px;
}

.order-card-foot strong {
    color: var(--orange);
    font-size: 17px;
}

.order-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 12px 12px;
}

.order-card-actions a {
    min-width: 92px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #444444;
    font-size: 13px;
    font-weight: 800;
}

.order-card-actions .orange-action {
    border-color: var(--orange);
    color: var(--orange);
}

.tracking-card {
    margin-top: 8px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.tracking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.tracking-head strong,
.tracking-head span {
    display: block;
}

.tracking-head strong {
    font-size: 14px;
}

.tracking-head span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.tracking-head b {
    color: var(--orange);
    font-size: 13px;
}

.tracking-product {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
}

.tracking-product img {
    width: 56px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.tracking-product h2,
.tracking-product p {
    margin: 0;
}

.tracking-product h2 {
    font-size: 13px;
    line-height: 1.35;
}

.tracking-product p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tracking-progress {
    height: 7px;
    margin: 0 12px 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeeee;
}

.delivery-box {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin: 0 12px 10px;
    padding: 9px 10px;
    border-radius: 5px;
    background: var(--orange-soft);
}

.delivery-box svg {
    width: 19px;
    height: 19px;
    color: var(--orange);
}

.delivery-box strong,
.delivery-box span {
    display: block;
}

.delivery-box strong {
    font-size: 13px;
}

.delivery-box span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.tracking-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #ff9a3d);
}

.tracking-timeline {
    padding: 8px 12px 2px;
}

.tracking-step {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 11px;
}

.tracking-step::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 21px;
    bottom: -1px;
    width: 2px;
    background: var(--line);
}

.tracking-step:last-child::before {
    display: none;
}

.tracking-step.done::before {
    background: var(--orange-soft);
}

.tracking-dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eeeeee;
    color: #999999;
}

.tracking-step.done .tracking-dot {
    background: var(--orange);
    color: var(--white);
}

.tracking-dot svg {
    width: 13px;
    height: 13px;
}

.tracking-step strong,
.tracking-step p,
.tracking-step em {
    display: block;
}

.tracking-step strong {
    font-size: 13px;
}

.tracking-step p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.tracking-step em {
    margin-top: 3px;
    color: #999999;
    font-size: 10px;
    font-style: normal;
}

.tracking-step.done em {
    color: var(--orange);
}

.tracking-actions {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.process-simple-card {
    margin-top: 8px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.process-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.process-status strong,
.process-status span {
    display: block;
}

.process-status strong {
    font-size: 15px;
}

.process-status span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.process-status b {
    flex: 0 0 auto;
    color: var(--orange);
    font-size: 12px;
}

.process-product {
    border-bottom: 1px solid var(--line);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
}

.process-steps div {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #999999;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.process-steps svg {
    width: 20px;
    height: 20px;
}

.process-steps .done {
    color: var(--orange);
}

.process-steps .active {
    color: #0f8a5f;
}

.process-actions {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.complete-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 12px;
}

.complete-note svg {
    width: 20px;
    height: 20px;
    color: #0f8a5f;
}

.complete-note strong,
.complete-note span {
    display: block;
}

.complete-note strong {
    font-size: 13px;
}

.complete-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.cart-shell {
    padding-bottom: 76px;
}

.cart-content {
    padding-bottom: 18px;
}

.cart-store {
    display: grid;
    grid-template-columns: 24px 20px 1fr;
    gap: 9px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.cart-store svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

.cart-store strong {
    font-size: 14px;
}

.check-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.check-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-control > span {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid #cccccc;
    border-radius: 50%;
    background: var(--white);
    position: relative;
}

.check-control input:checked + span {
    border-color: var(--orange);
    background: var(--orange);
}

.check-control input:checked + span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cart-list {
    background: var(--white);
}

.cart-item {
    display: grid;
    grid-template-columns: 24px 86px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.cart-item > a img {
    width: 86px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h2 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-info p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.cart-price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.cart-price-row strong {
    color: var(--orange);
    font-size: 16px;
}

.qty-control {
    height: 30px;
    display: grid;
    grid-template-columns: 30px 32px 30px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--white);
    color: #555555;
    cursor: pointer;
}

.qty-control button + span,
.qty-control span + button {
    border-left: 1px solid var(--line);
}

.qty-control span {
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 13px;
}

.qty-control svg {
    width: 14px;
    height: 14px;
}

.cart-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    margin-top: 8px;
    padding: 13px 14px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.cart-note svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

.cart-note strong,
.cart-note span {
    display: block;
}

.cart-note strong {
    font-size: 14px;
}

.cart-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.cart-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 25;
    width: min(100%, 480px);
    height: 66px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 132px;
    align-items: center;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.select-all {
    padding-left: 12px;
    color: #444444;
    font-size: 13px;
    font-weight: 700;
}

.cart-actions > div {
    display: grid;
    justify-items: end;
    gap: 2px;
    padding-right: 12px;
}

.cart-actions > div span {
    color: var(--muted);
    font-size: 12px;
}

.cart-actions > div strong {
    color: var(--orange);
    font-size: 18px;
}

.cart-actions button {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.category-content {
    padding-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.category-grid a {
    min-height: 78px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    background: var(--white);
    color: var(--text);
    text-align: center;
}

.category-grid a.active {
    color: var(--orange);
}

.category-grid strong {
    max-width: 72px;
    font-size: 11px;
    line-height: 1.2;
}

.category-list {
    background: var(--white);
}

.category-list a {
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.category-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange);
}

.category-icon svg {
    width: 21px;
    height: 21px;
}

.category-list strong,
.category-list small {
    display: block;
}

.category-list strong {
    font-size: 14px;
}

.category-list small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.category-list a > svg:last-child {
    width: 17px;
    height: 17px;
    color: #aaaaaa;
}

.category-product-list {
    background: var(--white);
}

.category-product {
    min-height: 104px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.category-product img {
    width: 78px;
    height: 88px;
    object-fit: cover;
    border-radius: 4px;
    background: #fafafa;
}

.category-product h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.category-product span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.category-product strong {
    display: block;
    margin-top: 12px;
    color: var(--orange);
    font-size: 16px;
}

.category-product > svg:last-child {
    width: 17px;
    height: 17px;
    color: #aaaaaa;
}

.category-products {
    margin-top: 8px;
}

.promo-content {
    padding-bottom: 20px;
}

.promo-hero {
    margin: 12px;
    padding: 16px;
    border-radius: 6px;
    color: var(--white);
    background: linear-gradient(135deg, #ee4d2d 0%, #ff7a2f 62%, #ffb04b 100%);
}

.promo-hero span {
    font-size: 12px;
    font-weight: 900;
}

.promo-hero h1 {
    max-width: 280px;
    margin: 6px 0 0;
    font-size: 21px;
    line-height: 1.15;
}

.promo-list {
    display: grid;
    gap: 8px;
}

.promo-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.promo-item strong {
    display: block;
    font-size: 15px;
}

.promo-item p {
    margin: 5px 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.promo-item span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.promo-item a {
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--orange);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.profile-content {
    padding-bottom: 20px;
    min-height: calc(100vh - 68px);
    background: var(--white);
}

.profile-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 12px 14px;
    background: var(--white);
    border-bottom: 0;
    color: var(--text);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange);
    border: 1px solid #ffd6ca;
}

.profile-avatar svg {
    width: 20px;
    height: 20px;
}

.profile-user {
    min-width: 0;
}

.profile-user h1,
.profile-user p {
    margin: 0;
}

.profile-user h1 {
    font-size: 15px;
    line-height: 1.2;
}

.profile-user p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.profile-edit {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--orange);
    cursor: pointer;
}

.profile-edit svg {
    width: 21px;
    height: 21px;
}

.balance-card {
    margin: 10px 12px 0;
    padding: 14px;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff7a2f 58%, #ff9f45 100%);
    border: 0;
    border-radius: 6px;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(238, 77, 45, 0.22);
}

.balance-card > span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.balance-row strong {
    color: var(--white);
    font-size: 23px;
    line-height: 1;
}

.balance-row a {
    min-width: 74px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--white);
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.order-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.order-progress-head h2 {
    margin: 0;
    font-size: 15px;
}

.order-progress-head span {
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.profile-progressbar {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.profile-progressbar span {
    display: block;
    width: 56%;
    height: 100%;
    border-radius: inherit;
    background: var(--white);
}

.order-mini-stats {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.order-mini-stats a {
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.order-mini-stats a:last-child {
    text-align: right;
}

.order-mini-stats span,
.order-mini-stats strong {
    display: inline;
}

.order-mini-stats strong {
    margin-left: 3px;
    color: var(--white);
    font-size: 14px;
}

.order-mini-stats a:nth-child(2) strong {
    color: #fff4c2;
}

.order-mini-stats a:nth-child(3) strong {
    color: rgba(255, 255, 255, 0.72);
}

.profile-menu-list {
    margin-top: 12px;
    background: var(--white);
}

.profile-menu-list a {
    min-height: 52px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
    color: var(--text);
}

.profile-menu-list a + a {
    border-top: 1px solid var(--line);
}

.profile-menu-list svg {
    width: 19px;
    height: 19px;
    color: var(--orange);
}

.profile-menu-list span {
    font-size: 14px;
    font-weight: 700;
}

.profile-menu-list a > svg:last-child {
    width: 17px;
    height: 17px;
    color: #aaaaaa;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: min(100%, 480px);
    margin: 0 auto;
    display: grid;
    align-items: end;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: background 220ms ease, opacity 220ms ease, visibility 220ms ease;
}

.auth-modal.open {
    background: rgba(0, 0, 0, 0.42);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.auth-panel {
    background: var(--white);
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    transition: transform 240ms ease;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.2);
}

.auth-modal.open .auth-panel {
    transform: translateY(0);
}

.auth-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: center;
    padding: 16px 16px 10px;
}

.auth-head span {
    display: block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.auth-head h2 {
    margin: 4px 0 0;
    font-size: 20px;
}

.auth-head button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.auth-head svg {
    width: 22px;
    height: 22px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.auth-tabs button {
    height: 38px;
    border: 0;
    background: var(--white);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active {
    background: var(--orange);
    color: var(--white);
}

.auth-form {
    display: none;
    padding: 14px 16px 18px;
}

.auth-form.active {
    display: block;
}

.auth-form label,
.auth-form label span {
    display: block;
}

.auth-form label + label {
    margin-top: 10px;
}

.auth-form label span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.auth-form .password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.password-label a {
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 11px;
    outline: 0;
    color: var(--text);
    background: var(--white);
    font-size: 14px;
}

.phone-field {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
}

.phone-field:focus-within {
    border-color: var(--orange);
}

.phone-field b {
    height: 42px;
    display: grid;
    place-items: center;
    background: #f7f7f7;
    color: var(--text);
    font-size: 14px;
    border-right: 1px solid var(--line);
}

.phone-field input {
    border: 0;
    border-radius: 0;
}

.phone-field input:focus {
    border-color: transparent;
}

.auth-form input:focus {
    border-color: var(--orange);
}

.auth-form button {
    width: 100%;
    height: 44px;
    margin-top: 14px;
    border: 0;
    border-radius: 5px;
    background: var(--orange);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.auth-message {
    min-height: 16px;
    margin: 8px 0 0;
    color: #0f8a5f;
    font-size: 12px;
    font-weight: 700;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 20;
    width: min(100%, 480px);
    height: 68px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.bottom-nav a {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #777777;
    font-size: 10px;
    font-weight: 700;
}

.bottom-nav svg {
    width: 21px;
    height: 21px;
}

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

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

    .app-shell {
        border-left: 1px solid #dddddd;
        border-right: 1px solid #dddddd;
    }

    .flash-row {
        scrollbar-width: thin;
        scrollbar-color: #cfcfcf transparent;
    }

    .flash-row::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    .flash-row::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #cfcfcf;
    }

    .flash-row::-webkit-scrollbar-track {
        background: transparent;
    }
}

@media (max-width: 360px) {
    .hero-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .address-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .address-grid-2 {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 108px minmax(0, 1fr);
        column-gap: 10px;
    }

    .product-card > img {
        width: 94px;
        height: 118px;
        margin-left: 10px;
    }

    .badge-line span {
        max-width: 82px;
    }
}
