/* Brand colours, matching the approved wireframe palette. */
:root {
    --indigo-deep: #131B3F;
    --indigo-mid: #202A5E;
    --teal: #2A9D8F;
    --teal-light: #3FC1B0;
    --cream: #FAFAF8;
    --ink: #1A1A1A;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.footer-heading {
    font-family: inherit;
    font-weight: 700;
}

/* 3D logo */
.brand-monogram {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--teal-light), var(--teal) 60%, #0F4A42);
    color: #2b1e08;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #0B3A34;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.navbar-afromart {
    background: var(--ink);
}

.navbar-afromart {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Global button lift style. Applies to every Bootstrap button on the site, not just
   one, so Add to Basket, Subscribe, Filter, and category pills all
   share the same feel. */
.btn {
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: perspective(700px) rotateX(3deg) translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Button  */

.btn-teal {
    background: var(--teal);
    color: var(--ink);
    border: none;
    font-weight: 600;
}

.btn-teal:hover {
    background: var(--teal-light);
    color: var(--ink);
}

/* Navs */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 20;
    padding: 6px 0;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--ink);
    padding: 9px 16px;
    font-size: 0.85rem;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    background: var(--cream);
    color: var(--teal);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Ensures real photography has proper room to breathe
   once sourced. */

.hero-caption {
    max-width: 700px;
}

.hero-cta {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 576px) {
    .hero-cta {
        width: auto;
        max-width: none;
    }
}

.hero-slide-bg {
    min-height: 720px;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* mobile override */
@media (max-width: 768px) {
    .hero-slide-bg {
        min-height: 520px;
    }
}

/* Real photos need a dark overlay for the headline text to stay
   readable*/
.hero-slide-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(19, 27, 63, 0.55), rgba(19, 27, 63, 0.8));
    pointer-events: none;
}

.hero-slide-bg .container {
    position: relative;
    z-index: 1;
}
/* Hero sliders */
.hero-slide-1 { background-image: url("/static/img/hero/homepage-slider-section01.57f42a010536.jpg"); }
.hero-slide-2 { background-image: url("/static/img/hero/homepage-slider-hero-section-image-2.e18178924194.jpg"); }
.hero-slide-3 { background-image: url("/static/img/hero/homepage-slider-hero-section-image-3.494ded919677.jpg"); }

/* Delivery hero */
.delivery-band {
    background: var(--teal);
    color: var(--ink);
    text-align: center;
    padding: 22px 0;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Mini-card drop down */
.mini-cart-dropdown {
    display: none;
    position: absolute;
    top: 140%;
    right: 0;
    width: 320px;
    background: #fff;
    color: var(--ink);
    border-top: 3px solid var(--teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 18px;
    z-index: 1060;
}

.mini-cart-dropdown.show {
    display: block;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #999;
}

.mini-cart-items {
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.mini-cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mini-cart-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #f5f2ea;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .mini-cart-dropdown {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Deliberately its own bright colour, to grab attention on its own, not
   blend into the rest of the page. */
.free-delivery-banner {
    background: #F5C518;
    color: #1a1a1a;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 3px;
}

.free-delivery-banner.qualified {
    background: #d9f2e6;
    color: #1a6b45;
}

/* Category quick-filter pills */
.category-pill {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ddd3c4;
    border-radius: 5px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.category-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.category-pill.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Category rail */
.category-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.category-rail::-webkit-scrollbar {
    display: none;
}

.category-rail-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    border: none;
    z-index: 2;
}

.rail-arrow-left { left: -16px; }
.rail-arrow-right { right: -16px; }

@media (max-width: 768px) {
    .category-rail-card { flex: 0 0 200px; }
    .rail-arrow { display: none; }
    .category-rail {
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
    }
}

/* thumb-nav */
.thumb-nav {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #F3EFE6;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumb-nav.active {
    opacity: 1;
    border-color: var(--teal);
}

/* Wishlist */
.wishlist-heart-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: color 0.15s ease, transform 0.15s ease;
}

.wishlist-heart-btn:hover {
    transform: scale(1.08);
}

.wishlist-heart-btn.active {
    color: #e0455f;
}
/* page arrow scrow */
.scroll-top-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    display: none;
}

.scroll-top-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--indigo-deep);
    color: #fff;
    z-index: 1070;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.25);
}

.cookie-consent-banner[hidden] {
    display: none;
}
/* Newsletter */
.newsletter-band {
    background: linear-gradient(rgba(26, 26, 26, 0.72), rgba(26, 26, 26, 0.72)), linear-gradient(135deg, var(--indigo-mid), var(--indigo-deep));
    padding: 60px 0;
}

/* PRODUCT PHOTO: shared treatment for every real product or category photo, so
   nothing is cropped.*/
.product-photo {
    object-fit: contain;
    background: #F3EFE6;
}

.product-main-image {
    height: 420px;
}

@media (max-width: 576px) {
    .product-main-image {
        height: 280px;
    }
}

.category-bar {
    background: var(--indigo-mid);
}

.category-bar a:hover {
    color: var(--teal-light) !important;
}

.footer-social-band {
    background: #241a2e;
    padding: 26px 0;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.4rem;
}

.footer-social-icons a {
    color: #fff;
}

.footer-social-icons a:hover {
    color: var(--teal-light);
}

.footer-legal {
    background: var(--ink);
    color: #9f95ac;
    padding-bottom: 20px;
}

.footer-link {
    color: #9f95ac;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--teal-light);
}

.footer-bottom {
    border-top: 1px solid #322842;
    font-size: 0.78rem;
    color: #655c72;
}


/* Mobile text sizes */
@media (max-width: 576px) {
    .newsletter-form {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero-caption h1.display-4 {
        font-size: 1.85rem;
    }
    .hero-caption .lead {
        font-size: 0.95rem;
    }
    .delivery-band {
        font-size: 0.85rem;
        padding: 14px 0;
        letter-spacing: 0.03em;
    }
    h2 {
        font-size: 1.5rem;
    }
    .category-rail-card {
        flex: 0 0 160px;
    }
}