/* Shop Styles */
.shop-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
}

.shop-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.3), transparent 70%);
    z-index: 1;
}

.shop-section .container {
    position: relative;
    z-index: 2;
}

.shop-section h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.shop-section h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--blue-accent);
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background: none;
    border: 2px solid #333;
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Category buttons with pastel colors */
.category-btn:hover, .category-btn.active {
    background-color: transparent;
    color: white;
}

.category-btn[data-category="all"]:hover, .category-btn[data-category="all"].active {
    border-color: #90CAF9; /* Pastel Blue */
    color: #90CAF9;
}

.category-btn[data-category="software"]:hover, .category-btn[data-category="software"].active {
    border-color: #A5D6A7; /* Pastel Green */
    color: #A5D6A7;
}

.category-btn[data-category="hardware"]:hover, .category-btn[data-category="hardware"].active {
    border-color: #FFE082; /* Pastel Gold */
    color: #FFE082;
}

.category-btn[data-category="services"]:hover, .category-btn[data-category="services"].active {
    border-color: #D1C4E9; /* Pastel Purple */
    color: #D1C4E9;
}

.shop-search {
    display: flex;
    align-items: center;
}

.shop-search input {
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    width: 250px;
    font-size: 0.9rem;
}

.shop-search button {
    background-color: #90CAF9; /* Pastel Blue */
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-search button:hover {
    background-color: #64B5F6; /* Slightly darker Pastel Blue */
}

.shop-container {
    position: relative;
    margin-bottom: 50px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    background-color: #90CAF9; /* Pastel Blue */
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: -25px;
}

.scroll-right {
    right: -25px;
}

.products-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.products-container {
    transition: transform 0.5s ease;
}

.product-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    flex: 0 0 calc(20% - 24px);
    background-color: rgba(17, 17, 17, 0.9); /* Black background */
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Product cards with different pastel color borders */
.product-card:nth-child(5n+1) {
    border-top: 4px solid #90CAF9; /* Pastel Blue */
}

.product-card:nth-child(5n+2) {
    border-top: 4px solid #A5D6A7; /* Pastel Green */
}

.product-card:nth-child(5n+3) {
    border-top: 4px solid #FFE082; /* Pastel Gold */
}

.product-card:nth-child(5n+4) {
    border-top: 4px solid #D1C4E9; /* Pastel Purple */
}

.product-card:nth-child(5n+5) {
    border-top: 4px solid #EF9A9A; /* Pastel Red */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 20px;
}

/* Product titles with matching pastel colors */
.product-card:nth-child(5n+1) .product-details h3 {
    color: #90CAF9; /* Pastel Blue */
}

.product-card:nth-child(5n+2) .product-details h3 {
    color: #A5D6A7; /* Pastel Green */
}

.product-card:nth-child(5n+3) .product-details h3 {
    color: #FFE082; /* Pastel Gold */
}

.product-card:nth-child(5n+4) .product-details h3 {
    color: #D1C4E9; /* Pastel Purple */
}

.product-card:nth-child(5n+5) .product-details h3 {
    color: #EF9A9A; /* Pastel Red */
}

.product-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-details p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
    height: 60px;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--light-text);
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Add to cart buttons with matching pastel colors */
.product-card:nth-child(5n+1) .add-to-cart-btn:hover {
    background-color: #90CAF9; /* Pastel Blue */
    color: black;
}

.product-card:nth-child(5n+2) .add-to-cart-btn:hover {
    background-color: #A5D6A7; /* Pastel Green */
    color: black;
}

.product-card:nth-child(5n+3) .add-to-cart-btn:hover {
    background-color: #FFE082; /* Pastel Gold */
    color: black;
}

.product-card:nth-child(5n+4) .add-to-cart-btn:hover {
    background-color: #D1C4E9; /* Pastel Purple */
    color: black;
}

.product-card:nth-child(5n+5) .add-to-cart-btn:hover {
    background-color: #EF9A9A; /* Pastel Red */
    color: black;
}

.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 1000;
    transition: right 0.5s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.cart-header h2 {
    margin: 0;
    color: var(--light-text);
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart-btn:hover {
    color: #EF9A9A; /* Pastel Red */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    padding: 10px;
}

.cart-item-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.cart-item-price {
    font-size: 1.1rem;
    color: #90CAF9; /* Pastel Blue */
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: #333;
    border: none;
    color: var(--light-text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #90CAF9; /* Pastel Blue */
    color: black;
}

.quantity-value {
    width: 30px;
    text-align: center;
    margin: 0 5px;
    color: var(--light-text);
}

.remove-item-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #EF9A9A; /* Pastel Red */
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--light-text);
}

.total-amount {
    font-weight: bold;
    color: #90CAF9; /* Pastel Blue */
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid #90CAF9; /* Pastel Blue */
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #90CAF9; /* Pastel Blue */
    color: black;
}

.view-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #90CAF9; /* Pastel Blue */
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.view-cart-btn:hover {
    background-color: #90CAF9; /* Pastel Blue */
    color: black;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background-color: #EF9A9A; /* Pastel Red */
    border-radius: 50%;
    color: black;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(25% - 22.5px);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-search {
        width: 100%;
    }
    
    .shop-search input {
        width: 100%;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .cart-container {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .shop-section h1 {
        font-size: 2rem;
    }
    
    .product-card {
        flex: 0 0 100%;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
    }
    
    .scroll-left {
        left: -20px;
    }
    
    .scroll-right {
        right: -20px;
    }
}
