/*
Theme Name: ShopPositype Ultimate
Theme URI: https://teetees.store/
Description: High-Performance Affiliate Catalog Theme. Super Fast. T-Shirt Collective Style.
Version: 3.0.0
Author: Master Marketer
*/

/* --- GLOBAL RESET & BASE --- */
:root {
    --primary: #111111;
    --bg: #f5f5f5;
    --text: #111111;
    --header-height: 64px;
    --gap: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; }

/* --- BACKGROUND --- */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800&h=1200&fit=crop') left center / auto 100% no-repeat,
        url('https://images.unsplash.com/photo-1525904097878-94fb15835963?w=800&h=1200&fit=crop') right center / auto 100% no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}
@media (max-width: 1200px) {
    body::before { opacity: 0.15; }
}
@media (max-width: 768px) {
    body::before { display: none; }
}

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: var(--header-height);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.header-nav-left a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    position: relative;
    padding: 4px 0;
}

.header-nav-left a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1.5px;
    background: #111;
    transition: width 0.3s ease;
}

.header-nav-left a:hover::after { width: 100%; }

.header-logo {
    flex: 1;
    text-align: center;
}

.header-logo a {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111;
}

.header-icons {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #111;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.header-icon-btn:hover { background: rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .header-nav-left { display: none; }
    .header-logo a { font-size: 0.75rem; letter-spacing: 0.1em; }
    .header-inner { padding: 0 16px; }
}

/* --- MAIN --- */
.site-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: var(--gap);
}

.bento-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.bento-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-link img { transform: scale(1.05); }

/* Overlay for collection blocks */
.bento-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bento-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.bento-cta {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2px;
}

.bento-dim {
    position: absolute;
    bottom: 8px; right: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.35);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

/* Product card info */
.bento-product-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 12px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.bento-product-name {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.bento-product-price {
    font-size: 0.65rem;
    font-weight: 800;
    color: #111;
}

.bento-add {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.1);
    color: #111;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.bento-add:hover {
    background: #111;
    color: #fff;
    transform: scale(1.1);
}

/* Grid spans (desktop) */
.bento-tall { grid-column: span 4; grid-row: span 5; }
.bento-wide { grid-column: span 3; grid-row: span 2; }
.bento-small { grid-column: span 2; grid-row: span 2; }
.bento-tall-mid { grid-column: span 4; grid-row: span 4; }
.bento-mid { grid-column: span 3; grid-row: span 3; }
.bento-tall-right { grid-column: span 4; grid-row: span 6; }
.bento-product { grid-column: span 2; grid-row: span 2; }
.bento-mid-wide { grid-column: span 3; grid-row: span 2; }

/* Mobile grid */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .bento-tall, .bento-wide, .bento-small, .bento-tall-mid,
    .bento-mid, .bento-tall-right, .bento-product, .bento-mid-wide {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 260px;
    }
    .bento-tall, .bento-tall-mid, .bento-tall-right {
        grid-row: span 3;
        min-height: 380px;
    }
}

/* --- PAGINATION & SHOP ALL --- */
.bento-pagination {
    margin-top: 32px;
    text-align: center;
}
.bento-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bento-pagination .page-numbers.current {
    background: #111;
    color: #fff;
    border-color: #111;
}
.bento-pagination .page-numbers:hover:not(.current) {
    background: rgba(0,0,0,0.04);
}
.bento-pagination .prev,
.bento-pagination .next {
    padding: 0 14px;
}

.bento-shop-all {
    margin-top: 24px;
    text-align: center;
}
.bento-shop-all a {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border: 2px solid #111;
    transition: background 0.2s, color 0.2s;
}
.bento-shop-all a:hover {
    background: #fff;
    color: #111;
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: #111;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.78rem;
    color: #555;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #111; }

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.footer-newsletter form {
    display: flex;
    border: 1.5px solid #111;
    overflow: hidden;
    margin-top: 12px;
}

.footer-newsletter input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 0.8rem;
    font-family: inherit;
}

.footer-newsletter button {
    background: #111;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background 0.2s;
}

.footer-newsletter button:hover { background: #333; }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #777;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: #777;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #111; }

/* --- Archive & Single Product Cards (solid like bento) --- */
.spt-card,
.affc-card {
    position: relative;
    z-index: 2;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spt-card:hover,
.affc-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px);
}

.spt-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5 !important;
}

.spt-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.spt-card:hover .spt-card-img-wrap img {
    transform: scale(1.05);
}

.spt-card-content {
    padding: 16px !important;
    background: #fff !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.spt-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

.spt-card-title a {
    color: #111;
}

.spt-card-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111;
}

.spt-btn-view {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: #111;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.spt-btn-view:hover {
    background: #333;
    transform: translateY(-2px);
}

/* --- Archive & Single: solid cards over blurred background --- */
.spt-main-content,
.spt-single-wrap,
.spt-related {
    position: relative;
    z-index: 2;
    background: #fff !important;
    isolation: isolate;
}

.spt-shell {
    position: relative;
    z-index: 2;
    background: #fff !important;
    isolation: isolate;
}

.spt-single-wrap {
    padding: 40px 20px 64px;
}

.spt-grid {
    position: relative;
    z-index: 2;
}

.spt-single-layout {
    position: relative;
    z-index: 3;
    background: #fff !important;
    isolation: isolate;
}

.spt-single-media,
.spt-single-info {
    position: relative;
    z-index: 3;
    background: #fff !important;
    background-color: #fff !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.spt-single-info {
    padding: 24px;
}

.spt-storefront {
    position: relative;
    z-index: 2;
    background: #fff !important;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}