/*
 Theme Name:   Groceria Child
 Description:  Custom overrides for the Grocery Store.
 Author:       Felix Sihitshuwam
 Template:     groceria
 Version:      1.0.0
*/

/* Custom CSS for grocery categories goes here */

@import url("sm.css");
@import url("lg.css");

.min-h-50{
    min-height: 50px;
}

/* Container Setup */
.store-branches {
    list-style: none; /* Remove default numbers */
    counter-reset: branch-counter;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
}

/* Individual Branch Card */
.store-branches li {
    counter-increment: branch-counter;
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 25px 25px 60px; /* Space for the number */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-branches li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #15249e; /* Groceria Green */
}

/* Styled Number (Using Counters) */
.store-branches li::before {
    content: counter(branch-counter);
    position: absolute;
    left: 15px;
    top: 22px;
    width: 32px;
    height: 32px;
    background: #15249e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Typography Inside Card */
.store-branches li strong {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.store-branches li span {
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
}

/* Status Badge */
.store-branches .status {
    display: inline-block;
    background: #e8f5e9;
    color: #15249e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Added for category filtering */

.custom-product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-product-categories .cat-item {
    margin-bottom: 5px;
    padding-left: 20px;
}

.custom-product-categories .cat-item ul {
    padding-left: 20px;
    margin-top: 3px;
}

.custom-product-categories .cat-item a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* round image */
.round {
    clip-path: circle(50% at 50% 50%);
}
/* sticky header */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--wp--preset--color--white);
}
/* 1. The Full-Width "Breakout" Logic */
.full-width-breakout {
    width: 82vw;
    position: relative;
    left: 1%;
    right: 1%;
    margin: auto;
}

.marquee-container {
    overflow: hidden;
    user-select: none;
    background: transparent;
    padding: 5px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-linear 20s linear infinite; /* Slightly slower for better feel */
}

/* 2. Desktop Image Size */
.marquee-content img {
    height: 21px;
    width: auto;
    margin: 0 20px;
    flex-shrink: 0;
}

/* 3. Mobile Adjustments (Phones) */
@media (max-width: 768px) {
    .marquee-content img {
        height: 21px; /* Smaller images on mobile */
        margin: 0 10px; /* Tighter spacing on mobile */
    }

    .marquee-content {
        animation-duration: 25s; /* Faster scroll so it doesn't feel sluggish on small screens */
    }
    .marquee-container {
        padding: 0;
    }
    .full-width-breakout{
        width: 80vw;
    }
}

@keyframes scroll-linear {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-partners {
    margin-top: 3rem; /* default for small screens */
    padding: 0 1.2rem;
}

.text-header {
    max-width: 90%;
}

@media only screen and (min-width: 993px) {
    .brand-partners {
        margin-top: 20px;
        padding: 0 3.75rem;
    }
    .lg-mt-10{
        margin: 4rem 0;
    }
    .brand-partners-heading{
        padding-block: calc(var(--spacing) * 8);
    }
    .text-header{
        margin-top: 12px;
    }
}

/* categories banner on home page */
@media (max-width: 767px) {
    .is-layout-flex .special-offer {
        margin-top: var(--wp--preset--spacing--8);
    }
}

/* product cat */
/* Container look */
.custom-product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-product-categories .cat-item {
    margin: 0;
    padding: 0;
}

/* Make the summary look clickable */
.custom-product-categories details > summary {
    cursor: pointer;
    list-style: none; /* removes marker in Firefox when supported */
    padding: 0.4rem 0;
    font-weight: 600;
}

/* Hide default triangle marker (Chrome/Safari) */
.custom-product-categories details > summary::-webkit-details-marker {
    display: none;
}

/* Add your own indicator */
.custom-product-categories details > summary::after {
    content: "▸";
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 200ms ease;
}

.custom-product-categories details[open] > summary::after {
    transform: rotate(90deg);
}

/* --- Animation part --- */
/* Wrap/animate the list using CSS grid rows */
.custom-product-categories details > .cat-children {
    margin: 0;
    padding: 0.25rem 0 0.5rem 1rem;
    list-style: none;

    display: grid;
    grid-template-rows: 0fr;      /* collapsed */
    transition: grid-template-rows 220ms ease;
}

.custom-product-categories details[open] > .cat-children {
    grid-template-rows: 1fr;      /* expanded */
}

/* The grid trick needs an inner wrapper to clip content cleanly.
   Since your markup is <ul class="cat-children"><li>...</li></ul>,
   we can clip the UL by adding overflow hidden. */
.custom-product-c {}

/* title */

.page-id-412 .entry-title {
    display: none;
}

.remove-padding.haas-global-padding{
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    width: 100%
}

.max-w{
    max-width: 47%;
    margin: auto;
}

@media only screen and (min-width: 993px) {
    .max-w{
        max-width: 23%;
    }
}