/* QuickMart - Modern E-Commerce Stylesheet */

/* Variables - Swiggy-inspired */
:root {
    --primary-orange: #fc8019;
    --primary-dark: #e76f00;
    --secondary-color: #60b246;
    --success-color: #60b246;
    --warning-color: #ffc107;
    --danger-color: #e23744;
    --dark-color: #282c3f;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-primary: #282c3f;
    --text-secondary: #7e808c;
    --border-light: #e9e9eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ProximaNova', 'Helvetica Neue', 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Navbar Styles - Modern */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-orange) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar .nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-orange) !important;
}

.navbar .btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

.navbar .btn-primary {
    background: var(--primary-orange);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 128, 25, 0.4);
}

/* Cards - Modern Design */
.card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card {
    height: 100%;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-light);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: var(--light-bg);
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.product-card .discount-badge {
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Buttons - Modern */
.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 128, 25, 0.3);
}

.btn-success {
    background: var(--secondary-color);
}

.btn-success:hover {
    background: #4fa037;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 178, 70, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-orange);
    color: white;
}

.btn-add-cart {
    background: var(--primary-orange);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-radius: 10px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Hero Section - Modern */
.hero-section {
    background: linear-gradient(135deg, #fc8019 0%, #e76f00 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    color: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-section .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
/* Category Cards - Modern */
.category-section {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: var(--white);
    border: 2px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 12px 32px rgba(252, 128, 25, 0.15);
}

.category-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.category-card:hover .icon {
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Styles - Modern */
.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(252, 128, 25, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid var(--border-light);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-orange);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-orange);
}

/* Cart Badge - Modern */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(226, 55, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Quantity Controls - Modern */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 6px;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--primary-orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quantity-control button:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Order Status Badge */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item.active {
    border-left-color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid #fff;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
}

/* Avatar Styles */
.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-text {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

/* Footer Styles */
footer {
    background: var(--dark-color);
    color: white;
}

footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-orange);
    transform: translateX(3px);
}

footer h5, footer h6 {
    color: white;
}

footer .text-muted {
    color: #b0b0b0 !important;
}

/* Liquor Badge */
.liquor-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 50px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar Styling - Modern */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(252, 128, 25, 0.1) 0%, rgba(231, 111, 0, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-orange);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Product Grid */
.products-section {
    padding: 60px 0;
    background: var(--white);
}

.product-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* Search Bar - Modern */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 16px rgba(252, 128, 25, 0.1);
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--primary-orange);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge-orange {
    background: rgba(252, 128, 25, 0.1);
    color: var(--primary-orange);
}

.badge-green {
    background: rgba(96, 178, 70, 0.1);
    color: var(--secondary-color);
}

.badge-red {
    background: rgba(226, 55, 68, 0.1);
    color: var(--danger-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Cart Items Styling */
.cart-item {
    padding: 1.5rem !important;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .img-fluid {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item .qty-input {
    border: none;
    background: transparent;
    font-weight: 600;
    width: 50px;
    pointer-events: none;
}

.cart-item .input-group {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.cart-item .qty-btn {
    border: none;
    background: transparent;
    color: var(--primary-orange);
    font-weight: 700;
    transition: all 0.2s ease;
}

.cart-item .qty-btn:hover {
    background: white;
    color: var(--primary-dark);
}

.cart-item .remove-item-btn {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-item .remove-item-btn:hover {
    transform: scale(1.1);
}

/* Product Badge Styles */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-discount {
    background: linear-gradient(135deg, #e23744 0%, #d32f2f 100%);
    color: white;
}

.badge-age {
    background: linear-gradient(135deg, #282c3f 0%, #1a1d2e 100%);
    color: white;
    top: 10px;
    left: auto;
    right: 10px;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--light-bg);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Sticky Summary Card */
.sticky-top {
    position: sticky;
    transition: all 0.3s ease;
}

/* Progress Bar Custom */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.4s ease;
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-orange);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* User Avatar & Dropdown */
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Gradient Primary Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%) !important;
}
