.catalogue-price-section {
    padding-top: 72px;
}

.site-header .navigation {
    min-width: 0;
}

.site-header .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.site-header .nav-link {
    white-space: nowrap;
}

.catalogue-price-list,
.catalogue-platform {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.catalogue-platform > *,
.catalogue-product-card,
.catalogue-panel {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: var(--type-sm);
}

.breadcrumbs a:hover {
    color: var(--text);
}

.breadcrumbs span::before {
    content: "/";
    margin-right: 8px;
    color: var(--soft);
}

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

.catalogue-overview article,
.catalogue-search-shell,
.catalogue-control-panel,
.catalogue-panel,
.price-category,
.catalogue-product-card,
.catalogue-modal-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
    box-shadow: var(--shadow);
}

.catalogue-overview article {
    padding: 18px;
}

.catalogue-overview strong {
    display: block;
    color: #bbf7d0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.catalogue-overview span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--type-sm);
}

.catalogue-search-shell {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.catalogue-control-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.catalogue-control-panel label {
    display: grid;
    gap: 7px;
    color: #dbe4ef;
    font-size: var(--type-sm);
    font-weight: 800;
}

.catalogue-search-bar {
    display: grid;
    gap: 8px;
    color: #dbe4ef;
    font-weight: 800;
}

.catalogue-search-bar input {
    min-height: 54px;
    border-radius: var(--radius);
    font-size: 1rem;
}

.catalogue-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.catalogue-suggestions div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.catalogue-suggestions strong {
    color: #bbf7d0;
    font-size: var(--type-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalogue-suggestions button,
.catalogue-jump button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    cursor: pointer;
}

.catalogue-suggestions button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.catalogue-suggestions button span {
    color: var(--muted);
}

.catalogue-jump {
    position: sticky;
    top: 92px;
    z-index: 20;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 9, 13, .84);
    backdrop-filter: blur(16px);
    scrollbar-width: thin;
}

.catalogue-jump button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 13px;
    font-size: var(--type-sm);
    font-weight: 800;
    white-space: nowrap;
}

.catalogue-jump button:hover,
.catalogue-jump button.active {
    border-color: rgba(34, 197, 94, .42);
    background: rgba(34, 197, 94, .14);
}

.catalogue-jump span {
    color: #bbf7d0;
    font-size: var(--type-xs);
}

.deals-section,
#catalogue-products,
.catalogue-panels {
    scroll-margin-top: 170px;
}

.deal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 360px);
    gap: 16px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.catalogue-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.catalogue-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.product-gallery-strip {
    display: grid;
    grid-template-columns: 1fr 64px;
    grid-template-rows: repeat(3, 64px);
    gap: 6px;
    padding: 10px;
}

.product-gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: var(--surface);
}

.product-image-button {
    grid-row: 1 / 4;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: var(--surface);
    padding: 0;
    cursor: zoom-in;
}

.product-image-button img {
    transition: transform .28s ease;
}

.product-gallery-strip img:first-child,
.product-image-button:first-child {
    grid-row: 1 / 4;
}

@media (hover: hover) and (pointer: fine) {
    .catalogue-product-card:hover .product-image-button img {
        transform: scale(1.06);
    }
}

.wishlist-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 9, 13, .78);
    color: #fff;
    font-size: var(--type-xs);
    font-weight: 850;
}

.wishlist-icon.active {
    background: rgba(34, 197, 94, .9);
    color: #041108;
}

.product-card-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-meta,
.product-trust-row,
.product-tags,
.product-actions,
.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-meta span,
.product-trust-row span,
.product-tags span,
.discount-badge,
.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    padding: 5px 9px;
    color: var(--muted);
    font-size: var(--type-xs);
    font-weight: 750;
}

.product-meta span:first-child,
.discount-badge {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .36);
    background: rgba(34, 197, 94, .11);
}

.catalogue-product-card h3 {
    margin: 0;
    font-size: 1.12rem;
}

.catalogue-product-card p {
    margin: 0;
}

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

.product-price-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 10px;
    align-items: stretch;
}

.product-price-stack div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.product-price-stack span {
    color: var(--muted);
    font-size: var(--type-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.product-price-stack strong {
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.2;
}

.product-price-stack del {
    color: var(--soft);
    font-size: var(--type-sm);
    text-decoration-thickness: 2px;
}

.product-price-stack .discount-badge {
    grid-column: 1 / -1;
    justify-self: start;
}

.product-price-row strong {
    color: #fff;
    font-size: 1.18rem;
}

.product-price-row del {
    color: var(--soft);
    font-size: var(--type-sm);
}

.core-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
}

.trust-actions {
    gap: 7px;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: var(--type-xs);
    font-weight: 800;
    cursor: pointer;
}

.mini-action:hover {
    border-color: rgba(34, 197, 94, .42);
}

.share-popover {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: grid;
    gap: 6px;
    min-width: 150px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #080a0f;
    box-shadow: var(--shadow);
}

.share-popover a {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
}

.catalogue-panels {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 18px;
}

.catalogue-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
}

.order-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.order-line img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

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

.order-line span {
    color: var(--muted);
    font-size: var(--type-sm);
}

.quantity-stepper {
    display: inline-grid;
    grid-template-columns: 30px 32px 30px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-stepper button {
    height: 32px;
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
}

.quantity-stepper span {
    text-align: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cart-total strong {
    color: #bbf7d0;
}

.order-history-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
}

.catalogue-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, .74);
    backdrop-filter: blur(10px);
}

.catalogue-modal[hidden] {
    display: none;
}

.catalogue-modal-panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    padding: 24px;
}

.modal-x {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #080a0f;
    padding: 8px 12px;
    font-weight: 900;
}

.detail-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
}

.detail-image-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 0;
    cursor: zoom-in;
}

.detail-image-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    transition: transform .25s ease;
}

.detail-image-wrap:hover img {
    transform: scale(1.08);
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-thumbs button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    padding: 4px;
}

.detail-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.detail-price strong {
    font-size: 1.55rem;
}

.image-preview-panel {
    display: grid;
    gap: 14px;
    width: min(1366px, 100%);
    max-height: 92vh;
    background: #050608;
}

.image-preview-panel img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    background: #0b0f14;
}

.preview-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
}

.preview-caption strong {
    color: #fff;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.spec-grid div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.spec-grid dt {
    color: #bbf7d0;
    font-size: var(--type-xs);
    font-weight: 850;
    text-transform: uppercase;
}

.spec-grid dd {
    margin: 4px 0 0;
    color: var(--text);
}

.detail-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.compact-product-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.review-snippet {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.review-snippet span {
    color: #bbf7d0;
    font-size: var(--type-xs);
}

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

.checkout-form label {
    display: grid;
    gap: 7px;
    color: #dbe4ef;
    font-weight: 800;
}

.checkout-form fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.checkout-form legend {
    padding: 0 8px;
    color: #bbf7d0;
    font-weight: 850;
}

.size-table-wrap {
    overflow-x: auto;
}

.size-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.size-table-wrap th,
.size-table-wrap td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.empty-state {
    padding: 22px;
}

[data-theme="light"] .catalogue-overview article,
[data-theme="light"] .catalogue-search-shell,
[data-theme="light"] .catalogue-control-panel,
[data-theme="light"] .catalogue-panel,
[data-theme="light"] .price-category,
[data-theme="light"] .catalogue-product-card,
[data-theme="light"] .catalogue-modal-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
    box-shadow: var(--shadow);
}

[data-theme="light"] .catalogue-jump {
    background: rgba(255, 255, 255, .88);
}

[data-theme="light"] .catalogue-search-bar,
[data-theme="light"] .catalogue-control-panel label,
[data-theme="light"] .checkout-form label {
    color: var(--text);
}

[data-theme="light"] .catalogue-overview strong,
[data-theme="light"] .catalogue-suggestions strong,
[data-theme="light"] .catalogue-jump span,
[data-theme="light"] .product-meta span:first-child,
[data-theme="light"] .discount-badge,
[data-theme="light"] .cart-total strong,
[data-theme="light"] .spec-grid dt {
    color: var(--green);
}

[data-theme="light"] .product-price-row strong,
[data-theme="light"] .product-price-stack strong,
[data-theme="light"] .spec-grid dd {
    color: var(--text);
}

[data-theme="light"] .wishlist-icon {
    background: rgba(8, 14, 24, .8);
}

@media (max-width: 980px) {
    .catalogue-panels,
    .detail-grid,
    .catalogue-control-panel {
        grid-template-columns: 1fr;
    }

    .catalogue-jump {
        top: 82px;
    }
}

@media (max-width: 640px) {
    .catalogue-price-section {
        padding-top: 54px;
    }

    .catalogue-overview,
    .catalogue-product-grid,
    .catalogue-suggestions {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalogue-control-panel {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .catalogue-search-shell,
    .catalogue-panel,
    .catalogue-modal-panel {
        padding: 18px;
    }

    .deal-rail {
        grid-auto-columns: minmax(240px, calc(100vw - 48px));
    }

    .product-gallery-strip {
        grid-template-columns: 1fr 56px;
        grid-template-rows: repeat(3, 56px);
    }

    .core-actions .btn,
    .checkout-form .btn {
        width: 100%;
    }

    .order-line {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .order-line .quantity-stepper,
    .order-line .mini-action {
        grid-column: 1 / -1;
    }

    .spec-grid,
    .detail-thumbs,
    .product-price-stack {
        grid-template-columns: minmax(0, 1fr);
    }
}
