@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&display=swap');

:root {
    --primary-color: #6B7FD7;
    --secondary-color: #F5E6BE;
    --accent-color: #4A5CBC;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
}

/* Menu Icon Styles */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px; /* Reduced from 26px */
    height: 16px; /* Reduced from 20px */
    position: relative;
    z-index: 100;
    cursor: pointer;
    margin-right: 1.2rem;
    margin-left: 0.3rem; /* Added to fine-tune left position */
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 1.5px; /* Reduced from 2px */
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Update middle line styling */
.menu-icon span:nth-child(2) {
    width: 70%;
    align-self: flex-end;
    margin: 4px 0; /* Added for better spacing */
}

.menu-icon.active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-icon.active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hover effects */
.menu-icon:hover span {
    background: var(--primary-color);
}

.menu-icon:hover span:nth-child(2) {
    width: 100%;
}

/* Menu Overlay Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.menu-categories::-webkit-scrollbar {
    width: 6px;
}

.menu-categories::-webkit-scrollbar-track {
    background: transparent;
}

.menu-categories::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.category-column {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.menu-overlay.active .category-column {
    opacity: 1;
    transform: translateY(0);
}

.category-column:nth-child(1) { transition-delay: 0.1s; }
.category-column:nth-child(2) { transition-delay: 0.2s; }
.category-column:nth-child(3) { transition-delay: 0.3s; }

.category-column h3 {
    color: var(--primary-color);
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

.category-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.category-column:hover h3::after {
    width: 60px;
}

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

.category-column ul li {
    margin-bottom: 1rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-overlay.active .category-column ul li {
    transform: translateX(0);
    opacity: 1;
}

.category-column ul li:nth-child(1) { transition-delay: 0.2s; }
.category-column ul li:nth-child(2) { transition-delay: 0.3s; }
.category-column ul li:nth-child(3) { transition-delay: 0.4s; }
.category-column ul li:nth-child(4) { transition-delay: 0.5s; }
.category-column ul li:nth-child(5) { transition-delay: 0.6s; }

.category-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.category-column ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.category-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.category-column ul li a:hover::after {
    width: 100%;
}

.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.menu-scroll-btn {
    position: fixed;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(107, 127, 215, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.menu-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.menu-scroll-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.menu-scroll-up {
    top: 100px;
}

.menu-scroll-down {
    bottom: 30px;
}

/* Header Styles */
.header {
    background: #0a0a0a;
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding-left: 0.5rem; /* Added to move menu icon left */
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transform-style: preserve-3d;
    animation: rotateLogo 10s infinite linear;
}

@keyframes rotateLogo {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Add hover pause effect */
.logo:hover .logo-image {
    animation-play-state: paused;
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 0.5rem; /* Reduced from 1.5rem to 0.5rem */
    align-items: center;
}

.nav-icon {
    text-decoration: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-icon:hover {
    transform: scale(1.1);
}

.nav-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-icon-image.home-icon {
    width: 35px;
    height: 35px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 40px;
    }

    .logo-image {
        height: 35px;
    }

    .nav-icons {
        gap: 0.3rem; /* Reduced from 1rem to 0.3rem */
    }

    .nav-icon {
        font-size: 1rem;
    }

    .nav-icon-image {
        width: 20px;
        height: 20px;
    }

    .nav-icon-image.home-icon {
        width: 30px;
        height: 30px;
    }

    .menu-icon {
        width: 24px;
        height: 18px;
    }

    .menu-icon span {
        height: 2px;
    }
    
    .menu-icon.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-icon.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Main Container Styles */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
}

/* Cart Title */
.cart-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, var(--primary-color), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2rem;
}

.cart-title::before {
    content: 'SHOPPING CART';
    position: absolute;
    left: 0;
    top: 2px;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* Add responsive styles for the cart title */
@media (max-width: 768px) {
    .cart-title {
        font-size: 2rem;
        -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.5);
    }

    .cart-title::before {
        -webkit-text-stroke: 0.5px var(--primary-color);
    }

    .cart-title::after {
        width: 60px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
}

/* Cart Content Layout */
.cart-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cart Items Container */
.cart-items {
    background: #111;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 200px; /* Minimum height for empty cart */
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
}

.item-details {
    flex-grow: 1;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

quantity-controls button {
    padding: 5px 10px;
    cursor: pointer;
}

.remove-item {
    padding: 5px 10px;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .item-image-container {
        margin: 0 auto;
    }

    .item-controls {
        justify-content: center;
    }
}

/* Order Summary Styles */
.cart-summary {
    background: #111;
    border-radius: 10px;
    padding: 1.5rem;
}

.cart-summary h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    font-size: 1rem;
}

.summary-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
}

.summary-row.total span {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Buttons */
.checkout-btn,
.continue-shopping-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn {
    background: var(--primary-color);
    color: #fff;
}

.checkout-btn:hover {
    background: var(--accent-color);
}

.continue-shopping-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: #fff;
}

continue-shopping-btn:hover {
    background: rgba(107, 127, 215, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        margin-top: 2rem;
    }

    .summary-row span {
        font-size: 0.9rem;
    }

    .summary-row.total span {
        font-size: 1.1rem;
    }
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.start-shopping-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .menu-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        text-align: center;
        margin-top: 60px;
    }

    .category-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-column ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .menu-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .menu-scroll-btn {
        width: 35px;
        height: 35px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .menu-icon {
        width: 22px;
        height: 16px;
        margin-right: 0.8rem;
    }

    .menu-icon span {
        height: 1.5px;
    }
    
    .menu-icon.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-icon.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .logo-image {
        height: 30px;
    }
}

