/* ==========================================================================
   Shop Page - Production Design (United Gunworks)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =========== Modern Filter Bar =========== */
.spr-shop-header {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.spr-shop-header__title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 20px;
    line-height: 1;
}

/* Single row filter bar: pills + sorting */
.spr-shop-header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.spr-shop-header__nav::-webkit-scrollbar { display: none; }

/* Category pills */
.spr-shop-header__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.spr-shop-header__tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #64748b;
    background: #f8f8f8;
    border: 1.5px solid #e5e5e5;
    border-radius: 50px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.spr-shop-header__tab:hover {
    color: #0f172a;
    border-color: #0f172a;
    background: #fff;
}

.spr-shop-header__tab--active {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
}

/* Sorting — pushed to right */
.spr-shop-header__sorting {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.spr-shop-header__sorting-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.spr-shop-header__sorting .woocommerce-ordering {
    margin: 0;
}

.spr-shop-header__sorting .woocommerce-ordering select {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #0f172a;
    border: 1.5px solid #e5e5e5;
    border-radius: 50px;
    padding: 7px 32px 7px 14px;
    background: #f8f8f8;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230f172a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.spr-shop-header__sorting .woocommerce-ordering select:hover,
.spr-shop-header__sorting .woocommerce-ordering select:focus {
    border-color: #0f172a;
    outline: none;
    background-color: #fff;
}

/* =========== Product Grid =========== */
.spr-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========== Product Card =========== */
.spr-product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.spr-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Image */
.spr-product-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e8e5e0;
    border-radius: 10px 10px 0 0;
}

/* EDIT 2026-09-11 — was object-fit:cover, which cropped every part
   photo to a square. contain shows the whole product. If any legacy
   photo now letterboxes oddly, that image needs a reshoot, not a
   CSS change. */
.spr-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease;
}

/* COMING SOON
   EDIT 2026-09-11 — this used to be a dark slab centred over the
   photo plus a 35% white wash across the whole image, so an
   out-of-stock part was almost entirely obscured. It is now a
   corner tag: the product photo stays fully visible.
   Set in the UGW type stack, square corners, crimson. */
.spr-product-card__oos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 5;
    background: #8B1C1C;
    padding: 7px 13px;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.spr-product-card__oos-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
}

/* No veil over the image. The tag carries the message on its own. */
.spr-product-card--oos .spr-product-card__image-wrap::after {
    content: none;
}
.spr-product-card--oos .spr-product-card__oos-overlay { z-index: 6; }

/* Card Info — centered */
.spr-product-card__info {
    padding: 16px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spr-product-card__title-link {
    text-decoration: none;
    color: inherit;
}

.spr-product-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
}

.spr-product-card__title-link:hover .spr-product-card__title {
    color: #475569;
}

.spr-product-card__category {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.spr-product-card__price {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.spr-product-card__price .amount { color: #0f172a; }
.spr-product-card__price del { opacity: 0.4; margin-right: 6px; }
.spr-product-card__price ins { text-decoration: none; }

/* =========== Color Swatches (rectangular, below image) =========== */
.spr-product-card__swatches-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.spr-product-card__color-swatches {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.spr-product-card__color-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    outline: none;
}

.spr-product-card__color-swatch:hover {
    border-color: #000000;
}

.spr-product-card__color-swatch--active {
    border-color: #000000;
}

/* Checkmark icon inside swatch */
.spr-product-card__check-icon {
    width: 14px;
    height: 14px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.spr-product-card__color-swatch--active .spr-product-card__check-icon {
    opacity: 1;
}

/* =========== Style Buttons (Patterned / GOV) =========== */
.spr-product-card__style-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.spr-product-card__style-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spr-product-card__style-btn:hover {
    border-color: #000000;
    color: #000000;
}

.spr-product-card__style-btn--active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* =========== Add to Cart / Select Options =========== */
.spr-product-card__atc {
    margin-top: auto;
    padding-top: 4px;
}

.spr-product-card__atc-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spr-product-card__atc-btn:hover {
    background: #334155;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.25);
}

/* =========== Pagination =========== */
.spr-shop-pagination {
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: center;
}

.spr-shop-pagination nav.woocommerce-pagination ul {
    display: inline-flex; gap: 4px; border: none; list-style: none; padding: 0;
}
.spr-shop-pagination nav.woocommerce-pagination ul li { border: none; }
.spr-shop-pagination nav.woocommerce-pagination ul li a,
.spr-shop-pagination nav.woocommerce-pagination ul li span.current {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #f1f5f9; color: #334155;
    text-decoration: none; border-radius: 8px;
    font-weight: 500; font-size: 13px;
    transition: all 0.2s ease;
}
.spr-shop-pagination nav.woocommerce-pagination ul li span.current,
.spr-shop-pagination nav.woocommerce-pagination ul li a:hover {
    background: #1e293b; color: #ffffff;
}

/* =========== Legacy WC shop wrapper =========== */
.spr-shop-wrapper { background: #ffffff; padding: 40px 20px; }
.spr-shop-wrapper ul.products {
    display: grid !important; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1200px; margin: 0 auto !important;
    padding: 0 !important; list-style: none;
}
.spr-shop-wrapper ul.products li.product { width: 100% !important; float: none !important; margin: 0 !important; }
.spr-shop-wrapper .woocommerce-result-count,
.spr-shop-wrapper .woocommerce-ordering { display: none; }

.spr-product-card .reset_variations { display: none !important; }

/* =========== Responsive =========== */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .spr-shop-grid,
    .spr-shop-wrapper ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .spr-shop-header { padding: 0 16px; }

    /* Filter bar stays one row, scrollable */
    .spr-shop-header__nav { gap: 8px; }
    .spr-shop-header__tab { padding: 7px 14px; font-size: 11px; }
    .spr-shop-header__sorting-label { display: none; }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .spr-shop-wrapper { padding: 24px 12px; }

    .spr-shop-grid,
    .spr-shop-wrapper ul.products { grid-template-columns: 1fr; gap: 16px; max-width: 400px; }

    .spr-shop-header { margin: 0 auto 20px; }
    .spr-shop-header__title { font-size: 28px; letter-spacing: -0.5px; }
    .spr-shop-header__tab { padding: 6px 12px; font-size: 10px; }

    .spr-product-card { border-radius: 8px; }
    .spr-product-card__image-wrap { border-radius: 8px 8px 0 0; }
    .spr-product-card__info { padding: 16px; }
    .spr-product-card__title { font-size: 15px; }
    .spr-product-card__category { font-size: 12px; }
    .spr-product-card__price { font-size: 16px; margin-bottom: 12px; }

    .spr-product-card__swatches-wrap { gap: 8px; margin-bottom: 12px; }
    .spr-product-card__color-swatch { width: 32px; height: 32px; }
    .spr-product-card__check-icon { width: 14px; height: 14px; }
    .spr-product-card__style-btn { padding: 6px 14px; font-size: 12px; }
    .spr-product-card__atc-btn { padding: 10px 14px; font-size: 10px; letter-spacing: 2px; }

    .spr-product-card__oos-overlay { padding: 8px 20px; }
    .spr-product-card__oos-text { font-size: 10px; letter-spacing: 2px; }

    .spr-shop-pagination { margin-top: 24px; }
    .spr-shop-pagination nav.woocommerce-pagination ul li a,
    .spr-shop-pagination nav.woocommerce-pagination ul li span.current { width: 36px; height: 36px; font-size: 12px; }
}

/* ==================================================================
   EDIT 2026-09-11 (UGW) — SHOP CARD, BRAND PASS
   The card was still on the plugin author's default look: Inter,
   slate-blue buttons, 6-10px rounded corners. None of that is the
   UGW system. This block re-skins it to match the homepage and the
   header — Share Tech Mono labels, Bebas titles, zero radius,
   crimson. Appended last so it wins without touching the rules
   above, which keeps this easy to lift back out.
   ================================================================== */
.spr-product-card{
    border:1px solid #D3D7DC!important;
    border-radius:0!important;
    box-shadow:none!important;
    transition:border-color .35s cubic-bezier(.16,1,.3,1),
               box-shadow .35s cubic-bezier(.16,1,.3,1),
               transform .35s cubic-bezier(.16,1,.3,1);
}
.spr-product-card:hover{
    border-color:#868C95!important;
    transform:translateY(-4px);
    box-shadow:0 22px 54px rgba(11,12,14,.10)!important;
}

/* the photo sits on white with breathing room, not on a beige slab.
   `contain` was exposing the wrap background as a band under the
   product — the fix is the background, not the fit. */
.spr-product-card__image-wrap{
    background:#FFFFFF!important;
    border-radius:0!important;
    border-bottom:1px solid #E8EAED;
    padding:clamp(14px,5%,34px);
}
.spr-product-card__image{
    object-fit:contain!important;
    mix-blend-mode:multiply;   /* kills the white box on vendor cut-outs */
}

/* crimson corner tag, square */
.spr-product-card__oos-overlay{border-radius:0!important}

/* type */
.spr-product-card__title{
    font-family:'Bebas Neue',sans-serif!important;
    font-weight:400!important;
    letter-spacing:.02em!important;
    line-height:1!important;
}
.spr-product-card__category{
    font-family:'Share Tech Mono',monospace!important;
    font-size:9px!important;letter-spacing:.24em!important;
    text-transform:uppercase!important;color:#868C95!important;
}
.spr-product-card__price{
    font-family:'Bebas Neue',sans-serif!important;
    letter-spacing:.02em!important;
}

/* add to cart — crimson, square, mono */
.spr-product-card__atc-btn{
    background:#8B1C1C!important;
    border:1px solid #8B1C1C!important;
    border-radius:0!important;
    font-family:'Share Tech Mono',monospace!important;
    font-weight:400!important;
    font-size:10px!important;
    letter-spacing:.24em!important;
    padding:14px 16px!important;
    transition:background .3s cubic-bezier(.16,1,.3,1),
               border-color .3s cubic-bezier(.16,1,.3,1)!important;
}
.spr-product-card__atc-btn:hover{
    background:#B32424!important;
    border-color:#B32424!important;
    transform:none!important;
    box-shadow:none!important;
}

/* pagination, same language */
.spr-shop-pagination nav.woocommerce-pagination ul li a,
.spr-shop-pagination nav.woocommerce-pagination ul li span.current{
    border-radius:0!important;
    font-family:'Share Tech Mono',monospace!important;
    font-size:11px!important;letter-spacing:.12em!important;
    background:#F2F3F5!important;color:#2A2D31!important;
    border:1px solid #D3D7DC!important;
}
.spr-shop-pagination nav.woocommerce-pagination ul li span.current,
.spr-shop-pagination nav.woocommerce-pagination ul li a:hover{
    background:#0A0B0C!important;color:#fff!important;border-color:#0A0B0C!important;
}

@media(max-width:768px){
    .spr-product-card,
    .spr-product-card__image-wrap{border-radius:0!important}
}

/* ---- EDIT 2026-09-11 (UGW) — grid alignment + card balance ----
   The grid was rendering wider than its own 1200px cap, which threw
   the whole column off-centre against the filter sidebar. Cap and
   centre it for real, make the CTA fill the card the way it reads in
   the mockups, and stop padding the photo twice. */
.spr-shop-grid{
    max-width:1200px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    width:100%;
}
/* THE ACTUAL CAUSE: .spr-product-card__info is a flex column with
   align-items:center, so every child shrink-wraps. width:100% on the
   button then resolves against a 153px parent and stays 153px.
   align-self:stretch on the wrapper is what overrides align-items,
   not width. Both are set so it holds either way. */
.spr-product-card .spr-product-card__atc{
    width:100%!important;
    align-self:stretch!important;
    display:block!important;
}
.spr-product-card .spr-product-card__atc-btn{
    width:100%!important;
    display:block!important;
    box-sizing:border-box!important;
}
/* build marker — if you do not see this in the Styles panel on
   .spr-product-card, the file being served is not this one */
.spr-product-card{--ugw-build:"2026-09-11-d"}

/* vendor photos already carry their own margin — ours was doubling it
   and shrinking the product */
.spr-product-card__image-wrap{padding:clamp(8px,2.5%,18px)!important}

/* keep the info block's rhythm tight now that the button is full width */
.spr-product-card__info{padding:14px 18px 18px!important;gap:8px}
.spr-product-card__title{margin:0!important}

/* ==================================================================
   v5.2.0 (2026-11-05) — TOKENS FOR THE SPR SHOP GRID WIDGET
   The brand pass above hard-codes its values with !important, which is
   why the widget's colour pickers never did anything. Each value is now
   read from a custom property the widget sets on its own wrapper; the
   fallback is the brand-pass value, so an untouched widget is unchanged.
   ================================================================== */
.spr-shop-header__title{font-family:var(--sg-head-font,'Inter'),sans-serif!important;font-size:var(--sg-head-size,42px)!important;color:var(--sg-head-color,#0f172a)!important}
.spr-shop-header__tab{font-size:var(--sg-tab-size,12px)!important;color:var(--sg-tab-color,#64748b)!important}
.spr-shop-header__tab:hover{color:var(--sg-tab-active,#0f172a)!important;border-color:var(--sg-tab-active,#0f172a)!important}
.spr-shop-header__tab--active{color:var(--sg-tab-active-fg,#ffffff)!important;background:var(--sg-tab-active,#0f172a)!important;border-color:var(--sg-tab-active,#0f172a)!important}
.spr-product-card{background:var(--sg-card-bg,#ffffff)!important;border-color:var(--sg-card-border,#D3D7DC)!important}
.spr-product-card:hover{border-color:var(--sg-card-border-hover,#868C95)!important}
.spr-product-card__image-wrap{background:var(--sg-image-bg,#FFFFFF)!important;padding:var(--sg-image-pad,clamp(8px,2.5%,18px))!important}
.spr-product-card__title{font-family:var(--sg-title-font,'Bebas Neue'),sans-serif!important;font-size:var(--sg-title-size,14px)!important;letter-spacing:var(--sg-title-ls,.02em)!important;color:var(--sg-title-color,#0f172a)!important}
.spr-product-card__title-link:hover .spr-product-card__title{color:var(--sg-title-hover,#475569)!important}
.spr-product-card__category{font-size:var(--sg-cat-size,9px)!important;color:var(--sg-cat-color,#868C95)!important}
.spr-product-card__price,.spr-product-card__price .amount{font-size:var(--sg-price-size,16px)!important;color:var(--sg-price-color,#0f172a)!important}
.spr-product-card__atc-btn{background:var(--sg-atc-bg,#8B1C1C)!important;border-color:var(--sg-atc-bg,#8B1C1C)!important;color:var(--sg-atc-fg,#ffffff)!important;font-size:var(--sg-atc-size,10px)!important;letter-spacing:var(--sg-atc-ls,.24em)!important;padding:var(--sg-atc-pad,14px 16px)!important}
.spr-product-card__atc-btn:hover{background:var(--sg-atc-hover,#B32424)!important;border-color:var(--sg-atc-hover,#B32424)!important;color:var(--sg-atc-fg,#ffffff)!important}
.spr-product-card__oos-overlay{background:var(--sg-oos-bg,#8B1C1C)!important}
.spr-product-card__oos-text{color:var(--sg-oos-fg,#ffffff)!important}
.spr-shop-pagination nav.woocommerce-pagination ul li span.current,.spr-shop-pagination nav.woocommerce-pagination ul li a:hover{background:var(--sg-page-active,#0A0B0C)!important;border-color:var(--sg-page-active,#0A0B0C)!important}
