* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; padding-bottom: 80px; background: #ffffff; overflow-x: hidden; }

/* HEADER FIXES */
.header-stack { background: rgb(253, 81, 2); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #eee; }
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px; }
.logo { font-weight: 900; font-size: 25px; letter-spacing: 1px; margin: 0; }
.search-bar-container { padding: 0 15px 15px 15px; }
.search-bar-container input { width: 100%; padding: 10px 12px; border-radius: 8px; border: none; background: transparent; outline: none; font-size: 13px; }
.search-bar-container input::placeholder { color: #999; }

/* SIDEBAR */
.sidebar { 
    height: 100vh; 
    width: 0; 
    position: fixed; 
    z-index: 2000; 
    top: 0; 
    left: 0; 
    background: #fcfcfc; 
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.5s; 
    padding-top: 60px;
    padding-bottom: 80px;
    max-width: 75vw;
}
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.sidebar-section { margin-top: 18px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.sidebar-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.sidebar-label { color: #555; font-size: 10px; font-weight: bold; padding-left: 32px; margin: 0 0 6px 0; }
.sidebar a { padding: 12px 32px; text-decoration: none; color: #0c0c0c; display: block; font-size: 16px; border-top: 1px solid transparent; word-wrap: break-word; }
.sidebar a + a { border-top-color: #f1f1f1; }
.sidebar-wish-item { color: #f8f6f6; font-size: 14px; padding: 5px 32px; border-bottom: 1px solid #111111; }
.closebtn { 
    position: absolute; 
    top: 0; 
    right: 25px; 
    font-size: 36px; 
    color: #f0eeee; 
    text-decoration: none;
    z-index: 2001;
}

/* BOTTOM NAV (Correcting your image) */
.bottom-nav { position: fixed; bottom: 0; width: 100%; background: rgb(255, 254, 254); display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #eee; z-index: 1000; height: 65px; }
.nav-item { font-size: 10px; color: #180303; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nav-icon { font-size: 18px; margin-bottom: 2px; }

/* BADGES */
#cart-badge { background: red; color: white; font-size: 10px; padding: 2px 5px; border-radius: 50%; vertical-align: top; margin-left: -5px; }

/* PRODUCT CARDS */
.container { padding: 15px; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.card { border: 1px solid #ff670f9c; border-radius: 10px; padding: 15px; text-align: center; position: relative; transition: 0.3s; }
.card img { width: 100%; height: 140px; object-fit: contain; }
.wish-tag { position: absolute; right: 10px; top: 10px; color: #dbd5d5; cursor: pointer; font-size: 20px; }
.active-wish { color: red !important; }

/* MODALS */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0); }
.modal-content { background: rgb(8, 8, 8); margin: 15% auto; padding: 20px; width: 90%; max-width: 400px; border-radius: 15px; }
.cart-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #130101; }

/* Container */
.cart-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 40px; /* Reduced from 50px */
}

/* Smaller Icon */
.cart-svg {
    width: 22px;  /* Reduced from 28px */
    height: 22px; /* Reduced from 28px */
    color: #333;
}

/* Smaller Badge */
.badge-style {
    position: absolute;
    top: -4px;      /* Adjusted for smaller size */
    right: 2px;     /* Adjusted for smaller size */
    background-color: #fdfcfc;
    color: rgb(22, 1, 1);
    font-size: 9px; /* Smaller text */
    font-weight: bold;
    width: 15px;    /* Reduced from 18px */
    height: 15px;   /* Reduced from 18px */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid white; /* Thinner border for smaller scale */
}

/* Compact Label */
.nav-label {
    font-size: 10px; /* Reduced from 12px */
    color: #070707;
    margin-top: 2px;
    font-weight: 500;
}
/* CART SIDEBAR - RIGHT SIDE */
.sidebar-right {
    height: 100vh;
    width: 0; /* Hidden by default */
    position: fixed;
    z-index: 3000;
    top: 0;
    right: 0; /* Positioned on the right */
    background-color: #000000; /* Dark theme to match your menu */
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.3s;
    padding-top: 60px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    max-width: 75vw;
}

.sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.sidebar-right::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-right::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.sidebar-right::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.sidebar-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-footer {
    padding: 20px;
    background: #161616;
    border-top: 1px solid #160202 !important;
}

.closebtn-right {
    position: absolute;
    top: 10px;
    left: 25px; /* Close button on the left for right sidebar */
    font-size: 36px;
    color: #faf8f8;
    text-decoration: none;
}

.total-display {
    color: rgb(12, 240, 50);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Style for rows inside the dark sidebar */
.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1b0101;
    padding: 15px 0;
    border-bottom: 1px solid #999898;
}
/* Container for the top-right cart */
.header-cart {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* The Wireframe SVG */
.cart-svg-small {
    width: 24px;
    height: 24px;
    color: #1a1919;
}

/* The Dark Badge */
.badge-dark {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #555; /* Dark grey like your image */
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid white; /* Creates the clean gap */
    font-weight: bold;
}
/* Container for the search bar */
.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Style the SVG icon inside the bar */
.search-svg {
    position: absolute;
    left: 12px; /* Position icon on the left inside the bar */
    width: 18px;
    height: 18px;
    color: #9e9e9e; /* Subtle grey color */
    pointer-events: none; /* Allows user to click "through" the icon to type */
}

/* Adjust the input padding so text doesn't overlap the icon */
.search-wrapper input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Extra 40px padding on the left for the icon */
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    outline: none;
    font-size: 14px;
}

/* Search Button Styles */
#searchBtn {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#searchBtn:hover {
    background-color: #2a2a2a !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#searchBtn:active {
    transform: scale(0.98);
}

/* Container */
.wishlist-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 42px;
}

/* Wireframe Heart */
.wish-svg {
    width: 22px;
    height: 22px;
    color: #333; /* Matches your search/cart icons */
}

/* Dark Circular Badge */
.badge-dark-circle {
    position: absolute;
    top: -4px;
    right: 2px;
    background-color: #555; /* Dark grey from your image */
    color: white;
    font-size: 9px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid white; /* Creates the white gap seen in your upload */
}

/* Label below icon */
.nav-label {
    font-size: 10px;
    color: #333;
    margin-top: 2px;
    font-weight: 500;
}

.wishlist-icon-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #f1f1f1;
    color: #fd790e; /* Accent color */
}

/* Full screen overlay */
.welcome-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

/* The Popup Card */
.welcome-content {
    background: white;
    width: 90%;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 30px; /* Modern rounded look */
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.welcome-image { font-size: 50px; margin-bottom: 15px; }

.welcome-input {
    width: 100%;
    padding: 15px 20px;
    margin: 20px 0 10px;
    border-radius: 50px; /* Pill shaped */
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

.welcome-btn {
    width: 100%;
    background: oklch(67.166% 0.22051 37.853 / 0.959);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

.close-welcome {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #1b0202;
    cursor: pointer;
}

.no-thanks {
    margin-top: 15px;
    font-size: 12px;
    color: #1b0101;
    text-decoration: underline;
    cursor: pointer;
}
#category-banner-container {
    width: 100% !important;
    height: 220px !important; /* Set this to your desired height */
    min-height: 220px !important; 
    overflow: hidden !important;
    position: relative !important;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: block !important; /* Ensures it isn't collapsed */
}

#category-banner-img {
    width: 100% !important;
    height: 100% !important; /* Tells the image to fill the 450px container */
    object-fit: cover !important; 
    display: block !important;
    animation: bannerZoom 1.5s ease-out forwards;
}

/* Animations */
@keyframes bannerZoom {
    from { transform: scale(1.2); }
    to { transform: scale(1); }
}

/* Badge Effect */
#category-banner-container::after {
    content: "SPECIAL OFFER";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 11, 32, 0.938);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.brand-container {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    text-align: center;
    width: 100%;
}

.main-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    /* If your header is orange, make sure the color is set to white or black */
    color: inherit; 
}

.sub-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: unset;
    letter-spacing: 1.0px;
    /* This makes the tagline look professional */
    opacity: 0.99; 
}

/* Slim Announcement Bar Style */
.announcement-bar {
    background: #000;
    color: #fff;
    height: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 10px 0; 
    border-radius: 0;
    position: relative;
    border: 1px solid #333;
    border-left: none;
    border-right: none;
}

/* Container for the Icon and pulsing dot */
.icon-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}

.announcement-bar i { 
    width: 15px;
    height: 15px;
    stroke-width: 2.5px;
    color: #ffffff;
}

/* The Pulsing Dot */
.pulsing-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ff4757; /* Red color */
    border-radius: 50%;
    border: 1.5px solid #000;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ff4757;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-animation 1.5s infinite ease-out;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
}

.marquee-text {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: marquee-scroll 18s linear infinite;
    padding-left: 100%;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Adjusted for longer text */
}
/* CATEGORY HUB STYLES */
.home-hub-wrapper {
    margin: 15px;
    display: block; /* Shown by default */
}

.hub-title {
    font-size: 13px;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.hub-item {
    position: relative;
    height: 110px;
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.hub-item:active {
    transform: scale(0.96);
}

.hub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75); /* Darkens image so text is readable */
}

.hub-item span {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Back button style when viewing a category */
.back-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f15c05;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Login Spinner Styles */
.spinner {
    display: none; /* Hidden by default */
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* State when button is loading */
.auth-btn-main.loading {
    background: #cc6e03 !important; /* Slightly darker when loading */
    pointer-events: none; /* Prevent double clicks */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container for the Horizontal Scroll */
#store-new-arrivals {
    display: block; 
    white-space: nowrap; /* Prevents cards from stacking vertically */
    overflow-x: auto; /* Enables horizontal swiping */
    overflow-y: hidden;
    padding: 10px 0 20px 5px;
    -webkit-overflow-scrolling: touch; /* Makes swiping smooth on iPhones */
    scrollbar-width: none; /* Hides scrollbar on Firefox */
    scroll-snap-type: x mandatory; /* Makes cards 'snap' into place */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#store-new-arrivals::-webkit-scrollbar {
    display: none;
}

/* The Individual Card */
.arrival-card {
    display: inline-block; /* Forces cards to sit side-by-side */
    width: 130px; /* Fixed width for consistency */
    margin-right: 15px;
    vertical-align: top;
    white-space: normal; /* Allows text inside to wrap if it's long */
    scroll-snap-align: start; /* Alignment for the snap effect */
    transition: transform 0.2s ease-in-out;
}

/* Image Styling */
.arrival-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 20px;
    background: #f1f5f9; /* Placeholder color while loading */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: block;
}

/* Text Styling */
.arrival-card p {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
    padding: 0 2px;
    text-transform: capitalize;
}

/* Interaction Effects */
.arrival-card:active {
    transform: scale(0.95); /* Shrinks slightly when user touches it */
}

/* Optional: Add a 'New' badge to the first item */
.arrival-card:first-child::before {
    content: "NEW";
    position: absolute;
    background: #ff2a04;
    color: white;
    font-size: 8px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 10px;
    margin: 8px;
    z-index: 2;
}

/* Container for the Delivery Feed */
#store-delivery-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 0;
}

/* Individual Delivery Card */
.delivery-card {
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

/* Image of the product delivered */
.delivery-card img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
}

/* Content Area */
.delivery-info {
    flex: 1;
}

/* Customer Name */
.delivery-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #000000;
    text-transform: capitalize;
}

/* Product Info */
.delivery-info p {
    margin: 2px 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Delivered Status Badge */
.delivery-status {
    font-size: 9px;
    font-weight: 900;
    color: #25d366; /* Jay Nova Green */
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulse effect for the checkmark */
.delivery-status::before {
    content: "✓";
    font-weight: bold;
}

/* Hover/Touch interaction */
.delivery-card:active {
    transform: scale(0.98);
    background: #fdfdfd;
}

.slider-container {
    touch-action: pan-x;
}

.slider-images {
    touch-action: pan-x;
}

.slider-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
/* Extra small devices (phones < 320px) */
@media (max-width: 319px) {
    .sidebar {
        max-width: 85vw;
    }
    .sidebar a {
        padding: 10px 20px;
        font-size: 14px;
    }
    .sidebar-label {
        padding-left: 20px;
    }
}

/* Small devices (320px - 480px) */
@media (max-width: 480px) {
    .sidebar {
        max-width: 80vw;
    }
    .sidebar a {
        padding: 12px 24px;
        font-size: 15px;
    }
    .sidebar-label {
        padding-left: 24px;
    }
    .closebtn {
        right: 15px;
        font-size: 30px;
    }
}

/* Medium devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sidebar {
        max-width: 70vw;
    }
}

/* Landscape mode adjustments */
@media (max-height: 500px) {
    .sidebar {
        padding-top: 50px;
        padding-bottom: 60px;
    }
    .sidebar a {
        padding: 8px 24px;
        font-size: 14px;
    }
}

/* Ensure proper scrolling on all mobile devices */
@media (max-width: 768px) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .sidebar-right {
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    body.cart-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}