* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}
.loader-container {
    /* Make it cover the whole screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Solid background to hide the header and body behind it */
    background-color: #ffffff; 
    
    /* Ensure it sits ON TOP of the header (header is z-index 99) */
    z-index: 9999; 
    
    /* Center the loader animation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Optional: Smooth fade out transition */
    transition: opacity 0.5s ease;
}
.loaderout {
  height: 60px;
  width: 60px;
  background-color: #fff;
  border-radius: 50%;
  border: 6px dashed #ff6b6b;
  border-bottom: 5px dashed rgb(73, 5, 133);
  border-top: 5px dashed rgb(73, 5, 133);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotate 1s linear infinite;
}
.loaderin1{
  height: 53px;
  width: 53px;
  background-color:#fff;
  border-radius: 50%;
  display:flex;
  justify-content:center;
  align-items:center;
}
.loaderin2{
  height: 43px;
  width: 43px;
  background-color:rgb(178, 20, 20);
  border-radius: 50%;
  animation: rotate 3s linear infinite alternate-reverse;
}
.loaderin3{
  height: 36px;
  width: 36px;
  background-color:#fff;
  border-radius: 50%;
}

.loader-p {
  font-size: 18px;
  font-weight: 500;
  color: #444;
  margin-top: 15px;
  letter-spacing: 1px;
  text-align: center;
  min-height: 10vh; /* prevent jumping when text changes */
}

@keyframes rotate {
  from { transform: rotateZ(1980deg) scale(0.6); }
  to   { transform: rotateZ(0deg) scale(1.2); }
}

/* 👇 THIS IS THE ONLY PART YOU NEED TO CHANGE */
@keyframes scrollText {
    /* Start the text just off-screen to the right of the entire window */
    from { 
        transform: translateX(100vw); 
    }
    
    /* End when the text is fully off-screen to the left */
    to { 
        /* This moves it left by its own full width, ensuring it disappears completely */
        transform: translateX(-100%); 
    }
}
/* --- THE HORIZON CONTAINER --- */
.category-scroll-container {
    display: flex;
    margin-top: 134px; /* Ensure this matches your header height */
    justify-content: space-between; /* Changed from space-between for better scrolling */
    overflow-x: auto;
    gap: 18px; /* Slightly wider gap for touch targets */
    padding: 20px 15px 45px 15px; /* Added top padding */
    background: linear-gradient(134deg, #ff4545, #2919ff);
    box-shadow: inset 0 18px 28px -4px rgba(0, 0, 0, 0.4);
    
    /* Smooth scrolling for mobile */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    
    /* Hide Scrollbar but keep functionality */
    scrollbar-width: none; 

    /* The Curve Mask */
    --curve-depth: 30px;
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% -10%, black 75%, transparent 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% -10%, black 75%, transparent 100%);
}

.category-scroll-container::-webkit-scrollbar { 
    display: none; 
}

/* --- CATEGORY ITEMS --- */
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px; /* Prevents items from squishing together */
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Slight press animation */
.cat-item:active {
    transform: scale(0.95);
}

/* --- ICON BOX (The circles) --- */
.cat-item .icon-box {
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    
    /* Gradient text effect for the icons inside the white box */
    color: #2919ff; 
    font-size: 22px;
}

/* Ensure images inside the box fit perfectly */
/* Ensure images inside the box fit perfectly and look larger */
.cat-item .icon-box img {
    width: 44px;  /* Increased from 32px */
    height: 44px; /* Increased from 32px */
    object-fit: contain;
    /* Optional: Add a slight drop shadow to the PNG itself to make it pop */
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.2)); 
}

/* --- TYPOGRAPHY --- */
.cat-item p {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    white-space: nowrap; /* Keeps text on one line */
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Helps text readability */
}

/* --- SUB HEADER --- */
.sub-header {
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Consider adding a minimum height here if needed */
}
/* --- Slider Styles --- */
.slider-container {
    width: 98%;
    background-color:rgb(181, 150, 255);
    max-width: 1600px; /* Optional: Constrain the max width */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: inset 0 18px 28px -4px rgba(0, 0, 0, 0.55);
    margin-top: 10px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block; /* Removes bottom space under the image */
    box-shadow: inset 0 -18px 28px -4px rgba(0, 0, 0, 0.55);
}
@media (max-width: 627px) {
  .slide img {
    height: 210px;
       }
}
@media (min-width: 628px) {
  .slide img {
    height:45vh;
       }
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-btn:hover { background-color: rgba(0, 0, 0, 0.7); }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active { background-color: white; }

.cat-item {
    flex: 0 0 auto; /* Don't shrink */
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    cursor: pointer;
}
@media (max-width: 421px) {
    .cat-item {
        width: 55px;
    }
}
/* Remove or replace your old .cat-item img code with this: */

.cat-item i {
    width: 60px;
    height: 60px;
    
    /* Center the icon inside the circle */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Design the circle */
    border-radius: 50%;
    border: 2px solid #ff5959;
    background-color: #fff; /* White background */
    color: #ff5959; /* Red icon color */
    
    font-size: 26px; /* Icon size */
    transition: all 0.3s ease;
}

/* Hover Effect: Invert colors */
.cat-item:hover i {
    background-color: #ff5959;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 89, 89, 0.4);
}
.cat-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Circle shape */
    border: 2px solid #ff5959;
    padding: 2px;
    object-fit: cover;
    transition: transform 0.2s;
}

.cat-item:hover img {
    transform: scale(1.1);
}

.cat-item p {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    color: #f1eaf1;
}
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 80px; /* Above the footer/mobile nav */
    right: 20px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #ff5959;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, background-color 0.3s;
}

#backToTop:hover {
    background-color: #d63c3c;
    transform: translateY(-5px);
}
/* --- FLASH SALE CONTAINER --- */
#flash-sale-section {
    width: 96%;
    margin: 15px 0 15px 15px;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.5s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- FLASH SALE CONTAINER (IMPROVED UI) --- */
#flash-sale-section {
    width: 96%;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* STATE 1: ACTIVE (Red/Hot Theme) */
.flash-section-active {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    border: 2px solid #ff5959;
}
.flash-section-active .flash-header { color: #d60000; }
.flash-section-active .flash-timer { background: #d60000; color: white; box-shadow: 0 4px 10px rgba(214, 0, 0, 0.4); }

/* STATE 2: WAITING (Blue/Cool Theme) */
.flash-section-waiting {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border: 2px solid #6a11cb;
}
.flash-section-waiting .flash-header { color: #2a0845; }
.flash-section-waiting .flash-timer { background: #2a0845; color: white; }

/* HEADER */
.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.flash-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}
.flash-title span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 4px;
}
.flash-timer {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Courier New', monospace;
}

/* SCROLL CONTAINER */
.flash-scroll-container {
    display: flex;
    justify-content: space-around;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px; /* Bottom padding for shadow */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.flash-scroll-container::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

/* PRODUCT CARD */
.flash-card {
    min-width: 160px;
    max-width: 160px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s ease;
    text-decoration: none; /* Remove underline from link */
    color: inherit;
}

.flash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px #1a0360bc;

}

.flash-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 8px;
    mix-blend-mode: multiply;
}

.flash-card h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.flash-card .price {
    font-weight: 800;
    color: #d60000;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.flash-card .price del {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: 400;
}

.flash-add-btn {
    width: 100%;
    background: #ff5959;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2; /* Ensure clickable */
}
.flash-add-btn:hover { background: #d63c3c; }

/* LOCKED / BLURRED STATE */
.blurred-content .flash-card {
    filter: blur(14px);
    pointer-events: none;
    opacity: 0.7;
}

.locked-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}


/* Force at least 2 products per row on mobiles */





/* Style for the 'Product Not Found' message */
.not-found-container {
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    color: #555;
    margin: 0 auto; /* Center it in the shop-section */
}

.not-found-icon {
    font-size: 60px; /* Makes the icon bigger */
    color: #ccc;
    margin-bottom: 20px;
}

.not-found-container h2 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
    color: #333;
}

.not-found-container p {
    font-size: 1rem; /* 16px */
}
footer{
    height: 20px;
    width:100vw;
    color:whitesmoke;
    position:relative;
    bottom:0px;
    text-align:center;
    font-size:14px;
    display:inline-block;
    background-color:#eb0000;
    border:5px solid #eb0000e6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px; 
}