@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

        :root {
            --day1-yellow: #FFD700;
            --day2-green: #228B22;
            --day3-grey: #708090;
            --day4-orange: #FF8C00;
            --day5-white: #FFFFFF;
            --day6-red: #DC143C;
            --day7-blue: #4169E1;
            --day8-pink: #FF69B4;
            --day9-purple: #9932CC;
            
            --gradient-primary: linear-gradient(135deg, var(--day1-yellow), var(--day4-orange), var(--day6-red));
            --gradient-secondary: linear-gradient(135deg, var(--day7-blue), var(--day9-purple), var(--day8-pink));
            --gradient-divine: linear-gradient(45deg, var(--day1-yellow), var(--day2-green), var(--day4-orange), var(--day6-red), var(--day7-blue), var(--day8-pink), var(--day9-purple));
            --gradient-royal: linear-gradient(135deg, var(--day9-purple), var(--day6-red), var(--day1-yellow));
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

      body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2D1B69;
    background-color: #f9f8fe;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.divine-bg {
    display: none;
}

@keyframes divine-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.03) rotate(1.5deg); opacity: 0.3; }
}

        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 30px;
            position: relative;
            z-index: 2;
        }
        
        main#cart-page {
            padding: 60px 0;
        }

        header {
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid rgba(153, 50, 204, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--day9-purple);
            text-decoration: none;
        }

        .NavRang {
           display: flex;
           align-items: center;
           /* gap: 8px; */
           background: transparent;
           /* color: var(--day9-purple); */
           border: none;
           /* padding: 8px 12px; */
           /* border-radius: 20px; */
           cursor: pointer;
           transition: all 0.3s ease;
       }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #2D1B69;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 8px 0;
        }

        .nav-links a:hover {
            color: var(--day6-red);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background: var(--day6-red);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .cart-icon {
            position: relative;
            font-size: 24px;
            cursor: pointer;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: red;
            color: white;
            border-radius: 50%;
            padding: 3px 6px;
            font-size: 12px;
        }

        .hero {
            padding: 80px 0;
            text-align: center;
            position: relative;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.9) 0%, 
                rgba(255, 248, 220, 0.9) 50%,
                rgba(255, 240, 245, 0.9) 100%);
        }

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.5rem, 6vw, 4rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 1rem;
            background: var(--gradient-divine);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            color: var(--day9-purple);
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .hero p {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }
        
        a.cta-primary {
            text-decoration: none;
        }
        
        .cta-primary {
            background: var(--day9-purple);
            color: white;
            padding: 12px 28px;
            border: none;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(153, 50, 204, 0.3);
        }

        .cta-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(153, 50, 204, 0.4);
        }

        .products-section {
            padding: 80px 0;
            background: rgba(255, 255, 255, 0.7);
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--day9-purple);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

       .product-card {
            background: white;
            border: 1px solid #eee;
            border-radius: 15px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            height: 100%;
        }

        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(153, 50, 204, 0.15);
        }

        .product-image {
            width: 100%;
            height: 280px;
            position: relative;
            overflow: hidden;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .product-card:hover .product-image img {
            transform: scale(1.05);
        }

        .discount-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--day6-red);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 1;
        }

        .product-details {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .product-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--day9-purple);
            margin-bottom: 8px;
        }

        .product-description {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.5;
            margin-bottom: 15px;
            flex-grow: 1;
        }

        .product-pricing {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .current-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--day6-red);
        }
        
        .original-price {
            font-size: 1rem;
            color: #999;
            text-decoration: line-through;
        }

        .product-action {
            margin-top: auto;
        }

        .add-to-cart {
            width: 100%;
            background: var(--day9-purple);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .add-to-cart:hover {
            background: var(--day6-red);
        }
        
        .out-of-stock {
            width: 100%;
            background: #ccc;
            color: #666;
            text-align: center;
            padding: 12px;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #f0f0f0;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 10;
            line-height: 35px;
            text-align: center;
            transition: background 0.2s ease;
        }

        .modal-close-btn:hover {
            background: #e0e0e0;
        }

        .modal-product-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 30px;
        }

        .modal-product-image img {
            width: 100%;
            border-radius: 10px;
        }
        
        .modal-product-name {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            color: var(--day9-purple);
            margin-bottom: 15px;
        }

        .modal-product-pricing {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 20px;
        }

        .modal-current-price {
            font-size: 2rem;
            font-weight: 700;
            color: var(--day6-red);
        }
        
        .modal-original-price {
            font-size: 1.2rem;
            color: #999;
            text-decoration: line-through;
        }

        .modal-product-description {
            font-size: 1rem;
            line-height: 1.7;
            color: #555;
            margin-bottom: 25px;
        }

        .modal-product-action .add-to-cart {
            font-size: 1rem;
            padding: 15px;
        }

        /* --- Cart Page Styles Start --- */
        .empty-cart {
            text-align: center;
            padding: 80px 40px;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(153, 50, 204, 0.08);
        }

        .empty-cart h2 {
            font-family: 'Playfair Display', serif;
            color: var(--day9-purple);
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .empty-cart p {
            color: #666;
            margin-bottom: 30px;
        }

        .cart-grid {
            display: grid;
            grid-template-columns: 2.5fr 1fr;
            gap: 40px;
            align-items: flex-start;
        }
        
        .cart-items-list {
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(153, 50, 204, 0.08);
            overflow: hidden;
        }
        
        .cart-item {
            display: grid;
            grid-template-columns: auto 1fr auto auto auto;
            gap: 20px;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.3s ease;
        }

        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item:hover {
            background-color: #fcfaff;
        }

        .cart-item-image {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 10px;
        }

        .cart-item-details {
            flex-grow: 1;
        }
        
        .cart-item-name {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            font-size: 1.2rem;
            color: var(--day9-purple);
            margin-bottom: 5px;
        }

        .cart-item-price {
            color: #555;
            font-weight: 500;
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .cart-item-quantity button {
            width: 30px;
            height: 30px;
            border: 1px solid #ddd;
            background-color: #f7f7f7;
            color: var(--day9-purple);
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            font-weight: bold;
            transition: all 0.2s ease;
        }
        
        .cart-item-quantity button:hover {
            background-color: var(--day9-purple);
            color: white;
            border-color: var(--day9-purple);
        }

        .cart-item-quantity span {
            font-weight: 700;
            font-size: 1.1rem;
            min-width: 25px;
            text-align: center;
        }

        .cart-item-total {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--day6-red);
            min-width: 100px;
            text-align: right;
        }

        .cart-item-remove {
            background: transparent;
            border: none;
            color: #999;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .cart-item-remove:hover {
            color: var(--day6-red);
            text-decoration: underline;
        }

        .cart-summary {
            background-color: #fff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(153, 50, 204, 0.08);
            position: sticky;
            top: 100px; /* Adjust based on header height */
        }
        
        .cart-summary h2 {
            font-family: 'Playfair Display', serif;
            color: var(--day9-purple);
            margin-bottom: 25px;
            text-align: center;
            font-size: 1.8rem;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 1rem;
            color: #555;
        }
        
        .summary-row.total {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--day9-purple);
            border-top: 1px solid #eee;
            padding-top: 20px;
            margin-top: 20px;
        }
        
        .checkout-btn {
            width: 100%;
            background: var(--day9-purple);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 25px;
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
            box-shadow: 0 4px 15px rgba(153, 50, 204, 0.3);
        }

        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(153, 50, 204, 0.4);
            background: var(--day6-red);
        }
        /* --- Cart Page Styles End --- */

        footer {
            background: linear-gradient(135deg, var(--day9-purple), var(--day7-blue));
            color: white;
            padding: 60px 0 30px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: var(--day1-yellow);
        }

        .footer-section p, .footer-section a {
            font-size: 0.9rem;
            line-height: 1.6;
            opacity: 0.9;
            color: white;
            text-decoration: none;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 8px;
        }

        .footer-section ul li a:hover {
            color: var(--day1-yellow);
            text-decoration: underline;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 25px;
            text-align: center;
            font-size: 0.9rem;
        }

         .user-section {
           position: relative;
       }
       
       .auth-buttons {
           display: flex;
           gap: 10px;
       }
       
       .login-btn, .signup-btn{
           padding: 8px 18px;
           border: none;
           border-radius: 25px;
           font-weight: 600;
           cursor: pointer;
           transition: all 0.3s ease;
           text-decoration: none;
           font-size: 0.9rem;
       }
       
       .login-btn {
           background: transparent;
           color: var(--day9-purple);
           border: 2px solid var(--day9-purple);
       }
       
       .login-btn:hover {
           background: var(--day9-purple);
           color: white;
       }
       
       .signup-btn {
           background: var(--day9-purple);
           color: white;
       }
       
       .signup-btn:hover {
           background: var(--day6-red);
       }
       
       .user-info {
           display: flex;
           align-items: center;
           gap: 15px;
       }
       
       .user-dropdown {
           position: relative;
       }
       
       .user-menu-btn {
           display: flex;
           align-items: center;
           gap: 8px;
           background: transparent;
           color: var(--day9-purple);
           border: none;
           padding: 8px 12px;
           border-radius: 20px;
           cursor: pointer;
           transition: all 0.3s ease;
       }
       
       .user-menu-btn:hover {
           background: #f8f0ff;
       }
       
       .user-initial {
           width: 30px;
           height: 30px;
           background: var(--day9-purple);
           color: white;
           border-radius: 50%;
           display: flex;
           align-items: center;
           justify-content: center;
           font-weight: 700;
           font-size: 0.9rem;
       }
       
       #userNameDisplay {
            font-weight: 600;
       }
       
       .user-dropdown-menu {
           position: absolute;
           top: 120%;
           right: 0;
           background: white;
           border-radius: 10px;
           box-shadow: 0 10px 30px rgba(0,0,0,0.15);
           min-width: 200px;
           display: none;
           z-index: 1000;
           padding: 8px 0;
           border: 1px solid #eee;
       }
       
       .dropdown-item {
           display: flex;
           align-items: center;
           gap: 12px;
           padding: 10px 20px;
           text-decoration: none;
           color: var(--day9-purple);
           font-size: 0.9rem;
           transition: all 0.3s ease;
       }
       
       .dropdown-item:hover {
           background: #f8f0ff;
           color: var(--day6-red);
       }
       
       .item-icon {
           font-size: 1.1rem;
       }
       
        .notification { 
            position: fixed; 
            top: 20px; 
            right: -300px; 
            padding: 1rem 1.5rem; 
            border-radius: 5px; 
            color: white; 
            z-index: 3000; 
            transition: right 0.5s ease-in-out; 
            width: 280px;
        }

        .notification.show {
            right: 20px;
        }
        
        .notification.success { background-color: #28a745; }
        .notification.error { background-color: #dc3545; }


        @media (max-width: 992px) {
            .cart-grid {
                grid-template-columns: 1fr;
            }

            .cart-summary {
                position: static; /* or relative */
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 20px;
            }

            nav {
                flex-wrap: wrap;
                gap: 15px;
            }

            .nav-links {
                order: 3;
                width: 100%;
                justify-content: space-around;
                gap: 1rem;
            }

            .logo {
                order: 1;
            }

            .nav-actions {
                order: 2;
            }

            .modal-product-layout {
                grid-template-columns: 1fr;
                padding: 20px;
            }

            .cart-item {
                grid-template-columns: 1fr;
                gap: 15px;
                text-align: center;
            }
            .cart-item-image {
                margin: 0 auto;
            }
            .cart-item-quantity {
                justify-content: center;
            }
            .cart-item-total {
                text-align: center;
            }
        }