:root {
    --masoko-green: #28a745; /* Safaricom green */
    --masoko-dark: #1a1a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-x: hidden;
}


.container{
    margin: 0 40px 0 40px;
    width: 100%;
}


/* Color Helpers */
.bg-masoko { background-color: var(--masoko-green); }
.btn-masoko {
    background-color: var(--masoko-green);
    color: white;
    border-radius: 0 4px 4px 0;
}
.btn-masoko:hover {
    background-color: #218838;
    color: white;
}

/* Header Icons */
.header-icons div {
    font-size: 14px;
    cursor: pointer;
    color: #333;
}
.header-icons i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 5px;
}

/* Navigation */
.nav-categories {
    font-size: 14px;
}
.all-cats {
    cursor: pointer;
    min-width: 250px;
}
.sub-nav a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    white-space: nowrap;
    transition: 0.3s;
}
.sub-nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-banner {
    min-height: 400px;
    background-color: #28a745 !important; /* Fallback */
    border-radius: 12px;
}

/* Styling the dots (Indicators) */
.carousel-indicators [button] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 0 5px;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #fff;
}

/* Ensure the hero banner maintains its shape and color */
.hero-banner {
    min-height: 420px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: transform 0.6s ease-in-out;
}

/* Customizing Arrows */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* Sidebar Styling */
.offcanvas {
    width: 300px !important; /* Matches the narrow look in image */
}

.menu-section-header {
    background-color: #f8f9fa;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--masoko-green); /* The Safaricom Green */
    letter-spacing: 0.5px;
}

.side-menu .list-group-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #444;
    border-left: none;
    border-right: none;
    border-color: #eee;
}

.side-menu .list-group-item:hover {
    background-color: #f1f1f1;
    color: var(--masoko-green);
}

.side-menu .bi-chevron-right {
    font-size: 0.7rem;
    color: #999;
}

/* Optional: Add a thicker border between major sections */
.border-bottom-bold {
    border-bottom: 2px solid #eee !important;
}



/* shop by categories  */
/* Category Card Styling */
.category-img-wrapper {
    aspect-ratio: 1 / 1; /* Keeps images perfectly square */
    overflow: hidden;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image fills the square without stretching */
}

.category-card:hover .category-img-wrapper {
    transform: translateY(-5px); /* Subtle lift effect on hover */
}

/* Hide Scrollbar for cleaner look but keep scrolling functional */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation Arrow Styling */
.category-arrows button {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    color: #333;
}

.category-arrows button i {
    font-size: 0.8rem;
}

.category-arrows button:hover {
    background-color: var(--masoko-green);
    border-color: var(--masoko-green);
    color: white;
}


/* Card & Image Styling */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-img {
    height: 200px;
    object-fit: contain;
}

/* Floating Cart Button */
.btn-add-cart {
    bottom: 0px;
    right: 15px;
    border-radius: 8px;
    background: white;
    padding: 8px 12px;
}

/* Out of Stock Logic */
.oos-card {
    opacity: 0.8;
}
.oos-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
}



/* Typography */
.card-title {
    font-size: 0.9rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncate title after 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}