/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: #0b1220;
  color: #e5e7eb;
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  color: #4f7cff;
  font-weight: 700;
}

nav a {
  margin: 0 10px;
  color: #a1a1aa;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

/* ================= BUTTON ================= */
.btn {
  background: #4f7cff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
}

/* ================= KPI ================= */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}

.card {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  padding: 16px;
}

/* right side stack */
.side {
  display: grid;
  gap: 12px;
}

/* ================= PANELS ================= */
.panel {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);

  display: flex;
  flex-direction: column;
}

.large {
  height: 260px;
}

.small {
  height: 180px;
}

.panel canvas {
  flex: 1;
}

/* ================= HEADER INSIDE PANEL ================= */
.panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* ================= INSIGHTS ================= */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
  gap: 12px;
}

.box {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
}

/* ================= MINI BUTTON ================= */
.mini-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px){
  .kpi,
  .dashboard,
  .insights {
    grid-template-columns: 1fr;
  }
}


/* ================= AI REPORT ================= */
.ai-report {
  padding: 20px;
  margin: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.ai-report h2 {
  margin-bottom: 10px;
  color: #4f7cff;
}

.ai-report p {
  margin-bottom: 10px;
  opacity: 0.85;
  line-height: 1.6;
}

/* ================= SYSTEM ANALYSIS ================= */
.system-analysis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.analysis-card {
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.analysis-card h3 {
  color: #22c55e;
  margin-bottom: 6px;
}

/* ================= QUICK ACTIONS ================= */
.quick-actions {
  padding: 16px;
}

.quick-actions h2 {
  margin-bottom: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-grid button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(79,124,255,0.15);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.action-grid button:hover {
  background: #4f7cff;
}

/* ================= ALERTS ================= */
.alerts {
  padding: 16px;
}

.alerts h2 {
  margin-bottom: 10px;
}

.alert {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #22c55e;
}

.alert.warning {
  border-left: 3px solid #f59e0b;
}


/* ================= FOOTER ================= */
.footer {
  margin-top: 30px;
  padding: 30px 20px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
}

/* BRAND */
.footer-brand h2 {
  color: #4f7cff;
  margin-bottom: 10px;
}

.footer-brand p {
  opacity: 0.7;
  line-height: 1.6;
}

/* LINKS */
.footer-links h3,
.footer-contact h3 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-links a {
  display: block;
  margin: 6px 0;
  color: #a1a1aa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #4f7cff;
}

/* CONTACT */
.footer-contact p {
  margin: 6px 0;
  opacity: 0.8;
}

/* BUTTON */
.footer-btn {
  margin-top: 10px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: #4f7cff;
  color: white;
  cursor: pointer;
}

/* BOTTOM */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

/* RESPONSIVE */
@media(max-width: 900px){
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/*⚡⚡⚡⚡⚡*/

/* ================= SHOP HERO ================= */
.shop-hero {
    background: linear-gradient(135deg, #4f7cff, #6d8cff);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.shop-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

/* ================= HEADER ================= */
.header-actions {
    display: flex;
    gap: 10px;
}

.search {
    padding: 8px;
    border-radius: 6px;
    border: none;
}

/* ================= PRODUCTS GRID ================= */
.products-section {
    padding: 40px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    color: #111;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.rating {
    color: #f59e0b;
    font-size: 14px;
}

.price {
    margin: 10px 0;
}

.price .new {
    font-weight: bold;
    color: #e11d48;
}

.price .old {
    text-decoration: line-through;
    margin-left: 5px;
    color: #777;
}

.discount {
    background: #e11d48;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4f7cff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* ================= DASHBOARD ================= */
.dashboard {
    padding: 40px 20px;
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.panel {
    background: white;
    color: #111;
    padding: 15px;
    border-radius: 10px;
    height: 300px;
}

/* ================= FOOTER ================= */
.footer {
    background: #0b1220;
    color: #e5e7eb;
    padding: 40px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer a {
    display: block;
    color: #cbd5e1;
    margin: 5px 0;
    text-decoration: none;
}

/*⚡⚡⚡⚡⚡*/
/* ================= PROMO BAR ================= */
.promo-bar {
    background: #e11d48;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #333;
}

/* ================= HERO ================= */
.shop-hero {
    background: linear-gradient(135deg, #4f7cff, #6d8cff);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

/* ================= CATEGORIES ================= */
.categories {
    padding: 40px 20px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card img {
    width: 100%;
    border-radius: 10px;
}

/* ================= FLASH SALE ================= */
.flash-sale {
    padding: 40px 20px;
    background: #fff7ed;
    text-align: center;
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.flash-item {
    position: relative;
}

.flash-item span {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e11d48;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
}

/* ================= WHY SHOP ================= */
.why-shop {
    padding: 40px 20px;
    background: #f8fafc;
    text-align: center;
}

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

/* ================= TESTIMONIALS ================= */
.testimonials {
    padding: 40px 20px;
    text-align: center;
}

.testimonial {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* ================= NEWSLETTER ================= */
.newsletter {
    padding: 40px 20px;
    background: #4f7cff;
    color: white;
    text-align: center;
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin-right: 10px;
}

/*⚡⚡⚡⚡⚡⚡*/

/* ================= HERO ================= */
.shop-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
    align-items: center;
    background: linear-gradient(135deg, #4f7cff, #6d8cff);
    color: white;
    width: 100%;
    max-width: 100%;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* ================= MAIN LAYOUT ================= */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 20px;
}

/* ================= SIDEBAR ================= */
.sidebar {
    background:  #0b1220;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 20px;
    height: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-banner {
    background: #4f7cff;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ================= PRODUCTS AREA ================= */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sort {
    padding: 6px;
}

/* ================= INLINE PROMO ================= */
.inline-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    background:  #0b1220;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.5);
}

.inline-promo img {
    width: 100%;
    border-radius: 10px;
}

/* ================= TRUST BADGES ================= */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
    background:  #0b1220;
    border: 1px solid rgba(255,255,255,0.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .shop-hero,
    .inline-promo {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sidebar {
        position: static;
    }
}




/* ================= HERO CAROUSEL ================= */
.hero-carousel {
    padding: 25px 15px;
    text-align: center;
    background: linear-gradient(135deg, #4f7cff, #6d8cff);
    color: white;
    overflow: hidden; /* Prevents horizontal overflow */
}

/* ================= CAROUSEL CONTAINER ================= */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Ensures only visible area is shown */
    margin: 0 auto;
}

/* ================= CAROUSEL TRACK ================= */
.carousel-track {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced spacing */
    animation: scrollLeft 30s linear infinite;
    will-change: transform; /* Performance optimization */
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* ================= PRODUCT CARD ================= */
.carousel-item {
    flex: 0 0 auto;        /* Prevents flex stretching */
    width: 120px;          /* Smaller and consistent size */
    background: #ffffff;
    color: #111;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-3px);
}

.carousel-item img {
    width: 100%;
    height: 90px;          /* Reduced height */
    object-fit: cover;
    border-radius: 6px;
}

.carousel-item h4 {
    font-size: 12px;
    margin: 6px 0 2px;
}

.carousel-item .price {
    color: #e11d48;
    font-weight: bold;
    font-size: 12px;
}

/* ================= SCROLL ANIMATION ================= */
@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .carousel-item {
        width: 100px;
    }

    .carousel-item img {
        height: 80px;
    }

    .hero-carousel h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 90px;
    }

    .carousel-item img {
        height: 70px;
    }
}

/*⚡⚡⚡⚡Bot style*/
/* ================= FLOATING BUTTON ================= */
.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 85px;
    height: 85px;
    background: #4f46e5;
    color: white;
    font-size: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 999;
}

/* ================= CHAT POPUP ================= */
.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 520px;
    height: 650px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

/* ================= HEADER ================= */
.chat-header {
    background: #4f46e5;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= BODY ================= */
.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #0C0B1F;
    color: black;
}

/* ================= MESSAGES ================= */
.bot-msg, .user-msg {
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
}

.bot-msg {
    background: #D446E5;
    align-self: flex-start;
    color: white;
}

.user-msg {
    background: white;
    color: black;
    margin-left: auto;
}

/* ================= INPUT ================= */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.chat-input button {
    background: #D446E5;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
    .chat-popup {
        width: 90%;
        right: 5%;
        height: 400px;
    }
}