/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure all main content areas take up available space */
main,
.auth-main,
.profile-main,
.cart-main,
.hero-redesign,
.products {
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    /* Use variables */
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

/* Header matches Hero in Dark Mode */
[data-theme="dark"] header {
    background: rgba(5, 5, 16, 0.95);
    /* Match Hero Gradient Start or Transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .logo {
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
}

/* Hero Redesign */
.hero-redesign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
    min-height: 85vh;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 20px;
    color: #475569;
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background-color: #0f172a;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-cta:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hero Visual & Carousel */
/* Hero Visual & Carousel */
.hero-visual {
    flex: 1;
    height: 500px;
    /* Reduced from 600px */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.carousel-container {
    width: 350px;
    /* Reduced width */
    height: 450px;
    /* Reduced height */
    position: relative;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: white;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: slideUp 0.8s ease-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Floating Chip in Carousel */
.floating-chip {
    position: absolute;
    bottom: 30px;
    right: -10px;
    left: 30px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: white;
    width: 85%;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.carousel-slide.active .floating-chip {
    transform: translateY(0);
    opacity: 1;
}

.floating-chip img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.chip-info {
    flex: 1;
}

.chip-info span {
    display: block;
    font-size: 14px;
    color: #94a3b8;
}

.chip-info small {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.chip-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: bg 0.3s;
}

.chip-btn:hover {
    background: #7dd3fc;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #0f172a;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-redesign {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 36px;
        /* Smaller font for mobile */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
    }

    .carousel-container {
        width: 280px;
        /* Even smaller for mobile */
        height: 380px;
    }

    .floating-chip {
        right: 20px;
        left: 20px;
        width: auto;
    }
}

/* Categories Section */
.categories-section {
    padding: 40px 50px;
    text-align: center;
}

.categories-section h2 {
    margin-bottom: 30px;
    color: #4b6cb7;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-card p {
    font-weight: 600;
    color: #333;
}

/* Featured Section */
.featured-section {
    padding: 20px 50px;
    background: #fff;
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Promo Banner */
.promo-banner {
    margin: 50px 50px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #feada6 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
}

.promo-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #d63384;
}

.promo-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.promo-btn {
    padding: 12px 30px;
    background: #fff;
    color: #d63384;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s;
}

.promo-btn:hover {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-section {
    padding: 60px 50px;
    background: #f9f9f9;
    text-align: center;
}

.testimonials-section h2 {
    margin-bottom: 40px;
    color: #4b6cb7;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-style: italic;
}

.testimonial-card h4 {
    margin-top: 15px;
    font-style: normal;
    color: #667eea;
}

/* Newsletter */
.newsletter-section {
    padding: 60px 20px;
    text-align: center;
    background: #4b6cb7;
    color: white;
}

.newsletter-section h2 {
    margin-bottom: 10px;
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    width: 300px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    background: #ffd700;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

.cta-btn {
    padding: 12px 30px;
    background: #ffd700;
    color: #182848;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products {
    padding: 50px 50px;
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #4b6cb7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.product-card p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #667eea;
}

.product-card button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: linear-gradient(90deg, #182848, #4b6cb7);
    color: white;
    margin-top: 10px;
}






/* USER PROFILE */
.profile-main {
    padding: 40px 50px;
}

.user-info p {
    font-size: 18px;
    margin-bottom: 10px;
}

.order-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-history th,
.order-history td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.order-history th {
    background-color: #4b6cb7;
    color: white;
}

.order-history tr:hover {
    background-color: #f1f1f1;
}





/* USER CART */
.cart-main {
    padding: 40px 50px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-table th,
.cart-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.cart-table th {
    background-color: #4b6cb7;
    color: white;
}

.btn-small {
    padding: 5px 8px;
    margin: 2px;
    border: none;
    border-radius: 5px;
    background-color: #667eea;
    color: white;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #5560c9;
}

.cart-total {
    text-align: right;
    margin-top: 20px;
}

.btn-place-order {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #4b6cb7;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-place-order:hover {
    background-color: #3a5297;
}




/* AUTH PAGE, REGISTRATION FORM */
/* Auth Page Styles */
.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    /* header + footer height */
    background: url('images/auth-bg.jpg') no-repeat center center/cover;
    padding: 20px;
    position: relative;
}

/* Optional Overlay for better text contrast if image is too bright/busy */
.auth-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 0;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    /* Transparent/Glass background */
    backdrop-filter: blur(5px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    z-index: 1;
    /* Ensure form is above overlay */
    color: white;
    /* Default text color in form */
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #fff;
    /* White heading */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent input */
    color: white;
    /* White text input */
    outline: none;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-form input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.auth-form p {
    margin-top: 15px;
    font-size: 14px;
    color: #eee;
}

.auth-form p a {
    color: #ffd700;
    /* Gold/Yellow for links against dark bg */
    text-decoration: none;
    font-weight: bold;
}

.auth-form p a:hover {
    text-decoration: underline;
    color: #fff;
}

/* CART COUNT */
#cart-count {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 4px;
}




/* MEDIA QUERIES */
/* Responsive Design */
/*@media (max-width: 768px) {
    .profile-main, .cart-main {
        padding: 20px;
    }

    * Order History Table Scroll *
    .order-history table,
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .order-history th, .order-history td,
    .cart-table th, .cart-table td {
        padding: 10px;
    }

    * Reduce card font sizes for small screens *
    .stats .card h3 {
        font-size: 16px;
    }

    .stats .card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .auth-form {
        width: 100%;
        padding: 20px;
    }

    .cart-total {
        text-align: center;
    }
}*/

/* Cancel Button */
.btn-cancel {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel:hover {
    background: #c0392b;
}

/* --- Mobile Nav & Responsiveness --- */
.mobile-cart-link {
    display: none;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    margin-right: 15px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   MOBILE OPTIMIZATION (Max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* --- Global Layout & Typography --- */
    body {
        padding-bottom: 0 !important;
        /* Remove global 80px padding */
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    section {
        padding: 30px 20px !important;
        /* Force reduce padding */
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 14px !important;
    }

    /* --- Header --- */
    header {
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        font-size: 20px;
    }

    /* Mobile Menu Logic */
    .mobile-cart-link {
        display: inline-block;
    }

    .menu-toggle {
        display: block;
    }

    .desktop-cart {
        display: none;
    }

    header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100vh;
        background: rgba(24, 40, 72, 0.98);
        flex-direction: column;
        padding-top: 60px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        /* box-shadow: -5px 0 15px rgba(0,0,0,0.2); */
    }

    header nav.active {
        transform: translateX(0);
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
    }

    /* --- Hero Section --- */
    .hero-section {
        overflow: hidden;
        /* Prevent blob/carousel overflow */
        padding: 40px 20px;
    }

    .hero-bg-blob {
        width: 300px !important;
        height: 300px !important;
        /* Reduce blob size */
        filter: blur(60px);
    }

    .hero-redesign {
        flex-direction: column;
        padding: 40px 20px 20px;
        /* Reduced bottom padding */
        text-align: center;
        gap: 10px;
        /* Reduced from 30px */
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .hero-visual {
        height: 300px;
        /* Reduced height */
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: hidden;
        /* Extra safety */
    }

    .hero-carousel-container {
        width: 100% !important;
        max-width: 300px !important;
        height: 300px !important;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    .floating-chip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        padding: 8px;
    }

    .floating-chip img {
        width: 35px;
        height: 35px;
    }

    .chip-info span {
        font-size: 12px;
    }

    .chip-info small {
        font-size: 14px;
    }

    /* --- Grids (Categories & Products) --- */
    .categories-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px !important;
        justify-content: flex-start !important;
        /* Align left for scrolling */
        padding-bottom: 10px;
        /* Space for scrollbar */
        white-space: nowrap;
        flex-wrap: nowrap !important;
        /* Force single line */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .category-card {
        min-width: 100px;
        /* Ensure cards don't squish */
        width: 100px;
        /* Fixed width for consistency in row */
        padding: 10px;
        flex: 0 0 auto;
        /* Don't grow or shrink */
    }

    .cat-icon {
        font-size: 30px;
        /* Smaller icon */
    }

    .category-card p {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 cols always */
        gap: 10px !important;
    }

    .product-card {
        padding: 8px;
    }

    .product-card h3 {
        font-size: 14px !important;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-card p {
        font-size: 12px !important;
        margin-bottom: 5px;
    }

    .product-card button {
        padding: 6px 12px;
        font-size: 11px;
        width: 100%;
    }

    .product-card img {
        height: 100px;
        /* Smaller images */
    }

    /* --- Auth Pages --- */
    .auth-main {
        padding: 15px;
        min-height: calc(100vh - 100px);
    }

    .auth-form {
        padding: 20px;
        max-width: 100%;
    }

    /* --- Profile & Cart Tables --- */
    .profile-main,
    .cart-main {
        padding: 20px 15px;
    }

    .order-history-container,
    .cart-container {
        padding: 15px;
    }

    .table-responsive,
    .cart-items-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-table,
    .cart-table {
        min-width: 500px;
        /* Force scroll */
    }

    .cart-layout {
        flex-direction: column;
    }

    .cart-summary-section {
        width: 100%;
        margin-top: 20px;
    }

    /* --- Bottom Nav (Reduced Size) --- */
    .glass-bottom-nav {
        width: 90%;
        max-width: 320px;
        padding: 8px 10px;
        bottom: 15px;
        /* Robust Centering */
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
    }

    .nav-item {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .nav-badge {
        font-size: 9px;
        padding: 1px 3px;
    }

    /* --- Footer --- */
    footer {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }
}

/* Extra small devices */
@media (max-width: 480px) {

    /* Keep 2 columns for products even on small screens */
    /* Keep 2 columns for products even on small screens */
    .products-grid {
        gap: 8px;
        /* Tighter gap */
    }

    .hero-content h1 {
        font-size: 24px !important;
    }
}

/* Floating Liquid Glass Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    /* Safe distance from bottom */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.35);
    /* More transparent for liquid look */
    backdrop-filter: blur(2px) saturate(180%);
    /* Reduced blur */
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    /* Subtle crisp border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    /* Softer shadow */
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-cart:hover {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(200%);
    /* Slightly more blur on hover */
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    transform: translateX(-50%) translateY(-4px);
}

.floating-cart span {
    font-size: 16px;
    font-weight: 700;
    color: #0044ff;
    letter-spacing: 0.5px;
}

.floating-cart-badge {
    background: #333;
    /* Contrast badge */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 24px;
    height: 24px;
}

/* Liquid Bottom Nav */
.glass-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-bottom-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.nav-item {
    color: #4b6cb7;
    /* Primary Blue from theme */
    font-size: 24px;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #d63384;
    /* Active pink Accent */
    transform: translateY(-5px);
}

.icon-container {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Adjust Footer to not be hidden by nav */
footer {
    padding-bottom: 100px;
}

/* Profile Page Redesign */
.profile-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
    /* Blue/White theme match hero */
    padding: 100px 20px 120px;
    /* Padding for header and bottom nav */
    display: flex;
    flex-direction: column;
    align-items: center;
}

:root {
    /* Light Mode (Default) */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: white;
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
    --blob-color: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    /* Aurora Dark Mode (Deep Purple/Black) */
    --bg-color: #050510;
    --text-color: #e0e0e0;
    --card-bg: rgba(20, 10, 35, 0.6);
    /* Glassy Dark */
    --primary-color: #a855f7;
    --secondary-color: #fff;
    --blob-color: transparent;
    /* Disable blob, using gradient body */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    /* "This Image" Look: Deep Purple Horizon Gradient */
    background: radial-gradient(circle at 50% 100%, #5b247a 0%, #1b1b2f 40%, #050510 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Ensure inputs are not white in dark mode */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .search-filter {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-bottom: 80px;
    transition: background-color 0.5s, color 0.5s;
    /* Smooth basic fade */
}

.profile-card {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: visible;
    /* Allow avatar to overlap */
    position: relative;
    margin-top: 60px;
    /* Space for avatar overlap */
    margin-bottom: 40px;
    text-align: center;
    padding-bottom: 30px;
}

.profile-avatar-container {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: white;
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-body {
    padding: 70px 30px 20px;
    /* Top padding clears avatar */
}

.profile-body h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.profile-location {
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.profile-bio p {
    color: #555;
    font-size: 16px;
    margin-bottom: 5px;
}

.profile-bio small {
    color: #999;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.stat-item span {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-connect,
.btn-message {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect {
    background: #f0f2f5;
    color: #333;
}

.btn-message {
    /* Playing the role of Logout/Action */
    background: linear-gradient(135deg, #4b6cb7, #182848);
    /* Default Theme Blue */
    color: white;
    box-shadow: 0 5px 15px rgba(75, 108, 183, 0.4);
}

.btn-connect:hover,
.btn-message:hover {
    transform: translateY(-2px);
}

.order-history-container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    /* Center horizontally */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.order-history-container h3 {
    margin-bottom: 25px;
    color: #182848;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.order-table th {
    text-align: left;
    padding: 12px 15px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #f0f2f5;
}

.order-table td {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 14px;
}

.order-table tr:last-child td {
    border-bottom: none;
}

.order-table tr:hover {
    background-color: #fcfcfc;
}

.btn-clear-history {
    background: transparent;
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-clear-history:hover {
    background: #ff4757;
    color: white;
}

/* Edit Profile Modal Styles */
.modal-overlay {
    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: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #4b6cb7;
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    background: #f0f2f5;
    color: #555;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-save {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(75, 108, 183, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(75, 108, 183, 0.4);
}