/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    min-height: 100vh;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: #1a1a1a;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    max-width: fit-content; /* Prevents logo from expanding */
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 50px;
    display: block;
    object-fit: contain;
}

.logo-text {
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap; /* Prevents text wrapping */
}

.logo-text p {
    font-size: 0.75rem;
    color: #ffffff;
    white-space: nowrap;  /* Prevents text wrapping */
}


/* Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #ff4444;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(26, 26, 26, 0.98);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.dropdown-content a {
    color: #ffffff;
    padding: 16px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background: rgba(255, 68, 68, 0.2);
    color: hsl(120, 11%, 98%);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hot-deals {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.hot-deals:hover {
    background: linear-gradient(135deg, #f6f2f2, #dad4d4);
}

.fire-icon {
    font-size: 1.2rem;
}

/* Remove underline from Hot Sales link */
.nav-link.hot-deals {
    text-decoration: none;
}

/* Ensure fire icon has no underline */
.fire-icon {
    text-decoration: none;
}

/* General fix for all nav links that are anchor tags */
a.nav-link {
    text-decoration: none;
}

.status-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ff0000;
    border-radius: 80%;
    transition: background-color 1.3s;
}

.status-dot.online {
    background-color: #25f704;
    animation: pulse 5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn,
.signin-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.cart-btn:hover,
.signin-btn:hover {
    color: #ff4444;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background-color: #ffffff;
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 0.125rem;
    background-color: #ffffff;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -0.5rem;
}

.hamburger::after {
    top: 0.5rem;
}

.mobile-menu-btn.active .hamburger {
    background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

.mobile-menu-btn.active .hamburger::after {
    transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

/* ========================================
   MOBILE NAVIGATION ENHANCEMENTS
   Add these styles to your existing style.css
   ======================================== */

/* Updated Mobile Menu Styles */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    background-color: #1a1a1a;
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    padding: 0.75rem 0;
    transition: color 0.3s;
    text-decoration: none;
    display: block;
    width: 100%;
}

.nav-link-mobile:hover {
    color: #ff4444;
}

/* Mobile Dropdown Container */
.mobile-dropdown {
    width: 100%;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dropdown-toggle span {
    transition: transform 0.3s;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.mobile-dropdown.active .dropdown-toggle span {
    transform: rotate(180deg);
}

/* Mobile Dropdown Content */
.mobile-dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 68, 68, 0.1);
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.mobile-dropdown-content a {
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-dropdown-content a:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    padding-left: 1.5rem;
}

/* Remove old mobile navigation styles if present */
.nav-mobile .dropdown {
    width: 100%;
}

.nav-mobile .dropdown-content {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 0;
    border-radius: 0;
}

.nav-mobile .dropdown.active .dropdown-content {
    display: block;
}

.nav-mobile .nav-link {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #ff0000, #cc0000, #ff0000);
    overflow: hidden;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    margin: 0;
}

.announcement-slider {
    width: 100%;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    gap: 3rem;
    animation: slide 30s linear infinite;
    white-space: nowrap;
}

.announcement-item {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Info Bar */
.info-bar {
    background-color: #2a2a2a;
    padding: 0.75rem 0;
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    z-index: 999;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.875rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.info-link {
    color: #ff4444;
    text-decoration: underline;
    font-weight: 600;
}

.info-link:hover {
    color: #ff6666;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    margin-top: 170px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Service Cards */
.service-card {
    position: relative;
    height: 24rem;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

.card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 1.5rem;
    z-index: 2;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.card-subtitle {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Card Gradients - Red, Black, White theme */
.card-gradient-1 {
    background: linear-gradient(135deg, #ff0000, #990000);
}

.card-gradient-2 {
    background: linear-gradient(135deg, #cc0000, #660000);
}

.card-gradient-3 {
    background: linear-gradient(135deg, #cc0000, #660000);
}

.card-gradient-4 {
    background: linear-gradient(135deg, #cc0000, #660000);
}

.card-gradient-5 {
    background: linear-gradient(135deg, #cc0000, #660000);
}

.card-gradient-6 {
    background: linear-gradient(135deg, #cc0000, #660000);
}

/* Page Sections (for Hot Sales & About) */
.page-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #999999;
    margin-bottom: 40px;
    text-align: center;
}

/* Product Grid (for Hot Sales) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ff4444;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.product-price {
    font-size: 2rem;
    color: #25f704;
    margin: 15px 0;
}

.original-price {
    font-size: 1rem;
    color: #999999;
    text-decoration: line-through;
    margin-left: 10px;
}

.cta-button {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ffffff;
}

.about-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #ff4444;
}

.about-content p {
    margin-bottom: 20px;
    color: #cccccc;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    color: #cccccc;
}

.about-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff4444;
    font-size: 1.5rem;
}

.about-content strong {
    color: #ff4444;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid #ff0000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-text {
    color: #999999;
    font-size: 0.875rem;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #999999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.6);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .cart-btn,
    .signin-btn {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-content {
        flex-direction: row;
        gap: 2rem;
    }

    .info-item {
        text-align: left;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .page-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CHAT SYSTEM STYLES
   Add this to your style.css file
   ======================================== */

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10000; /* Increased from 1000 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.chat-btn.active {
    background: #666;
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 9999; /* Increased from 999 */
    overflow: hidden;
}

.chat-container.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.chat-header-info {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Department Selection */
.department-select {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.department-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.admin {
    align-items: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.admin .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding: 0 8px;
}

.message-sender {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    padding: 0 8px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    max-width: 75px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    margin-left: 20px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Chat Input */
.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.chat-input input:focus {
    border-color: #ff0000;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.welcome-message h4 {
    color: #333;
    margin-bottom: 10px;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 90px;
    }

    .chat-btn {
        right: 20px;
        bottom: 20px;
    }
}