/* ==========================================================================
    BISIMONSHOES MAIN STYLES - FINAL VERSION
   ========================================================================== */
:root {
    --black: #000000;
    --white: #ffffff;
    --grey-bg: #f5f5f5;
    --grey-border: #e5e5e5;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* 1. TOP BAR */
.top-bar {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
}
.top-bar a { color: var(--white); text-decoration: underline; margin-left: 5px; }

/* 2. NAVBAR */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--grey-border);
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3000; /* Higher than menu to keep hamburger accessible */
}
/* 1. Mobile First: The hamburger is visible by default */
.hamburger {
    display: block;
    cursor: pointer;
}

/* 2. Desktop Mode: Hide the hamburger when the screen is wide */
@media (min-width: 1024px) {
    .hamburger {
        display: none !important;
    }
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.nav-left { display: flex; align-items: center; gap: 15px; }
.logo { font-size: 22px; font-weight: 800; text-decoration: none; color: var(--black); letter-spacing: -1px; }

/* 3. DESKTOP LINKS & MEGA MENU */
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-item { text-decoration: none; color: var(--black); font-weight: 500; font-size: 14px; }

.has-mega { 
    position: relative; 
    height: 60px; 
    display: flex;
    align-items: center;
}

.mega-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: none;
    padding: 30px;
    z-index: 1100;
}
.has-mega:hover .mega-menu { display: block; }

.mega-content { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mega-col h4 { font-size: 11px; color: #888; letter-spacing: 1px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.mega-col ul { list-style: none; }
.mega-col ul li a { display: block; padding: 8px 0; text-decoration: none; color: var(--black); font-size: 14px; font-weight: 500; }

/* 4. ICONS */
.nav-icons { display: flex; align-items: center; gap: 20px; }
.nav-icons a { color: var(--black); text-decoration: none; position: relative; display: flex; align-items: center; }
.nav-icons i { width: 22px; height: 22px; stroke-width: 1.5; }

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 5. MOBILE SEARCH & CATEGORY PILLS */
.mobile-search-container { padding: 12px 20px; background: var(--white); border-bottom: 1px solid var(--grey-border); display: none; }
.search-wrapper { background: var(--grey-bg); display: flex; align-items: center; padding: 10px 15px; border-radius: 10px; gap: 10px; }
.search-wrapper input { border: none; background: transparent; width: 100%; outline: none; font-size: 15px; }

.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 20px;
    white-space: nowrap;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
    padding: 8px 20px;
    border: 1px solid var(--grey-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
}
.pill.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* 6. RESPONSIVE MOBILE OVERHAUL */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-search-container { display: block; }

    /* The Sidebar Layer */
    .nav-links {
        display: none; 
        position: fixed;
        top: 60px; /* Aligned with navbar bottom */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px 20px;
        z-index: 2500; /* Between Navbar and Top icons */
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }

    .nav-links li { width: 100%; list-style: none; margin-bottom: 10px; }

    .nav-item {
        font-size: 20px; 
        font-weight: 700;
        padding: 12px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
    }

    /* Mega Menu on Mobile */
    .has-mega { flex-direction: column; align-items: flex-start; height: auto; }
    
    .mega-menu {
        position: static;
        display: block; 
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 15px 0 15px 15px;
    }

    .mega-content { grid-template-columns: 1fr; gap: 20px; }
    .mega-col h4 { font-size: 13px; margin-bottom: 10px; }

    /* Hamburger accessible layer */
    #hamburger {
        z-index: 3100;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
}


/* The Shake Animation */
@keyframes shakeLeftRight {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50% { transform: translateX(-4px); }
    20%, 40%, 60% { transform: translateX(4px); }
    70% { transform: translateX(0); }
}

/* Applying the animation only when the class is present */
.cart-trigger.shake-cart {
    display: inline-block; /* Required for transform to work */
    animation: shakeLeftRight 4s ease-in-out infinite;
}

/* Optional: Pause the shaking when the user hovers over it */
.cart-trigger.shake-cart:hover {
    animation-play-state: paused;
}

/* Container for the animation */
.plane-container {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.paper-plane {
    font-size: 40px;
    display: inline-block;
    transition: all 0.8s ease-in-out;
}

/* The "Flying" state */
.fly-away {
    transform: translate(200px, -200px) rotate(45deg);
    opacity: 0;
}
/* Floating Notification Style */
#floating-note {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-note.show { top: 20px; }
#floating-note.success { background-color: #28a745; }
#floating-note.error { background-color: #dc3545; }












/* NAVBAR LAYOUT */
.nav-flex {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Logo | Search | Icons */
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* SEARCH FIELD IN NAVBAR */
.nav-search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper {
    background: var(--grey-bg);
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 8px;
    gap: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.search-wrapper:focus-within {
    background: #fff;
    border-color: var(--black);
}

.search-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    font-family: var(--font-main);
}

.search-icon { width: 18px; color: #666; }

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .nav-flex {
        display: flex;
        justify-content: space-between;
    }
    
    .nav-search-container {
        display: none; /* Hide in main navbar on mobile */
    }

    /* Shown inside the toggled menu instead */
    .nav-links.active .mobile-only-search {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .nav-links {
        z-index: 4000;
    }
    
    #hamburger {
        z-index: 5000; /* Ensure toggle stays above menu */
        cursor: pointer;
    }
}





/* 7. HERO SLIDER STYLES */
/* HERO SLIDER */

/* --- FULL WIDTH PREMIUM HERO --- */
.main-hero {
    position: relative;
    width: 100vw; /* Exact viewport width */
    height: 85vh;
    margin-left: calc(-50vw + 50%); /* Forces full width if container is constrained */
    background: #000;
    overflow: hidden;
}

.hero-slider, .hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s linear; /* Smooth zoom duration */
    transform: scale(1);
}

/* The Zoom Animation Trigger */
.hero-slide.active .hero-bg {
    transform: scale(1.15);
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 50px;
}

.hero-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: clamp(55px, 12vw, 130px);
    color: #fff;
    line-height: 0.85;
    margin-bottom: 40px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-hero {
    padding: 18px 40px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #000;
    color: #fff;
}

/* UI Positioning */
.hero-ui {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 10;
    color: #fff;
}

.nav-btn { background: none; border: none; color: #fff; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.nav-btn:hover { opacity: 1; }

.hero-pagination,{ display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 12px; }
.hero-line { width: 120px; height: 2px; background: rgba(255,255,255,0.2); }
#progressFill { width: 50%; height: 100%; background: #fff; transition: 0.5s; }

/* Mobile */
@media (max-width: 768px) {
    .main-hero { height: 75vh; }
    .hero-btns { flex-direction: column; }
    .hero-title { font-size: 65px; }
    .hero-ui { width: 90%; justify-content: space-between; }
}


















.allcurate_slider_wrapper {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.allcurate_product_track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px; /* Fixed gap */
}

.allcurate_card {
    /* (100% / 5 items) - (proportional gap) */
    flex: 0 0 calc(20% - 12px); 
    min-width: calc(20% - 12px);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.allcurate_img_box {
    background: #f6f6f6;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
}

.allcurate_img_box img {
    width: 60%; /* Minimalist small image size */
    height: auto;
    object-fit: contain;
}

.allcurate_brand { font-size: 11px; font-weight: 700; margin: 0; }
.allcurate_name { font-size: 12px; color: #555; margin: 2px 0; font-weight: 400; }
.allcurate_price { font-size: 13px; font-weight: 700; }

.allcurate_exclusive {
    position: absolute;
    top: 8px; left: 8px;
    background: #000; color: #fff;
    font-size: 9px; padding: 2px 5px; font-weight: 800;
}






















.details_grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    padding: 40px 0;
}

.main_img_box {
    background: #f6f6f6;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.main_img_box img { width: 75%; height: auto; }

.thumbnail_row { display: flex; gap: 10px; }
.thumb { width: 80px; height: 80px; background: #f6f6f6; cursor: pointer; object-fit: contain; padding: 5px; }

.details_brand { font-size: 12px; font-weight: 800; color: #888; margin-bottom: 10px; }
.details_title { font-size: 28px; font-weight: 400; margin-bottom: 15px; }
.details_price { font-size: 22px; font-weight: 800; margin-bottom: 25px; }

.size_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.size_btn { 
    border: 1px solid #ddd; background: #fff; padding: 12px; 
    font-weight: 700; cursor: pointer; transition: 0.2s;
}
.size_btn:hover { border-color: #000; }
.size_btn.disabled { opacity: 0.3; cursor: not-allowed; }

.add_to_cart_btn {
    width: 100%; padding: 18px; background: #000; color: #fff;
    border: none; font-weight: 800; margin-top: 30px; cursor: pointer;
}















/* Container Grid */
.product-container {
    display: flex;
    flex-direction: column; /* Mobile Stack */
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .product-container {
        flex-direction: row; /* Desktop Side-by-Side */
        align-items: flex-start;
    }
    .product-gallery { flex: 1.2; position: sticky; top: 100px; }
    .product-info { flex: 0.8; }
}

/* Magnifier Styles */
.magnifier-container {
    position: relative;
    background: #f6f6f6;
    overflow: hidden;
    cursor: crosshair;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-product-image {
    width: 80%;
    transition: transform 0.1s ease-out;
}

/* Size & UI Elements */
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 15px 0; }
.size-btn { border: 1px solid #ddd; padding: 12px; background: #fff; cursor: pointer; font-weight: bold; }
.size-btn.active { border: 2px solid #000; }

.btn-add-cart {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

/* Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    z-index: 9999;
    animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.cart_toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}









.cart-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr; /* Sidebar for total */
    gap: 50px;
    margin-top: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.item-img {
    width: 120px;
    background: #f6f6f6;
    padding: 10px;
}

.cart-summary {
    background: #fafafa;
    padding: 30px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-weight: 600;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 900;
}

.btn-checkout {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
}

/* Stack for mobile */
@media (max-width: 992px) {
    .cart-grid { grid-template-columns: 1fr; }
}