/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - 3D Effect */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.95;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform-style: preserve-3d;
    animation: headerFloat 3s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 20px var(--primary-color);
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.1) rotateY(10deg);
    text-shadow: 0 0 30px var(--primary-color);
}

.logo i {
    font-size: 2rem;
    animation: phoneRotate 4s linear infinite;
}

@keyframes phoneRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(360deg); }
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transform-style: preserve-3d;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.badge {
    background: #ff0000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    min-height: 80vh;
    padding: 2rem 0;
}

/* Hero Section - 3D */
.hero {
    text-align: center;
    padding: 4rem 0;
    perspective: 1000px;
}

.hero-content {
    transform-style: preserve-3d;
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateZ(0px) rotateX(0deg); }
    50% { transform: translateZ(30px) rotateX(2deg); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-color);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px var(--primary-color)); }
    to { filter: drop-shadow(0 0 30px #00d4ff); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Feature Cards - 3D */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 30px 60px var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Product Grid - 3D */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.03);
    box-shadow: 0 30px 60px var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 3D Placeholder for missing images */
.image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.image-placeholder span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 1;
}

/* Small 3D Placeholder */
.image-placeholder-sm {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 1.5rem;
}

.image-placeholder-md {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 2.5rem;
}

.product-card:hover .product-image {
    transform: scale(1.1) rotateZ(2deg);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons - 3D */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px var(--primary-color);
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Category Slider - 3D */
.category-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    height: 8px;
}

.category-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.category-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.category-item {
    flex: 0 0 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.category-item:hover {
    transform: translateY(-10px) rotateZ(-3deg) scale(1.1);
    box-shadow: 0 20px 40px var(--primary-color);
    border-color: var(--primary-color);
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: #fff;
}

/* WhatsApp Float Buttons - 3D */
.whatsapp-float, .whatsapp-maintenance {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    z-index: 999;
    transition: all 0.3s ease;
    animation: floatPulse 2s ease-in-out infinite;
    transform-style: preserve-3d;
}

.whatsapp-maintenance {
    bottom: 90px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.6);
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.whatsapp-float:hover, .whatsapp-maintenance:hover {
    transform: translateY(-5px) scale(1.2) rotateZ(15deg);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 1);
}

/* Cart Page - 3D */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.5);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* Form Styles - 3D */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer - 3D */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
    backdrop-filter: blur(10px);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotateZ(15deg) scale(1.2);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.6);
}

.contact-info, .footer-links {
    list-style: none;
}

.contact-info li, .footer-links li {
    margin-bottom: 0.5rem;
}

.contact-info a, .footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover, .footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .main-content {
        padding: 0.5rem 0 !important;
        min-height: auto !important;
    }

    .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

    .footer {
        margin-top: 0.5rem !important;
        padding: 1.5rem 0 1rem !important;
    }

    .cart-container {
        width: 100% !important;
        padding: 0 !important;
    }

    .cart-item {
        grid-template-columns: 80px 1fr !important;
        gap: 10px !important;
        text-align: left !important;
        padding: 10px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .cart-item-image {
        width: 80px !important;
        height: 80px !important;
    }

    .cart-item-info h3 {
        font-size: 1rem !important;
    }

    .cart-item-actions {
        grid-column: 1 / -1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 5px !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        padding-top: 5px !important;
    }

    .order-summary {
        width: 100% !important;
        margin-top: 0.5rem !important;
        padding: 1rem !important;
    }

    .header-content {
        padding: 0.5rem 0 !important;
    }

    .logo a {
        font-size: 1.4rem !important;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -110% !important;
        width: 280px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        opacity: 1 !important;
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 2000 !important;
        display: none; /* Add this to be 100% sure */
    }
    
    .nav.active {
        display: flex !important;
        right: 0 !important;
    }
    
    .nav-toggle {
        display: block !important;
        z-index: 2001 !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .category-slider {
        padding: 0.5rem 0 !important;
        gap: 0.5rem !important;
    }

    .category-item {
        flex: 0 0 140px !important;
        padding: 0.8rem !important;
    }

    .category-item h4 {
        font-size: 0.8rem !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        padding: 0 !important;
        margin: 0.5rem 0 !important;
    }

    .product-card {
        border-radius: 10px !important;
    }

    .product-image, .image-placeholder {
        height: 130px !important;
    }

    .image-placeholder i {
        font-size: 1.8rem !important;
    }

    .image-placeholder span {
        font-size: 0.65rem !important;
    }

    .product-info {
        padding: 0.6rem !important;
    }

    .product-name {
        font-size: 0.85rem !important;
        margin-bottom: 0.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem !important;
    }

    .btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: 100%;
        text-align: center;
    }
    
    .whatsapp-float, .whatsapp-maintenance {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        right: 20px !important;
        bottom: 100px !important; /* Move it UP */
    }
    
    .whatsapp-maintenance {
        bottom: 165px !important; /* Move it even further UP */
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}
