/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== BASE STYLES ===== */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.navbar-brand {
    font-weight: 700;
    color: #000 !important;
    letter-spacing: -0.5px;
}

/* OTP section */
#otp-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}
#otp-timer {
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #000;
    border-color: #000;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn-outline-dark {
    border-color: #000;
    color: #000;
}

.btn-outline-dark:hover {
    background-color: #000;
    color: #fff;
}

/* ===== HOMEPAGE PRODUCT SECTION ===== */
.product-image {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}
.product-image:hover {
    transform: scale(1.02);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-right: 0.5rem;
}
.original-price {
    font-size: 1.25rem;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 400;
}
.discount-badge {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-left: 1rem;
}
#load-more-reviews {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
}
#load-more-reviews:hover {
    background-color: #000;
    color: #fff;
}
.review-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.stars {
    color: #ffc107;
    font-size: 1.25rem;
    letter-spacing: 2px;
}
.review-count {
    color: #6c757d;
    font-size: 0.95rem;
    border-left: 1px solid #dee2e6;
    padding-left: 0.75rem;
}

.btn-buy {
    background-color: #000;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    width: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-buy:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.btn-buy:active {
    transform: translateY(0);
}

/* ===== REVIEW CARDS ===== */
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.rating {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.reviewer-name {
    font-weight: 600;
    color: #000;
}
.review-date {
    font-size: 0.85rem;
    color: #adb5bd;
}
.review-comment {
    margin-top: 0.75rem;
    color: #495057;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-left {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.checkout-right {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    position: sticky;
    top: 20px;
}

/* Floating labels adjustment */
.form-floating > .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
}

/* Payment method cards */
.payment-method-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
}
.payment-method-card:hover {
    background-color: #f8f9fa;
}
.payment-method-card.selected {
    border-color: #000;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.payment-method-card .radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    position: relative;
    top: 4px;
}
.payment-method-card.selected .radio-indicator {
    border-color: #000;
}
.payment-method-card.selected .radio-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}
.payment-method-card .cod-extra {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
    margin-left: 8px;
}

/* Order summary */
#subtotal, #total {
    font-weight: 600;
}
#total {
    font-size: 1.5rem;
    font-weight: 700;
}
#cod-charge-row {
    color: #dc3545;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Homepage */
    .current-price {
        font-size: 2rem;
    }
    .btn-buy {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.875rem;
        border-radius: 50px;
    }
    .product-image {
        border-radius: 16px;
    }
    .review-summary {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .discount-badge {
        margin-left: 0;
    }

    /* Checkout */
    .checkout-left, .checkout-right {
        padding: 1rem;
    }
    .payment-method-card {
        padding: 0.75rem;
    }
    .btn-primary {
        padding: 10px 20px;
    }
    .form-floating > .form-control {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}

/* ===== TRACK ORDER PAGE ===== */
.track-order-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ===== THANK YOU PAGE ===== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 12px;
}
#cod-charge-row {
    display: none;
}
/* ===== UTILITY CLASSES ===== */
.text-small {
    font-size: 0.875rem;
}
.shadow-hover:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== ADDITIONAL IMPROVEMENTS FOR HOMEPAGE ===== */
.product-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.stars-large i,
.rating i {
    color: #ffc107;
    margin-right: 2px;
}
.stars-large i {
    font-size: 1.4rem;
}
.rating i {
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #f1f3f5;
    transition: all 0.2s ease;
    height: 100%;
}
.review-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.reviewer-name {
    font-size: 1.1rem;
}

.review-comment {
    color: #495057;
    line-height: 1.5;
}

/* Mobile adjustments (extra small screens) */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    .current-price {
        font-size: 1.8rem;
    }
    .btn-buy {
        width: 100%;
        text-align: center;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .review-card {
        padding: 1.25rem;
    }
}

/* Product Slider Thumbnails */
.thumbnail-strip {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}
.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}
.thumbnail-strip::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.thumbnail-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.thumbnail-img:hover {
    opacity: 0.8;
}
.thumbnail-img.active {
    opacity: 1;
    border-color: #000;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .thumbnail-img {
        width: 50px;
        height: 50px;
    }
    .carousel-item img {
        max-height: 300px !important;
    }
}