﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --yellow: #ff7a1a;
    --dark: #3d4253;
    --dark-2: #2c3140;
    --bg: #f5f6fa;
    --card: #ffffff;
    --line: #e2e7f0;
    --text: #1f2937;
    --muted: #667085;
    --shadow-card: 0 10px 22px rgba(32, 41, 58, .08);
    --shadow-card-hover: 0 16px 34px rgba(32, 41, 58, .14);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
[type="submit"],
.btn,
.ui-btn,
.pc-actions a,
.pc-actions button,
.quick-add-form button,
.filter-submit,
.filter-reset,
.checkout-btn,
.clear-cart-btn,
.remove-btn,
.simple-actions a,
.hero-link-btn {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 122, 26, .35);
    outline-offset: 2px;
}

.btn,
.ui-btn,
.pc-actions a,
.pc-actions button,
.quick-add-form button {
    border-radius: 8px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover,
.ui-btn:hover,
.pc-actions a:hover,
.pc-actions button:hover,
.quick-add-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(17, 24, 39, .12);
}

.wrap {
    width: min(1440px, 96vw);
    margin-inline: auto;
}

.top-mini {
    background: #252a35;
    color: #f6f7ff;
    font-size: 12px;
    padding: 7px 0;
}
.top-mini .wrap { display: flex; justify-content: space-between; align-items: center; }
.mini-links { display: flex; gap: 14px; }
.mini-links a { color: #f6f7ff; text-decoration: none; }

.noon-header { position: sticky; top: 0; z-index: 1000; }
.header-yellow { background: var(--yellow); border-bottom: 1px solid rgba(17, 24, 39, .1); }
.row-yellow {
    min-height: 58px;
    display: grid;
    grid-template-columns: 150px 170px minmax(420px, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.brand {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1;
    justify-self: start;
}
.brand-logo {
    display: flex;
    align-items: center;
    width: 150px;
    height: 54px;
    overflow: visible;
}
.brand-logo img {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}
.deliver-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}
.deliver-box i { font-size: 22px; line-height: 1; }

.search-form {
    position: relative;
    display: block;
    align-items: center;
    margin-top: 5px;
}
.search-form input {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 14px;
    padding: 0 54px 0 18px;
    font-size: 17px;
    background: rgba(255,255,255,.96);
    color: #111827;
    box-shadow: none;
}
.search-form input::placeholder {
    color: #4b5563;
    opacity: .9;
}
.search-form button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111827;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.search-form button:hover { background: rgba(17, 24, 39, .06); }

.head-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}
.head-actions a {
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    box-shadow: none;
    transition: opacity .18s ease;
}
.head-actions a:hover {
    background: transparent;
    opacity: .68;
    transform: none;
}
.head-actions a i { font-size: 22px; line-height: 1; }
.head-actions .lang-link { direction: ltr; }

.header-dark { background: var(--dark); }
.nav-dark {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
}
.nav-dark a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
}
.nav-dark a:hover { background: rgba(255,255,255,.12); }

.hero-section { padding: 14px 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 10px;
}
.hero-left { display: grid; gap: 12px; }
.left-card {
    min-height: 112px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 16px;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}
.left-card.dark {
    background: linear-gradient(145deg, #2d3447, #48506b);
    color: #fff;
}

.ad-mini {
    background-size: cover;
    background-position: center;
}

.ad-mini::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(15,23,42,.58));
}

.ad-mini span,
.ad-mini strong {
    position: relative;
    z-index: 1;
}

.ad-mini span {
    color: rgba(255,255,255,.88);
    font-size: 12px;
}

.ad-mini strong {
    color: #fff;
    font-size: 19px;
}

.ad-electronics {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=700&q=75');
}

.ad-fashion {
    background-image: url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=700&q=75');
}
.hero-main {
    min-height: 238px;
    border-radius: 8px;
    padding: 26px 30px;
    background:
        linear-gradient(130deg, rgba(16,22,39,.88), rgba(16,22,39,.56)),
        url('https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    color: #fff;
}
.hero-pill {
    display: inline-block;
    background: var(--yellow);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.btn-warning {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #fff;
    font-weight: 800;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #e9660c;
    border-color: #e9660c;
    color: #fff;
}
.hero-main h1 {
    margin: 12px 0 8px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
}
.hero-main p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 8px; }

.chips-section { padding: 10px 0 14px; }
.chips-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.slim-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.slim-head h2 {
    font-size: 24px;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.category-tile {
    min-height: 150px;
    background: #fff;
    border: 1px solid rgba(226, 231, 240, .95);
    border-radius: 14px;
    color: #111827;
    text-decoration: none;
    display: grid;
    grid-template-rows: 92px auto auto;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(22, 31, 52, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-tile:hover {
    color: #111827;
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, .35);
    box-shadow: 0 16px 32px rgba(22, 31, 52, .12);
}

.category-tile__media {
    display: block;
    background: #eef2f7;
    position: relative;
    overflow: hidden;
}

.category-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.category-tile:hover .category-tile__media img {
    transform: scale(1.06);
}

.category-tile__name {
    font-size: 14px;
    font-weight: 800;
    padding: 10px 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tile small {
    color: var(--muted);
    font-size: 11px;
    padding: 2px 10px 10px;
}

.ads-section {
    padding: 8px 0 18px;
}

.ad-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.ad-card {
    min-height: 172px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 22px;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .13);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ad-card:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(17, 24, 39, .2);
}

.ad-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,122,26,.48), transparent 32%),
        linear-gradient(90deg, rgba(15,23,42,.9), rgba(15,23,42,.52), rgba(15,23,42,.18));
}

.ad-card span,
.ad-card strong,
.ad-card em {
    position: relative;
    z-index: 1;
}

.ad-card span {
    font-size: 13px;
    color: rgba(255,255,255,.86);
}

.ad-card strong {
    font-size: 25px;
    font-weight: 800;
}

.ad-card em {
    position: relative;
    z-index: 1;
    font-style: normal;
    font-size: 13px;
    color: rgba(255,255,255,.82);
}

.ad-card-large {
    background-image: url('https://images.unsplash.com/photo-1607083206968-13611e3d76db?auto=format&fit=crop&w=1200&q=80');
}

.ad-card-beauty {
    background-image: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=800&q=80');
}

.ad-card-home {
    background-image: url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=800&q=80');
}
.chip {
    text-decoration: none;
    color: #243047;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 52px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
}

.section-block {
    padding: 24px 0 18px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #dde3ee;
    padding-bottom: 10px;
}
.section-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}
.section-head a { text-decoration: none; color: #263249; font-weight: 700; }

.products-grid-clean {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-cell {
    min-width: 0;
    height: 100%;
}

.product-card-v3 {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(213, 220, 232, .9);
    border-radius: 18px;
    overflow: hidden;
    min-height: 455px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(22, 31, 52, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card-v3:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 26, .38);
    box-shadow: 0 20px 42px rgba(22, 31, 52, .14);
}
.pc-media {
    position: relative;
    aspect-ratio: 1 / .92;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .95), rgba(241, 244, 249, .9) 58%),
        linear-gradient(135deg, #f6f8fc, #eef2f8);
    border-bottom: 1px solid #edf1f6;
    overflow: hidden;
}
.pc-media a:not(.pc-wish) {
    display: block;
    width: 100%;
    height: 100%;
}
.pc-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 18px;
    transition: transform .28s ease;
}
.product-card-v3:hover .pc-image {
    transform: scale(1.045);
}
.pc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff5a1f, #e11d48);
    color: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(225, 29, 72, .22);
    z-index: 3;
}
.pc-wish {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #1f2937;
    text-decoration: none;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(22, 31, 52, .12);
    backdrop-filter: blur(8px);
    z-index: 3;
    transition: transform .18s ease, color .18s ease, background .18s ease;
}
.pc-wish:hover {
    transform: scale(1.08);
    color: #e11d48;
    background: #fff;
}
.pc-quick {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .22);
    z-index: 3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.product-card-v3:hover .pc-quick {
    opacity: 1;
    transform: translateY(0);
}
.pc-quick:hover {
    background: #ff7a1a;
    color: #111827;
}
.pc-body {
    padding: 14px 14px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}
.pc-vendor {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pc-ship {
    flex: 0 0 auto;
    background: #ecfdf3;
    color: #087443;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
}
.pc-title {
    margin: 9px 0 8px;
    min-height: 45px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-title a { text-decoration: none; color: #111827; }
.pc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 800;
}
.pc-rating small {
    color: #475467;
    background: #f6f7fb;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 11px;
}
.pc-price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 34px;
    flex-wrap: wrap;
}
.pc-price-now {
    font-size: 23px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.02em;
}
.pc-price-now small { font-size: 11px; color: #54607a; }
.pc-price-old { font-size: 12px; color: #98a2b3; text-decoration: line-through; }
.pc-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
}
.pc-actions form { margin: 0; }
.pc-cart-btn {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 10px 20px rgba(17, 24, 39, .16);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pc-cart-btn:hover {
    background: #ff7a1a;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 122, 26, .28);
}
.pc-detail-link {
    color: #475467;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}
.pc-detail-link:hover {
    color: #111827;
}

.modal-open-lite {
    overflow: hidden;
}

.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
}

.quick-view-modal[hidden] {
    display: none !important;
}

.quick-view-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(6px);
}

.quick-view-dialog {
    position: relative;
    width: min(920px, 96vw);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .32);
    overflow: hidden;
    transform: translateY(18px) scale(.98);
    transition: transform .24s ease;
}

.quick-view-modal.is-open .quick-view-dialog {
    transform: translateY(0) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f9;
    color: #111827;
    display: grid;
    place-items: center;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.quick-view-image {
    background:
        radial-gradient(circle at 50% 35%, #fff, #eef2f8 62%),
        linear-gradient(135deg, #f8fafc, #eef2f8);
    display: grid;
    place-items: center;
    padding: 34px;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
}

.quick-view-info {
    padding: 46px 34px 34px;
    display: flex;
    flex-direction: column;
}

.quick-view-vendor {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.quick-view-info h2 {
    margin: 10px 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
}

.quick-view-rating {
    color: #f59e0b;
    font-weight: 800;
}

.quick-view-rating small {
    color: #475467;
    margin-inline-start: 8px;
}

.quick-view-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0 12px;
}

.quick-view-price strong {
    font-size: 34px;
    font-weight: 900;
    color: #111827;
}

.quick-view-price del {
    color: #98a2b3;
}

.quick-view-info p {
    color: #667085;
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-view-perks {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.quick-view-perks span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f7fb;
    border-radius: 10px;
    padding: 9px 11px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.quick-view-perks i {
    color: #ff7a1a;
    font-size: 17px;
}

.quick-view-cart {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    margin-top: auto;
}

.quick-view-cart input {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
}

.quick-view-cart button,
.quick-view-details {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    text-decoration: none;
}

.quick-view-cart button {
    background: #111827;
    color: #fff;
}

.quick-view-details {
    margin-top: 10px;
    background: #ff7a1a;
    color: #111827;
}

.promo-strip { padding: 16px 0; }
.promo-box {
    background: linear-gradient(120deg, #2d3550, #404c6b);
    border-radius: 8px;
    min-height: 84px;
    padding: 16px 18px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.promo-box h3 { margin: 0; font-size: 30px; font-weight: 800; }

.deals-lanes {
    padding: 2px 0 18px;
}

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

.lane {
    min-height: 92px;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: #fff;
    display: grid;
    align-content: center;
    gap: 4px;
}

.lane span {
    font-size: 12px;
    opacity: .9;
}

.lane strong {
    font-size: 21px;
    font-weight: 800;
}

.lane-orange { background: linear-gradient(135deg, #ff7a1a, #d94f00); }
.lane-blue { background: linear-gradient(135deg, #2357c5, #172f75); }
.lane-green { background: linear-gradient(135deg, #16845b, #0f513c); }

.vendors-block { background: #eef1f7; }
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.vendor-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}
.vendor-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.vendor-card p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer {
    margin-top: 18px;
    background: #2e3342;
    color: #fff;
    padding: 24px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}
.footer-grid h4, .footer-grid h5 { margin: 0 0 8px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.86); text-decoration: none; }

.catalog-page,
.product-page,
.cart-page,
.checkout-page { padding: 18px 0 56px; }

.catalog-hero {
    background: linear-gradient(135deg, #252b3b, #3b4256);
    color: #fff;
    border-radius: 10px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr minmax(360px, 560px);
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.catalog-hero span,
.cart-heading span {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 6px;
}
.catalog-hero h1,
.cart-heading h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}
.catalog-hero p { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.catalog-search {
    display: grid;
    grid-template-columns: 1fr 150px 88px;
    gap: 8px;
}
.catalog-search input,
.catalog-search select,
.catalog-search button,
.catalog-filters input,
.catalog-filters select,
.field-box input,
.field-box textarea {
    height: 44px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    font: inherit;
}
.catalog-search button,
.filter-submit,
.checkout-btn,
.primary-buy,
.buy-now-btn {
    border: 0;
    background: #202637;
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .18s ease, background .18s ease;
}
.catalog-search button:hover,
.filter-submit:hover,
.checkout-btn:hover,
.primary-buy:hover,
.buy-now-btn:hover {
    background: #111827;
    color: #fff;
    transform: translateY(-1px);
}
.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "results filters";
    gap: 18px;
    align-items: start;
    margin-top: 18px;
    direction: ltr;
}
.catalog-filters {
    grid-area: filters;
    direction: rtl;
    position: sticky;
    top: 112px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}
.catalog-filters select,
.catalog-filters input {
    width: 100%;
    min-width: 0;
    display: block;
    color: #1f2937;
}
.catalog-filters select {
    appearance: auto;
}
.catalog-filters .price-inputs input {
    text-align: right;
}
.catalog-results {
    grid-area: results;
    direction: rtl;
    min-width: 0;
}
.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    font-size: 18px;
}
.catalog-filters form { display: grid; gap: 10px; }
.catalog-filters label { font-size: 13px; font-weight: 800; color: #30384b; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-submit { height: 44px; margin-top: 6px; }
.filter-reset {
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #293247;
    text-decoration: none;
    font-weight: 800;
}
.results-bar,
.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}
.results-bar h2 { margin: 0; font-size: 28px; font-weight: 800; }
.results-bar p { margin: 4px 0 0; color: var(--muted); }
.results-bar a,
.cart-heading a { color: #263249; text-decoration: none; font-weight: 800; }
.catalog-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}
.catalog-pagination nav {
    width: 100%;
}
.catalog-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.catalog-pagination .page-item,
.catalog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.catalog-pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #263249;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}
.catalog-pagination .page-item.active .page-link {
    background: #202637;
    border-color: #202637;
    color: #fff;
}
.catalog-pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
}
.catalog-pagination svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    display: block;
}
.catalog-pagination p,
.catalog-pagination .text-sm,
.catalog-pagination [aria-label="Pagination Navigation"] > div:first-child {
    display: none !important;
}
.catalog-pagination [aria-label="Pagination Navigation"] > div:last-child,
.catalog-pagination [aria-label="Pagination Navigation"] span[aria-current],
.catalog-pagination [aria-label="Pagination Navigation"] a,
.catalog-pagination [aria-label="Pagination Navigation"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.catalog-pagination [aria-label="Pagination Navigation"] > div:last-child > span {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.catalog-pagination [aria-label="Pagination Navigation"] a,
.catalog-pagination [aria-label="Pagination Navigation"] span[aria-current] > span,
.catalog-pagination [aria-label="Pagination Navigation"] span:not([class*="sr-only"]) {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.empty-state i { font-size: 38px; color: var(--yellow); }
.empty-state h3 { margin: 12px 0 6px; font-size: 22px; font-weight: 800; }
.empty-state p { color: var(--muted); margin-bottom: 14px; }
.empty-state a {
    color: #fff;
    background: #202637;
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 800;
}

.breadcrumb-lite {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}
.breadcrumb-lite a { color: #30384b; text-decoration: none; font-weight: 700; }
.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 18px;
    align-items: start;
}
.product-gallery,
.product-info-panel,
.details-tabs-card,
.cart-item-card,
.order-summary-card,
.checkout-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}
.product-gallery { padding: 16px; }
.main-image-box {
    position: relative;
    background: #f3f5f9;
    border-radius: 10px;
    aspect-ratio: 1 / .82;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.detail-main-image { width: 100%; height: 100%; object-fit: contain; }
.detail-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--yellow);
    color: #111827;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    z-index: 2;
}
.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.detail-thumbs button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    aspect-ratio: 1;
    padding: 4px;
    overflow: hidden;
}
.detail-thumbs button.active {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2px rgba(255,122,26,.18);
}
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info-panel { padding: 22px; }
.store-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; }
.store-line small {
    background: #fff4e8;
    color: #b94700;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 800;
}
.product-info-panel h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    margin: 14px 0 10px;
}
.detail-rating { color: #f59e0b; font-weight: 800; }
.detail-rating small { color: var(--muted); margin-inline-start: 8px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.detail-price strong { font-size: 34px; font-weight: 800; }
.detail-price del { color: #98a2b3; }
.option-group label { display: block; font-weight: 800; margin-bottom: 8px; }
.buy-box { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.buy-box input { height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.primary-buy,
.buy-now-btn { min-height: 48px; }
.buy-now-btn {
    margin-top: 10px;
    width: 100%;
    background: var(--yellow);
    color: #111827;
}
.buy-now-btn:hover { background: #ff8b33; color: #111827; }
.service-grid { display: grid; gap: 10px; margin-top: 18px; }
.service-grid div {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f6f7fb;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
}
.service-grid i { color: var(--yellow); font-size: 20px; }
.details-tabs-card { padding: 20px; margin-top: 18px; }
.tab-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.detail-description { color: #3b4354; line-height: 1.9; }

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.checkout-progress span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    color: var(--muted);
}
.checkout-progress span.active { background: #202637; color: #fff; }
.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.cart-items { display: grid; gap: 12px; }
.cart-item-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 210px 130px;
    gap: 14px;
    align-items: center;
    padding: 12px;
}
.cart-item-image {
    display: block;
    background: #f4f6fa;
    border-radius: 8px;
    aspect-ratio: 1;
    overflow: hidden;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info a { display: block; color: #202637; text-decoration: none; font-weight: 800; line-height: 1.5; }
.cart-item-info small { display: block; color: var(--muted); margin: 5px 0; }
.cart-item-info strong,
.cart-line-total strong { font-size: 18px; }
.qty-form { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.qty-form input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.qty-form button,
.remove-btn,
.clear-cart-btn {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}
.remove-btn,
.clear-cart-btn { margin-top: 8px; width: 100%; color: #b42318; }
.cart-line-total span { display: block; color: var(--muted); font-size: 12px; }
.order-summary-card {
    position: sticky;
    top: 112px;
    padding: 18px;
}
.order-summary-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.summary-row,
.summary-total,
.checkout-mini-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.summary-total { border-bottom: 0; font-size: 20px; font-weight: 800; }
.checkout-btn { width: 100%; min-height: 46px; margin-top: 12px; }
.cart-empty { max-width: 720px; margin-inline: auto; }
.checkout-form-card { padding: 20px; }
.checkout-form-card form { display: grid; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-box label { display: block; margin-bottom: 7px; font-weight: 800; }
.field-box textarea { height: 110px; padding-top: 10px; resize: vertical; }
.store-hero {
    background: linear-gradient(135deg, #273049, #1f7a5a);
}
.categories-page {
    padding: 18px 0 60px;
}
.categories-hero {
    background:
        linear-gradient(135deg, rgba(31, 41, 55, .92), rgba(255, 122, 26, .62)),
        url('https://images.unsplash.com/photo-1607082349566-187342175e2f?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}
.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.big-category-card {
    min-height: 260px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .13);
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease;
}
.big-category-card:hover {
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(17, 24, 39, .22);
}
.big-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, .06), rgba(17, 24, 39, .82));
    z-index: -1;
}
.big-category-card__image {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.big-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}
.big-category-card:hover .big-category-card__image img {
    transform: scale(1.06);
}
.big-category-card__content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 20px;
    display: grid;
    gap: 5px;
}
.big-category-card__content strong {
    font-size: 24px;
    font-weight: 900;
}
.big-category-card__content small {
    color: rgba(255,255,255,.84);
    font-weight: 700;
}
.big-category-card__content em {
    width: fit-content;
    margin-top: 6px;
    font-style: normal;
    background: #ff7a1a;
    color: #111827;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}
.category-products-page {
    padding: 18px 0 62px;
}
.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}
.category-breadcrumb a {
    color: #344054;
    text-decoration: none;
}
.category-breadcrumb i {
    font-size: 11px;
    color: #98a2b3;
}
.category-show-hero {
    min-height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 122, 26, .58), transparent 28%),
        linear-gradient(110deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .7), rgba(15, 23, 42, .28)),
        var(--category-hero-image) center/cover no-repeat;
    box-shadow: 0 22px 55px rgba(17, 24, 39, .18);
}
.category-show-copy {
    max-width: 690px;
}
.category-show-copy > span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}
.category-show-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.02em;
}
.category-show-copy p {
    max-width: 620px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.9;
}
.category-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.category-hero-actions a {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #ff7a1a;
    text-decoration: none;
    font-weight: 900;
}
.category-hero-actions a:last-child {
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
}
.category-hero-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    padding: 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.category-hero-card img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
}
.category-hero-card strong {
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}
.category-hero-card span {
    color: rgba(255,255,255,.82);
    font-weight: 800;
}
.category-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.category-stats-row div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(22, 31, 52, .06);
    font-weight: 900;
    color: #344054;
}
.category-stats-row i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff4e8;
    color: #ff7a1a;
    display: grid;
    place-items: center;
}
.category-products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "results filters";
    gap: 18px;
    align-items: start;
    direction: ltr;
}
.category-filter-panel {
    grid-area: filters;
    direction: rtl;
    position: sticky;
    top: 112px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(22, 31, 52, .09);
}
.category-filter-panel form {
    display: grid;
    gap: 11px;
}
.category-filter-panel label {
    font-size: 13px;
    font-weight: 900;
    color: #344054;
}
.category-filter-panel select,
.category-filter-panel input {
    width: 100%;
    height: 44px;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: #111827;
}
.category-products-results {
    grid-area: results;
    direction: rtl;
    min-width: 0;
}
.category-results-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(22, 31, 52, .06);
}
.category-results-head span {
    color: #ff7a1a;
    font-size: 12px;
    font-weight: 900;
}
.category-results-head h2 {
    margin: 4px 0;
    font-size: 28px;
    font-weight: 900;
}
.category-results-head p {
    margin: 0;
    color: var(--muted);
}
.category-results-head a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #111827;
    background: #fff4e8;
    text-decoration: none;
    font-weight: 900;
}
.modern-product-page {
    padding: 18px 0 62px;
}
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}
.product-breadcrumb a {
    color: #344054;
    text-decoration: none;
}
.product-breadcrumb i {
    font-size: 11px;
    color: #98a2b3;
}
.modern-product-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 20px;
    align-items: start;
}
.modern-gallery-card,
.modern-buy-panel,
.modern-info-card {
    background: #fff;
    border: 1px solid rgba(226, 231, 240, .95);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(22, 31, 52, .08);
}
.modern-gallery-card {
    padding: 18px;
}
.modern-main-image {
    min-height: 560px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 32%, #fff, #eef2f8 62%),
        linear-gradient(135deg, #f8fafc, #eef2f8);
}
.modern-main-image img {
    width: 100%;
    height: 100%;
    max-height: 540px;
    object-fit: contain;
    padding: 26px;
    transition: transform .3s ease;
}
.modern-main-image:hover img {
    transform: scale(1.035);
}
.modern-sale-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background: linear-gradient(135deg, #ff5a1f, #e11d48);
    color: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(225, 29, 72, .24);
}
.modern-gallery-wish {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #111827;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(17, 24, 39, .13);
}
.modern-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.modern-thumbs button {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    aspect-ratio: 1;
    padding: 5px;
    overflow: hidden;
}
.modern-thumbs button.active {
    border-color: #ff7a1a;
    box-shadow: 0 0 0 3px rgba(255,122,26,.16);
}
.modern-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.modern-buy-panel {
    position: sticky;
    top: 112px;
    padding: 24px;
}
.product-store-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.product-store-pill span {
    color: #667085;
    font-weight: 900;
}
.product-store-pill small {
    background: #ecfdf3;
    color: #087443;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
}
.modern-buy-panel h1 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #111827;
}
.modern-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-weight: 900;
}
.modern-rating-row strong {
    color: #111827;
}
.modern-rating-row small {
    color: #667085;
}
.modern-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0 8px;
}
.modern-price-row strong {
    font-size: 42px;
    font-weight: 950;
    color: #111827;
}
.modern-price-row del {
    color: #98a2b3;
    font-size: 16px;
}
.modern-save-note {
    width: fit-content;
    background: #fff4e8;
    color: #b54708;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}
.modern-short-desc {
    color: #475467;
    line-height: 1.85;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 13px;
    margin: 14px 0;
}
.modern-buy-form {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    margin-top: 14px;
}
.modern-buy-form label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
    color: #344054;
}
.modern-buy-form input {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 12px;
}
.modern-buy-form button,
.modern-buy-now {
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 950;
    text-decoration: none;
}
.modern-buy-form button {
    align-self: end;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, .16);
}
.modern-buy-now {
    width: 100%;
    margin-top: 10px;
    background: #ff7a1a;
    color: #111827;
    box-shadow: 0 12px 24px rgba(255, 122, 26, .22);
}
.modern-trust-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}
.modern-trust-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #344054;
    background: #f8fafc;
    border-radius: 13px;
    padding: 11px;
    font-weight: 900;
}
.modern-trust-list i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff4e8;
    color: #ff7a1a;
    display: grid;
    place-items: center;
}
.modern-product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    margin-top: 20px;
}
.modern-info-card {
    padding: 22px;
}
.modern-info-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}
.modern-info-list {
    display: grid;
    gap: 10px;
}
.modern-info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.modern-info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.modern-info-list span {
    color: #667085;
}
.modern-info-list strong {
    color: #111827;
}
.vendors-page,
.vendor-store-page {
    padding: 18px 0 64px;
}
.vendors-hero,
.vendor-store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 22px 55px rgba(17, 24, 39, .18);
}
.vendors-hero {
    min-height: 330px;
    padding: 38px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 122, 26, .62), transparent 30%),
        linear-gradient(110deg, rgba(15, 23, 42, .95), rgba(15, 23, 42, .64)),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
}
.vendors-hero span,
.vendors-list-head span,
.vendor-store-hero span {
    color: #ffb26b;
    font-size: 13px;
    font-weight: 900;
}
.vendors-hero h1,
.vendor-store-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 950;
    line-height: 1.12;
}
.vendors-hero p,
.vendor-store-hero p {
    max-width: 650px;
    color: rgba(255,255,255,.86);
    line-height: 1.9;
    margin: 0;
}
.vendors-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.vendors-hero-actions a {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: #ff7a1a;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
}
.vendors-hero-actions a:last-child {
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
}
.vendors-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 8px 20px rgba(22, 31, 52, .06);
}
.vendors-list-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 900;
}
.vendors-list-head a {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #111827;
    background: #fff4e8;
    text-decoration: none;
    font-weight: 900;
}
.vendors-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.vendor-directory-card {
    position: relative;
    min-height: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(22, 31, 52, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vendor-directory-card:hover {
    color: #111827;
    transform: translateY(-6px);
    border-color: rgba(255, 122, 26, .34);
    box-shadow: 0 22px 48px rgba(22, 31, 52, .16);
}
.vendor-directory-cover {
    height: 112px;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 122, 26, .5), transparent 34%),
        linear-gradient(135deg, #273049, #111827);
}
.vendor-directory-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
}
.vendor-directory-logo {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .14);
    margin: -39px 18px 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.vendor-directory-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vendor-directory-logo strong {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #fff4e8;
    color: #ff7a1a;
    font-size: 30px;
    font-weight: 950;
}
.vendor-directory-body {
    padding: 0 18px 18px;
}
.vendor-directory-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}
.vendor-directory-body p {
    min-height: 50px;
    color: #667085;
    line-height: 1.7;
    margin: 0 0 12px;
    font-size: 13px;
}
.vendor-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}
.vendor-directory-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #f6f7fb;
    color: #344054;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
}
.vendor-directory-body em {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 900;
}
.vendor-store-hero {
    min-height: 250px;
    padding: 28px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(360px, 560px);
    gap: 18px;
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 122, 26, .58), transparent 28%),
        linear-gradient(110deg, rgba(15, 23, 42, .95), rgba(15, 23, 42, .68)),
        url('https://images.unsplash.com/photo-1607083206968-13611e3d76db?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    margin-bottom: 18px;
}
.vendor-store-logo {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    display: grid;
    place-items: center;
    box-shadow: 0 15px 34px rgba(0,0,0,.2);
}
.vendor-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vendor-store-logo strong {
    color: #ff7a1a;
    font-size: 38px;
    font-weight: 950;
}
.vendor-store-search {
    display: grid;
    grid-template-columns: 1fr 150px 86px;
    gap: 8px;
}
.vendor-store-search input,
.vendor-store-search select,
.vendor-store-search button {
    height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
}
.vendor-store-search button {
    background: #ff7a1a;
    color: #111827;
    font-weight: 950;
}
.success-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 34px;
    text-align: center;
}
.success-card > i {
    font-size: 52px;
    color: #16a34a;
}
.success-card h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 14px 0 10px;
}
.success-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}
.success-summary div {
    background: #f6f7fb;
    border-radius: 10px;
    padding: 14px;
}
.success-summary span,
.success-items span {
    color: var(--muted);
}
.success-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}
.success-items {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    text-align: start;
}
.success-items div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.success-items div:last-child {
    border-bottom: 0;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.success-actions a {
    min-width: 150px;
    background: #202637;
    color: #fff;
    border-radius: 8px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 800;
}
.success-actions a:first-child {
    background: var(--yellow);
    color: #111827;
}
.simple-page {
    padding: 42px 0 70px;
}
.simple-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    padding: 34px;
    text-align: center;
}
.simple-card > span {
    color: var(--yellow);
    font-weight: 800;
}
.simple-card h1 {
    margin: 8px 0 10px;
    font-size: 32px;
    font-weight: 800;
}
.simple-card p {
    color: #3b4354;
    line-height: 1.9;
}
.simple-subtitle {
    color: var(--muted) !important;
    margin-bottom: 8px;
}
.simple-actions,
.hero-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.simple-actions {
    margin-top: 20px;
}
.simple-actions a,
.hero-link-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    background: #202637;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}
.simple-actions a:first-child,
.hero-link-btn {
    background: var(--yellow);
    color: #111827;
}

.simple-page-v2 {
    background:
        radial-gradient(circle at 12% 0, rgba(249, 115, 22, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 84px;
}

.simple-hero-card,
.simple-info-card,
.simple-steps-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.simple-hero-card {
    background: linear-gradient(135deg, #111827 0%, #243146 58%, #f97316 155%);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: hidden;
    padding: 36px 38px;
    position: relative;
}

.simple-hero-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -80px;
    top: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.simple-hero-copy,
.simple-hero-side {
    position: relative;
    z-index: 1;
}

.simple-kicker,
.simple-section-head span,
.simple-highlight-card span {
    color: #ffedd5;
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.simple-hero-card h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 950;
    line-height: 1.15;
    margin: 0 0 12px;
}

.simple-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}

.simple-body {
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.95;
    margin: 0;
    max-width: 720px;
}

.simple-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.simple-actions a,
.simple-highlight-card a {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 950;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simple-actions a:hover,
.simple-highlight-card a:hover {
    transform: translateY(-2px);
}

.simple-actions a:first-child {
    background: #fff;
    color: #111827;
}

.simple-actions a:last-child {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.simple-highlight-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 22px;
}

.simple-highlight-card strong,
.simple-highlight-card p {
    display: block;
}

.simple-highlight-card strong {
    font-size: 24px;
    font-weight: 950;
    line-height: 1.4;
    margin-bottom: 10px;
}

.simple-highlight-card p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.9;
    margin: 0 0 16px;
}

.simple-highlight-card a {
    background: #fff;
    color: #111827;
}

.simple-info-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.simple-info-card,
.simple-steps-card {
    padding: 22px;
}

.simple-info-card i {
    align-items: center;
    background: #fff7ed;
    border-radius: 16px;
    color: #f97316;
    display: grid;
    font-size: 26px;
    height: 58px;
    margin-bottom: 16px;
    place-items: center;
    width: 58px;
}

.simple-info-card strong,
.simple-step strong {
    color: #111827;
    display: block;
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 8px;
}

.simple-info-card p,
.simple-step p {
    color: #64748b;
    line-height: 1.9;
    margin: 0;
}

.simple-section-head {
    margin-bottom: 18px;
}

.simple-section-head span {
    color: #f97316;
    margin-bottom: 6px;
}

.simple-section-head h2 {
    color: #111827;
    font-size: 28px;
    font-weight: 950;
    margin: 0;
}

.simple-steps-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-step {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    padding: 20px;
}

.simple-step > span {
    align-items: center;
    background: #f97316;
    border-radius: 14px;
    color: #fff;
    display: inline-grid;
    font-size: 15px;
    font-weight: 950;
    height: 38px;
    margin-bottom: 14px;
    place-items: center;
    width: 38px;
}
.vendor-link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.vendor-link-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

@media (max-width: 1200px) {
    .row-yellow {
        grid-template-columns: 120px 135px minmax(280px, 1fr) auto;
        gap: 12px;
    }
    .brand { font-size: 29px; }
    .brand-logo {
        width: 128px;
        height: 50px;
    }
    .brand-logo img { height: 44px; }
    .deliver-box { font-size: 14px; }
    .head-actions { gap: 14px; }
    .head-actions a { font-size: 14px; }
    .head-actions a span { font-size: 19px; }
    .hero-grid { grid-template-columns: 1fr; }
    .chips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .all-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-show-hero,
    .category-products-layout,
    .modern-product-shell,
    .modern-product-info {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        direction: rtl;
    }
    .category-filter-panel,
    .category-products-results {
        grid-area: auto;
    }
    .category-filter-panel {
        position: static;
    }
    .modern-buy-panel {
        position: static;
    }
    .vendors-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .vendor-store-hero {
        grid-template-columns: 84px 1fr;
    }
    .vendor-store-search {
        grid-column: 1 / -1;
    }
    .category-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ad-grid { grid-template-columns: 1fr 1fr; }
    .ad-card-large { grid-column: 1 / -1; }
    .catalog-layout,
    .product-detail-card,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        direction: rtl;
    }
    .catalog-filters,
    .order-summary-card {
        position: static;
        grid-area: auto;
        order: initial;
    }
    .catalog-results {
        grid-area: auto;
        order: initial;
    }
    .cart-item-card {
        grid-template-columns: 104px minmax(0, 1fr) 190px;
    }
    .cart-line-total {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {
    .row-yellow {
        grid-template-columns: 1fr;
        padding: 10px 0;
        gap: 10px;
    }
    .brand {
        justify-self: center;
    }
    .brand-logo {
        justify-content: center;
    }
    .deliver-box {
        display: none;
    }
    .head-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
    .search-form {
        width: 100%;
    }
    .search-form input {
        height: 42px;
        font-size: 14px;
    }
    .vendors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
    .promo-box { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ad-grid,
    .lanes-grid { grid-template-columns: 1fr; }
    .category-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .all-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-show-hero {
        padding: 24px;
    }
    .category-hero-card {
        display: none;
    }
    .category-results-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .modern-main-image {
        min-height: 390px;
    }
    .modern-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    .modern-buy-form {
        grid-template-columns: 1fr;
    }
    .vendors-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vendors-list-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .vendor-store-hero,
    .vendor-store-search {
        grid-template-columns: 1fr;
    }
    .vendor-store-logo {
        width: 82px;
        height: 82px;
    }
    .modern-buy-panel h1 {
        font-size: 26px;
    }
    .modern-price-row strong {
        font-size: 32px;
    }
    .catalog-hero,
    .catalog-search,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .product-info-panel h1,
    .catalog-hero h1,
    .cart-heading h1 {
        font-size: 24px;
    }
    .detail-price strong {
        font-size: 28px;
    }
    .checkout-progress {
        grid-template-columns: repeat(2, 1fr);
    }
    .cart-item-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }
    .cart-item-actions,
    .cart-line-total {
        grid-column: 1 / -1;
    }
    .detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    .pc-quick {
        opacity: 1;
        transform: none;
    }
    .quick-view-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .quick-view-image {
        min-height: 290px;
        padding: 24px;
    }
    .quick-view-info {
        padding: 26px 20px 22px;
    }
    .quick-view-info h2 {
        font-size: 22px;
    }
    .quick-view-price strong {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .vendors-grid,
    .chips-grid { grid-template-columns: 1fr; }
    .head-actions a {
        font-size: 13px;
    }
    .catalog-page,
    .product-page,
    .cart-page,
    .checkout-page,
    .categories-page,
    .category-products-page {
        padding-bottom: 36px;
    }
    .category-stats-row {
        grid-template-columns: 1fr;
    }
    .category-show-hero {
        border-radius: 18px;
        min-height: 300px;
    }
    .modern-gallery-card,
    .modern-buy-panel,
    .modern-info-card {
        border-radius: 16px;
        padding: 16px;
    }
    .modern-main-image {
        min-height: 310px;
        border-radius: 14px;
    }
    .modern-main-image img {
        padding: 16px;
    }
    .vendors-directory-grid {
        grid-template-columns: 1fr;
    }
    .vendors-hero,
    .vendor-store-hero {
        border-radius: 18px;
        padding: 22px;
    }
    .all-categories-grid { grid-template-columns: 1fr; }
    .big-category-card { min-height: 220px; }
    .catalog-hero,
    .product-info-panel,
    .checkout-form-card,
    .order-summary-card {
        padding: 16px;
    }
    .buy-box,
    .qty-form,
    .quick-view-cart {
        grid-template-columns: 1fr;
    }
    .quick-view-modal {
        padding: 10px;
    }
    .quick-view-dialog {
        border-radius: 16px;
        max-height: 92vh;
        overflow-y: auto;
    }
}

/* Modern cart page */
.modern-cart-page {
    background:
        radial-gradient(circle at 15% 5%, rgba(249, 115, 22, 0.12), transparent 34%),
        linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 80px;
}

.cart-hero {
    background: linear-gradient(135deg, #111827 0%, #253047 62%, #f97316 160%);
    border-radius: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 38px;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.18);
    overflow: hidden;
    position: relative;
}

.cart-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.22);
    filter: blur(2px);
}

.cart-hero > * {
    position: relative;
    z-index: 1;
}

.cart-hero span {
    color: #ffedd5;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.cart-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px;
}

.cart-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    max-width: 620px;
}

.cart-hero a,
.modern-cart-empty a,
.modern-checkout-btn,
.modern-continue-btn {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cart-hero a {
    background: #fff;
    color: #111827;
    flex: 0 0 auto;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.cart-hero a:hover,
.modern-cart-empty a:hover,
.modern-checkout-btn:hover,
.modern-continue-btn:hover {
    transform: translateY(-2px);
}

.modern-checkout-steps {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 24px;
    padding: 12px;
}

.modern-checkout-steps span {
    align-items: center;
    background: #f8fafc;
    border-radius: 15px;
    color: #64748b;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
}

.modern-checkout-steps .active {
    background: #fff7ed;
    color: #ea580c;
}

.modern-cart-empty {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    justify-content: center;
    padding: 44px 24px;
    text-align: center;
}

.modern-cart-empty > i {
    align-items: center;
    background: #fff7ed;
    border-radius: 24px;
    color: #f97316;
    display: grid;
    font-size: 46px;
    height: 96px;
    margin-bottom: 22px;
    place-items: center;
    width: 96px;
}

.modern-cart-empty h2 {
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 10px;
}

.modern-cart-empty p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0 auto 24px;
    max-width: 520px;
}

.modern-cart-empty div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.modern-cart-empty a:first-child {
    background: #f97316;
    color: #fff;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.modern-cart-empty a:last-child {
    background: #111827;
    color: #fff;
}

.modern-cart-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.modern-cart-items,
.modern-order-summary {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.modern-cart-items {
    padding: 18px;
}

.cart-section-title {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 4px 4px 16px;
}

.cart-section-title span {
    color: #f97316;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 4px;
}

.cart-section-title h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.cart-section-title button,
.modern-remove-btn {
    background: #fff1f2;
    border: 0;
    border-radius: 13px;
    color: #e11d48;
    font-weight: 900;
    min-height: 40px;
    padding: 0 14px;
}

.modern-cart-item {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 22px;
    display: grid;
    gap: 18px;
    grid-template-columns: 132px minmax(0, 1.35fr) 120px 170px 130px;
    margin-top: 14px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-cart-item:hover {
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.modern-cart-image {
    background: #f7f8fb;
    border-radius: 18px;
    display: block;
    overflow: hidden;
}

.modern-cart-image img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.modern-cart-info > span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.modern-cart-info > a {
    color: #111827;
    display: -webkit-box;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.55;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-item-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cart-item-perks small {
    align-items: center;
    background: #f8fafc;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    padding: 6px 9px;
}

.modern-cart-price span,
.modern-line-total span {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.modern-cart-price strong,
.modern-line-total strong {
    color: #111827;
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.modern-line-total strong {
    color: #f97316;
}

.modern-cart-controls {
    display: grid;
    gap: 10px;
}

.modern-qty-form {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 74px 1fr;
    overflow: hidden;
}

.modern-qty-form input {
    background: transparent;
    border: 0;
    color: #111827;
    font-weight: 900;
    min-height: 42px;
    padding: 0 10px;
    text-align: center;
}

.modern-qty-form button {
    background: #111827;
    border: 0;
    color: #fff;
    font-weight: 900;
    padding: 0 12px;
}

.modern-remove-btn {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
    width: 100%;
}

.modern-order-summary {
    padding: 20px;
    position: sticky;
    top: 112px;
}

.modern-order-summary h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    margin: 0 0 16px;
}

.summary-mini-card {
    align-items: center;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
}

.summary-mini-card i {
    align-items: center;
    background: #fff;
    border-radius: 14px;
    color: #f97316;
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
}

.summary-mini-card strong,
.summary-mini-card span {
    display: block;
}

.summary-mini-card strong {
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.summary-mini-card span {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.modern-summary-row,
.modern-summary-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.modern-summary-row {
    border-bottom: 1px solid #edf0f5;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 0;
}

.modern-summary-row strong {
    color: #111827;
}

.modern-summary-total {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
    padding: 18px 0 20px;
}

.modern-summary-total strong {
    color: #f97316;
    font-size: 26px;
}

.modern-checkout-btn {
    background: #f97316;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    color: #fff;
    margin-bottom: 10px;
    width: 100%;
}

.modern-continue-btn {
    background: #111827;
    color: #fff;
    width: 100%;
}

@media (max-width: 1200px) {
    .modern-cart-layout {
        grid-template-columns: 1fr;
    }

    .modern-order-summary {
        position: static;
    }

    .modern-cart-item {
        grid-template-columns: 120px minmax(0, 1fr) 120px 160px;
    }

    .modern-line-total {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {
    .modern-cart-page {
        padding: 18px 0 52px;
    }

    .cart-hero {
        align-items: flex-start;
        border-radius: 20px;
        flex-direction: column;
        padding: 24px;
    }

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

    .modern-cart-item {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .modern-cart-price,
    .modern-cart-controls,
    .modern-line-total {
        grid-column: 1 / -1;
    }

    .modern-cart-controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .modern-checkout-steps,
    .modern-cart-controls {
        grid-template-columns: 1fr;
    }

    .modern-cart-item {
        grid-template-columns: 1fr;
    }

    .modern-cart-image img {
        aspect-ratio: 4 / 3;
    }

    .cart-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Modern checkout page */
.modern-checkout-page {
    background:
        radial-gradient(circle at 84% 0, rgba(249, 115, 22, 0.11), transparent 30%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 84px;
}

.checkout-hero {
    background: linear-gradient(135deg, #111827 0%, #243146 60%, #f97316 150%);
    border-radius: 28px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 34px 38px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
}

.checkout-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.checkout-hero > * {
    position: relative;
    z-index: 1;
}

.checkout-hero span {
    color: #ffedd5;
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.checkout-hero h1 {
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 950;
    line-height: 1.15;
    margin: 0 0 12px;
}

.checkout-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    max-width: 620px;
}

.checkout-hero a {
    align-items: center;
    align-self: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    color: #111827;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-hero a:hover,
.modern-place-order-btn:hover {
    transform: translateY(-2px);
}

.modern-checkout-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.08fr) 380px;
    margin-top: 24px;
}

.modern-checkout-form,
.modern-checkout-summary {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.modern-checkout-form {
    padding: 24px;
}

.checkout-form-head {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.checkout-form-head span,
.summary-head span {
    color: #f97316;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 4px;
}

.checkout-form-head h2,
.summary-head h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 950;
    margin: 0;
}

.checkout-secure-badge {
    align-items: center;
    background: #fff7ed;
    border-radius: 999px;
    color: #ea580c;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.checkout-form-grid {
    display: grid;
    gap: 18px;
}

.modern-field-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.modern-field label {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 8px;
}

.modern-field input,
.modern-field textarea {
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    color: #111827;
    font-size: 15px;
    min-height: 54px;
    outline: 0;
    padding: 0 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

.modern-field textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.modern-field input:focus,
.modern-field textarea:focus {
    background: #fff;
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.modern-field small {
    color: #64748b;
    display: block;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 7px;
}

.modern-field .field-error {
    color: #dc2626;
    font-weight: 800;
}

.checkout-submit-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 4px;
    padding: 18px;
}

.checkout-submit-row p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
    max-width: 360px;
}

.modern-place-order-btn {
    align-items: center;
    background: #f97316;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 950;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
}

.modern-checkout-summary {
    padding: 20px;
    position: sticky;
    top: 112px;
}

.summary-head {
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.checkout-items-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 420px;
    overflow: auto;
    padding-inline-end: 4px;
}

.checkout-summary-item {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 10px;
}

.checkout-summary-media {
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
}

.checkout-summary-media img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.checkout-summary-copy a {
    color: #111827;
    display: -webkit-box;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
    margin-bottom: 4px;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.checkout-summary-copy span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.checkout-summary-item strong {
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.checkout-summary-note {
    align-items: center;
    background: linear-gradient(135deg, #111827, #273449);
    border-radius: 18px;
    color: #fff;
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
}

.checkout-summary-note i {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
}

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

.checkout-summary-note strong {
    font-size: 14px;
    font-weight: 950;
}

.checkout-summary-note span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    margin-top: 3px;
}

@media (max-width: 1200px) {
    .modern-checkout-layout {
        grid-template-columns: 1fr;
    }

    .modern-checkout-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .modern-checkout-page {
        padding: 18px 0 52px;
    }

    .checkout-hero {
        border-radius: 20px;
        flex-direction: column;
        padding: 24px;
    }

    .checkout-form-head,
    .checkout-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .modern-field-grid {
        grid-template-columns: 1fr;
    }

    .checkout-items-list {
        max-height: none;
    }
}

@media (max-width: 520px) {
    .modern-checkout-form,
    .modern-checkout-summary {
        border-radius: 18px;
        padding: 16px;
    }

    .checkout-summary-item {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .checkout-summary-item strong {
        grid-column: 1 / -1;
    }

    .modern-place-order-btn,
    .checkout-hero a {
        width: 100%;
    }
}

/* Modern checkout success page */
.modern-success-page {
    background:
        radial-gradient(circle at 14% 4%, rgba(34, 197, 94, 0.11), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 84px;
}

.modern-success-hero {
    align-items: center;
    background: linear-gradient(135deg, #111827 0%, #243146 56%, #22c55e 170%);
    border-radius: 28px;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 22px;
    min-height: 360px;
    overflow: hidden;
    padding: 36px 32px;
    position: relative;
    text-align: center;
}

.modern-success-hero::before {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.modern-success-hero > * {
    position: relative;
    z-index: 1;
}

.success-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    display: grid;
    height: 96px;
    margin-bottom: 18px;
    place-items: center;
    width: 96px;
}

.success-icon i {
    font-size: 48px;
}

.modern-success-hero span {
    color: #dcfce7;
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.modern-success-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 950;
    line-height: 1.15;
    margin: 0 0 12px;
}

.modern-success-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 760px;
}

.modern-success-hero p strong {
    color: #fff;
}

.modern-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.modern-success-actions a {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-success-actions a:hover {
    transform: translateY(-2px);
}

.success-home-btn {
    background: #22c55e;
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.24);
    color: #fff;
}

.success-shop-btn {
    background: #fff;
    color: #111827;
}

.success-track-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.modern-success-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    margin-top: 24px;
}

.modern-success-summary,
.modern-success-items {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    padding: 22px;
}

.success-block-head {
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.success-block-head span {
    color: #16a34a;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 4px;
}

.success-block-head h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 950;
    margin: 0;
}

.success-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.success-stat-card {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px;
}

.success-stat-card span,
.success-customer-box span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.success-stat-card strong,
.success-customer-box strong {
    color: #111827;
    display: block;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.8;
}

.success-customer-box {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.success-customer-box > div {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px;
}

.success-customer-box > .full {
    grid-column: 1 / -1;
}

.success-items-list {
    display: grid;
    gap: 12px;
}

.success-order-item {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.success-order-item__copy a {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    margin-bottom: 4px;
    text-decoration: none;
}

.success-order-item__copy span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.success-order-item strong {
    color: #16a34a;
    font-size: 15px;
    font-weight: 950;
}

@media (max-width: 1200px) {
    .modern-success-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modern-success-page {
        padding: 18px 0 52px;
    }

    .modern-success-hero {
        border-radius: 20px;
        min-height: 320px;
        padding: 28px 22px;
    }

    .success-stat-grid,
    .success-customer-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .modern-success-summary,
    .modern-success-items {
        border-radius: 18px;
        padding: 16px;
    }

    .modern-success-actions a,
    .success-order-item {
        width: 100%;
    }

    .success-order-item {
        grid-template-columns: 1fr;
    }
}

/* Order tracking */
.order-track-page {
    background:
        radial-gradient(circle at 10% 2%, rgba(249, 115, 22, 0.12), transparent 25%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 84px;
}

.track-order-hero {
    background: linear-gradient(135deg, #111827 0%, #243146 58%, #f97316 155%);
    border-radius: 28px;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 280px;
    overflow: hidden;
    padding: 34px 38px;
    position: relative;
}

.track-order-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    top: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.track-order-hero > * {
    position: relative;
    z-index: 1;
}

.track-order-hero span {
    color: #ffedd5;
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.track-order-hero h1 {
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 950;
    line-height: 1.15;
    margin: 0 0 12px;
}

.track-order-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    max-width: 700px;
}

.track-hero-card {
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 20px;
}

.track-hero-card strong,
.track-hero-card p {
    display: block;
}

.track-hero-card strong {
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 8px;
}

.track-order-search-card,
.track-status-card,
.track-order-items-card,
.track-summary-card,
.track-help-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.track-order-search-card {
    margin-top: 22px;
    padding: 22px;
}

.track-search-head,
.track-status-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.track-search-head span,
.track-block-head span,
.track-status-head span:first-child {
    color: #f97316;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 4px;
}

.track-search-head h2,
.track-block-head h2,
.track-status-head h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 950;
    margin: 0;
}

.track-search-mini {
    align-items: center;
    background: #fff7ed;
    border-radius: 999px;
    color: #ea580c;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
}

.track-order-form {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
}

.track-form-field label {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 8px;
}

.track-form-field input {
    background: #f8fafc;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    color: #111827;
    font-size: 15px;
    min-height: 54px;
    outline: 0;
    padding: 0 16px;
    width: 100%;
}

.track-form-field input:focus {
    background: #fff;
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.track-order-btn {
    align-items: center;
    align-self: end;
    background: #f97316;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 950;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
}

.track-order-alert {
    align-items: flex-start;
    border-radius: 18px;
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
}

.track-order-alert i {
    font-size: 22px;
}

.track-order-alert strong,
.track-order-alert p {
    display: block;
}

.track-order-alert strong {
    font-size: 15px;
    font-weight: 950;
    margin-bottom: 4px;
}

.track-order-alert p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.track-order-alert.success {
    background: #ecfdf3;
    color: #166534;
}

.track-order-alert.error {
    background: #fff1f2;
    color: #be123c;
}

.track-order-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
    margin-top: 24px;
}

.track-order-main {
    display: grid;
    gap: 24px;
}

.track-status-card,
.track-order-items-card,
.track-summary-card {
    padding: 22px;
}

.track-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    min-height: 40px;
    padding: 0 16px;
}

.track-status-badge.pending,
.track-status-badge.processing {
    background: #fff7ed;
    color: #ea580c;
}

.track-status-badge.shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

.track-status-badge.delivered {
    background: #ecfdf3;
    color: #15803d;
}

.track-status-badge.cancelled {
    background: #fff1f2;
    color: #be123c;
}

.track-status-timeline {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.track-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 148px;
    justify-content: center;
    padding: 20px 14px;
    text-align: center;
}

.track-step-icon {
    align-items: center;
    background: #fff;
    border-radius: 16px;
    color: #94a3b8;
    display: grid;
    font-size: 24px;
    height: 54px;
    place-items: center;
    width: 54px;
}

.track-step span {
    color: #475569;
    font-size: 14px;
    font-weight: 900;
}

.track-step.done,
.track-step.current {
    border-color: rgba(249, 115, 22, 0.22);
    background: #fff7ed;
}

.track-step.done .track-step-icon,
.track-step.current .track-step-icon {
    color: #f97316;
}

.track-order-items {
    display: grid;
    gap: 12px;
}

.track-order-item {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
}

.track-item-copy strong,
.track-item-copy span {
    display: block;
}

.track-item-copy strong {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    margin-bottom: 4px;
}

.track-item-copy span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.track-item-total {
    color: #f97316;
    font-size: 15px;
    font-weight: 950;
}

.track-summary-list {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.track-summary-list > div {
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 14px;
}

.track-summary-list > .full {
    grid-column: 1 / -1;
}

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

.track-summary-list span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.track-summary-list strong {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.8;
}

.track-help-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding: 22px;
    text-align: center;
}

.track-help-card i {
    align-items: center;
    background: #fff7ed;
    border-radius: 18px;
    color: #f97316;
    display: grid;
    font-size: 26px;
    height: 58px;
    place-items: center;
    width: 58px;
}

.track-help-card strong {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.track-help-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.track-help-card a {
    align-items: center;
    background: #111827;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .track-order-layout,
    .track-order-hero {
        grid-template-columns: 1fr;
    }

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

    .simple-hero-card,
    .simple-info-grid,
    .simple-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .order-track-page {
        padding: 18px 0 52px;
    }

    .track-order-hero,
    .track-order-search-card,
    .track-status-card,
    .track-order-items-card,
    .track-summary-card,
    .track-help-card {
        border-radius: 20px;
    }

    .track-order-hero {
        padding: 24px;
    }

    .track-search-head,
    .track-status-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .track-order-form,
    .track-summary-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .track-status-timeline,
    .track-order-item {
        grid-template-columns: 1fr;
    }

    .track-step {
        min-height: auto;
    }

    .track-order-btn,
    .track-help-card a {
        width: 100%;
    }
}

.account-active-orders-card,
.account-panel,
.account-sidebar-card,
.account-auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.account-auth-page,
.account-page {
    background:
        radial-gradient(circle at 14% 2%, rgba(249, 115, 22, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    min-height: calc(100vh - 120px);
    padding: 28px 0 84px;
}

.account-auth-hero,
.account-hero {
    background: linear-gradient(135deg, #111827 0%, #243146 56%, #f97316 155%);
    border-radius: 28px;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.18);
    color: #fff;
    padding: 34px 38px;
}

.account-auth-hero span,
.account-hero span {
    color: #ffedd5;
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.account-auth-hero h1,
.account-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    line-height: 1.15;
    margin: 0 0 12px;
}

.account-auth-hero p,
.account-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    max-width: 740px;
}

.account-hero {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: space-between;
}

.account-hero a {
    align-items: center;
    background: #fff;
    border-radius: 16px;
    color: #111827;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    text-decoration: none;
}

.account-auth-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
}

.account-auth-card,
.account-panel,
.account-active-orders-card {
    padding: 22px;
}

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

.account-check {
    align-items: center;
    color: #475569;
    display: inline-flex;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.account-primary-btn,
.account-order-card__actions a,
.account-order-row a,
.account-logout-btn {
    align-items: center;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 950;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none;
}

.account-primary-btn {
    background: #f97316;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
    color: #fff;
}

.account-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 290px minmax(0, 1fr);
    margin-top: 24px;
}

.account-sidebar-card {
    align-self: start;
    padding: 20px;
    position: sticky;
    top: 112px;
}

.account-sidebar-user {
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.account-avatar {
    align-items: center;
    background: #fff7ed;
    border-radius: 18px;
    color: #f97316;
    display: grid;
    font-size: 24px;
    font-weight: 950;
    height: 58px;
    place-items: center;
    width: 58px;
}

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

.account-sidebar-user strong {
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.account-sidebar-user span {
    color: #64748b;
    font-size: 12px;
}

.account-sidebar-nav {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.account-sidebar-nav a,
.account-logout-btn {
    align-items: center;
    background: #f8fafc;
    border-radius: 14px;
    color: #111827;
    display: flex;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
}

.account-sidebar-nav a.active {
    background: #fff7ed;
    color: #ea580c;
}

.account-logout-btn {
    width: 100%;
}

.account-content {
    display: grid;
    gap: 24px;
}

.account-stats-grid,
.account-order-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-stat-card,
.account-order-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    padding: 16px;
}

.account-stat-card span,
.account-order-card__top span,
.account-order-card__meta span,
.account-order-row span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.account-stat-card strong,
.account-order-card__top strong,
.account-order-row strong {
    color: #111827;
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.account-order-card__top,
.account-order-card__meta {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.account-order-card__meta {
    margin-top: 14px;
}

.account-order-card__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

.account-order-card__actions a:first-child,
.account-order-row a,
.account-filter-tabs a.active {
    background: #111827;
    color: #fff;
}

.account-order-card__actions a:last-child,
.account-filter-tabs a {
    background: #f8fafc;
    color: #111827;
}

.account-order-list {
    display: grid;
    gap: 12px;
}

.account-order-row {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 160px;
    padding: 14px 16px;
}

.account-order-list.detailed .account-order-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 160px;
}

.account-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-filter-tabs a {
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    min-height: 42px;
    padding: 0 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.account-empty-state {
    align-items: center;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 34px 20px;
    text-align: center;
}

.account-empty-state i {
    align-items: center;
    background: #fff7ed;
    border-radius: 18px;
    color: #f97316;
    display: grid;
    font-size: 28px;
    height: 60px;
    place-items: center;
    width: 60px;
}

.account-empty-state strong {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.account-empty-state p {
    color: #64748b;
    margin: 0;
    max-width: 480px;
}

@media (max-width: 1200px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar-card {
        position: static;
    }

    .account-stats-grid,
    .account-order-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .account-auth-page,
    .account-page {
        padding: 18px 0 52px;
    }

    .account-auth-layout,
    .account-order-row,
    .account-order-list.detailed .account-order-row,
    .account-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .account-auth-hero,
    .account-hero,
    .simple-hero-card,
    .simple-info-card,
    .simple-steps-card,
    .account-auth-card,
    .account-panel,
    .account-sidebar-card,
    .account-active-orders-card {
        border-radius: 20px;
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .account-stats-grid,
    .account-order-cards,
    .account-order-card__actions {
        grid-template-columns: 1fr;
    }

    .account-order-row a,
    .account-primary-btn {
        width: 100%;
    }
}

.vendor-register-page,
.vendor-dashboard-page {
    min-height: 100vh;
    background: radial-gradient(circle at 12% 10%, rgba(255, 90, 60, 0.12), transparent 30%), linear-gradient(180deg, #fff7f2 0%, #f8fafc 280px);
    padding: 34px 0 70px;
}

.vendor-register-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.vendor-register-copy,
.vendor-dashboard-hero {
    border-radius: 32px;
    padding: 34px;
    color: #fff;
    background: radial-gradient(circle at 16% 18%, rgba(255,255,255,.14), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 54%, #ff5a3c 150%);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.vendor-register-copy span,
.vendor-dashboard-hero span {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.vendor-register-copy h1,
.vendor-dashboard-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.12;
}

.vendor-register-copy p,
.vendor-dashboard-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.9;
}

.vendor-register-points,
.vendor-form-grid,
.vendor-dynamic-fields,
.vendor-upload-grid,
.vendor-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vendor-register-points {
    margin-top: 28px;
}

.vendor-register-points b {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
}

.vendor-register-card,
.vendor-panel {
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,240,.86);
    box-shadow: 0 18px 48px rgba(15,23,42,.08);
}

.form-head h2,
.vendor-panel-head h2 {
    margin: 0;
    color: #1e293b;
    font-size: 26px;
    font-weight: 900;
}

.form-head p,
.vendor-panel-head p {
    margin: 8px 0 20px;
    color: #64748b;
}

.vendor-register-card label {
    display: grid;
    gap: 8px;
    color: #1e293b;
    font-weight: 900;
}

.vendor-register-card label.wide {
    grid-column: 1 / -1;
}

.vendor-register-card span em {
    color: #ff5a3c;
    font-style: normal;
}

.vendor-register-card input,
.vendor-register-card select,
.vendor-register-card textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    padding: 0 15px;
    background: #fff;
    outline: 0;
    box-shadow: 0 10px 26px rgba(15,23,42,.035);
}

.vendor-register-card textarea {
    min-height: 130px;
    padding-block: 14px;
}

.vendor-dynamic-fields,
.vendor-upload-grid {
    margin-top: 16px;
}

.vendor-form-errors {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 800;
}

.vendor-register-card button {
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff5a3c, #ff7a45);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(255,90,60,.24);
}

.vendor-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.vendor-dashboard-hero a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.vendor-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.vendor-stats-grid article {
    min-height: 118px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.vendor-stats-grid span {
    color: #64748b;
    font-weight: 900;
}

.vendor-stats-grid strong {
    display: block;
    margin-top: 10px;
    color: #1e293b;
    font-size: 22px;
    font-weight: 900;
}

.vendor-products-list {
    display: grid;
    gap: 12px;
}

.vendor-products-list article {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.vendor-products-list img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
}

.vendor-products-list strong {
    display: block;
    color: #1e293b;
    font-weight: 900;
}

.vendor-products-list span,
.vendor-products-list em {
    color: #64748b;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 991px) {
    .vendor-register-grid,
    .vendor-form-grid,
    .vendor-dynamic-fields,
    .vendor-upload-grid,
    .vendor-stats-grid {
        grid-template-columns: 1fr;
    }

    .vendor-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* B2B Alibaba-style marketplace refresh */
:root {
    --trade-orange: #ff6a00;
    --trade-orange-dark: #d95500;
    --trade-navy: #111827;
    --trade-ink: #172033;
    --trade-soft: #fff7ed;
    --trade-line: #e7edf5;
}

.header-yellow {
    background: linear-gradient(90deg, #ff6a00, #ff8a1f);
}

.header-dark {
    background: #111827;
}

.top-mini {
    background: #0b1220;
}

.b2b-hero-section {
    padding: 18px 0 12px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,106,0,.16), transparent 28%),
        linear-gradient(180deg, #fff7ed 0%, #f5f6fa 100%);
}

.b2b-hero-grid {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: stretch;
}

.b2b-category-rail,
.b2b-rfq-card {
    background: #fff;
    border: 1px solid var(--trade-line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.b2b-category-rail {
    padding: 14px;
    display: grid;
    gap: 7px;
}

.rail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--trade-ink);
    font-weight: 900;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.b2b-category-rail a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #243047;
    text-decoration: none;
    font-weight: 800;
}

.b2b-category-rail a:hover {
    background: #fff7ed;
    color: var(--trade-orange-dark);
}

.b2b-category-rail small {
    color: #7b8797;
    font-size: 11px;
    white-space: nowrap;
}

.b2b-category-rail .rail-all {
    justify-content: center;
    background: #111827;
    color: #fff;
}

.b2b-hero-main {
    min-height: 410px;
    border-radius: 22px;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(17,24,39,.94), rgba(17,24,39,.78) 48%, rgba(255,106,0,.42)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=82') center/cover no-repeat;
    box-shadow: 0 22px 54px rgba(17,24,39,.24);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b2b-hero-main h1 {
    max-width: 790px;
    margin: 14px 0 10px;
    font-size: clamp(34px, 4.5vw, 62px);
    line-height: 1.12;
    font-weight: 900;
}

.b2b-hero-main p {
    max-width: 720px;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.9;
}

.b2b-rfq-search {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 820px;
    padding: 8px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.b2b-rfq-search input {
    height: 54px;
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    font-size: 16px;
}

.b2b-rfq-search button {
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    padding: 0 22px;
    background: var(--trade-orange);
    color: #fff;
    font-weight: 900;
}

.b2b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.b2b-rfq-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,106,0,.18), transparent 30%),
        #fff;
}

.b2b-rfq-card span {
    color: var(--trade-orange-dark);
    font-size: 12px;
    font-weight: 900;
}

.b2b-rfq-card h2 {
    margin: 8px 0 8px;
    color: var(--trade-ink);
    font-size: 27px;
    font-weight: 900;
}

.b2b-rfq-card p {
    color: #64748b;
    line-height: 1.8;
}

.b2b-rfq-card a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.b2b-trust-section {
    padding: 12px 0 8px;
}

.b2b-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.b2b-trust-grid div {
    min-height: 88px;
    padding: 15px;
    border: 1px solid var(--trade-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.b2b-trust-grid strong {
    display: block;
    color: var(--trade-orange-dark);
    font-size: 25px;
    font-weight: 900;
}

.b2b-trust-grid span {
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.pc-ship {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pc-trade-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 7px;
}

.pc-trade-row span {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
}

.pc-b2b-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.pc-b2b-note i {
    color: var(--trade-orange);
}

.pc-cart-btn {
    background: linear-gradient(135deg, #ff6a00, #f97316);
    color: #fff;
}

.pc-cart-btn:hover {
    background: #111827;
    color: #fff;
}

.vendor-card {
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15,23,42,.07);
}

.vendor-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #15803d;
    background: #ecfdf3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.vendor-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--trade-orange-dark);
    font-weight: 900;
    text-decoration: none;
}

.b2b-product-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.b2b-product-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 1180px) {
    .b2b-hero-grid {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .b2b-rfq-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .row-yellow {
        grid-template-columns: 1fr;
    }

    .head-actions {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 14px;
    }

    .b2b-hero-grid,
    .b2b-trust-grid,
    .b2b-product-meta {
        grid-template-columns: 1fr;
    }

    .b2b-category-rail {
        order: 2;
    }

    .b2b-hero-main {
        min-height: 460px;
        padding: 24px;
    }

    .b2b-rfq-search {
        grid-template-columns: 1fr;
    }
}

/* Ultra-premium TWOMA B2B product experience */
.premium-product-experience {
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 107, 0, .12), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #ffffff 72%);
}

.premium-b2b-product-page {
    padding: 22px 0 54px;
}

.premium-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.premium-product-breadcrumb a {
    color: #071225;
    text-decoration: none;
}

.premium-product-breadcrumb i {
    color: #ff6b00;
    font-size: 11px;
}

.premium-product-grid {
    display: grid;
    grid-template-columns: minmax(340px, .85fr) minmax(430px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.premium-gallery-panel {
    grid-column: 1;
    grid-row: 1;
}

.premium-product-info-panel {
    grid-column: 2;
    grid-row: 1;
}

.premium-product-info-panel,
.premium-gallery-panel,
.premium-inline-ai-panel,
.premium-smart-analysis,
.premium-insight-card,
.premium-info-card,
.premium-supplier-card {
    border: 1px solid rgba(229, 231, 235, .92);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 22px 60px rgba(7, 18, 37, .09);
    backdrop-filter: blur(18px);
}

.premium-product-info-panel {
    padding: 22px;
}

.premium-market-badge {
    display: inline-grid;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 16px;
    background: #071225;
    color: #fff;
}

.premium-market-badge span {
    font-size: 12px;
    font-weight: 900;
}

.premium-market-badge small {
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
}

.premium-product-info-panel h1 {
    margin: 18px 0 12px;
    color: #101828;
    font-size: clamp(24px, 2.35vw, 36px);
    line-height: 1.25;
    font-weight: 950;
}

.premium-rating-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.premium-rating-strip span {
    color: #ff6b00;
    letter-spacing: 1px;
}

.premium-rating-strip b {
    color: #101828;
}

.premium-price-block {
    margin: 18px 0;
    padding: 17px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 0, rgba(255, 107, 0, .16), transparent 34%),
        #fff7ed;
    border: 1px solid #fed7aa;
}

.premium-price-block span,
.premium-price-block del {
    display: block;
}

.premium-price-block span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.premium-price-block strong {
    display: block;
    margin-top: 5px;
    color: #071225;
    font-size: 35px;
    line-height: 1;
    font-weight: 950;
}

.premium-price-block del {
    margin-top: 7px;
    color: #94a3b8;
    font-weight: 800;
}

.premium-badges-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.premium-badges-row span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #344054;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.premium-badges-row i {
    color: #16a34a;
}

.premium-short-desc {
    margin: 16px 0;
    color: #475467;
    line-height: 1.9;
    font-weight: 800;
}

.premium-action-form {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.premium-action-form label {
    display: grid;
    gap: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.premium-action-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 12px;
    outline: 0;
    background: #fff;
    color: #101828;
    font-size: 16px;
    font-weight: 900;
    line-height: 50px;
    text-align: center;
    direction: ltr;
}

.premium-action-form input[type="number"] {
    appearance: auto;
    -moz-appearance: textfield;
}

.premium-action-form input[type="number"]::-webkit-outer-spin-button,
.premium-action-form input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
    margin: 0;
}

.premium-action-form button,
.premium-rfq-btn,
.premium-negotiate-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    font-weight: 950;
    text-decoration: none;
}

.premium-action-form button {
    align-self: end;
    min-height: 50px;
    height: 50px;
    padding: 0 16px;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #ff6b00, #ff9a3d);
    box-shadow: 0 16px 34px rgba(255, 107, 0, .24);
}

.premium-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.premium-rfq-btn {
    color: #071225;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.premium-negotiate-btn {
    color: #fff;
    background: #071225;
}

.premium-shipping-card {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.premium-shipping-card div {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}

.premium-shipping-card i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ff6b00;
    background: #fff7ed;
}

.premium-gallery-panel {
    padding: 14px;
}

.premium-gallery-main {
    position: relative;
    aspect-ratio: 1 / .86;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(7, 18, 37, .05), rgba(255, 107, 0, .07)),
        #fff;
}

.premium-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    transition: transform .28s ease;
}

.premium-gallery-main:hover img {
    transform: scale(1.055);
}

.premium-sale-badge,
.premium-gallery-wish {
    position: absolute;
    z-index: 2;
}

.premium-sale-badge {
    top: 18px;
    right: 18px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: #ff6b00;
    font-size: 12px;
    font-weight: 950;
}

.premium-gallery-wish {
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    color: #071225;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 12px 28px rgba(7, 18, 37, .12);
}

.premium-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.premium-gallery-thumbs button {
    aspect-ratio: 1;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.premium-gallery-thumbs button.active {
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, .12);
}

.premium-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.premium-inline-ai-panel {
    position: sticky;
    top: 118px;
    overflow: hidden;
}

.premium-ai-head {
    min-height: 96px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 0, rgba(255, 107, 0, .35), transparent 34%),
        linear-gradient(135deg, #071225, #142846);
}

.premium-ai-head > span {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #ff9a3d;
    background: rgba(255, 255, 255, .14);
    font-size: 26px;
}

.premium-ai-head strong,
.premium-ai-head small,
.premium-ai-head em {
    display: block;
}

.premium-ai-head strong {
    font-size: 21px;
    font-weight: 950;
}

.premium-ai-head small {
    color: rgba(255, 255, 255, .76);
}

.premium-ai-head em {
    margin-top: 7px;
    color: #d1fae5;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.premium-ai-head b {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-radius: 50%;
    background: #16a34a;
}

.premium-ai-welcome,
.premium-ai-feature-grid,
.premium-ai-suggestions,
.premium-ai-input {
    margin: 14px;
}

.premium-ai-welcome {
    padding: 14px;
    border-radius: 20px;
    background: #f5f7fb;
}

.premium-ai-welcome span {
    color: #ff6b00;
    font-weight: 950;
}

.premium-ai-welcome h2 {
    margin: 8px 0 4px;
    color: #101828;
    font-size: 18px;
    font-weight: 950;
}

.premium-ai-welcome p {
    margin: 0;
    color: #667085;
}

.premium-ai-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.premium-ai-feature-grid button,
.premium-ai-suggestions button {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #101828;
    font-weight: 900;
}

.premium-ai-feature-grid button {
    min-height: 74px;
    border-radius: 17px;
    padding: 9px;
    text-align: right;
    font-size: 12px;
}

.premium-ai-suggestions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.premium-ai-suggestions button {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
    font-size: 12px;
}

.premium-ai-input {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 8px;
    padding-top: 2px;
}

.premium-ai-input input,
.premium-ai-input button {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.premium-ai-input input {
    padding: 0 12px;
    color: #667085;
    background: #f8fafc;
}

.premium-ai-input button {
    color: #fff;
    background: #ff6b00;
}

.premium-ai-consultant,
.premium-product-info,
.premium-recommendations {
    margin-top: 22px;
}

.premium-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.premium-section-title span {
    display: block;
    color: #ff6b00;
    font-size: 13px;
    font-weight: 950;
}

.premium-section-title h2 {
    margin: 4px 0 0;
    color: #101828;
    font-size: 26px;
    font-weight: 950;
}

.premium-section-title a {
    color: #ff6b00;
    font-weight: 950;
    text-decoration: none;
}

.premium-section-title em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.premium-analysis-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.premium-smart-analysis,
.premium-insight-card {
    padding: 18px;
}

.premium-smart-analysis h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 18px;
    font-weight: 950;
}

.premium-smart-analysis ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-smart-analysis li {
    display: flex;
    gap: 8px;
    color: #344054;
    font-weight: 900;
}

.premium-ai-verdict {
    margin: 14px 0 0;
    color: #475467;
    line-height: 1.8;
    font-weight: 850;
}

.premium-insights-dynamic {
    display: contents;
}

.premium-smart-analysis i,
.premium-supplier-list i {
    color: #16a34a;
}

.premium-supply-time {
    margin-top: 16px;
    padding: 12px;
    border-radius: 16px;
    background: #071225;
    color: #fff;
}

.premium-supply-time span,
.premium-supply-time strong {
    display: block;
}

.premium-supply-time span {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 850;
}

.premium-supply-time strong {
    margin-top: 4px;
    color: #ff9a3d;
    font-size: 20px;
    font-weight: 950;
}

.premium-insight-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.premium-insight-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ff6b00;
    background: #fff7ed;
    font-size: 20px;
}

.premium-insight-card strong {
    color: #101828;
    font-weight: 950;
}

.premium-insight-card span {
    color: #667085;
    line-height: 1.65;
    font-size: 13px;
    font-weight: 800;
}

.premium-product-info {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 16px;
}

.premium-info-card,
.premium-supplier-card {
    padding: 20px;
}

.premium-info-card h2,
.premium-supplier-card h2 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 21px;
    font-weight: 950;
}

.premium-supplier-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 17px;
    background: #f5f7fb;
}

.premium-supplier-name strong,
.premium-supplier-name span {
    display: block;
}

.premium-supplier-name strong {
    color: #101828;
    font-weight: 950;
}

.premium-supplier-name span {
    color: #16a34a;
    font-size: 12px;
    font-weight: 950;
}

.premium-supplier-list {
    display: grid;
    gap: 10px;
}

.premium-supplier-list div {
    display: flex;
    gap: 9px;
    color: #344054;
    font-weight: 900;
}

.premium-ai-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.premium-ai-recommendation-card,
.premium-ai-recommendation-skeleton {
    border: 1px solid rgba(229, 231, 235, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 44px rgba(7, 18, 37, .08);
    overflow: hidden;
}

.premium-ai-recommendation-skeleton {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #667085;
    font-weight: 900;
    text-align: center;
}

.premium-ai-recommendation-card > a {
    display: block;
    aspect-ratio: 1.15;
    background: #f5f7fb;
}

.premium-ai-recommendation-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .22s ease;
}

.premium-ai-recommendation-card:hover img {
    transform: scale(1.045);
}

.premium-ai-recommendation-card > div {
    padding: 13px;
}

.premium-ai-recommendation-card strong {
    display: block;
    min-height: 42px;
    color: #101828;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 950;
}

.premium-ai-recommendation-card a {
    text-decoration: none;
}

.premium-ai-recommendation-card span {
    display: block;
    margin-top: 7px;
    color: #ff6b00;
    font-size: 12px;
    font-weight: 950;
}

.premium-ai-recommendation-card p {
    min-height: 40px;
    margin: 7px 0 10px;
    color: #667085;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 800;
}

.premium-ai-recommendation-card div div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.premium-ai-recommendation-card div div a,
.premium-ai-recommendation-card div div button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 950;
}

.premium-ai-recommendation-card div div button {
    border: 0;
    color: #fff;
    background: #ff6b00;
}

@media (max-width: 1320px) {
    .premium-product-grid {
        grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
    }

    .premium-inline-ai-panel {
        grid-column: 1 / -1;
        position: static;
    }

    .premium-ai-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .premium-smart-analysis {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .premium-product-grid,
    .premium-product-info,
    .premium-analysis-grid {
        grid-template-columns: 1fr;
    }

    .premium-smart-analysis {
        grid-column: auto;
    }

    .premium-gallery-panel {
        order: -1;
    }

    .premium-action-form,
    .premium-action-row,
    .premium-badges-row,
    .premium-ai-feature-grid,
    .premium-smart-analysis ul,
    .premium-ai-recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .premium-ai-recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shobek-ai-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #075cd8, #0ea5e9);
    color: #fff;
    box-shadow: 0 18px 45px rgba(7, 92, 216, .35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.shobek-ai-chat {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 1051;
    width: min(390px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 120px));
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

.shobek-ai-chat.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.shobek-ai-chat header {
    padding: 16px;
    background: linear-gradient(135deg, #063a91, #0784dc);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shobek-ai-chat header span,
.shobek-ai-chat header strong {
    display: block;
}

.shobek-ai-chat header span {
    font-size: 13px;
    opacity: .82;
}

.shobek-ai-chat header strong {
    font-size: 17px;
}

.shobek-ai-chat header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.shobek-ai-messages {
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
}

.shobek-ai-messages article {
    max-width: 88%;
    margin-bottom: 12px;
}

.shobek-ai-messages article p,
.shobek-ai-messages .ai-answer {
    margin: 0;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.75;
}

.shobek-ai-messages .bot p,
.shobek-ai-messages .bot .ai-answer {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.ai-answer strong {
    display: block;
    margin-bottom: 7px;
    color: #075cd8;
    font-size: 14px;
}

.ai-answer ul {
    margin: 0;
    padding: 0 18px 0 0;
}

.ai-answer li {
    margin: 5px 0;
}

.shobek-ai-messages .user {
    margin-right: auto;
}

.shobek-ai-messages .user p {
    background: #075cd8;
    color: #fff;
}

.shobek-ai-messages .loading p {
    color: #475569;
}

.ai-products,
.ai-orders,
.ai-mini-set {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.ai-products article {
    margin: 0;
    max-width: none;
}

.ai-products a,
.ai-orders a,
.ai-mini-set a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
}

.ai-orders a {
    grid-template-columns: 1fr;
}

.ai-mini-set {
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #f8fbff;
}

.ai-mini-set > span {
    color: #075cd8;
    font-size: 12px;
    font-weight: 900;
}

.ai-mini-set a {
    grid-template-columns: 1fr auto;
    padding: 7px 8px;
    border-color: #e2e8f0;
}

.ai-products img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}

.ai-products b,
.ai-orders b,
.ai-mini-set b,
.ai-products small,
.ai-orders span,
.ai-mini-set small,
.ai-products em {
    display: block;
}

.ai-products b,
.ai-orders b,
.ai-mini-set b {
    font-size: 13px;
}

.ai-products small,
.ai-orders span,
.ai-mini-set small,
.ai-products em {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.ai-products em {
    font-style: normal;
    color: #2563eb;
}

.ai-link-row,
.ai-followups {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.ai-link-row a,
.ai-followups button {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: #075cd8;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ai-followups button {
    cursor: pointer;
}

.shobek-ai-suggestions {
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.shobek-ai-suggestions button {
    flex: 0 0 auto;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #075cd8;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
}

.shobek-ai-form {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
}

.shobek-ai-form input {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 13px;
    height: 44px;
    outline: 0;
}

.shobek-ai-form input:focus {
    border-color: #075cd8;
    box-shadow: 0 0 0 3px rgba(7, 92, 216, .12);
}

.shobek-ai-form button {
    border: 0;
    border-radius: 14px;
    background: #075cd8;
    color: #fff;
}

@media (max-width: 640px) {
    .shobek-ai-launcher {
        right: 14px;
        bottom: 14px;
    }

    .shobek-ai-chat {
        right: 14px;
        bottom: 82px;
        height: min(590px, calc(100vh - 104px));
    }
}
