
/* =========================================================
   GOODWILL CRAFTS — PRODUCT SYSTEM
   Product archive, category navigation and single products
========================================================= */

/* ---------- Theme Variables ---------- */

.gwc-shop,
.gwc-single-product {
    --gwc-forest: #263D32;
    --gwc-walnut: #773F1A;
    --gwc-copper: #B87950;
    --gwc-ivory: #F8F6F1;
    --gwc-linen: #E5E0D5;
    --gwc-text: #292820;
    --gwc-muted: #706E66;

    color: var(--gwc-text);
    font-family: inherit;
}

.gwc-shop *,
.gwc-single-product * {
    box-sizing: border-box;
}

/* ---------- Header & Archive Layout ---------- */

.site-header {
    position: relative;
    top: auto;
}

.gwc-shop {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.gwc-shop-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 76px 24px;
    background: var(--gwc-forest);
    color: #fff;
    text-align: center;
}

.gwc-shop-hero-inner {
    max-width: 850px;
    margin: auto;
}

.gwc-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--gwc-copper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gwc-shop-hero .gwc-eyebrow {
    color: #E8C4A8;
}

.gwc-shop-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
}

.gwc-shop-hero p {
    max-width: 650px;
    margin: auto;
    color: #E7E8E2;
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- Products Section ---------- */

.gwc-products-section,
.gwc-variants-section {
    max-width: 1280px;
    margin: auto;
    padding: 65px 24px;
}

.gwc-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.gwc-products-heading h2,
.gwc-variants-section > h2 {
    margin: 0;
    color: var(--gwc-forest);
    font-size: clamp(26px, 3vw, 36px);
}

.gwc-product-count {
    color: var(--gwc-muted);
    font-size: 14px;
}

/* ---------- Category Navigation ---------- */
/* Normal document flow: not fixed or sticky */

.gwc-category-filter {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none !important;
    z-index: auto;
}

.gwc-category-link {
    position: static;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--gwc-linen);
    border-radius: 3px;
    background: transparent;
    color: var(--gwc-forest);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease,
                border-color .2s ease;
}

.gwc-category-link:hover,
.gwc-category-link:focus-visible {
    border-color: var(--gwc-forest);
    background: var(--gwc-forest);
    color: #fff;
}

/* ---------- Product Grid & Cards ---------- */

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

.gwc-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #EAE7E0;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gwc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgb(38 61 50 / 9%);
}

.gwc-product-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--gwc-ivory);
}

.gwc-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.gwc-featured-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    background: var(--gwc-forest);
    color: #fff;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gwc-no-image {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gwc-ivory);
    color: var(--gwc-muted);
    text-align: center;
}

.gwc-product-info {
    padding: 22px;
}

.gwc-product-material {
    color: var(--gwc-copper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gwc-product-info h3 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.4;
}

.gwc-product-info h3 a {
    color: var(--gwc-forest);
    text-decoration: none;
}

.gwc-product-info h3 a:hover {
    color: var(--gwc-copper);
}

.gwc-product-sku {
    color: var(--gwc-muted);
    font-size: 12px;
}

.gwc-product-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--gwc-linen);
}

.gwc-quote-label {
    color: var(--gwc-walnut);
    font-size: 14px;
    font-weight: 700;
}

.gwc-view-product {
    color: var(--gwc-forest);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.gwc-view-product:hover {
    color: var(--gwc-copper);
}

/* ---------- Pagination ---------- */
/* Appears after the product grid */

.gwc-pagination {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 40px 0 0;
    padding: 0;
    clear: both;
    transform: none !important;
}

.gwc-pagination .page-numbers {
    position: static;
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--gwc-linen);
    background: #fff;
    color: var(--gwc-forest);
    text-decoration: none;
}

.gwc-pagination a.page-numbers:hover,
.gwc-pagination .page-numbers.current {
    border-color: var(--gwc-forest);
    background: var(--gwc-forest);
    color: #fff;
}

/* ---------- Empty Products ---------- */

.gwc-empty-products {
    padding: 50px 20px;
    background: var(--gwc-ivory);
    text-align: center;
}

/* =========================================================
   SINGLE PRODUCT
========================================================= */

.gwc-single-product {
    max-width: 1280px;
    margin: auto;
    padding: 30px 24px 70px;
}

/* Breadcrumb */

.gwc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    color: var(--gwc-muted);
    font-size: 12px;
}

.gwc-breadcrumb a {
    color: var(--gwc-forest);
    text-decoration: none;
}

/* Product detail layout */

.gwc-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: 55px;
}

.gwc-main-image {
    overflow: hidden;
    background: var(--gwc-ivory);
}

.gwc-main-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Gallery thumbnails */

.gwc-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.gwc-thumb {
    width: 78px;
    height: 78px;
    padding: 3px;
    border: 1px solid var(--gwc-linen);
    background: #fff;
    cursor: pointer;
}

.gwc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwc-thumb:focus-visible {
    outline: 2px solid var(--gwc-forest);
    outline-offset: 3px;
}

/* Product summary */

.gwc-product-summary h1 {
    margin: 8px 0 12px;
    color: var(--gwc-forest);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}

.gwc-single-description {
    margin: 24px 0;
    color: var(--gwc-muted);
    line-height: 1.85;
}

/* Product specifications */

.gwc-spec-list {
    border-top: 1px solid var(--gwc-linen);
}

.gwc-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gwc-linen);
    font-size: 13px;
}

.gwc-spec-row span {
    color: var(--gwc-muted);
}

.gwc-spec-row strong {
    overflow-wrap: anywhere;
    text-align: right;
}

/* Additional product information */

.gwc-extra-info {
    margin-top: 25px;
}

.gwc-extra-info h3 {
    margin-bottom: 8px;
    color: var(--gwc-forest);
}

.gwc-extra-info p {
    color: var(--gwc-muted);
    line-height: 1.8;
}

/* Quote panel */

.gwc-quote-panel {
    margin-top: 30px;
    padding: 25px;
    border-left: 3px solid var(--gwc-copper);
    background: var(--gwc-ivory);
}

.gwc-quote-panel > span {
    color: var(--gwc-muted);
    font-size: 12px;
}

.gwc-quote-panel h2 {
    margin: 8px 0;
    color: var(--gwc-forest);
    font-size: 25px;
}

.gwc-quote-panel p {
    color: var(--gwc-muted);
    font-size: 14px;
    line-height: 1.7;
}

.gwc-quote-button,
.gwc-variant-quote {
    display: inline-block;
    padding: 13px 18px;
    background: var(--gwc-forest);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

.gwc-quote-button:hover,
.gwc-variant-quote:hover {
    background: var(--gwc-walnut);
}

/* ---------- Product Variants ---------- */

.gwc-variants-section {
    padding-right: 0;
    padding-left: 0;
}

.gwc-variants-section > h2 {
    margin-bottom: 28px;
}

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

.gwc-variant-card {
    padding: 20px;
    border: 1px solid var(--gwc-linen);
    background: #fff;
}

.gwc-variant-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    object-fit: cover;
}

.gwc-variant-card h3 {
    color: var(--gwc-forest);
    font-size: 18px;
}

.gwc-variant-card p {
    color: var(--gwc-muted);
    font-size: 13px;
    line-height: 1.7;
}

.gwc-variant-quote {
    margin-top: 8px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .gwc-product-grid,
    .gwc-variants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gwc-product-detail {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 560px) {
    .gwc-shop-hero {
        padding: 55px 20px;
    }

    .gwc-products-section {
        padding: 42px 16px;
    }

    .gwc-category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 25px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .gwc-category-link {
        flex-shrink: 0;
        padding: 12px 14px;
        font-size: 13px;
    }

    .gwc-product-grid,
    .gwc-variants-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gwc-products-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gwc-product-info {
        padding: 18px;
    }

    .gwc-pagination {
        margin-top: 30px;
    }

    .gwc-single-product {
        padding: 22px 16px 45px;
    }

    .gwc-spec-row {
        gap: 12px;
    }
}
