/* ---------- Brand ---------- */

:root {
    --kbk-navy: #153856;
    --kbk-navy-dark: #0f2a41;
    --kbk-green: #99B443;
    --kbk-green-dark: #86a036;
    --bs-primary: #153856;
    --bs-primary-rgb: 21, 56, 86;
    --bs-link-color: #153856;
    --bs-link-hover-color: #0f2a41;
}

.btn-primary {
    --bs-btn-bg: var(--kbk-navy);
    --bs-btn-border-color: var(--kbk-navy);
    --bs-btn-hover-bg: var(--kbk-navy-dark);
    --bs-btn-hover-border-color: var(--kbk-navy-dark);
    --bs-btn-active-bg: var(--kbk-navy-dark);
    --bs-btn-active-border-color: var(--kbk-navy-dark);
    --bs-btn-disabled-bg: var(--kbk-navy);
    --bs-btn-disabled-border-color: var(--kbk-navy);
}

.btn-outline-primary {
    --bs-btn-color: var(--kbk-navy);
    --bs-btn-border-color: var(--kbk-navy);
    --bs-btn-hover-bg: var(--kbk-navy);
    --bs-btn-hover-border-color: var(--kbk-navy);
    --bs-btn-active-bg: var(--kbk-navy);
    --bs-btn-active-border-color: var(--kbk-navy);
}

/* Green accent button, used for the search submit and calls to action. */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--kbk-green);
    --bs-btn-border-color: var(--kbk-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--kbk-green-dark);
    --bs-btn-hover-border-color: var(--kbk-green-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--kbk-green-dark);
}

.text-brand-green { color: var(--kbk-green) !important; }
.bg-brand-navy { background-color: var(--kbk-navy) !important; }

/* ---------- Header / footer ---------- */

.announcement-bar {
    background-color: var(--kbk-green);
    color: #12300f;
    font-weight: 500;
}

.site-navbar {
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.site-navbar .nav-link {
    color: var(--kbk-navy);
    font-weight: 500;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--kbk-green-dark);
}

.site-logo {
    height: 42px;
    width: auto;
}

.site-footer {
    background-color: var(--kbk-navy);
}

.footer-logo {
    height: 46px;
    width: auto;
    /* The logo's navy text needs lifting on the navy footer. */
    filter: brightness(0) invert(1);
    opacity: .95;
}

.footer-link {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    line-height: 1.9;
}

.footer-link:hover {
    color: var(--kbk-green);
}

@media (max-width: 575.98px) {
    .site-logo { height: 34px; }
}

.product-card img.card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card {
    transition: box-shadow .15s ease-in-out;
}

.product-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.product-card .card-title {
    font-size: .95rem;
    line-height: 1.3;
    /* Keep every tile the same height regardless of title length. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.wishlist-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    line-height: 1;
}

.wishlist-btn:hover {
    color: #dc3545;
}

/* Marketplace chips in each brand's colour. */
.marketplace-chip {
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    line-height: 1.5;
    white-space: nowrap;
}

.marketplace-chip:hover {
    opacity: .85;
    color: #fff;
}

.chip-amazon { background: #FF9900; color: #131921; }
.chip-amazon:hover { color: #131921; }
.chip-flipkart { background: #2874F0; }
.chip-meesho { background: #F43397; }

.category-tile {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.category-tile:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
}

/* ---------- Order progress tracker ---------- */

.order-steps::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--bs-border-color);
    z-index: 0;
}

.step-dot {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bs-border-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot.done {
    background: var(--kbk-green);
    border-color: var(--kbk-green);
}

/* ---------- Hero carousel ---------- */

.hero-slide {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 380px;
    padding: 2.5rem 3rem;
}

/* Four rotating colour themes so consecutive slides look distinct. */
.hero-theme-0 { background: linear-gradient(120deg, #fde8ef 0%, #fcd5e3 55%, #f7bcd2 100%); }
.hero-theme-1 { background: linear-gradient(120deg, #e8f0fe 0%, #d6e4fd 55%, #bcd2f7 100%); }
.hero-theme-2 { background: linear-gradient(120deg, #fdf4e3 0%, #fbe9c8 55%, #f6dca3 100%); }
.hero-theme-3 { background: linear-gradient(120deg, #e9f7ef 0%, #d3f0e0 55%, #b4e5cb 100%); }

.hero-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
    margin-bottom: .5rem;
}

.hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: .6rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, .68);
    max-width: 34rem;
    margin-bottom: 1.25rem;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product photos are small squares — show them on a white card instead of stretching. */
.hero-media img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12);
}

.hero-indicators {
    margin-bottom: .75rem;
}

.hero-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, .3);
    border: 0;
}

.hero-indicators .active {
    background-color: rgba(0, 0, 0, .75);
}

.hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1a1a1a;
    font-size: 1.25rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 6%;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.25rem;
        min-height: 0;
    }

    .hero-slide .hero-media {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-media img {
        max-width: 190px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide .d-flex {
        justify-content: center;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}
