/*
 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?q=1.5");
@import url("lg.css");

.min-h-50 {
    min-height: 50px;
}

/* Added for category filtering */

.cat-item-parent {
    border-bottom: 2px solid #cfc8d8;
}

.cat-children li:not(.active-cat) {
    padding: 5px 0;
}

.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;
}

/* 3. Mobile Adjustments (Phones) */
@media (max-width: 768px) {

    .full-width-breakout {
        width: 80vw;
    }
}

.text-header {
    max-width: 90%;
    background-color: #ffffff94;
}

@media only screen and (min-width: 993px) {
    .brand-partners {
        margin-top: 20px;
        padding: 0 1.35rem;
        background-color: transparent;
    }

    .lg-mt-10 {
        margin: 4rem 0;
    }

    .brand-partners-heading {
        padding-block: calc(var(--spacing) * 8);
    }

    .text-header {
        margin-top: 12px;
        background-color: transparent;
    }
}

/* md and up (≥ 768px) */
@media (min-width: 768px) {
    .hero-text {
        display: none
    }
}

/* 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: 8px 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;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-parent-title > div > .categoryIcon {
    height: 40px;
}

.cat-parent-title > div {
    display: flex;
    align-items: center;
    gap: 8px;
    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: "";
    font-size: 1rem;
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 200ms ease;

    background-color: currentColor;

    width: 1.1em;
    height: 1.1em;
    mask: url("/wp-content/themes/groceria-child/assets/images/icons/chevron-right.svg") no-repeat center / contain;
    -webkit-mask: url("/wp-content/themes/groceria-child/assets/images/icons/chevron-right.svg") no-repeat center / contain;
}

.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,
.page-id-376 .entry-title {
    display: none;
}

.max-w {
    max-width: 47%;
    margin: auto;
}

@media only screen and (min-width: 993px) {
    .max-w {
        max-width: 23%;
    }
}

/* valentine images */
.wp-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Grid items */
.wp-image-grid .grid-item {
    height: 180px; /* fixed height */
    overflow: hidden;
    border-radius: 8px; /* optional */
    background: #f4f4f4;
}

/* Images */
.wp-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop nicely */
    display: block;
}

/* Medium screens (tablets) */
@media (min-width: 640px) {
    .wp-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Larger tablets / small laptops */
@media (min-width: 768px) {
    .wp-image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktops */
@media (min-width: 1024px) {
    .wp-image-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large desktops */
@media (min-width: 1280px) {
    .wp-image-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* cart quantity input */
.wc-block-cart .wc-block-components-main tbody .wc-block-components-quantity-selector {
    padding-inline: 0;
}

/* pre-order */
/* --- 1. Accordion Container --- */
.preorder-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.preorder-section {
    border-bottom: 1px solid #e0e0e0;
}

.preorder-section:last-child {
    border-bottom: none;
}

/* --- 2. The Toggle Button & Icons --- */
.preorder-toggle {
    width: 100%;
    padding: 18px 25px;
    background: #ffffff;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

/* The +/- Indicators */
.preorder-toggle::after {
    content: '\002B'; /* Plus symbol */
    font-size: 1.5rem;
    font-weight: 400;
    color: #666;
    margin-left: 15px;
    display: inline-block;
}

.preorder-section.active .preorder-toggle::after {
    content: '\2212'; /* Minus symbol */
}

.preorder-section.active .preorder-toggle {
    background: #f9f9f9;
}

/* --- 3. Content Area --- */
.preorder-content {
    display: none;
    padding: 25px;
    background: #fff;
}

.preorder-section.active .preorder-content {
    display: block;
}

/* --- 4. Product Card (The Stack) --- */
.preorder-content ul.products li.product {
    border: 2px solid #e3f2fd !important;
    padding: 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centers everything in the stack */
    text-align: center;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.preorder-content ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* --- 5. Price & Button Row --- */
/* This container ensures price and button are treated as a pair */
.preorder-content ul.products li.product .price {
    margin: auto 0 10px 0 !important; /* Pushes to bottom if title is short */
    display: block !important;
    width: 100%;
    color: #333;
}

.preorder-content ul.products li.product .button {
    margin: 0 !important;
    width: 100%;
    display: block !important;
    padding: 10px !important;
    font-size: 0.9rem !important;
}

/* Desktop: Side-by-Side Price & Button */
@media (min-width: 768px) {
    .preorder-content ul.products li.product .price {
        display: inline-block !important;
        width: auto !important;
        margin: auto 10px 0 0 !important;
    }

    .preorder-content ul.products li.product .button {
        display: inline-block !important;
        width: auto !important;
        padding: 10px 20px !important;
    }
}

@media (max-width: 768px) {
    .cover-stack {
        background-color: #fdfdfd7d;
    }
}

.preorder-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f59e0b; /* amber */
    color: #000;
    border-radius: 4px;
    vertical-align: middle;
}

/* Accordion */

.wp-block-accordion-heading__toggle {
    padding: 2px 0;
}

.page-id-17535 .wc-block-product {
    border: 1px solid #dce1f5;
    border-radius: 15px;
    padding-bottom: 10px;
}

.page-id-17535 .wp-block-woocommerce-product-image {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.amount {
    text-align: center;
}

.page-id-17478 {
    background-color: #e6eff8;
}

/* custom category tree */
.active-cat {
    background-color: #15249e;
    /* x y */
    padding: 10px 15px;
}

.active-cat > a {
    color: #fff;
}

.wc-block-components-product-details__availability {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f59e0b;
    color: #000;
    border-radius: 4px;
}

.hero-text-2-1 {
    font-size: calc(1.1 * 1.2rem) !important;;
}

.about-us {
    padding-top: 30px;
}

.about-us .r1 {
    display: grid;
}

.about-us .r1 .title {
    font-size: 2.5rem;
}

.about-us .r1 img {
    width: 100%;
    border-radius: 5px;
}

.text-justify {
    text-align: justify;
}

.about-us .desc {
    display: grid;
    margin: 20px 0;
    row-gap: 20px;
}

.desc-card {
    border-radius: 12px; /* slightly rounded */
    padding: 20px;

    /* subtle separation from white background */
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* soft layered shadow for lift */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);

    /* optional for smoother rendering */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.desc-card:hover,
.mcbi:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.desc-card h3 {
    margin-bottom: 10px;
}

.wswu {
    display: flex;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 20px;
}

.wswu img {
    width: 10%;
}

.mcb {
    display: inline-flex;
    column-gap: 20px;
    width: 410px;
    padding-right: 10px;
}

.mcb-wrapper, .mini-nav-wrapper {
    overflow-x: auto;
    /* Firefox */
    scrollbar-width: none;
    /* IE and old Edge */
    -ms-overflow-style: none;
}

.mcb-wrapper::-webkit-scrollbar,
.mini-nav-wrapper::-webkit-scrollbar {
    /* Chrome, Safari, Opera */
    display: none;
}

.mcbi {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid #e9e6ed;
    border-radius: 15px;
    padding: 0 20px 20px;
    width: 180px;
}

.mcbi p {
    font-size: 0.8rem;
    line-height: normal;
    color: #6b6b6b;
}

.mcbi h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcbi img {
    width: 90px;
    padding: 15px 15px 0;
}

.wc-block-product.product {
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.v3:not(.related) .wc-block-product.product {
    min-width: 0;
}

.features-grid {
    padding: 20px 0;
    border: thin solid #e0e0e0;
    background-color: aliceblue;
    border-radius: 12px;
}

.woocommerce-Price-amount.amount {
    text-align: left;
}

.pt,
.woocommerce ul.product-style.v3 li.product h2 a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woocommerce ul.product-style.v3 li.product h2 a {
    display: block;
}

.product h2 {
    width: 100%;

    display: inline-block; /* or block */
    max-width: 200px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wp-block-woocommerce-product-collection {
    margin-block-start: 0;
}

.product-style.v3 button.add_to_cart_button {
    border-radius: 50%;
}

.about-us .top-bar {
    background-color: #15249e;
    padding: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.about-us .atb1 {
    background-color: rgba(255, 255, 255, 0.35);
    padding: 4px 15px;
    border-radius: 15px;
    color: white;
    margin-top: 50px;
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.7rem;
}

.atb1-1 {
    display: flex;
    align-items: center;
    justify-content: start;
}

.atb1-1 img {
    width: 18px;
    margin-right: 5px;
}

.atb2 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    line-height: normal;
    margin-top: 15px;
}

.atb2 span {
    /*color: #fb9a96;*/
    color: #d2e2b3;
}

.about-us .mission {
    border-radius: 15px;
    background-color: antiquewhite;
    padding: 20px;
    margin-top: 20px;
}

.mission p {
    font-size: 0.8rem;
    color: red;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-us .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    margin-top: 20px;
}

.stats div {
    background-color: antiquewhite;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.stats h5 {
    font-weight: 800;
    font-size: 1.5rem;
}

.stats p {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
}

.mt-25 {
    margin-top: 25px;
}

.mt-15 {
    margin-top: 15px;
}

.px-10 {
    padding: 0 10px;
}

.stand-card {
    display: grid;
    grid-template-columns: 0.8fr 3fr;
    justify-content: start;
    align-items: center;
    background-color: antiquewhite;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.stand-card .ico {
    padding: 5px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stand-card p {
    font-size: 0.8rem;
    line-height: normal;
}

.stand-card h5 {
    font-size: 1rem;
    padding-bottom: 5px;
    line-height: normal;
}

.contact-card {
    background-color: #15249e;
    padding: 20px;
    border-radius: 25px;
    color: white;
}

.contact-card h5 {
    font-size: 1.5rem;
}

.contact-card .sub {
    color: #e1e1e1;
    line-height: normal;
    font-size: 0.9rem;
}

.card-item {
    display: grid;
    grid-template-columns: 0.8fr 3fr;
    justify-content: start;
    align-items: center;
    margin-bottom: 20px;
}

.card-item .ico {
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-phone {
    width: 18px;
    height: 18px;
    fill: #fff; /* change this anytime */
    vertical-align: middle;
}

.icon-mail,
.icon-location {
    width: 18px;
    height: 18px;
    fill: currentColor; /* important: inherits text color */
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.contact-button {
    background-color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.card-item .d1 {
    font-size: 0.9rem;
    color: white;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
}

.card-item .d2 {
    font-size: 0.7rem;
    color: #c2c1c1;
}

.v31 a.added_to_cart.wc_forward {
    padding-top: 0;
}

.browse {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browse a {
    color: red;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 7px;
}

.banner {
    background: linear-gradient(to right, #faebd7, #fcf6ef);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-top: 30px;
}

.banner p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.banner h4 {
    margin-top: 5px;
    font-weight: 800;
    line-height: normal;
    font-size: larger;
}

.banner .pill {
    background-color: #ffab00;
    color: black;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 10px 20px;
    white-space: nowrap;
}

.mini-feat {
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    padding: 20px;
    background-color: #fcf6ef;
}

.mini-feat > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mini-feat > div > div {
    padding: 10px;
    border-radius: 10px;
    background-color: antiquewhite;
    display: flex;
    align-items: center;
}

.mini-feat p {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: normal;
    padding-top: 5px;
}

.mini-feat img {
    width: 30px;
}

.mini-nav {
    display: flex;
    column-gap: 20px;
    align-items: center;
    width: 1024px;
}

.mini-nav .cat-item {
    white-space: nowrap;
    overflow: hidden;
    display: flex;

    align-items: center;
    border-radius: 20px;
    /* subtle separation from white background */
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    background-color: #faebd73d;

    /* soft layered shadow for lift */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);

    /* optional for smoother rendering */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 8px 12px;
}

.mini-nav .cat-item img {
    width: 24px;
    margin-right: 5px;
}

.mini-nav .cat-item.active {
    background-color: #15249e;
}

.mini-nav .cat-item.active a {
    color: white;
}

#location {
    scroll-margin-top: 70px;
}

.wc-block-components-product-price.wc-block-grid__product-price {
    justify-content: left;
    flex-direction: row;
}

.sm-search.fixed {
    position: fixed;
    top: 40px;
    padding: 5px 16px;
    left: 0;
    right: 0;
    z-index: 998;
}

.woocommerce ul.product-style.v3 li.product *:focus,
.woocommerce ul.product-style.v3 li.product *:focus-visible {
    outline: none;
}

@media (min-width: 1024px) {
    .mcb {
        grid-template-columns: repeat(4, 1fr);
    }

    .stand-for, .contact-card {
        max-width: 60%;
        margin: 0 auto;
    }

    .center-on-lg {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    /*    md and above */
    .sm-search {
        display: none;
    }

    .mcb {
        width: 1200px;
        margin: 0 auto;
    }

    .hero-group{
        padding: 0 3.75rem;
    }
}