/* ============================================
 * Module: Products
 * Source views: index, show
 * ============================================ */

/* --- index.blade.php & show.blade.php (shared card styles) --- */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- index.blade.php --- */
.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
}
.price-compare {
    text-decoration: line-through;
    color: #999;
}

/* --- show.blade.php --- */
.product-gallery {
    background: #fff;
    position: relative;
}
.gallery-main-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #f8f9fa;
}
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8f9fa;
}
.gallery-thumb:hover {
    border-color: var(--primary-color, #0d6efd);
}
.gallery-thumb.active {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}
.product-description {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 780px;
}
.product-description img {
    max-width: 100%;
    height: auto;
}
.product-description.full-width { max-width: none; }

/* Floating left ad */
.ad-floating-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    max-width: 160px;
}
@media (max-width: 1400px) {
    .ad-floating-left { display: none !important; }
}

/* Ad positions */
.ad-position { text-align: center; }
.ad-position img { max-width: 100%; height: auto; }
