/* Guest shop — extends Steel & Signal tokens from home.css */

.shop-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shop-main {
    flex: 1;
    padding-bottom: 4rem;
}

.shop-footer {
    margin-top: auto;
}

.nav-link.is-active {
    color: var(--signal-deep);
    font-weight: 700;
}

.cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-inline-start: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--signal);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.flash-success {
    border-color: rgba(40, 120, 70, 0.35);
    background: rgba(40, 120, 70, 0.08);
}

.flash-error {
    border-color: rgba(160, 40, 40, 0.35);
    background: rgba(160, 40, 40, 0.08);
}

.shop-hero,
.shop-page {
    padding-top: calc(var(--header-h) + 1.5rem);
}

.shop-hero-inner,
.shop-page-head {
    margin-bottom: 1.5rem;
}

.shop-title {
    margin: 0.25rem 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.shop-lead {
    margin: 0;
    max-width: 36rem;
    color: var(--ink-soft);
}

.shop-layout {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 900px) {
    .shop-layout {
        grid-template-columns: 17rem minmax(0, 1fr);
        align-items: start;
    }
}

.shop-sidebar {
    display: grid;
    gap: 1rem;
}

.shop-filters,
.cart-panel,
.cart-summary {
    padding: 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.shop-filters {
    display: grid;
    gap: 0.85rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--steel);
}

.field input,
.field select,
.qty-field input,
.inline-form input[type="number"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.cart-panel-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.cart-mini-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.cart-mini-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
}

.cart-panel-total {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.muted {
    color: var(--ink-soft);
}

.results-meta {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.shop-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.shop-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.shop-card .product-media {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--paper-deep);
}

.shop-card .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card .product-body {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.product-tag {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel);
}

.product-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.2;
}

.product-sku,
.product-stock,
.in-cart-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.product-price {
    margin: 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.product-stock.is-ok {
    color: #1f6b3a;
}

.product-stock.is-out {
    color: #8a2f2f;
}

.add-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.qty-field {
    width: 4.5rem;
}

.shop-pagination {
    margin-top: 1.5rem;
}

.shop-pagination nav,
.shop-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-pagination a,
.shop-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.cart-layout,
.checkout-layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 18rem;
        align-items: start;
    }
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
    .cart-line {
        grid-template-columns: 5rem minmax(0, 1fr) auto;
    }
}

.cart-line img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    background: var(--paper-deep);
}

.cart-line-body h2 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-inline-end: 0.75rem;
}

.inline-form input[type="number"] {
    width: 4.25rem;
}

.cart-line-total {
    margin: 0;
    font-weight: 800;
}

.totals-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.55rem;
}

.totals-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.totals-list dt,
.totals-list dd {
    margin: 0;
}

.totals-list .is-total {
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.link-danger {
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: #8a2f2f;
    cursor: pointer;
    text-decoration: underline;
}

.empty-state {
    padding: 2rem 0;
}

.checkout-form {
    display: grid;
    gap: 1.25rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.checkout-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-form legend {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.field-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-span-2 {
        grid-column: span 2;
    }
}

.option-list {
    display: grid;
    gap: 0.65rem;
}

.option-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
}

.option-card strong,
.option-card em {
    display: block;
}

.option-card em {
    margin-top: 0.2rem;
    font-style: normal;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.thank-you-layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .thank-you-layout {
        grid-template-columns: minmax(0, 1fr) 18rem;
        align-items: start;
    }
}

.thank-you-card,
.part-section {
    padding: 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.order-number {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.breadcrumb a {
    color: var(--ink);
    font-weight: 600;
}

.part-layout {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
    .part-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.part-hero-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--paper-deep);
    border: 1px solid var(--line);
}

.part-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.part-thumbs img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border: 1px solid var(--line);
}

.part-price {
    margin: 0.35rem 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.part-specs {
    margin: 1rem 0;
    display: grid;
    gap: 0.55rem;
}

.part-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
}

.part-specs dt,
.part-specs dd {
    margin: 0;
}

.part-specs dt {
    color: var(--steel);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.part-add-form {
    margin-top: 0.75rem;
}

.part-section {
    margin-top: 1.25rem;
}

.part-section h2 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.part-description {
    color: var(--ink-soft);
    line-height: 1.65;
}

.fitment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.fitment-list li {
    display: grid;
    gap: 0.15rem;
}

.fitment-list span {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.fitment-fields {
    margin: 0;
    padding: 0.85rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.85rem;
}

.fitment-fields legend {
    padding: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.fitment-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

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

.lang-switch {
    display: inline-flex;
    align-items: center;
}

.lang-switch select {
    min-width: 7.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.site-header:not(.is-solid) .lang-switch select {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(20, 24, 30, 0.45);
    color: var(--white);
}

.section-actions {
    margin-top: 1.5rem;
}

.home-featured {
    margin-top: 0.5rem;
}

.categories-page {
    padding-bottom: 3rem;
}

.category-browse {
    display: grid;
    gap: 1rem;
}

.category-block {
    padding: 1.15rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.category-block-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.category-block h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.category-count {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--steel);
    font-weight: 700;
}

.category-children {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.category-children a {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 0.9rem;
}

.cta-kicker {
    color: #d9b15a;
}

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

    .nav {
        gap: 0.65rem;
    }

    .lang-switch {
        width: 100%;
    }

    .lang-switch select {
        width: 100%;
    }

    .category-block-head {
        flex-direction: column;
    }
}

html[dir="rtl"] .brand,
html[dir="rtl"] .hero-brand,
html[dir="rtl"] .footer-brand {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cart-mini-list li,
html[dir="rtl"] .cart-panel-total,
html[dir="rtl"] .totals-list > div {
    flex-direction: row-reverse;
}
