:root {
    --primary-color: #0077b6;
    --secondary-color: #0096c7;
    --accent-color: #48cae4;
    --water-blue: #90e0ef;
    --navy-blue: #03045e;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-dark: #333333;
}

body {
    background-color: #e6f7ff;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.navbar-custom {
    background-color: var(--navy-blue) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-brand span {
    color: var(--accent-color);
}

.masthead {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    z-index: 1;
}

.masthead-content {
    position: relative;
    z-index: 2;
}

.masthead-heading {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.masthead-subheading {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.section-padding {
    padding: 80px 0;
}

.bg-light-section {
    background-color: var(--light-bg);
}

.section-title {
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.product-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,119,182,0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    background: white;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,119,182,0.2);
}

.product-img-wrap {
    height: 220px;
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e53935;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.product-model-badge {
    display: inline-block;
    background: var(--navy-blue);
    color: var(--accent-color);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-card .card-body {
    padding: 25px;
}

.product-card .card-title {
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-blue);
}

.product-price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.stock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

#productsCarousel .carousel-control-prev,
#productsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 40%;
    bottom: auto;
    background: rgba(0, 119, 182, 0.85);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.3s;
}
#productsCarousel .carousel-control-prev { left: -25px; }
#productsCarousel .carousel-control-next { right: -25px; }
#productsCarousel .carousel-control-prev:hover,
#productsCarousel .carousel-control-next:hover { background: rgba(3, 4, 94, 0.9); }
#productsCarousel .carousel-control-prev-icon,
#productsCarousel .carousel-control-next-icon { width: 20px; height: 20px; filter: none; }
#productsCarousel .carousel-indicators button { background-color: var(--navy-blue); }
#productsCarousel .carousel-item { transition: transform 0.6s ease-in-out; }

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.btn-water {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-water:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,119,182,0.3);
    color: white;
}

.btn-shop {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40,167,69,0.3);
    color: white;
}

.qty-input {
    width: 60px;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
}

.cart-item-img {
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--accent-color) 100%);
    padding: 8px;
}

.order-summary-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,119,182,0.1);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.order-summary-card .card-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    border: none;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon-box i {
    font-size: 2rem;
    color: var(--navy-blue);
}

.features-strip {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0;
}

.features-strip h6 {
    font-weight: 700;
    margin-top: 10px;
}

.features-strip small {
    color: rgba(255,255,255,0.7);
}

.features-strip i {
    font-size: 2rem;
    color: var(--accent-color);
}

.auth-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,119,182,0.1);
    overflow: hidden;
}

.auth-card .card-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    border: none;
    padding: 20px;
}

.payment-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,119,182,0.1);
    overflow: hidden;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    border: 3px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,119,182,0.1);
}

.upi-info-box {
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--accent-color) 100%);
    padding: 20px;
    border-radius: 15px;
}

.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card .card-body {
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    font-weight: 800;
    margin: 10px 0 5px;
}

.stat-card small {
    opacity: 0.8;
    font-weight: 500;
}

.admin-action-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.admin-action-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(72,202,228,0.15);
}

.table-ganga thead th {
    background: var(--navy-blue);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-ganga tbody tr {
    transition: all 0.2s ease;
}

.table-ganga tbody tr:hover {
    background: rgba(72,202,228,0.05);
}

.footer-ganga {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--dark-bg) 100%) !important;
}

.flash-container {
    padding: 10px 0;
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.order-confirm-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
}

.order-confirm-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.order-confirm-icon.pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37,211,102,0.6);
    color: white;
}

@media (max-width: 992px) {
    .masthead-heading { font-size: 2.2rem; }
    .masthead-subheading { font-size: 1.2rem; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 768px) {
    .masthead { padding: 100px 0 60px; }
    .masthead-heading { font-size: 1.8rem; }
    .masthead-subheading { font-size: 1rem; }
    .product-img-wrap { height: 180px; }
    .whatsapp-float { bottom: 20px; right: 20px; }
    .whatsapp-button { width: 60px; height: 60px; font-size: 2rem; }
    .contact-info { padding: 25px; }
}

/* ── Home page styles (from reference page) ──────────────── */

.masthead-tagline {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.masthead-heading {
    font-size: 3rem;
}

.masthead-subheading {
    font-size: 1.6rem;
}

.location-highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,119,182,0.1);
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.location-box {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    height: 100%;
}

.review-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.review-qr {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img {
    height: 250px;
    background: linear-gradient(135deg, var(--water-blue) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    padding: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Modal Styles */
.modal-water .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-water .modal-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 25px;
}

.modal-water .modal-body {
    padding: 30px;
}

.spec-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--navy-blue);
    margin-right: 10px;
}

.oem-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.oem-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--navy-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.oem-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy-blue);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

@media (max-width: 992px) {
    .masthead-heading { font-size: 2.5rem; }
    .masthead-subheading { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .masthead { padding: 120px 0 70px; }
    .masthead-heading { font-size: 2rem; }
    .masthead-subheading { font-size: 1.1rem; }
    .product-img { height: 180px; }
}
