/* PBA Custom Modern Shop - Styles */

.pba-shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Header */
.pba-shop-search-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pba-search-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pba-search-input:focus {
    outline: none;
    border-color: #2450ff;
    box-shadow: 0 0 0 3px rgba(36, 80, 255, 0.1);
    transform: translateY(-2px);
}

.pba-search-btn {
    padding: 14px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pba-search-btn:hover {
    background: #2450ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(36, 80, 255, 0.3);
}

/* Main Layout */
.pba-shop-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .pba-shop-content {
        grid-template-columns: 1fr;
    }

    .pba-shop-sidebar {
        display: none;
    }
}

/* Sidebar Filters */
.pba-shop-sidebar {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.pba-filter-group {
    margin-bottom: 24px;
}

.pba-filter-group:last-child {
    margin-bottom: 0;
}

.pba-filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #111;
}

.pba-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pba-filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
}

.pba-filter-option:hover {
    color: #111;
    transform: translateX(4px);
}

.pba-filter-option input {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #2450ff;
}

/* Products Grid */
.pba-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    animation: staggerIn 0.8s ease-out;
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pba-products-grid > * {
    animation: fadeIn 0.6s ease-out;
}

/* Product Card */
.pba-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.pba-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #e0e0ff;
}

.pba-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f6f9fc;
}

.pba-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.pba-product-card:hover .pba-product-image img {
    transform: scale(1.08) rotate(2deg);
}

.pba-product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pba-product-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.pba-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pba-product-title a:hover {
    color: #2450ff;
}

.pba-product-vendor {
    margin: 4px 0 8px 0;
    font-size: 12px;
    color: #999;
}

.pba-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #2450ff;
    margin-bottom: 12px;
}

.pba-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.pba-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.pba-review-count {
    font-size: 12px;
    color: #999;
}

.pba-no-rating {
    font-size: 12px;
    color: #bbb;
    font-style: italic;
}

.pba-product-btn {
    display: inline-block;
    padding: 10px 14px;
    background: #f8f9fa;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e0e0e0;
    margin-top: auto;
}

.pba-product-btn:hover {
    background: #2450ff;
    color: #fff;
    border-color: #2450ff;
    transform: translateX(4px);
}

/* Loading Spinner */
.pba-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.pba-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #2450ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results */
.pba-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #999;
    animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .pba-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .pba-shop-container {
        padding: 12px;
    }

    .pba-shop-search-header {
        margin-bottom: 20px;
    }

    .pba-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pba-search-input,
    .pba-search-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}
