/* Shop Page Styles */

.shop-page {
    padding: 60px 0 80px;
    background: #f9f9f9;
    /* min-height: 100vh; */
}

/* Shop Header */
.shop-header {
    margin-bottom: 50px;
}

.shop-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.shop-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
}

/* Shop Controls */
.shop-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 15px;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.control-item {
    position: relative;
}

.shop-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.shop-select:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

/* Search Control */
.search-control {
    display: flex;
    gap: 10px;
}

.shop-search {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.shop-search:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.search-button {
    padding: 12px 20px;
    background: #5865F2;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #4752d9;
    transform: translateY(-2px);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #5865F2;
    margin: 0;
}

.product-price .amount {
    color: #5865F2;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.btn-load-more:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-load-more.loading span {
    opacity: 0.7;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

/* Loading State */
.products-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .shop-controls {
        grid-template-columns: 1fr 1fr;
    }

    .search-control {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .shop-page {
        padding: 40px 0 60px;
    }

    .shop-title {
        font-size: 36px;
    }

    .shop-description {
        font-size: 15px;
    }

    .shop-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .search-control {
        grid-column: 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 28px;
    }

    .shop-description {
        font-size: 14px;
    }

    .shop-select,
    .shop-search {
        padding: 10px 14px;
        font-size: 14px;
    }

    .search-button {
        padding: 10px 16px;
    }

    .btn-load-more {
        padding: 12px 32px;
        font-size: 15px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-price {
        font-size: 15px;
    }
}