.shop-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e5e5e5;
}

.shop-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.shop-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}


@keyframes expandLine {
    from {
        width: 0;
        left: 50%;
    }

    to {
        width: 60%;
        left: 20%;
    }
}


@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-description {
    font-size: 1.1rem;
    color: #666666;
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-controls {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.controls-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group,
.sort-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group label,
.sort-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.filter-select,
.sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid #10b981;
    border-radius: 0.5rem;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-select:hover,
.sort-select:hover {
    border-color: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.shop-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.shop-item {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #f1f5f9;
    display: block;
}

.shop-item:hover {
    border-color: #10b981;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}


.shop-item-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f0f9f7 0%, #e8f7f3 100%);
    overflow: hidden;
    border-bottom: 2px solid #e5e5e5;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9f7 0%, #e8f7f3 100%);
}

.placeholder-text {
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.item-badge.badge-hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.item-badge.badge-new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.item-badge.badge-sold {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


.shop-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.item-category {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


.item-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.review-count {
    color: #999999;
    font-size: 0.85rem;
    font-weight: 500;
}


.item-info-details {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-left: 3px solid #10b981;
    border-radius: 0.4rem;
}

.item-info-details strong {
    color: #1a1a1a;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.item-info-details ul {
    list-style-position: inside;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.item-info-details ul li {
    margin-left: 1rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.review-count {
    color: #666666;
    font-size: 0.85rem;
}


.item-description {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    min-height: 45px;
}


.item-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #10b981;
}


.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.item-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}


.buy-button {
    display: inline-block;
    margin: 1rem auto;
    padding: 0.8rem 1.5rem;
    background: #10b981;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0.5rem;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.buy-button:hover {
    background: #059669;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}


.pagination-section {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.7rem 1.2rem;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #e5e5e5;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.page-btn:hover:not(.prev-btn):not(.next-btn) {
    border-color: #10b981;
    color: #10b981;
}

.page-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.prev-btn,
.next-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.prev-btn:hover,
.next-btn:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}


.product-info {
    background-color: rgba(16, 185, 129, 0.1);
    /* Light green with transparency */
    border: 1px solid #10b981;
    /* Green border */
    border-radius: 0.5rem;
    padding: 0.8rem;
    margin: 0.5rem 1rem;
    text-align: center;
}

.product-info p {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin: 0.3rem 0;
    font-family: 'Arial', sans-serif;
    /* Improved font */
}



@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .shop-title {
        font-size: 2.2rem;
    }

    .controls-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group,
    .sort-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-select,
    .sort-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .shop-header {
        padding: 2.5rem 1.5rem;
    }

    .shop-title {
        font-size: 1.9rem;
    }

    .shop-title::after {
        bottom: -12px;
    }

    .shop-description {
        font-size: 1rem;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .shop-item-image {
        height: 200px;
    }

    .item-stats {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .item-price {
        font-size: 1.3rem;
    }

    .pagination {
        gap: 0.3rem;
    }

    .page-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .shop-title {
        font-size: 1.5rem;
    }

    .shop-title::after {
        width: 50% !important;
    }

    .shop-description {
        font-size: 0.9rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .shop-item {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .shop-item {
        border-radius: 0.6rem;
    }

    .shop-item-image {
        height: 180px;
    }

    .shop-item-content {
        padding: 1.2rem;
    }

    .item-title {
        font-size: 1.1rem;
    }

    .item-stats {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .item-price {
        font-size: 1.2rem;
    }

    .pagination {
        flex-direction: column;
        width: 100%;
    }

    .page-btn {
        width: 100%;
    }
}

.shop-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.shop-item:nth-child(1) {
    animation-delay: 0.1s;
}

.shop-item:nth-child(2) {
    animation-delay: 0.2s;
}

.shop-item:nth-child(3) {
    animation-delay: 0.3s;
}

.shop-item:nth-child(4) {
    animation-delay: 0.15s;
}

.shop-item:nth-child(5) {
    animation-delay: 0.25s;
}

.shop-item:nth-child(6) {
    animation-delay: 0.35s;
}

* {
    transition: none;
}

.shop-item,
.filter-select,
.sort-select,
.page-btn,
.page-btn:not(.page-btn.active) {
    transition: all 0.3s ease;
}