/* IMBMS Myntra-style theme — layout, products, mobile app nav */
:root {
    --imbms-pink: #ff3f6c;
    --imbms-pink-dark: #e5385f;
    --imbms-brand: #150087;
    --imbms-text: #282c3f;
    --imbms-text-muted: #696b79;
    --imbms-border: #eaeaec;
    --imbms-bg: #f5f5f6;
    --imbms-white: #ffffff;
    --imbms-green: #03a685;
    --imbms-header-h: 56px;
}

body {
    background: var(--imbms-bg);
    color: var(--imbms-text);
}

/* Sticky header shell */
.imbms-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Product cards — Myntra-style */
.product-wrapper {
    background: var(--imbms-white);
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    margin: 0 4px;
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--imbms-border);
}

.product-wrapper:hover {
    box-shadow: 0 4px 16px rgba(40, 44, 63, 0.12);
}

.product-img {
    box-shadow: none;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8f8f8;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-wrapper:hover .product-img img {
    transform: scale(1.03);
}

.product-img > span {
    background: var(--imbms-pink);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    left: 8px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    padding: 4px 8px;
    top: 8px;
}

.product-content {
    background: var(--imbms-white);
    box-shadow: none;
    padding: 10px 10px 12px;
    text-align: left !important;
}

.product-content p {
    text-align: left !important;
    min-height: auto !important;
    margin: 0 0 6px;
    line-height: 1.35 !important;
}

.product-content p a {
    color: var(--imbms-text);
    display: -webkit-box;
    font-size: 14px;
    font-weight: 500;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-content p a:hover {
    color: var(--imbms-pink);
}

.product-price-wrapper {
    padding-bottom: 4px;
    text-align: left;
}

.product-price-wrapper > span {
    color: var(--imbms-text);
    font-size: 14px;
    font-weight: 700;
    margin: 0 4px 0 0;
}

.product-price-wrapper > span.product-price-old {
    color: var(--imbms-text-muted);
    font-size: 12px;
    font-weight: 400;
    opacity: 1;
    text-decoration: line-through;
}

/* Hide legacy delivery-time label if any old cached HTML remains */
.product-price-wrapper small {
    display: none !important;
}

/* Section rails */
.product-area {
    background: var(--imbms-white);
    margin-bottom: 8px;
    padding-top: 20px !important;
    padding-bottom: 24px !important;
}

.product-top-bar.section-border {
    border: none;
    margin-bottom: 16px !important;
    padding: 0 4px;
}

.product-top-bar.section-border::before {
    display: none;
}

.section-title-wrap {
    float: none;
    width: 100%;
}

p.section-title.section-bg-white {
    background: transparent;
    color: var(--imbms-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding-right: 0;
    text-transform: uppercase;
}

.product-nav .owl-nav {
    top: -48px;
}

.product-nav .owl-nav div {
    background: var(--imbms-white);
    border: 1px solid var(--imbms-border);
    border-radius: 50%;
    color: var(--imbms-text);
    font-size: 14px;
    height: 32px;
    line-height: 30px;
    width: 32px;
}

.product-nav .owl-nav div:hover {
    background: var(--imbms-pink);
    border-color: var(--imbms-pink);
    color: #fff;
}

.featured-product-active.owl-carousel .owl-stage-outer {
    padding: 4px 0 8px;
}

/* Home category shortcuts — Myntra circles */
.imbms-cat-shortcuts {
    background: var(--imbms-bg);
    margin-bottom: 0;
    padding: 8px 0 16px;
}

.imbms-cat-shortcuts-inner {
    display: flex;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.imbms-cat-shortcuts-inner::-webkit-scrollbar {
    display: none;
}

.imbms-cat-shortcut {
    align-items: center;
    color: var(--imbms-text);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    max-width: 72px;
    text-align: center;
    text-decoration: none;
    width: 72px;
}

.imbms-cat-shortcut:hover {
    color: var(--imbms-pink);
    text-decoration: none;
}

.imbms-cat-shortcut-icon {
    align-items: center;
    background: linear-gradient(135deg, #fff0f3 0%, #f5f0ff 100%);
    border: 2px solid var(--imbms-border);
    border-radius: 50%;
    display: flex;
    height: 56px;
    justify-content: center;
    overflow: hidden;
    width: 56px;
}

.imbms-cat-shortcut-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.imbms-cat-shortcut span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

/* Hero / banners */
.slider-banner-area {
    background: var(--imbms-white);
    margin-bottom: 8px;
    padding: 12px 0;
}

.single-banner {
    border-radius: 4px;
    overflow: hidden;
}

.home-banner-btn {
    background: var(--imbms-pink) !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-banner-btn:hover {
    background: var(--imbms-pink-dark) !important;
}

.slider-content h1 a,
.slider-content h2 a,
.slider-content h4 a {
    color: #fff !important;
}

.slider-btn a {
    background: var(--imbms-pink) !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slider-content p {
    color: var(--imbms-pink) !important;
}

/* Brands row */
.best-selling-product.popular-brand {
    background: var(--imbms-white);
    margin-bottom: 8px;
    padding-top: 20px !important;
}

.best-selling-wrap .col-md-2 {
    margin-bottom: 12px;
}

.best-selling-wrap img {
    border: 1px solid var(--imbms-border);
    border-radius: 4px;
    padding: 8px;
}

/* Exclusive offer */
.new-year-offer-area {
    background: var(--imbms-white);
    margin-bottom: 8px;
}

.new-year-offer-wrap {
    border-radius: 4px;
    overflow: hidden;
}

/* Mobile bottom app nav — Myntra style */
.imbms-bottom-nav {
    background: var(--imbms-white);
    border-top: 1px solid var(--imbms-border);
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(40, 44, 63, 0.08);
    display: none;
    left: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    position: fixed;
    right: 0;
    z-index: 10000;
}

.imbms-bottom-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.imbms-bottom-nav li {
    flex: 1;
}

.imbms-bottom-nav a {
    align-items: center;
    color: var(--imbms-text-muted);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    padding: 8px 4px 6px;
    text-decoration: none;
    transition: color 0.15s;
}

.imbms-bottom-nav a i {
    font-size: 20px;
    line-height: 1;
}

.imbms-bottom-nav a.is-active,
.imbms-bottom-nav a:hover {
    color: var(--imbms-pink);
}

.imbms-bottom-nav .nav-badge {
    background: var(--imbms-pink);
    border-radius: 8px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    min-width: 14px;
    padding: 0 4px;
    position: absolute;
    right: calc(50% - 18px);
    text-align: center;
    top: 2px;
}

.imbms-bottom-nav li {
    position: relative;
}

/* Legacy call/whatsapp strip — hidden; floating wtsapp2 is used instead */
.mobile-bottom {
    display: none !important;
}

/* WhatsApp float — see imbms-home-fix.css */

/* Footer polish */
.footer-area {
    background: var(--imbms-white) !important;
    margin-top: 8px;
}

.footer-bottom.gray-bg-2 {
    background: var(--imbms-bg) !important;
}

.social-icon li a:hover,
.footer-content li a:hover,
.footer-contact li a:hover {
    color: var(--imbms-pink) !important;
}

/* Product list page grid */
.product-list .product-wrapper {
    display: block;
    margin-bottom: 16px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .imbms-cat-shortcut {
        max-width: 80px;
        width: 80px;
    }

    .imbms-cat-shortcut-icon {
        height: 64px;
        width: 64px;
    }

    .imbms-cat-shortcut span {
        font-size: 12px;
    }

    p.section-title.section-bg-white {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .imbms-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }

    body.has-contact-bar {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }

    .imbms-bottom-nav,
    .imbms-bottom-nav.has-contact-bar {
        bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .slider-banner-area .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product-wrapper {
        margin: 0 2px;
    }

    p.section-title.section-bg-white {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .imbms-cat-shortcuts-inner {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .imbms-cat-shortcut {
        max-width: 90px;
        width: 90px;
    }

    .imbms-cat-shortcut-icon {
        height: 72px;
        width: 72px;
    }

    .imbms-cat-shortcut span {
        font-size: 12px;
    }
}
