/* Kidie Kraft Modern E-commerce Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --kk-pink: #FE94FB;
    --kk-yellow: #FDC133;
    --kk-purple: #78325B;
    --kk-pink-light: #fff0fe;
    --kk-yellow-light: #fff9e6;
    --kk-gradient: linear-gradient(135deg, #FE94FB 0%, #FDC133 50%, #78325B 100%);
    --kk-soft-gradient: linear-gradient(135deg, #fff0fe 0%, #fff9e6 100%);
    --kk-radius: 15px;
    --kk-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --kk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--kk-purple);
}

/* Buttons */
.btn-kk {
    background: var(--kk-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--kk-transition);
    box-shadow: 0 4px 15px rgba(254, 148, 251, 0.3);
}

.btn-kk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 148, 251, 0.4);
    color: white;
}

.add-to-cart-btn {
    background: #923CA7 !important;
    border: none !important;
}

.add-to-cart-btn:hover {
    background: #923CA7 !important;
}

/* Header */
.header_section {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--kk-transition);
}

.navbar-brand img {
    max-height: 100px;
}

.nav-link {
    color: var(--kk-purple) !important;
    font-weight: 500;
    padding: 15px 20px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--kk-gradient);
    transform: scaleX(0);
    transition: var(--kk-transition);
    border-radius: 3px;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* Search Bar */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border-radius: 20px;
    border: 2px solid #eee;
    transition: var(--kk-transition);
}

.search-input:focus {
    border-color: var(--kk-pink);
    outline: none;
    box-shadow: 0 0 10px rgba(254, 148, 251, 0.1);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--kk-purple);
}

/* Cart & Wishlist Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-badge {
    position: relative;
    cursor: pointer;
}

.icon-badge i {
    font-size: 20px;
    color: var(--kk-purple);
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--kk-gradient);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Cards */
.kk-card {
    background: white;
    border-radius: var(--kk-radius);
    overflow: hidden;
    box-shadow: var(--kk-shadow);
    transition: var(--kk-transition);
    border: none;
    margin-bottom: 20px;
}

.kk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.kk-card .card-img-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.kk-card .card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--kk-transition);
}

.kk-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Badges */
.badge-kk {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.badge-new {
    background: #56CCF2;
}

.badge-offer {
    background: #EB5757;
}

.badge-value {
    background: #27AE60;
}

.badge-stock {
    background: #333;
}

/* Swiper / Carousel */
.swiper-button-next,
.swiper-button-prev {
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    color: var(--kk-purple);
    font-weight: bold;
}

/* Bottom Nav (Mobile) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 8px 0;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
    }
}

.mobile-nav-item {
    text-align: center;
    color: var(--kk-purple);
    text-decoration: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #FE94FB;
}

.mobile-nav-item i {
    font-size: 19px;
    display: block;
}

/* Mobile cart badge */
.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #923CA7;
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Custom Swiper Navigation */
.swiper-nav-custom {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--kk-shadow);
    transition: var(--kk-transition);
    border: 1px solid #eee;
    color: var(--kk-purple);
}

.swiper-nav-custom:hover {
    background: var(--kk-purple);
    color: white;
    transform: translateY(-2px);
}

.swiper-nav-custom i {
    font-size: 14px;
}

/* Product Section Specifics */
.products-section {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    color: #999;
    transition: var(--kk-transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--kk-pink);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--kk-transition);
    display: flex;
    flex-direction: column;
}

@media (max-width: 450px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

/* Dynamic Quantity Control for Product Cards */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 30px;
    padding: 1px;
    border: 2px solid var(--kk-purple);
    width: 100%;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--kk-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--kk-transition);
}

.qty-control button:hover {
    background: var(--kk-pink);
    transform: scale(1.1);
}

.qty-control span {
    font-weight: 700;
    font-size: 14px;
    color: var(--kk-purple);
    min-width: 24px;
    text-align: center;
}

.cart-action-wrapper {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.x-small {
    font-size: 10px !important;
}

/* Mega Menu Styles */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .mega-menu-item {
        position: relative;
    }
    .mega-menu-item .mega-submenu {
        display: none !important;
        position: absolute;
        top: -10px;
        left: 100%;
        min-width: 220px;
        margin-top: 0;
    }
    .mega-menu-item:hover > .mega-submenu {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    .mega-menu-item .mega-submenu {
        position: static;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 1.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}
.hover-bg-light .dropdown-item {
    background: transparent !important;
}

/* ===== MOBILE SLIDE-IN MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 0;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -105%;
    width: min(340px, 90vw);
    height: 100%;
    background: #fff;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
    overflow: hidden;
}
.mobile-menu-drawer.open {
    left: 0;
}

/* Drawer Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #FE94FB11 0%, #FDC13311 100%);
    flex-shrink: 0;
}
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f4f4f4;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-menu-close:hover {
    background: #78325B;
    color: white;
}

/* Search bar */
.mobile-menu-search {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobile-search-input {
    flex: 1;
    border: 1.5px solid #eee;
    border-radius: 30px 0 0 30px;
    padding: 9px 16px;
    outline: none;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
}
.mobile-search-input:focus {
    border-color: #78325B;
}
.mobile-search-btn {
    border: 1.5px solid #78325B;
    border-left: none;
    border-radius: 0 30px 30px 0;
    background: #78325B;
    color: white;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-search-btn:hover {
    background: #5a2544;
}

/* Nav links */
.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.mobile-menu-link:hover {
    background: #fdf0fd;
    color: #78325B;
}

.toggle-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.mobile-menu-toggle-btn.expanded .toggle-arrow {
    transform: rotate(90deg);
}
.mobile-menu-toggle-btn[data-target="mobile-shop-cats"].expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Submenu (category list) */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fafafa;
}
.mobile-submenu.open {
    max-height: 1000px;
}

/* Category row */
.mobile-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 22px 11px 32px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f3f3;
}
.mobile-cat-btn:hover {
    background: #f5e8f5;
    color: #78325B;
}
.mobile-cat-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.mobile-cat-link:hover {
    color: #78325B;
}

/* Subcategory list */
.mobile-subcat-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}
.mobile-subcat-list.open {
    max-height: 600px;
}
.mobile-subcat-link {
    display: block;
    padding: 9px 22px 9px 50px;
    font-size: 13.5px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.mobile-subcat-link:hover {
    background: #f5e8f5;
    color: #78325B;
    padding-left: 56px;
}

/* Account footer */
.mobile-menu-footer {
    border-top: 1px solid #f0f0f0;
    padding: 18px 20px;
    flex-shrink: 0;
    background: #fafafa;
}
.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 8px 0 14px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.mobile-footer-link {
    display: flex;
    align-items: center;
    padding: 9px 4px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-footer-link:hover {
    color: #78325B;
}
.mobile-footer-link.text-danger:hover {
    color: #dc3545;
}

/* Body lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
/* ===== END MOBILE SLIDE-IN MENU ===== */