body {
    background-color: #f5f6fa;
}

.product-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.15s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 12px 12px 0 0;
}

.price-tag {
    font-size: 1.15rem;
    font-weight: 700;
    color: #198754;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.mrp-tag {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    margin-left: 6px;
}

.discount-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #198754;
}

.new-arrival-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 2;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
}

.gallery-thumb.active {
    border-color: #0d6efd;
    border-width: 2px;
}

.invoice-box {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

@media print {
    .no-print {
        display: none !important;
    }
    .invoice-box {
        box-shadow: none;
    }
}

.sidebar-admin {
    min-height: 100vh;
    background: #1e2130;
}

.sidebar-admin a {
    color: #cfd2e0;
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 8px;
}

.sidebar-admin a:hover,
.sidebar-admin a.active {
    background: #4b6cff;
    color: #fff;
}

/* ---- Star rating input (used on product/service review forms) ---- */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 1.6rem;
}
.star-rating-input input {
    display: none;
}
.star-rating-input label {
    color: #ddd;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s ease;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* ============================================================
   Product image zoom-in effect (desktop hover) + lightbox cursor
   ============================================================ */
.product-zoom-wrap {
    overflow: hidden;
    border-radius: 8px;
}

.product-zoom-img {
    transition: transform 0.35s ease;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .product-zoom-wrap:hover .product-zoom-img {
        transform: scale(1.15);
    }
}

/* ============================================================
   Global mobile-friendly / responsive fixes
   These are additive only — they do not change desktop layout,
   they only kick in on small screens or fix things (overflow,
   oversized images, cramped tables) that are broken everywhere.
   ============================================================ */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Comfortable tap targets on touch devices */
@media (max-width: 767.98px) {
    .btn {
        min-height: 40px;
    }

    .card {
        border-radius: 10px;
    }

    .product-card img {
        height: 140px;
    }

    h1, .h1 { font-size: 1.6rem; }
    h2, .h2 { font-size: 1.4rem; }
    h3, .h3 { font-size: 1.2rem; }

    .navbar .container,
    .navbar .container-fluid {
        flex-wrap: wrap;
    }

    .row.g-4 > [class*="col-"] {
        margin-bottom: 0.5rem;
    }

    table {
        max-width: 100%;
    }
}

/* ============================================================
   Admin panel: responsive sidebar + tables
   ============================================================ */
@media (max-width: 991.98px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .sidebar-admin {
        width: 100% !important;
        min-height: auto !important;
    }

    .admin-sidebar-toggle {
        display: inline-flex !important;
    }

    .sidebar-admin.collapsed-mobile {
        display: none;
    }

    .admin-content {
        padding: 15px !important;
    }
}

.admin-sidebar-toggle {
    display: none;
}
