:root {
    --ink: #202326;
    --muted: #66707a;
    --paper: #ffffff;
    --soft: #f5f7f8;
    --line: #dde3e7;
    --blue: #1769aa;
    --blue-dark: #0e4f82;
    --coral: #e85c4a;
    --green: #2e8f6f;
    --shadow: 0 18px 48px rgba(32, 35, 38, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--blue);
}

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

.site-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding-inline: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(221, 227, 231, 0.9);
    backdrop-filter: blur(16px);
}

.navbar {
    min-height: 76px;
    padding: 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.brand-name {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
}

.brand-line {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.2;
}

.nav-link {
    color: var(--ink);
    font-weight: 700;
}

.btn {
    border-radius: 8px;
    font-weight: 800;
}

.btn-shop,
.btn-product {
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
}

.btn-shop:hover,
.btn-product:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.btn-ebay {
    background: var(--coral);
    color: #fff;
    border: 1px solid var(--coral);
}

.btn-ebay:hover {
    background: #c94535;
    border-color: #c94535;
    color: #fff;
}

.btn-quiet {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-quiet:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.hero {
    position: relative;
    min-height: 510px;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../img/hero-mug-print-shop.png");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.86) 34%, rgba(255,255,255,0.2) 72%);
}

.hero-content {
    padding-block: 90px 70px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--coral);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.product-detail h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    font-weight: 900;
}

.hero-copy {
    max-width: 520px;
    margin: 18px 0 0;
    color: #394149;
    font-size: 1.2rem;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 430px) auto;
    gap: 10px;
    width: min(100%, 590px);
    margin-top: 28px;
}

.hero-search input {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(32, 35, 38, 0.08);
}

.hero-search button {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
}

.category-band {
    border-block: 1px solid var(--line);
    background: #fff;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-block: 16px;
    scrollbar-width: thin;
}

.category-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    background: #fff;
}

.category-pill span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.78rem;
}

.category-pill.active,
.category-pill:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.category-pill.active span,
.category-pill:hover span {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.section-block {
    padding-block: 64px;
}

.intro-block {
    background: var(--soft);
}

.intro-grid,
.copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.copy-grid h2,
.more-products h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
    font-weight: 900;
}

.intro-grid p:not(.eyebrow) {
    margin: 0;
    color: #4f5962;
    font-size: 1.05rem;
}

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

.section-heading > span {
    color: var(--muted);
    font-weight: 800;
}

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

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(32, 35, 38, 0.06);
}

.product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--soft);
    overflow: hidden;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.product-card:hover .product-image-link img {
    transform: scale(1.035);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.product-meta-row span {
    color: var(--ink);
    white-space: nowrap;
}

.product-card h3 {
    margin: 10px 0 8px;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
}

.product-card p {
    margin: 0 0 18px;
    color: #58636d;
    font-size: 0.95rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.product-actions .btn {
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding-inline: 10px;
    font-size: 0.9rem;
    white-space: normal;
}

.more-products {
    margin-top: 48px;
}

.more-products h2 {
    margin-bottom: 22px;
}

.page-hero {
    background: var(--ink);
    color: #fff;
}

.compact-hero {
    padding-block: 70px;
}

.compact-hero p:not(.eyebrow) {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 1.08rem;
}

.product-detail {
    padding-block: 58px;
    background: var(--soft);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 48px;
    align-items: center;
}

.product-detail-media {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.product-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-detail-content {
    min-width: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-weight: 900;
}

.product-detail h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.product-summary {
    max-width: 650px;
    margin: 20px 0 0;
    color: #46515b;
    font-size: 1.12rem;
}

.detail-price {
    margin-top: 22px;
    font-size: 2rem;
    font-weight: 900;
}

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

.detail-actions .btn {
    min-height: 50px;
    display: inline-grid;
    place-items: center;
}

.feature-list {
    display: grid;
    gap: 10px;
    max-width: 680px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    color: #424d56;
    font-weight: 700;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
}

.rich-copy {
    color: #4f5962;
    font-size: 1.05rem;
}

.related-products {
    background: var(--soft);
}

.empty-state {
    padding: 54px 24px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--soft);
    text-align: center;
}

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

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 32px;
}

.site-footer p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 800;
}

.footer-links a {
    color: #fff;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-shell {
        padding-inline: 18px;
    }

    .hero {
        min-height: 460px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 56%, rgba(255,255,255,0.42) 100%);
    }

    .hero-content {
        padding-block: 68px 54px;
    }

    .intro-grid,
    .copy-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 580px) {
    .brand-line {
        display: none;
    }

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

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

    .product-actions {
        grid-template-columns: 1fr;
    }

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

