/* --- 1. General Store Layout Improvements --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* --- 2. Product Card Styling --- */
/* Clean up the product cards so they look professional */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #0055a4; /* HP Blue vibe */
}

.product-card img {
    object-fit: cover;
    padding: 15px;
    background: #fff;
    transition: transform 0.2s;
}

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

/* --- 3. "Refurbished & Tested" Badge --- */
/* Automatically adds a trust badge to all products */
.product-card::before {
    content: "🔧 Refurbished & Tested";
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000000;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- 4. Product Gallery (Images with Captions) --- */
/* Ensures your multiple photos (front, back, specs) look great */
.product-gallery .gallery-item {
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    padding: 5px;
    margin-bottom: 10px;
}

/* Container for the caption */
.product-gallery .gallery-item-wrapper {
    position: relative;
    overflow: hidden;
}

/* The Caption Text */
.product-gallery .gallery-item figcaption {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    margin: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* --- 5. Product Title & Price --- */
.product-title a {
    color: #222;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.product-price {
    color: #2e7d32; /* Green for a "good deal" feel */
    font-weight: bold;
    font-size: 18px;
}

/* --- 6. Call to Action Buttons --- */
.btn-add-to-cart {
    background: #0055a4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    transition: 0.2s;
}

.btn-add-to-cart:hover {
    background: #003d7a;
    transform: scale(1.02);
}