/* ===== SHOP SECTION ===== */
.shop-header {
    background: linear-gradient(180deg, #1a2a4a 0%, #0f1923 100%);
    padding: 60px 40px;
}

.shop-header h1 {
    font-family: 'Gill Sans', sans-serif;
    font-size: 52px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

/* ===== CART BOX ===== */
.cartbox {
    display: inline-block;
    background-color: #ffffff;
    color: #1a2a4a;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cartbox p {
    margin: 2px 0;
    font-size: 13px;
}

/* ===== PRODUCTS GRID ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* ===== PRODUCT CARD ===== */
.product {
    background-color: #2a364e;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(73, 115, 255, 0.3);
}

/* ===== PRODUCT IMAGE ===== */
.product img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #ffffff10;
    padding: 10px;
    margin-bottom: 15px;
}

/* ===== PRODUCT TEXT ===== */
.product h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.product p {
    font-size: 14px;
    color: #b0bec5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product .price {
    font-size: 16px;
    font-weight: 700;
    color: #6195e4;
    margin-bottom: 15px;
}

/* ===== ADD TO CART BUTTON ===== */
.product .buy-btn {
    display: block;
    width: 100%;
    background-color: #4973ff;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.product .buy-btn:hover {
    background-color: #2a52e0;
}

/* ===== SCROLLBAR (mobile horizontal scroll fallback) ===== */
.products::-webkit-scrollbar {
    height: 8px;
}
.products::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}
.products::-webkit-scrollbar-thumb {
    background: #6195e4;
    border-radius: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shop-header {
        padding: 40px 20px;
    }

    .shop-header h1 {
        font-size: 36px;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
    }
}