/* Glownetics Shop Pro v4.2 — Compact Premium Design */

:root {
    --gsp-gold: #E5C878;
    --gsp-gold-dark: #C9A962;
    --gsp-bg: #141412;
    --gsp-card: rgba(28, 28, 26, 0.95);
    --gsp-text: #fff;
    --gsp-muted: #888;
    --gsp-radius: 10px;
}

/* === BASE === */
.gsp {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* === HEADER / SEO TITLE === */
.gsp__header {
    text-align: center;
    margin-bottom: 24px;
}

.gsp__header::before {
    content: 'SHOP BY CATEGORY';
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gsp-muted);
    margin-bottom: 8px;
}

.gsp__title {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 500;
    color: var(--gsp-text);
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* === CATEGORY NAV === */
.gsp__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

/* Mobile: Single pill with arrows */
.gsp__nav-pill {
    background: var(--gsp-gold);
    color: #000;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.gsp__nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gsp__nav-arrow:hover {
    background: var(--gsp-gold);
    border-color: var(--gsp-gold);
}

.gsp__nav-arrow:hover svg {
    stroke: #000;
}

.gsp__nav-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--gsp-text);
    stroke-width: 2;
    fill: none;
}

.gsp__nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Desktop pills - hidden on mobile */
.gsp__nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .gsp__nav-pill,
    .gsp__nav-arrow {
        display: none;
    }
    
    .gsp__nav-desktop {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .gsp__pill {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.15);
        color: var(--gsp-muted);
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .gsp__pill:hover {
        border-color: var(--gsp-gold-dark);
        color: var(--gsp-text);
    }
    
    .gsp__pill--active {
        background: var(--gsp-gold);
        border-color: var(--gsp-gold);
        color: #000;
        font-weight: 600;
    }
}

/* === PRODUCTS GRID === */
.gsp__products {
    position: relative;
    min-height: 200px;
}

.gsp__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gsp__grid--loaded {
    opacity: 1;
}

@media (min-width: 640px) {
    .gsp__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .gsp__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Loader */
.gsp__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid rgba(201,169,98,0.2);
    border-top-color: var(--gsp-gold);
    border-radius: 50%;
    animation: gsp-spin 0.6s linear infinite;
    display: none;
}

.gsp__products--loading .gsp__loader {
    display: block;
}

.gsp__products--loading .gsp__grid {
    opacity: 0.3;
    pointer-events: none;
}

@keyframes gsp-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === PRODUCT CARD === */
.gsp__card {
    background: var(--gsp-card);
    border-radius: var(--gsp-radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.gsp__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.gsp__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image container */
.gsp__card-img {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Price overlay - bottom left */
.gsp__card-price {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--gsp-gold), var(--gsp-gold-dark));
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-top-right-radius: 8px;
}

.gsp__card-price .woocommerce-Price-currencySymbol {
    font-size: 11px;
}

/* Badge - top left */
.gsp__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.gsp__badge--sale {
    background: #ef4444;
    color: #fff;
}

.gsp__badge--new {
    background: #4ade80;
    color: #000;
}

/* Card body */
.gsp__card-body {
    padding: 10px 12px;
}

.gsp__card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gsp-text);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gsp__card-title {
        font-size: 14px;
    }
    
    .gsp__card-price {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* === COMPACT RATING CIRCLE === */
.gsp__card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gsp-gold);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === FOOTER / SEO DESC === */
.gsp__footer {
    margin-top: 24px;
}

.gsp__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--gsp-muted);
    text-align: center;
    margin: 0;
    padding: 16px 20px;
    background: rgba(229, 200, 120, 0.05);
    border: 1px solid rgba(229, 200, 120, 0.15);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gsp__footer {
        margin-top: 32px;
    }
    
    .gsp__desc {
        font-size: 14px;
        padding: 20px 28px;
    }
}

/* === HOMEPAGE SLIDER VARIANT === */
.gsp--homepage .gsp__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.gsp--homepage .gsp__grid::-webkit-scrollbar {
    display: none;
}

.gsp--homepage .gsp__card {
    flex: 0 0 75%;
    max-width: 280px;
    scroll-snap-align: center;
}

@media (min-width: 640px) {
    .gsp--homepage .gsp__card {
        flex: 0 0 45%;
        max-width: 300px;
    }
}

@media (min-width: 1024px) {
    .gsp--homepage .gsp__card {
        flex: 0 0 30%;
        max-width: 320px;
    }
}

/* Utility */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* === LOGO AREA === */
.gsp__logo {
    text-align: center;
    padding: 30px 0;
}

.gsp__logo-img {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .gsp__logo-img {
        max-width: 220px;
    }
}

/* === TRUST BAR === */
.gsp__trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0;
}

@media (min-width: 640px) {
    .gsp__trust {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.gsp__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: rgba(229, 200, 120, 0.05);
    border: 1px solid rgba(229, 200, 120, 0.15);
    border-radius: 10px;
    gap: 8px;
}

.gsp__trust-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gsp__trust-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gsp-gold);
}

.gsp__trust-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gsp-text);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .gsp__trust-item {
        padding: 20px 16px;
    }
    
    .gsp__trust-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .gsp__trust-text {
        font-size: 13px;
    }
}

/* === FAQ ACCORDION === */
.gsp__faq {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.gsp__faq-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gsp-muted);
    text-align: center;
    margin: 0 0 16px;
}

.gsp__faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.gsp__faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gsp-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.gsp__faq-item summary::-webkit-details-marker {
    display: none;
}

.gsp__faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--gsp-gold);
    transition: transform 0.2s;
}

.gsp__faq-item[open] summary::after {
    transform: rotate(45deg);
}

.gsp__faq-item summary:hover {
    background: rgba(229, 200, 120, 0.05);
}

.gsp__faq-item p {
    margin: 0;
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gsp-muted);
}

@media (min-width: 768px) {
    .gsp__faq {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gsp__faq-item summary {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .gsp__faq-item p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
}

/* === DISCOVER SLIDER === */
.gsp__discover {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.gsp__discover-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gsp-muted);
    text-align: center;
    margin: 0 0 16px;
}

.gsp__discover-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.gsp__discover-slider::-webkit-scrollbar {
    display: none;
}

.gsp__discover-item {
    flex: 0 0 80px;
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.gsp__discover-item:hover {
    transform: scale(1.05);
}

.gsp__discover-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(229, 200, 120, 0.3);
    transition: border-color 0.2s;
}

.gsp__discover-item:hover .gsp__discover-img {
    border-color: var(--gsp-gold);
}

.gsp__discover-name {
    font-size: 10px;
    color: var(--gsp-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 80px;
}

@media (min-width: 640px) {
    .gsp__discover-slider {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }
    
    .gsp__discover-item {
        flex: 0 0 100px;
    }
    
    .gsp__discover-img {
        width: 80px;
        height: 80px;
    }
    
    .gsp__discover-name {
        font-size: 11px;
        max-width: 100px;
    }
}

/* === TAGLINE === */
.gsp__tagline {
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(229,200,120,0.08) 0%, rgba(229,200,120,0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(229,200,120,0.1);
}

.gsp__tagline p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--gsp-text);
    line-height: 1.5;
}

.gsp__tagline span {
    display: block;
    color: var(--gsp-gold);
    font-weight: 600;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .gsp__tagline {
        padding: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gsp__tagline p {
        font-size: 20px;
    }
    
    .gsp__tagline span {
        display: inline;
        margin-top: 0;
    }
    
    .gsp__tagline span::before {
        content: ' ';
    }
}
