/**
 * BNG Shop Archive Styles
 * 
 * Uniwersalny sklep z kategoriami, filtrowaniem i produktami
 */

/* ==========================================================================
   SHOP BASE
   ========================================================================== */

.bngc-shop {
    width: 100%;
    background: var(--bngc-bg-secondary, #f8fafc);
    min-height: 100vh;
}

.bngc-shop .bngc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   SHOP HERO
   ========================================================================== */

.bngc-shop-hero {
    background: linear-gradient(135deg, var(--bngc-primary, #1a1a2e) 0%, #2d2d44 100%);
    padding: 3rem 0;
    text-align: center;
}

.bngc-shop-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bngc-accent, #3b82f6);
    margin-bottom: 0.5rem;
}

.bngc-shop-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.bngc-shop-hero__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   SHOP CATEGORIES GRID
   ========================================================================== */

.bngc-shop-categories {
    padding: 2.5rem 0;
    background: #fff;
}

.bngc-shop-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bngc-primary, #1a1a2e);
    margin: 0 0 1.5rem;
}

.bngc-shop-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.bngc-shop-cat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bngc-bg-secondary, #f8fafc);
    border: 1px solid var(--bngc-border, #e5e7eb);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bngc-shop-cat-card:hover {
    background: #fff;
    border-color: var(--bngc-accent, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.bngc-shop-cat-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.bngc-shop-cat-card__content {
    flex: 1;
    min-width: 0;
}

.bngc-shop-cat-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bngc-primary, #1a1a2e);
    margin: 0 0 0.25rem;
}

.bngc-shop-cat-card__desc {
    font-size: 0.8125rem;
    color: var(--bngc-text-secondary, #64748b);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.bngc-shop-cat-card__count {
    font-size: 0.75rem;
    color: var(--bngc-text-muted, #94a3b8);
}

.bngc-shop-cat-card__arrow {
    font-size: 1.25rem;
    color: var(--bngc-text-muted, #94a3b8);
    transition: transform 0.2s, color 0.2s;
}

.bngc-shop-cat-card:hover .bngc-shop-cat-card__arrow {
    transform: translateX(4px);
    color: var(--bngc-accent, #3b82f6);
}

/* ==========================================================================
   SUBCATEGORIES (PILLS)
   ========================================================================== */

.bngc-shop-subcats {
    padding: 1.25rem 0;
    background: #fff;
    border-bottom: 1px solid var(--bngc-border, #e5e7eb);
}

.bngc-shop-subcats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bngc-shop-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bngc-bg-secondary, #f8fafc);
    border: 1px solid var(--bngc-border, #e5e7eb);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bngc-text, #374151);
    text-decoration: none;
    transition: all 0.2s;
}

.bngc-shop-subcat-pill:hover {
    background: var(--bngc-accent, #3b82f6);
    border-color: var(--bngc-accent, #3b82f6);
    color: #fff;
}

.bngc-shop-subcat-pill.is-active {
    background: var(--bngc-primary, #1a1a2e);
    border-color: var(--bngc-primary, #1a1a2e);
    color: #fff;
}

.bngc-shop-subcat-pill span {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ==========================================================================
   SHOP TOOLBAR
   ========================================================================== */

.bngc-shop-toolbar {
    padding: 1rem 0;
    background: #fff;
    border-bottom: 1px solid var(--bngc-border, #e5e7eb);
    position: sticky;
    top: 0;
    z-index: 50;
}

.bngc-shop-toolbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bngc-shop-toolbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bngc-shop-toolbar__count {
    font-size: 0.875rem;
    color: var(--bngc-text-secondary, #64748b);
}

.bngc-shop-toolbar__count strong {
    color: var(--bngc-primary, #1a1a2e);
}

.bngc-shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bngc-shop-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bngc-shop-filter label {
    font-size: 0.8125rem;
    color: var(--bngc-text-secondary, #64748b);
    white-space: nowrap;
}

.bngc-shop-filter select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bngc-primary, #1a1a2e);
    background: var(--bngc-bg-secondary, #f8fafc);
    border: 1px solid var(--bngc-border, #e5e7eb);
    border-radius: 0.5rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color 0.2s;
}

.bngc-shop-filter select:hover,
.bngc-shop-filter select:focus {
    border-color: var(--bngc-accent, #3b82f6);
    outline: none;
}

/* ==========================================================================
   PRODUCTS GRID
   ========================================================================== */

.bngc-shop-products {
    padding: 2rem 0 3rem;
}

.bngc-shop-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.bngc-product-card {
    background: #fff;
    border: 1px solid var(--bngc-border, #e5e7eb);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.bngc-product-card:hover {
    border-color: var(--bngc-accent, #3b82f6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.bngc-product-card__link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-decoration: none;
    height: 100%;
    position: relative;
}

.bngc-product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35, #f7c052);
    color: #fff;
    border-radius: 4px;
}

.bngc-product-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bngc-product-card__cat-icon {
    font-size: 1.25rem;
}

.bngc-product-card__cat-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bngc-text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bngc-product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bngc-primary, #1a1a2e);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bngc-product-card__desc {
    font-size: 0.8125rem;
    color: var(--bngc-text-secondary, #64748b);
    line-height: 1.5;
    margin: 0 0 auto;
    padding-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bngc-product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--bngc-border, #e5e7eb);
    margin-top: auto;
}

.bngc-product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bngc-primary, #1a1a2e);
}

.bngc-product-card__price del {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--bngc-text-muted, #94a3b8);
    margin-right: 0.25rem;
}

.bngc-product-card__price ins {
    text-decoration: none;
    color: #059669;
}

.bngc-product-card__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bngc-accent, #3b82f6);
    transition: transform 0.2s;
}

.bngc-product-card:hover .bngc-product-card__cta {
    transform: translateX(4px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.bngc-shop-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.bngc-shop-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bngc-text, #374151);
    background: #fff;
    border: 1px solid var(--bngc-border, #e5e7eb);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.bngc-shop-pagination__link:hover {
    border-color: var(--bngc-accent, #3b82f6);
    color: var(--bngc-accent, #3b82f6);
}

.bngc-shop-pagination__link.is-current {
    background: var(--bngc-accent, #3b82f6);
    border-color: var(--bngc-accent, #3b82f6);
    color: #fff;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.bngc-shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 0.75rem;
}

.bngc-shop-empty p {
    font-size: 1.125rem;
    color: var(--bngc-text-secondary, #64748b);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.bngc-shop-trust {
    padding: 2rem 0;
    background: var(--bngc-primary, #1a1a2e);
}

.bngc-shop-trust__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.bngc-shop-trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.bngc-shop-trust__item span:first-child {
    font-size: 1.25rem;
}

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

@media (max-width: 768px) {
    .bngc-shop-hero {
        padding: 2rem 0;
    }
    
    .bngc-shop-categories {
        padding: 2rem 0;
    }
    
    .bngc-shop-categories__grid {
        grid-template-columns: 1fr;
    }
    
    .bngc-shop-toolbar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bngc-shop-toolbar__right {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .bngc-shop-filter {
        flex: 1;
        min-width: 140px;
    }
    
    .bngc-shop-filter select {
        width: 100%;
    }
    
    .bngc-shop-products__grid {
        grid-template-columns: 1fr;
    }
    
    .bngc-shop-trust__grid {
        gap: 1rem 2rem;
    }
    
    .bngc-shop-trust__item {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .bngc-shop .bngc-container {
        padding: 0 1rem;
    }
    
    .bngc-shop-cat-card {
        padding: 1rem;
    }
    
    .bngc-shop-subcats__list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .bngc-shop-subcat-pill {
        flex-shrink: 0;
    }
    
    .bngc-product-card__link {
        padding: 1.25rem;
    }
}
