:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light-bg: #f8fafc;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius: 10px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #334155;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main,
.container:first-of-type {
    flex: 1;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.navbar-brand img {
    vertical-align: middle;
}

.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
}

.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: #fff;
    padding: 80px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero-section .btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.product-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.product-card .card-img-top,
.product-card .card-thumb {
    height: 180px;
    object-fit: cover;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.product-card .card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 0.85rem;
    color: var(--secondary);
    flex: 1;
    margin-bottom: 12px;
}

.product-card .price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.product-card .price-mrp {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
}

.product-card .price-sale {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--success);
}

.product-card .price-discount {
    background: #dcfce7;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

.product-card .card-footer {
    background: transparent;
    border-top: 1px solid #f1f5f9;
    padding: 0 18px 18px;
}

.product-card .btn-add-cart {
    width: 100%;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    padding: 10px;
}

.cart-table {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.cart-table thead th {
    background: var(--dark);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    border: none;
}

.cart-table tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.cart-table .item-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--primary-light);
}

.cart-summary {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.cart-summary .summary-row.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-summary .summary-row .discount {
    color: var(--success);
    font-weight: 600;
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.coupon-form input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.coupon-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.coupon-form button {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

footer {
    margin-top: auto;
}

footer .social-links a {
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

footer .social-links a:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--secondary);
    margin-bottom: 24px;
}

.alert {
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 50px 0 60px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0 50px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .product-card .card-img-top,
    .product-card .card-thumb {
        height: 140px;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-summary {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .product-card .price-sale {
        font-size: 1rem;
    }

    .coupon-form {
        flex-direction: column;
    }
}

/* Custom Modern Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 0;
    transition: var(--transition);
}

.custom-navbar .navbar-brand {
    color: var(--dark) !important;
    font-size: 1.3rem;
}

/* Nav Links Styling */
.custom-navbar .nav-link {
    color: #475569 !important; /* Elegant Slate Gray */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Hover Effect */
.custom-navbar .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(59, 130, 246, 0.06);
}

/* Active Page Style */
.custom-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Dropdown Menu Customization */
.custom-navbar .dropdown-menu {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.custom-navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.custom-navbar .dropdown-item i {
    margin-right: 8px;
    color: #94a3b8;
}

.custom-navbar .dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.custom-navbar .dropdown-item:hover i {
    color: var(--primary);
}

/* Custom Cart and Buttons */
.cart-icon-link {
    color: #475569 !important;
}
.cart-icon-link:hover {
    color: var(--primary) !important;
}

.navbar-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Mobile responsive toggler adjustment */
.custom-navbar .navbar-toggler {
    border: none;
    padding: 6px;
}
.custom-navbar .navbar-toggler:focus {
    box-shadow: none;
}
.custom-navbar .navbar-toggler-icon {
    filter: invert(0.2); /* Dark icon for light theme */
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    }
    .custom-navbar .nav-link {
        margin: 4px 0;
    }
}