.shop-product-card-link {
    text-decoration: none;
}


.fb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    font-size: 0.9rem;
}

.fb-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.fb-page-btn:hover:not(.disabled):not(.active) {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.fb-page-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    font-weight: 700;
}

.fb-page-btn.disabled,
.fb-page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fb-pagination__pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-page-dots {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 8px;
}

.fb-pagination__divider {
    width: 1px;
    height: 30px;
    background: var(--border-light);
    margin: 0 12px;
}

.shop-products-grid--fade-out {
    opacity: 0.4;
    transform: scale(0.98);
    filter: blur(1px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-loading-overlay::before {
    content: '';
    position: fixed;
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: shopSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.shop-loading-overlay::after {
    content: '';
    position: fixed;
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-radius: 50%;
    opacity: 0.3;
}

.shop-loading-overlay .shop-spinner__text {
    position: fixed;
    top: calc(50% + 50px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.is-loading .shop-loading-overlay {
    opacity: 1;
    pointer-events: all;
}

@keyframes shopSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading skeleton cards for shop */
.shop-skeleton-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    animation: skeletonPulse 2s ease-in-out infinite;
}

.shop-skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, var(--bg-cream) 25%, var(--bg-white) 50%, var(--bg-cream) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.shop-skeleton-content {
    padding: 1.5rem;
}

.shop-skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, var(--bg-cream) 25%, var(--bg-white) 50%, var(--bg-cream) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.shop-skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced loading spinner fallback */
.shop-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.shop-loading-spinner::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: simpleSpin 1s linear infinite;
    margin-right: 12px;
}

@keyframes simpleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shop-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 50px;
}

.shop-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease;
}

.shop-filter-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.shop-filter-group {
    position: relative;
}

.shop-filter-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    padding: 11px 20px;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.shop-filter-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.shop-filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.shop-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    min-width: 200px;
    box-shadow: 0 8px 24px var(--shadow-medium);
    display: none;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

.shop-dropdown.active {
    display: block;
}

.shop-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.shop-dropdown-item:hover {
    background: var(--bg-cream);
    color: var(--primary-color);
}

.shop-dropdown-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.shop-view-toggle {
    display: flex;
    gap: 10px;
}

.shop-view-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1rem;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.shop-view-btn:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.shop-view-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.shop-results-info {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-results-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.shop-sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    animation: fadeIn 1.2s ease;
}

/* LIST VIEW STYLES */
.shop-products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.shop-product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

/* List View Card Layout */
.shop-products-grid.list-view .shop-product-card {
    flex-direction: row;
    align-items: stretch;
}

.shop-product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-cream);
}

/* List View Image */
.shop-products-grid.list-view .shop-product-image-wrapper {
    width: 280px;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.shop-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-product-card:hover .shop-product-image {
    transform: scale(1.08);
}

.shop-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    z-index: 10;
}

.shop-product-card:hover .shop-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.shop-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-medium);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.shop-action-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.1);
}

.shop-action-btn.active {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.shop-product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* List View Info */
.shop-products-grid.list-view .shop-product-info {
    padding: 25px;
    justify-content: center;
    gap: 12px;
}

.shop-product-category {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-cream);
    border-radius: 20px;
    width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-product-category:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

.shop-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

/* List View Title */
.shop-products-grid.list-view .shop-product-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.shop-product-description {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View Description */
.shop-products-grid.list-view .shop-product-description {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    line-height: 1.6;
}

.shop-load-more {
    text-align: center;
    margin-top: 50px;
}

.shop-load-more-btn {
    padding: 14px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.shop-load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .shop-products-grid.list-view .shop-product-image-wrapper {
        width: 240px;
    }
}

@media (max-width: 900px) {
    /* Keep list view as list on tablets */
    .shop-products-grid.list-view .shop-product-image-wrapper {
        width: 200px;
    }

    .shop-products-grid.list-view .shop-product-info {
        padding: 20px;
    }

    .shop-products-grid.list-view .shop-product-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 25px 12px;
    }

    .shop-hero {
        margin-bottom: 40px;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .shop-hero p {
        font-size: 0.95rem;
    }

    .shop-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .shop-filter-section {
        justify-content: center;
    }

    .shop-view-toggle {
        justify-content: center;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* List view becomes single column on mobile */
    .shop-products-grid.list-view {
        grid-template-columns: 1fr;
    }

    .shop-products-grid.list-view .shop-product-card {
        flex-direction: row;
    }

    .shop-products-grid.list-view .shop-product-image-wrapper {
        width: 140px;
    }

    .shop-products-grid.list-view .shop-product-info {
        padding: 15px;
    }

    .shop-products-grid.list-view .shop-product-title {
        font-size: 1.05rem;
    }

    .shop-products-grid.list-view .shop-product-description {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    .shop-product-info {
        padding: 14px;
    }

    .shop-product-title {
        font-size: 1rem;
    }

    .shop-product-description {
        font-size: 0.82rem;
    }

    .shop-results-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .shop-sort-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    .shop-hero {
        margin-bottom: 30px;
    }

    .shop-hero h1 {
        font-size: 1.6rem;
    }

    .shop-hero p {
        font-size: 0.9rem;
    }

    .shop-filter-btn {
        font-size: 0.82rem;
        padding: 9px 14px;
    }

    .shop-products-grid {
        gap: 12px;
    }

    .shop-products-grid.list-view .shop-product-image-wrapper {
        width: 120px;
    }

    .shop-products-grid.list-view .shop-product-info {
        padding: 12px;
    }

    .shop-products-grid.list-view .shop-product-title {
        font-size: 0.95rem;
    }

    .shop-products-grid.list-view .shop-product-description {
        font-size: 0.78rem;
    }

    .shop-product-info {
        padding: 12px;
        gap: 6px;
    }

    .shop-product-category {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .shop-product-title {
        font-size: 0.92rem;
    }

    .shop-product-description {
        font-size: 0.78rem;
    }

    .shop-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .shop-product-badge {
        font-size: 0.68rem;
        padding: 4px 9px;
        top: 8px;
        left: 8px;
    }

    .shop-load-more-btn {
        padding: 12px 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .shop-hero h1 {
        font-size: 1.4rem;
    }

    .shop-product-title {
        font-size: 0.88rem;
    }

    .shop-product-description {
        font-size: 0.75rem;
    }

    .shop-products-grid.list-view .shop-product-image-wrapper {
        width: 100px;
    }
}