/*
|--------------------------------------------------------------------------
| Template Forge — Public Shop
|--------------------------------------------------------------------------
| Page-specific catalog styles. Shared header, footer, typography, buttons,
| and global layout remain owned by site.css.
|--------------------------------------------------------------------------
*/

.shop-page {
    --shop-ink: #101114;
    --shop-cream: #f1eee5;
    --shop-paper: #fbfaf6;
    --shop-orange: #ff6534;
    --shop-muted: #737479;
    --shop-line: rgba(16, 17, 20, 0.12);
    color: var(--shop-ink);
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(255, 101, 52, 0.1),
            transparent 25rem
        ),
        var(--shop-cream);
}

.shop-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-page .shop-shell {
    width: min(calc(100% - 64px), 1380px);
    margin-inline: auto;
}

.shop-page .shop-main {
    padding-bottom: 80px;
}

.shop-page .shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
    align-items: end;
    gap: 50px;
    padding-block: 72px 48px;
}

.shop-page .eyebrow {
    color: var(--shop-orange);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.shop-page .shop-hero h1 {
    max-width: 900px;
    margin: 16px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.1rem, 7.2vw, 7.25rem);
    line-height: 1.1;
    letter-spacing: -0.075em;
}

.shop-page .shop-hero h1 span {
    color: var(--shop-orange);
}

.shop-page .hero-copy {
    margin: 0;
    color: #66676b;
    font-size: 0.94rem;
    line-height: 1.75;
}

.shop-page .shop-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 25px;
}

.shop-page .stat {
    padding: 16px;
    border: 1px solid var(--shop-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.shop-page .stat strong,
.shop-page .stat span {
    display: block;
}

.shop-page .stat strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.shop-page .stat span {
    margin-top: 4px;
    color: #88898d;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.shop-page .filter-panel {
    padding: 16px;
    border: 1px solid var(--shop-line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 60px rgba(16, 17, 20, 0.05);
}

.shop-page .filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 220px auto auto;
    gap: 10px;
}

.shop-page .filter-control {
    min-width: 0;
}

.shop-page .filter-control input,
.shop-page .filter-control select {
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    outline: none;
    color: var(--shop-ink);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
}

.shop-page .filter-control input:focus,
.shop-page .filter-control select:focus {
    border-color: var(--shop-orange);
    box-shadow: 0 0 0 3px rgba(255, 101, 52, 0.1);
}

.shop-page .filter-button,
.shop-page .clear-button {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--shop-ink);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.shop-page .filter-button {
    color: #ffffff;
    background: var(--shop-ink);
}

.shop-page .filter-button:hover {
    border-color: var(--shop-orange);
    background: var(--shop-orange);
}

.shop-page .clear-button {
    border-color: var(--shop-line);
    color: #68696e;
    background: transparent;
}

.shop-page .clear-button:hover {
    border-color: var(--shop-orange);
    color: var(--shop-orange);
}

.shop-page .catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-block: 46px 21px;
}

.shop-page .catalog-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    letter-spacing: -0.055em;
}

.shop-page .catalog-heading p {
    margin: 7px 0 0;
    color: var(--shop-muted);
    font-size: 0.8rem;
}

.shop-page .result-count {
    color: #838489;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.shop-page .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shop-page .product-card {
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(16, 17, 20, 0.11);
}

.shop-page .product-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 101, 52, 0.34),
            transparent 35%
        ),
        #121317;
}

.shop-page .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.shop-page .product-card:hover .product-media img {
    transform: scale(1.025);
}

.shop-page .product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 700;
}

.shop-page .media-badges {
    position: absolute;
    inset: 13px 13px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.shop-page .product-badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.56rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.shop-page .badge-type {
    color: #ffffff;
    background: rgba(16, 17, 20, 0.78);
}

.shop-page .badge-featured {
    color: #742c15;
    background: rgba(255, 197, 107, 0.92);
}

.shop-page .product-body {
    padding: 20px;
}

.shop-page .product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #898a8e;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.shop-page .product-title {
    margin: 13px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.shop-page .product-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: #707176;
    font-size: 0.78rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
}

.shop-page .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid rgba(16, 17, 20, 0.09);
}

.shop-page .product-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.shop-page .product-price.free {
    color: #197148;
}

.shop-page .view-product {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--shop-ink);
    font-size: 0.72rem;
    font-weight: 700;
}

.shop-page .view-product:hover {
    background: var(--shop-orange);
}

.shop-page .view-product svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.shop-page .catalog-message {
    padding: 72px 26px;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.66);
}

.shop-page .catalog-message h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.shop-page .catalog-message p {
    max-width: 560px;
    margin: 10px auto 0;
    color: #74757a;
    font-size: 0.8rem;
    line-height: 1.7;
}

.shop-page .message-link {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    margin-top: 20px;
    padding: 0 16px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--shop-ink);
    font-size: 0.76rem;
    font-weight: 700;
}

.shop-page .message-link:hover {
    background: var(--shop-orange);
}

@media (max-width: 1100px) {
    .shop-page .shop-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .shop-page .hero-side {
        max-width: 650px;
    }

    .shop-page .filter-form {
        grid-template-columns: minmax(240px, 1fr) repeat(2, 180px);
    }

    .shop-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shop-page .shop-shell {
        width: min(calc(100% - 30px), 1380px);
    }

    .shop-page .shop-hero {
        gap: 30px;
        padding-block: 48px 35px;
    }

    .shop-page .shop-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .shop-page .filter-form,
    .shop-page .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-page .filter-button,
    .shop-page .clear-button {
        grid-column: auto;
    }

    .shop-page .catalog-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 440px) {
    .shop-page .shop-stats {
        grid-template-columns: 1fr !important;
    }

    .shop-page .product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-page .view-product {
        justify-content: center;
    }
}