/* Global Styles */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.header {
    padding-top: 76px; /* To account for fixed navbar */
}

/* Enhanced Logo Styles */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: visible;
    background: linear-gradient(45deg, var(--primary-color), #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.navbar-brand:hover::before {
    left: 100%;
}

.navbar-brand .text-success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 3px 3px 6px rgba(46, 204, 113, 0.2);
}

.navbar-brand::after {
    content: '🚚';
    position: absolute;
    font-size: 1.2rem;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar-brand:hover::after {
    opacity: 1;
    right: -1.5rem;
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Logo Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar-brand .text-success,
.navbar-brand {
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

/* Add 3D effect to the logo */
.navbar-brand {
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.05),
        2px 2px 0 rgba(0,0,0,0.05),
        3px 3px 0 rgba(0,0,0,0.05);
}

.navbar-brand:hover {
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.1),
        2px 2px 0 rgba(0,0,0,0.1),
        3px 3px 5px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.hero-content {
    padding: 20px 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section .lead {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

.hero-section .btn-success {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s ease;
}

.hero-section img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 1s ease;
    max-height: 400px;
    object-fit: cover;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Featured Categories */
.featured-categories {
    background-color: var(--white);
}

.category-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 20px;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #27ae60, #2ecc71);
}

.footer h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.footer-col:hover h5::after {
    width: 80px;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer ul li:hover {
    transform: translateX(10px);
}

.footer a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    opacity: 0.9;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer a:hover::after {
    width: 100%;
}

.footer i {
    margin-right: 12px;
    width: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.footer li:hover i {
    transform: scale(1.2);
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-contact i {
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #ecf0f1;
}

.footer-bottom .designer-credit {
    color: #ffffff;
    font-weight: 600;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2ecc71;
    transform: translateY(-3px);
}

.social-links i {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.footer-about p {
    color: #ecf0f1;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .category-card {
        margin-bottom: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .featured-categories {
    animation: fadeIn 1s ease-out;
}

/* Enhanced Header Icons */
.nav-item .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-item .nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item .nav-link:hover {
    color: var(--primary-color);
}

.nav-item .nav-link:hover i {
    transform: translateY(-2px);
}

/* Specific Icon Colors and Animations */
.nav-item .fa-home {
    color: #e74c3c;
}

.nav-item .fa-store {
    color: #3498db;
}

.nav-item .fa-shopping-cart {
    color: var(--primary-color);
}

.nav-item .fa-user {
    color: #9b59b6;
}

/* Icon Badge for Cart */
.nav-item .nav-link .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    transform: translate(25%, -25%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(25%, -25%) scale(1);
    }
    50% {
        transform: translate(25%, -25%) scale(1.2);
    }
    100% {
        transform: translate(25%, -25%) scale(1);
    }
}

/* Active Link Style */
.nav-item .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item .nav-link.active i {
    transform: scale(1.2);
}

/* Centered Logo Styles */
.navbar-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo {
    height: 40px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.1));
}

.header-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Make sure the navbar items don't overlap with the centered logo */
.navbar-collapse {
    position: relative;
    z-index: 2;
}

/* Adjust spacing for larger logo */
.navbar-nav {
    margin-left: 20px;
    margin-right: 20px;
}

@media (max-width: 991px) {
    .navbar-logo-center {
        display: none;
    }
}

/* Customer Reviews Section */
.customer-reviews {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background: var(--light-gray);
}

.reviews-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.reviews-container-inner {
    display: flex;
    gap: 20px;
    animation: scrollReviews 30s linear infinite;
}

.reviews-container-inner:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.review-card {
    min-width: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.reviewer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.rating {
    color: #ffc107;
}

.review-text {
    color: #444;
    font-style: italic;
    line-height: 1.6;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px 0;
    text-align: left;
    height: auto;
    overflow: visible;
}

.reviewer-info {
    padding: 5px 0;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.review-text::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 350px;
    max-width: 400px;
}

.reviews-container-inner {
    gap: 25px;
    padding: 10px 5px;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12.5px));
    }
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading span {
    display: block;
    font-size: 16px;
    color: #6c757d;
    margin-top: 8px;
}

/* Section Heading Hover Effect */
.section-heading:hover::before {
    width: 100px;
    transition: width 0.3s ease;
}

.section-heading:hover::after {
    width: 60px;
    transition: width 0.3s ease;
}

/* Header Brand and Products Link */
.navbar .d-flex .nav-link {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(46, 204, 113, 0.1);
}

.navbar .d-flex .nav-link:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

.navbar .d-flex .nav-link i {
    color: #2ecc71;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.navbar .d-flex .nav-link:hover i {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .navbar .d-flex {
        width: 100%;
        justify-content: space-between;
    }
    
    .navbar .d-flex .nav-link {
        margin-right: 50px;
    }
}

/* Featured Products Styles */
.featured-products {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.featured-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-product-card .product-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.featured-product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .product-image {
    transform: scale(1.05);
}

.featured-product-card .product-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.featured-product-card .price-container {
    margin-bottom: 1rem;
}

.featured-product-card .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00796b;
    margin-right: 0.5rem;
}

.featured-product-card .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.featured-product-card .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(238, 82, 83, 0.3);
    z-index: 1;
}

.featured-product-card .btn-add-cart {
    background: linear-gradient(45deg, #00796b, #009688);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    display: inline-block;
}

.featured-product-card .btn-add-cart:hover {
    background: linear-gradient(45deg, #00695c, #00897b);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .featured-product-card .product-image-container {
        height: 160px;
    }
    
    .featured-product-card .product-title {
        font-size: 1rem;
    }
    
    .featured-product-card .current-price {
        font-size: 1.1rem;
    }
    
    .featured-product-card .original-price {
        font-size: 0.9rem;
    }
}

/* Featured Products */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    height: 200px;
    width: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-details {
    margin-bottom: 1rem;
}

.main-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.price-unit {
    color: #718096;
    font-size: 0.9rem;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.original-price {
    color: #718096;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.quantity-wrapper {
    margin-bottom: 1rem;
}

.quantity-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    background-color: white;
}

.quantity-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Global Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 15px;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 300px;
    width: auto;
    font-size: 14px;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification i {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stack multiple notifications */
.notification + .notification {
    margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification {
        max-width: 90%;
        width: auto;
        right: 10px;
        bottom: 10px;
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #198754;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #198754;  /* Bootstrap success color */
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #eee;
}

/* Active state for dropdown toggle */
.nav-item.dropdown.show .nav-link {
    color: #198754;
}

/* Position the dropdown menu */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-image-container {
        height: 180px;
    }

    .card-title {
        font-size: 0.9rem;
        height: 2.2rem;
    }

    .current-price {
        font-size: 1.1rem;
    }
}

/* Cart Preview Dropdown Styles */
.cart-preview {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.cart-preview-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.cart-preview-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-preview-details {
    flex: 1;
    min-width: 0;
}

.cart-preview-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-preview-quantity {
    font-size: 12px;
    color: #666;
}

.cart-preview-price {
    font-size: 14px;
    font-weight: 600;
    color: #198754;
    white-space: nowrap;
}

.dropdown-menu {
    margin-top: 10px !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-preview .btn-success {
    margin-top: 10px;
}

/* Scrollbar styles for cart preview */
.cart-preview::-webkit-scrollbar {
    width: 6px;
}

.cart-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-preview::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.cart-preview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Order Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.success-modal .modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-modal .check-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: checkBounce 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes checkBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.success-modal .check-icon i {
    color: white;
    font-size: 40px;
}

.success-modal h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-modal p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 16px;
    line-height: 1.5;
}

.success-modal .order-id {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 16px;
    color: #2c3e50;
    border: 1px dashed #dee2e6;
}

.success-modal .order-id span {
    color: #28a745;
    font-weight: 600;
    margin-left: 5px;
}

.success-modal .btn-track-order,
.success-modal .btn-continue-shopping {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success-modal .btn-track-order {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.success-modal .btn-track-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    background: linear-gradient(45deg, #218838, #1ca38b);
}

.success-modal .btn-continue-shopping {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.success-modal .btn-continue-shopping:hover {
    transform: translateY(-2px);
    border-color: #28a745;
    color: #28a745;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.success-modal .btn-track-order i,
.success-modal .btn-continue-shopping i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.success-modal .btn-track-order:hover i,
.success-modal .btn-continue-shopping:hover i {
    transform: translateX(5px);
}

.success-modal .buttons-container {
    margin-top: 25px;
}

/* Add confetti animation */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: confetti 1s ease-out forwards;
}

.confetti:nth-child(2n) {
    background: #ffc107;
}

.confetti:nth-child(3n) {
    background: #17a2b8;
}

.confetti:nth-child(4n) {
    background: #dc3545;
}

/* Payment Method Styles in Orders */
.payment-method {
    color: #666;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.payment-method i {
    font-size: 0.9rem;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-badge.cod {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.payment-badge.prepaid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-badge i {
    font-size: 0.9rem;
}

/* Enhanced Order Details Styles */
.success-header {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.success-header .check-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: checkBounce 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.success-header .check-icon i {
    color: white;
    font-size: 30px;
}

.success-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 0.5rem;
}

.success-header .order-id {
    display: inline-block;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px dashed #28a745;
}

.success-header .order-id span {
    color: #28a745;
    font-weight: 600;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

.info-card h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h6 i {
    color: #6c757d;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.status-badge.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-items-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}

.order-items-card h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-items-card .table {
    margin-bottom: 0;
}

.order-items-card .item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.total-row {
    background-color: #f8f9fa;
    font-size: 1.1rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.order-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.order-actions .btn:hover {
    transform: translateY(-2px);
}

.order-actions .btn i {
    font-size: 1.1rem;
}

/* Empty Cart Styles */
.empty-cart-message {
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.empty-cart-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-cart-image {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.empty-cart-message h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-cart-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 16px;
}

.empty-cart-message .btn {
    padding: 0.8rem 2rem;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.empty-cart-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.empty-cart-message .btn i {
    font-size: 18px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Order Card Styles */
.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-header {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
}

.order-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-processing {
    background-color: #fff8e1;
    color: #f57c00;
}

.status-delivered {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.order-body {
    padding: 1.25rem;
}

.order-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-item-card {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.order-item-card:hover {
    transform: translateY(-2px);
}

.item-image-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    padding: 0.75rem;
    flex-grow: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.item-meta {
    font-size: 0.875rem;
    color: #718096;
}

.item-total {
    display: block;
    margin-top: 0.25rem;
    color: #2d3748;
    font-weight: 500;
}

.more-items-card {
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 100px;
    transition: background-color 0.2s;
}

.more-items-card:hover {
    background-color: #e9ecef;
}

.more-items-content {
    text-align: center;
    color: #6c757d;
}

.order-footer {
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.order-total {
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .order-items-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        max-width: 100%;
    }
}

/* Empty State Styles */
.empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.empty-state-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 20px;
}

.empty-state .btn {
    padding: 12px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} 