:root {
    --ink: #123042;
    --muted: #5f7484;
    --line: #c6e4ef;
    --soft: #eaf8ff;
    --paper: #ffffff;
    --brand: #075985;
    --teal: #0787a4;
    --green: #327a50;
    --amber: #d8911d;
    --coral: #be513c;
    --shadow: 0 12px 28px rgba(27, 47, 63, 0.12);
    --site-header-height: 146px;
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #eaf8ff;
}

body {
    margin: 0;
    min-width: 320px;
    background: linear-gradient(180deg, #dff4ff 0, #f4fbff 420px, #eaf8ff 100%);
}

a {
    color: inherit;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.68;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 253, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 3px 18px rgba(23, 35, 46, 0.06);
}

.topbar,
.catalog-bar,
main,
.site-footer {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    background: #07365f;
    box-shadow: 0 8px 20px rgba(7, 54, 95, 0.18);
}

.brand img {
    width: min(258px, 58vw);
    height: auto;
}

.quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quick-nav a,
.cart-link,
.primary-action,
.secondary-action,
.product-actions a,
.product-actions button,
.button-like {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: #f8fdff;
}

.quick-nav .phone-link {
    color: var(--brand);
    border-color: #b8d9e5;
}

.admin-switcher {
    position: relative;
}

.admin-switcher > summary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #8fc8dc;
    border-radius: 6px;
    padding: 0 14px;
    background: #eef8fb;
    color: var(--brand);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
}

.admin-switcher > summary::-webkit-details-marker {
    display: none;
}

.admin-switcher-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid #b8d9e5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.admin-switcher-status {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #d7ebf2;
    border-radius: 6px;
    background: #f8fdff;
}

.admin-switcher-status strong {
    color: var(--brand);
    font-size: 12px;
    line-height: 1;
}

.admin-switcher-status span,
.admin-switcher-status small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-switcher-status span {
    font-weight: 800;
}

.admin-switcher-status small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-switcher-modes,
.admin-switcher-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-switcher form {
    margin: 0;
}

.admin-switcher-button,
.admin-switcher-search button,
.admin-switcher-footer a,
.admin-switcher-footer button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    background: #f8fdff;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.admin-switcher-button {
    width: 100%;
}

.admin-switcher-button.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.admin-switcher-search {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 92px;
    gap: 8px;
}

.admin-switcher-search select,
.admin-switcher-search input {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--ink);
}

.admin-switcher-search button {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.admin-switcher-footer button {
    width: 100%;
    border-color: #efc1b7;
    background: #fff5f2;
    color: #8c2f20;
}

.account-badge {
    min-height: 40px;
    display: inline-grid;
    align-content: center;
    gap: 2px;
    max-width: 230px;
    border: 1px solid #a9d8e7;
    border-radius: 6px;
    padding: 6px 12px;
    background: #ffffff;
    color: var(--ink);
}

.account-badge strong,
.account-badge small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-badge strong {
    font-size: 12px;
    line-height: 1;
}

.account-badge small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.account-badge-dealer {
    border-color: #9dd3b1;
    background: #f4fbf6;
}

.account-badge-vendor {
    border-color: #e6c470;
    background: #fff9e9;
}

.catalog-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 0 0 16px;
}

.search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    min-height: 48px;
    border: 1px solid #9bd2e5;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.search input {
    width: 100%;
    border: 0;
    padding: 0 16px;
    outline: 0;
    color: var(--ink);
}

.search button {
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.cart-link {
    background: #edf9ff;
    color: var(--brand);
}

main {
    padding: 26px 0 44px;
}

.flash-stack {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.flash {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.35;
}

.flash-success {
    border-color: #9bd0ad;
    background: #f1fbf4;
    color: #176236;
}

.flash-warn {
    border-color: #e8c06d;
    background: #fff8e8;
    color: #7a4b00;
}

form.is-submitting {
    cursor: wait;
}

.catalog-menu {
    position: sticky;
    top: calc(var(--site-header-height) - 1px);
    z-index: 25;
    margin: -10px 0 20px;
    padding: 6px 0;
    background: #07365f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 16px rgba(7, 54, 95, 0.18);
}

.catalog-menu-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.catalog-menu-label,
.catalog-clear {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-clear {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.shop-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.shop-intro {
    min-height: 218px;
    background:
        linear-gradient(90deg, rgba(227, 248, 255, 0.96), rgba(195, 233, 247, 0.82)),
        url('/assets/header.png') center / cover no-repeat;
    color: #08364d;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 8px;
    border: 1px solid #a8dceb;
    overflow: hidden;
}

.shop-intro h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    margin: 4px 0 12px;
    letter-spacing: 0;
}

.shop-intro p {
    max-width: 680px;
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.shop-intro .eyebrow {
    color: #08708d;
}

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

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafdff;
    padding: 22px;
}

.stat span {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
}

.stat small {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
}

.products {
    min-width: 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0;
}

.section-heading > a,
.result-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.category-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    padding: 0 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-list a {
    flex: 0 0 auto;
    min-height: 28px;
    max-width: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    scroll-snap-align: start;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-list a.active {
    border-color: #ffffff;
    background: #ffffff;
    color: #07365f;
    box-shadow: none;
}

.category-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-strip {
    margin: 0 0 24px;
}

.auction-mall-space {
    margin: 0 0 24px;
    border: 1px solid #b9e1ec;
    border-radius: 8px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(27, 47, 63, 0.06);
}

.auction-space-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.auction-space-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.auction-locked {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px dashed #9bd2e5;
    border-radius: 8px;
    background: #f5fcff;
    padding: 18px;
}

.auction-locked strong {
    display: block;
    margin-bottom: 4px;
}

.auction-locked p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.auction-lock-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e3f5fb;
    color: var(--brand);
}

.auction-lock-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

.auction-mall-card {
    min-width: 0;
    display: grid;
    grid-template-rows: 136px minmax(0, 1fr) auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafdff;
    overflow: hidden;
}

.auction-mall-image {
    display: grid;
    place-items: center;
    padding: 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.auction-mall-image img,
.auction-mall-image video {
    width: 100%;
    height: 108px;
    object-fit: contain;
}

.auction-mall-copy {
    min-width: 0;
    padding: 14px;
}

.auction-mall-copy h3 {
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.25;
}

.auction-mall-copy h3 a {
    text-decoration: none;
}

.auction-mall-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.auction-mall-meta span {
    min-width: 0;
    display: grid;
    gap: 2px;
    border: 1px solid #c4e6f0;
    border-radius: 6px;
    background: #ffffff;
    padding: 8px;
}

.auction-mall-meta small,
.auction-mall-foot {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auction-mall-meta strong {
    overflow: hidden;
    color: var(--brand);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-mall-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
}

.auction-board-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
    border: 1px solid #b9e1ec;
    border-radius: 8px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(27, 47, 63, 0.06);
}

.auction-board-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
}

.auction-board-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 10px;
}

.auction-board-stats span,
.auction-price-grid span,
.auction-detail-list span {
    min-width: 0;
    display: grid;
    gap: 3px;
    border: 1px solid #c4e6f0;
    border-radius: 6px;
    background: #fafdff;
    padding: 9px;
}

.auction-board-stats strong,
.auction-price-grid strong,
.auction-detail-list strong {
    overflow: hidden;
    color: var(--brand);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-board-stats small,
.auction-price-grid small,
.auction-detail-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auction-board-grid {
    display: grid;
    gap: 16px;
}

.auction-board-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 292px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(27, 47, 63, 0.06);
}

.auction-board-card.is-selected {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(50, 122, 80, 0.14);
}

.auction-board-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 18px;
    background: #fafdff;
    border-right: 1px solid var(--line);
}

.auction-board-media img,
.auction-board-media video {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.auction-board-media span {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--green);
    border: 1px solid #a8d9bd;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auction-media-gallery {
    width: 100%;
    display: grid;
    gap: 8px;
    align-self: stretch;
}

.auction-media-main,
.auction-media-thumb {
    min-width: 0;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.auction-media-main {
    min-height: 132px;
    padding: 6px;
}

.auction-media-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 6px;
}

.auction-media-thumb {
    min-height: 58px;
}

.auction-board-media .auction-media-gallery img,
.auction-board-media .auction-media-gallery video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auction-board-media .auction-media-video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.auction-board-media .auction-media-main img,
.auction-board-media .auction-media-main video,
.auction-board-media .auction-media-main .auction-media-video-preview {
    height: 132px;
}

.auction-board-media .auction-media-thumb img,
.auction-board-media .auction-media-thumb .auction-media-video-preview {
    height: 58px;
    object-fit: cover;
}

.auction-board-media .auction-media-thumb video {
    height: 58px;
    object-fit: contain;
    background: #102836;
}

.auction-media-video-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auction-media-video-preview i {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 999px;
    background: rgba(8, 28, 41, 0.72);
    color: #ffffff;
    font-size: 14px;
    font-style: normal;
    line-height: 1;
}

.auction-media-thumb em {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(18, 48, 66, 0.86);
    color: #ffffff;
    padding: 0 6px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

body.tam-lightbox-open {
    overflow: hidden;
}

.auction-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 18, 29, 0.82);
}

.auction-lightbox-dialog {
    width: min(1040px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #071923;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.auction-lightbox-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.auction-lightbox-head h2 {
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-lightbox-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

.auction-lightbox-close:focus {
    outline: 3px solid #91d8ff;
    outline-offset: 2px;
}

.auction-lightbox-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 12px;
}

.auction-lightbox-stage video,
.auction-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 132px);
    border-radius: 6px;
    object-fit: contain;
}

.auction-lightbox-stage video {
    width: 100%;
    background: #000000;
}

.auction-board-copy {
    min-width: 0;
    padding: 20px;
}

.auction-board-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.16;
}

.auction-board-copy p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
}

.auction-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auction-bid-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    border-left: 1px solid var(--line);
    background: #f5fcff;
    padding: 18px;
}

.auction-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auction-bid-form {
    display: grid;
    gap: 11px;
}

.auction-preview-note {
    display: grid;
    gap: 5px;
    border: 1px solid #b8d9e5;
    border-radius: 6px;
    background: #ffffff;
    padding: 12px;
}

.auction-preview-note strong {
    color: var(--brand);
    font-size: 14px;
}

.auction-preview-note p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

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

.auction-bid-form input,
.auction-bid-form textarea {
    width: 100%;
    border: 1px solid #9bd2e5;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    outline: 0;
}

.auction-bid-form textarea {
    resize: vertical;
}

.auction-bid-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.auction-bid-actions .primary-action,
.auction-bid-actions .secondary-action {
    width: 100%;
}

.auction-deposit-form .primary-action {
    width: 100%;
}

.vendor-strip h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.vendor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vendor-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #adddec;
    border-radius: 999px;
    background: #f5fcff;
    color: #16475e;
    font-size: 12px;
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid #b9e1ec;
    border-radius: 8px;
    background: #f5fcff;
    padding: 18px;
}

.detail-media {
    height: 210px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--paper);
}

.detail-media img {
    max-height: 180px;
    object-fit: contain;
}

.detail-copy h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
}

.detail-copy p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.size-line {
    margin-top: 10px !important;
    color: var(--ink) !important;
    font-weight: 700;
}

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

.primary-action {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.secondary-action {
    color: var(--brand);
}

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

.product-card {
    display: grid;
    grid-template-rows: 176px minmax(140px, auto) auto;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(27, 47, 63, 0.06);
}

.product-image {
    position: relative;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #f4fbff;
    border-bottom: 1px solid var(--line);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #9bd2e5;
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.product-image img {
    width: 100%;
    max-width: 150px;
    height: 130px;
    object-fit: contain;
}

.product-copy {
    min-width: 0;
    padding: 16px 16px 12px;
}

.vendor-name {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-copy h3 {
    min-height: 68px;
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.32;
    letter-spacing: 0;
}

.product-copy h3 a {
    text-decoration: none;
}

.product-copy small {
    color: var(--muted);
    font-weight: 700;
}

.product-actions {
    padding: 0 16px 16px;
}

.product-actions form {
    margin: 0;
}

.product-actions a,
.product-actions button {
    width: 100%;
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.product-actions button {
    border-radius: 6px;
}

.size-chip {
    display: block;
    margin-top: 7px;
}

.empty-state {
    padding: 36px;
    border: 1px dashed #8fcfe3;
    border-radius: 8px;
    background: #fafdff;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 34px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -2px 0 16px;
    padding: 12px 14px;
    border: 1px solid #b9e1ec;
    border-radius: 8px;
    background: #fafdff;
    color: var(--muted);
    font-size: 14px;
}

.search-summary strong {
    color: var(--ink);
}

.search-summary a {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.site-footer span {
    font-weight: 800;
    color: var(--brand);
}

.site-footer a {
    color: var(--brand);
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    border: 1px solid #b9e1ec;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafdff;
    color: var(--ink);
    font-weight: 700;
}

.flash-success {
    border-color: #a8d9bd;
    background: #f1fbf5;
    color: #225d3a;
}

.flash-warn {
    border-color: #e7c170;
    background: #fff8e8;
    color: #754e0d;
}

.inline-errors {
    margin: 16px 0 0;
}

.page-panel,
.product-hero,
.cart-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(27, 47, 63, 0.06);
}

.page-panel h1,
.product-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.page-panel h2,
.cart-summary h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.page-panel p,
.product-hero p,
.cart-summary p {
    color: var(--muted);
    line-height: 1.55;
}

.narrow-panel {
    max-width: 780px;
}

.compact-panel {
    margin-top: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--brand);
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.product-hero-media {
    min-height: 360px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4fbff;
}

.product-hero-media img {
    max-height: 300px;
    object-fit: contain;
}

.product-hero-copy h1 {
    max-width: 760px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.meta-list span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #adddec;
    border-radius: 999px;
    background: #f5fcff;
    color: #16475e;
    font-size: 12px;
    font-weight: 800;
}

.inline-cart-form,
.cart-box {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.inline-cart-form label,
.cart-box label,
.form-grid label,
.cart-quantity label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.inline-cart-form input,
.cart-box input,
.form-grid input,
.form-grid textarea,
.cart-quantity input {
    width: 100%;
    border: 1px solid #9bd2e5;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    padding: 11px 12px;
    outline: 0;
}

.inline-cart-form input,
.cart-box input,
.cart-quantity input {
    width: 92px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

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

.auth-form input {
    width: 100%;
    border: 1px solid #9bd2e5;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    padding: 12px;
    outline: 0;
}

.auth-form button {
    width: fit-content;
}

.account-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.account-type-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafdff;
    padding: 14px;
}

.account-type-grid p {
    margin: 8px 0 0;
}

.full-field {
    grid-column: 1 / -1;
}

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

.cart-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fafdff;
}

.cart-thumb {
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #ffffff;
}

.cart-thumb img {
    max-height: 74px;
    object-fit: contain;
}

.cart-copy h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.cart-copy h2 a {
    text-decoration: none;
}

.cart-price {
    display: grid;
    gap: 4px;
    min-width: 118px;
    text-align: right;
}

.cart-price small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-price strong,
.cart-total {
    color: var(--brand);
    font-weight: 900;
}

.cart-total {
    margin: 8px 0 0;
}

.cart-quantity {
    display: flex;
    align-items: end;
    gap: 8px;
}

.cart-quantity button,
.cart-remove button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fdff;
    color: var(--brand);
    padding: 0 12px;
    font-weight: 800;
}

.cart-remove {
    margin: 0;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
}

.cart-summary form {
    margin: 0;
}

.button-like {
    color: var(--brand);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.checkout-summary {
    position: sticky;
    top: 146px;
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.summary-item {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fafdff;
}

.summary-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .shop-rail {
        grid-template-columns: 1fr;
    }

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

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

    .auction-board-card {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .auction-bid-panel {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

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

    .product-hero,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

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

    .cart-quantity,
    .cart-price,
    .cart-remove {
        grid-column: 2;
    }

    .cart-price {
        text-align: left;
    }

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

@media (max-width: 700px) {
    .topbar,
    .catalog-bar,
    main,
    .site-footer {
        width: min(100% - 20px, 1220px);
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0 12px;
    }

    .brand img {
        width: min(248px, calc(100vw - 56px));
    }

    .quick-nav {
        justify-content: flex-start;
    }

    .admin-switcher {
        position: static;
    }

    .admin-switcher-panel {
        position: fixed;
        top: 96px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 116px);
        overflow: auto;
    }

    .admin-switcher-search,
    .admin-switcher-footer {
        grid-template-columns: 1fr;
    }

    .account-badge {
        max-width: 100%;
    }

    .auction-space-head,
    .auction-locked {
        align-items: flex-start;
        flex-direction: column;
    }

    .auction-space-head .secondary-action {
        width: 100%;
    }

    .auction-board-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

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

    .auction-board-card {
        grid-template-columns: 1fr;
    }

    .auction-board-media {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auction-board-media img,
    .auction-board-media video {
        height: 140px;
    }

    .auction-board-media .auction-media-main img,
    .auction-board-media .auction-media-main video,
    .auction-board-media .auction-media-main .auction-media-video-preview {
        height: 118px;
    }

    .auction-lightbox {
        padding: 10px;
    }

    .auction-lightbox-dialog {
        max-height: calc(100vh - 20px);
    }

    .auction-lightbox-stage video,
    .auction-lightbox-stage img {
        max-height: calc(100vh - 104px);
    }

    .auction-board-copy {
        padding: 16px;
    }

    .auction-board-copy h2 {
        font-size: 20px;
    }

    .auction-detail-list,
    .auction-price-grid,
    .auction-bid-actions {
        grid-template-columns: 1fr;
    }

    .auction-mall-grid,
    .account-type-grid {
        grid-template-columns: 1fr;
    }

    .catalog-bar {
        grid-template-columns: 1fr;
    }

    .catalog-menu {
        margin-top: -10px;
    }

    .catalog-menu-label {
        display: none;
    }

    .category-list a {
        max-width: 150px;
    }

    .shop-intro {
        min-height: 250px;
        padding: 24px;
    }

    .product-grid,
    .product-detail,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-rows: 170px auto auto;
    }

    .product-copy h3 {
        min-height: auto;
    }

    .detail-media {
        height: 180px;
    }

    .product-hero-media {
        min-height: 240px;
    }

    .product-hero-media img {
        max-height: 210px;
    }

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

    .cart-quantity,
    .cart-remove {
        grid-column: auto;
    }

    .inline-cart-form,
    .cart-box {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-cart-form input,
    .cart-box input {
        width: 100%;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
