:root {
    /* Color Palette */
    --color-primary: #0F7173;
    --color-primary-light: #EF476F;
    --success-bg: #0F7173; /* Your custom green background */
    --success-text: #ffffff;
    --color-primary-extra-light: #eafaf1;
    --color-primary-light-hover: #d1f5df;
    --color-text-dark: #000000;
    --color-text-medium: #64748b;
    --color-text-light: #94a3b8;
    --color-danger: #ff5f6d;
    --color-danger-light: #fff5f5;
    --color-warning-gradient: linear-gradient(90deg, #EF476F, #EF476F);
    --color-white: #fff;
    --color-gray-light: #f3f6fa;
    --color-gray-extra-light: #f8fafc;
    --color-gray-blue-light: #e2eafc;
    --color-border-light: #e2eafc;
    --shadow-sm: 0 2px 8px rgba(30, 60, 90, 0.07);
    --shadow-md: 0 4px 16px rgba(30, 60, 90, 0.08);
    --shadow-lg: 0 8px 32px rgba(30, 60, 90, 0.18);
    --shadow-primary: 0 2px 8px rgba(67, 233, 123, 0.08);
    --shadow-danger: 0 2px 8px rgba(255, 95, 109, 0.12);
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    /* Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-pill: 18px;
    --radius-circle: 50%;
    /* Typography */
    --font-family: 'Inter', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semi-bold: 600;
    --font-weight-bold: 700;
    /* Transition */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
}

body {
    background: linear-gradient(135deg, var(--color-gray-extra-light) 0%, var(--color-gray-blue-light) 100%);
    font-family: var(--font-family);
    min-height: 100vh;
    color: var(--color-text-dark);
}

/* Navbar Styles */
.navbar {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 14px 32px;
    margin-bottom: var(--space-md);
}

    .navbar .navbar-brand {
        color: var(--color-primary);
        font-weight: var(--font-weight-bold);
        letter-spacing: 1px;
        font-size: 1.25rem;
    }

    .navbar .back-button {
        font-size: 1.1rem;
        color: var(--color-primary);
        font-weight: var(--font-weight-semi-bold);
        background: var(--color-primary-extra-light);
        border-radius: var(--radius-sm);
        padding: 4px 14px;
        margin-right: var(--space-xs);
        transition: background var(--transition-fast);
        border: none;
    }

        .navbar .back-button:hover {
            background: var(--color-primary-light-hover);
        }

    .navbar .user-info {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
    }

        .navbar .user-info img {
            border-radius: var(--radius-circle);
            width: 38px;
            height: 38px;
            box-shadow: var(--shadow-sm);
        }

    .navbar .user-name {
        font-weight: var(--font-weight-medium);
        color: var(--color-text-dark);
        font-size: 1rem;
    }

    .navbar .cart-icon {
        font-size: 2rem;
        color: var(--color-primary);
        background: var(--color-primary-extra-light);
        border-radius: var(--radius-circle);
        padding: 8px 14px;
        box-shadow: var(--shadow-md);
        position: relative;
        margin-left: var(--space-xs);
        transition: background var(--transition-fast);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .navbar .cart-icon:hover {
            background: var(--color-primary-light-hover);
        }

        .navbar .cart-icon .badge {
            position: absolute;
            top: 2px;
            right: 2px;
            font-size: 0.8rem;
            background: var(--color-warning-gradient);
            color: var(--color-white);
            border-radius: var(--radius-circle);
            padding: 4px 7px;
            font-weight: var(--font-weight-bold);
            box-shadow: var(--shadow-danger);
            border: 2px solid var(--color-white);
            min-width: 24px;
            text-align: center;
        }

/* Cart Page Styles */
.cart-container {
    max-width: 900px;
    margin: var(--space-xl) auto;
    background: transparent;
}

.cart-header {
    font-family: var(--font-family);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.cart-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
}

    .cart-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: var(--space-md);
    background: var(--color-gray-light);
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.07);
}

.cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #23272f;
    margin-bottom: 0.2rem;
}

.cart-price {
    font-size: 1.1rem;
    color: #198754;
    font-weight: 700;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eafaf1;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .qty-btn:hover {
        background: #d1f5df;
    }

.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.btn-remove {
    background: #fff;
    border: 1.5px solid #f3f6fa;
    color: #ff5f6d;
    font-weight: 600;
    border-radius: 18px;
    padding: 8px 18px;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .btn-remove:hover {
        background: #fff5f5;
        border-color: #ff5f6d;
    }

.cart-summary {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(30, 60, 90, 0.10);
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f3f6fa;
}

    .summary-row:last-child {
        border-bottom: none;
    }

.summary-label {
    font-weight: 500;
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #23272f;
}

.total-row {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

#checkoutBtn {
    background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-primary-light) 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 18px;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.08);
    transition: all 0.2s;
    width: 100%;
    margin-top: 1.5rem;
    cursor: pointer;
}

    #checkoutBtn:hover {
        background: linear-gradient(90deg,var(--color-primary-light) 0%, var(--color-primary) 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(67, 233, 123, 0.15);
    }

.empty-cart {
    text-align: center;
    padding: 3rem 0;
}

    .empty-cart img {
        width: 120px;
        opacity: 0.7;
        margin-bottom: 1.5rem;
    }

    .empty-cart h4 {
        color: #64748b;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .empty-cart p {
        color: #94a3b8;
        margin-bottom: 1.5rem;
    }

.btn-continue {
    background: #eafaf1;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 18px;
    padding: 10px 24px;
    border: none;
    transition: background 0.2s;
}

    .btn-continue:hover {
        background: #d1f5df;
    }

/* Product Listing Page Styles */
.product-types {
    display: flex;
    gap: 12px;
    margin: 24px 0 18px 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #e2eafc;
}

    .product-types::-webkit-scrollbar {
        height: 6px;
    }

    .product-types::-webkit-scrollbar-track {
        background: #e2eafc;
        border-radius: 10px;
    }

    .product-types::-webkit-scrollbar-thumb {
        background-color: var(--color-primary);
        border-radius: 10px;
    }

.product-type-item {
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1.5px solid #e2eafc;
    color: var(--color-primary);
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(30, 60, 90, 0.05);
    transition: background 0.2s, color 0.2s, border 0.2s;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

    .product-type-item:hover,
    .product-type-item.active {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    }

.search-bar {
    border-radius: 18px;
    border: 1.5px solid #e2eafc;
    padding: 12px 18px;
    font-size: 1.07rem;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(30, 60, 90, 0.07);
    transition: border 0.2s;
}

    .search-bar:focus {
        border-color: #198754;
        outline: none;
    }

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    justify-content: center;
}

.product-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(30, 60, 90, 0.10);
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 8px 32px rgba(30, 60, 90, 0.18);
    }

.product-img-container {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
    background: #f3f6fa;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.07rem;
    font-weight: 600;
    color: #23272f;
    margin-bottom: 0.1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*min-height: 2.8rem;*/
}

.product-type {
    font-size: .75rem;
    font-weight: 200;
    color: #23272f;
    margin-bottom: 0.1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*  min-height: 2.8rem;*/
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #198754;
    /*margin-bottom: 1rem;*/
    letter-spacing: 0.5px;
}

.product-unit {
    font-size: .85rem;
    font-weight: 300;
    color: #198754;
    letter-spacing: 0.5px;
}

.product-card button {
    background: linear-gradient(90deg, var(--color-primary) 60%,var(--color-primary-light) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 18px;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.08);
    transition: all 0.18s;
    cursor: pointer;
}

    .product-card button:hover {
        background: linear-gradient(90deg,var(--color-primary-light) 0%, var(--color-primary) 100%);
        transform: translateY(-2px);
    }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(30, 60, 90, 0.08);
}

/* Responsive Styles */
/*@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-img {
    margin: 0 0 1.5rem 0;
    width: 100%;
    height: 160px;
  }
  
  .cart-actions {
    width: 100%;
    margin-top: 1rem;
    align-items: flex-start;
  }
  
  .btn-remove {
    width: 100%;
    justify-content: center;
  }
}*/

@media (max-width: 1199px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .product-list {
        gap: 20px;
    }

    .product-img-container {
        height: 90px;
    }

    .navbar {
        padding: 10px 16px;
    }
}

@media (max-width: 767px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .product-types {
        gap: 8px;
    }

    .product-type-item {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-img-container {
        height: 90px;
    }

    .product-content {
        padding: 1rem 0.75rem 0.75rem;
    }

    .product-title {
        font-size: 0.95rem;
        /*  min-height: 2.6rem;*/
    }

    .product-price {
        font-size: 1.05rem;
    }

    .search-bar {
        padding: 10px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-img-container {
        height: 90px;
    }
}


.cart-container {
    padding-top: 2.5rem;
}

@media (max-width: 576px) {
    .cart-container {
        padding-top: 3rem;
    }
}


.offcanvas-custom {
    width: 250px;
    background-color: var(--color-primary-light);
    color: #fff;
    z-index: 1051;
}

    .offcanvas-custom .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .offcanvas-custom .nav-link {
        color: #ccc;
        font-weight: 500;
        padding: 10px 15px;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
    }

        .offcanvas-custom .nav-link:hover,
        .offcanvas-custom .nav-link:focus {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
            text-decoration: none;
        }

    .offcanvas-custom .nav-item .collapse .nav-link {
        padding-left: 30px;
        font-size: 0.95rem;
    }

.caret {
    transition: transform 0.3s ease;
}

a[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.nav-link i {
    margin-right: 8px;
}

.offcanvas-body img {
    border: 2px solid #fff;
    transition: transform 0.2s;
}

    .offcanvas-body img:hover {
        transform: scale(1.05);
    }



/* Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

/* Spinner Animation */
.custom-spinner {
    width: 70px;
    height: 70px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8cff 0%, #6ee7b7 100%);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
    }
}

.angadi-footer {
    z-index: 1050;
    height: 65px;
    border-top: 1px solid #eee;
}

.footer-tab {
    flex: 1;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-tab.active,
    .footer-tab:hover {
        color: var(--color-primary);
    }

    .footer-tab i {
        display: block;
        margin-bottom: 2px;
    }

#footerCartBadge {
    font-size: 0.65rem;
    padding: 2px 5px;
}

.off-tag {
    position: absolute;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    top: 8px;
    left: 8px;
    z-index: 1;
    font-weight: bold;
}

.product-img-container {
    position: relative;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.product-unit {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}

.product-mrp {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.btn-success {
    background-color: var(--success-bg) !important;
    color: var(--success-text) !important;
    border-color: var(--success-bg) !important;
}