/* ------------------------------------------------------------
   Queer Goods - Public Storefront
   Mobile First
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;

    background: #ffffff;
    color: #181818;
}

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

a {
    color: inherit;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem;
}


/* ------------------------------------------------------------
   Typography
------------------------------------------------------------ */

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    margin-top: 0;
    line-height: 1.1;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */

.site-header {
    position: relative;

    background: #fff;
    border-bottom: 1px solid #e7e4df;
}

.site-header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0.5rem 0.75rem;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-header-left {
    justify-self: start;
}

.site-brand {
    display: block;
    justify-self: center;
}

.site-logo {
    display: block;
    width: 145px;
    height: auto;
}

.site-header-actions {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.menu-toggle,
.header-action {
    width: 28px;
    height: 28px;
    padding: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    color: #181818;
}

.menu-toggle {
    cursor: pointer;
}

.menu-line {
    transform-box: fill-box;
    transform-origin: center;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line-top {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line-middle {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line-bottom {
    transform: translateY(-5px) rotate(-45deg);
}

.menu-toggle svg,
.header-action svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ------------------------------------------------------------
   Navigation
------------------------------------------------------------ */

.site-navigation {
    display: none;

    padding: 0.5rem 0.75rem 0.75rem;

    background: #fff;
    border-top: 1px solid #efede9;
}

.site-navigation.is-open {
    display: flex;
    flex-direction: column;
}

.site-navigation a {
    padding: 0.65rem 0;

    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    border-bottom: 1px solid #efede9;
}

.site-navigation a:last-child {
    border-bottom: 0;
}

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */

.button {
    display: inline-block;

    padding: 0.55rem 0.9rem;

    border: 1px solid #181818;
    border-radius: 6px;

    background: #181818;
    color: #fff;

    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}


/* ------------------------------------------------------------
   Home Page
   Mobile First
------------------------------------------------------------ */

.home-hero {
    margin: 0 0 1.25rem;
    padding: 0.5rem 0 0.25rem;

    background: transparent;
    text-align: center;
}

.home-hero-button {
    display: none;
}

.home-hero-content {
    max-width: 34rem;
}

.home-hero h1 {
    margin: 0 0 0.35rem;

    font-size: clamp(1.45rem, 7.1vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;

    white-space: nowrap;
}

.home-hero-intro {
    max-width: 27rem;
    margin: 0 auto;

    color: #55514c;

    font-size: clamp(0.78rem, 3.7vw, 1rem);
    line-height: 1.4;

    white-space: nowrap;
}

.home-featured {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.section-header h2 {
    margin: 0;
    font-weight: 600;
}

.section-header a {
    flex: 0 0 auto;

    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;

    border-bottom: 1px solid #181818;
}

.home-about {
    margin: 0 auto 2rem;
    padding: 2rem 1.25rem;

    background: #fff;

    text-align: center;
}

.home-about h2 {
    margin-bottom: 0.75rem;
}

.home-about p {
    max-width: 36rem;
    margin: 0 auto;

    color: #55514c;
}

.home-category-section {
    margin-bottom: 1.25rem;
}

.home-category-heading {
    margin: 0 0 0.75rem;

    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-categories {
    display: flex;
    gap: 0.75rem;

    margin: 0 -0.75rem;
    padding: 0 0.75rem 0.25rem;

    overflow-x: auto;
    overscroll-behavior-inline: contain;

    scrollbar-width: none;
}

.home-categories::-webkit-scrollbar {
    display: none;
}

.home-category {
    flex: 0 0 64px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;

    color: inherit;
    text-align: center;
    text-decoration: none;
}

.home-category-image {
    width: 62px;
    height: 62px;

    display: block;

    overflow: hidden;

    border-radius: 50%;
    background: #eeece8;
}

.home-category-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.home-category-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.home-category-name {
    width: 100%;

    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
}

.home-featured {
    margin-bottom: 2rem;
}

.home-featured .product-grid {
    gap: 1.5rem 0.75rem;
}

.home-featured .product-card-content {
    padding: 0.65rem 0 0;
}

/* ------------------------------------------------------------
   Shop
------------------------------------------------------------ */

.shop {
    width: 100%;
    margin: 0 auto;
}

.shop-header {
    margin-bottom: 1.5rem;
}

.shop-header > h1 {
    margin-bottom: 0.75rem;
}

.shop-header > p {
    margin: 0;
}

.shop-header > p a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.product-grid-heading {
    margin-bottom: 1rem;
}


/* ------------------------------------------------------------
   Shop Categories
------------------------------------------------------------ */

.shop-categories {
    margin: 1.5rem 0 0;
}

.shop-categories h2 {
    margin-bottom: 0.75rem;

    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.category-links {
    display: flex;
    gap: 0.5rem;

    margin-right: -1rem;
    padding: 0 1rem 0.5rem 0;

    overflow-x: auto;
    scrollbar-width: thin;
}

.category-link {
    flex: 0 0 auto;

    padding: 0.55rem 0.9rem;

    border: 1px solid #d8d4ce;
    border-radius: 2rem;

    background: #fff;

    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   Product Grid
   Two Columns From Mobile Upwards
------------------------------------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1.5rem;
}


/* ------------------------------------------------------------
   Product Cards
------------------------------------------------------------ */

.product-card {
    min-width: 0;
    overflow: hidden;

    background: transparent;
    border: 0;
}

.product-card-content {
    padding: 0.65rem 0.25rem 0.75rem;
}

.product-card-image {
    display: block;

    overflow: hidden;

    background: #f0efed;
    text-decoration: none;
}

.product-card-image img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eeece8;
    color: #777;

    font-size: 0.8rem;
}

.product-card h2 {
    margin: 0 0 0.35rem;

    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.product-card h2 a {
    text-decoration: none;
}

.product-summary {
    display: none;
}

.product-price {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-stock {
    display: inline-block;

    margin: 0.5rem 0 0;
    padding: 0.2rem 0.5rem;

    border-radius: 2rem;

    background: #f1efec;

    font-size: 0.7rem;
    font-weight: 600;
}


/* ------------------------------------------------------------
   Product Detail
   Mobile First
------------------------------------------------------------ */

.product-detail {
    width: 100%;
    margin: 0 auto;
}

.product-detail-images {
    margin-bottom: 1.5rem;
}

.product-main-image {
    width: 100%;
    height: auto;

    background: #eeece8;
}

.product-detail-content h1 {
    margin: 0 0 0.5rem;

    font-size: 2rem;
}

.product-detail-price {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.product-detail-stock {
    display: inline-block;

    margin: 0.5rem 0 1rem;
    padding: 0.3rem 0.65rem;

    border-radius: 2rem;

    background: #efede9;

    font-size: 0.8rem;
    font-weight: 600;
}

.product-detail-summary {
    margin: 0.5rem 0 0;

    color: #45413d;

    font-size: 1.05rem;
}

.product-description {
    margin-top: 1.25rem;

    color: #55514c;
}

.product-categories {
    margin-top: 1.5rem;
    padding-top: 1rem;

    border-top: 1px solid #dedbd6;

    font-size: 0.85rem;
}

.product-categories a {
    text-decoration: none;
    border-bottom: 1px solid #aaa49d;
}


/* ------------------------------------------------------------
   Product Image Gallery
------------------------------------------------------------ */

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;

    margin-top: 0.5rem;
}

.product-thumbnail {
    min-width: 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid #ddd9d3;
    background: #fff;

    cursor: pointer;
}

.product-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

footer {
    margin-top: 2rem;
    background: #181818;
    color: #fff;
}

.site-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;

    font-size: 0.8rem;
}

.site-footer p {
    margin: 0;
}

/* ------------------------------------------------------------
   Coming Soon
------------------------------------------------------------ */

.coming-soon {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.coming-soon-content {
    width: 100%;
    max-width: 42rem;
}

.coming-soon-eyebrow {
    margin: 0 0 1.25rem;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.coming-soon h1 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 15vw, 5.5rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.045em;
}

.coming-soon-lead {
    margin: 2rem 0 0;

    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.coming-soon-copy {
    max-width: 30rem;
    margin: 0.75rem auto 0;

    color: #66615c;
    font-size: 0.95rem;
    line-height: 1.6;
}

.coming-soon-status {
    margin: 1.75rem 0 0;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
}

/* ------------------------------------------------------------
   Pointer Devices
------------------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {

    .site-navigation a:hover::after {
        transform: scaleX(1);
    }

    .button {
        transition:
            background 0.15s ease,
            color 0.15s ease;
    }

    .button:hover {
        background: #fff;
        color: #181818;
    }

    .category-link {
        transition:
            border-color 0.15s ease,
            background 0.15s ease;
    }

    .category-link:hover {
        border-color: #181818;
        background: #f4f2ef;
    }

    .product-card {
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
    }

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    }

    .product-card-image img {
        transition: transform 0.25s ease;
    }

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


/* ------------------------------------------------------------
   600px+
------------------------------------------------------------ */

@media (min-width: 600px) {

    main {
        padding: 1.5rem;
    }

    .site-header-inner {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .site-logo {
        width: 160px;
    }

    .home-hero {
        padding-top: 2rem;
    }

    .home-hero h1 {
        font-size: 3.25rem;
    }

    .home-hero-intro {
        font-size: 1.1rem;
    }

    .product-grid {
        gap: 1rem;
    }

    .product-card-content {
        padding: 0.9rem;
    }

    .product-card h2 {
        font-size: 1.05rem;
    }

    .product-summary {
        display: none;

        margin: 0 0 0.75rem;

        color: #66615b;

        font-size: 0.85rem;
        line-height: 1.4;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .site-footer {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}


/* ------------------------------------------------------------
   768px+
------------------------------------------------------------ */

@media (min-width: 768px) {

    .site-header-inner {
        min-height: 96px;

        grid-template-columns: auto 1fr auto;
        gap: 2rem;
    }

    .site-header-left {
        display: none;
    }

    .site-brand {
        justify-self: start;
    }

    .site-logo {
        width: 220px;
    }

    .site-header-actions {
        justify-self: end;
    }

    .site-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;

        position: absolute;
        top: 0;
        left: 50%;

        height: 96px;
        padding: 0;

        background: transparent;
        border: 0;

        transform: translateX(-50%);
    }

    .site-navigation a {
        position: relative;

        padding: 0.4rem 0;

        border: 0;

        font-size: 0.9rem;
        font-weight: 600;
    }

    .site-navigation a::after {
        content: "";

        position: absolute;
        right: 0;
        bottom: 0.15rem;
        left: 0;

        height: 1px;

        background: #181818;

        transform: scaleX(0);
        transform-origin: center;

        transition: transform 0.15s ease;
    }

    .home-hero {
        min-height: 280px;
        margin: 0 0 2rem;
        padding: 2.5rem;

        display: flex;
        align-items: center;

        background: #181818;
        color: #ffffff;

        text-align: left;
    }

    .home-hero-content {
        max-width: 34rem;
    }

    .home-hero h1 {
        margin-bottom: 0.75rem;

        font-size: clamp(2.75rem, 6vw, 4rem);
        line-height: 0.95;
        letter-spacing: -0.04em;

        white-space: normal;
    }

    .home-hero h1 span {
        display: inline;
    }

    .home-hero-intro {
        max-width: 18rem;
        margin: 0;

        color: #fff;

        font-size: 1.2rem;
        line-height: 1.35;

        white-space: normal;
    }

    .home-featured {
        margin-bottom: 4rem;
    }

    .home-about {
        padding: 3rem 2rem;
    }

    .product-detail {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 2.5rem;
        align-items: start;
    }

    .product-detail-images {
        margin-bottom: 0;
    }

    .product-detail-content {
        position: sticky;
        top: 1.5rem;
    }

    .product-detail-content h1 {
        font-size: 2.5rem;
    }

    .home-categories {
        flex-wrap: wrap;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}


/* ------------------------------------------------------------
   900px+
------------------------------------------------------------ */

@media (min-width: 900px) {

    main {
        padding: 2rem;
    }

    .site-header-inner {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .site-navigation {
        gap: 1.75rem;
    }

    .home-hero-intro {
        font-size: 1.25rem;
    }

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

    .product-card-content {
        padding: 1rem;
    }

    .product-card h2 {
        font-size: 1.1rem;
    }

    .product-summary {
        font-size: 0.9rem;
    }

    .product-detail {
        gap: 3.5rem;
    }

    .product-detail-content h1 {
        font-size: 3rem;
    }

    .site-footer {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .home-categories {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
}


/* ------------------------------------------------------------
   1200px+
------------------------------------------------------------ */

@media (min-width: 1200px) {

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

    .product-detail {
        gap: 4.5rem;
    }
}