/* ============================================================
   PLUGY — SHARED LAYOUT CUSTOM CSS
   Existing brand colors still come from style.php / database.
   ============================================================ */

/* ============================================================
   SECTION 01 — STICKY NAVBAR
   Sticky positioning is already defined in front.blade.php.
   Do not add position: sticky to the notice.
   ============================================================ */

/* ============================================================
   SECTION 02 — ZENCAR ANNOUNCEMENT BELOW NAVBAR
   The colors are provided dynamically by top-notice.blade.php.
   ============================================================ */
.store-top-notice {
    background: #111827; /* Fallback when no admin color is set */
    color: #fff;
    text-align: center;
    padding: .65rem 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.store-top-notice span {
    display: inline-block;
    margin-inline: .5rem;
}

.store-directions {
    display: inline-block;
    background: #166534;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .25rem;
    margin-block: .75rem;
}

.store-location {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .store-top-notice { font-size: .875rem; }
    .store-top-notice span { display: block; }
}

/* ============================================================
   SECTION 03 — FOOTER
   Location icon and address link are implemented in Blade.
   ============================================================ */

/* ============================================================
   PLUGY — HOME / BROWSE BY CATEGORY
   Five desktop columns, two mobile columns; SEO-friendly links.
   ============================================================ */

.pg-category-section {
    background: #f9fafb;
    padding-block: 42px;
}

/* Keep section headings visible below the sticky navbar when previewing products. */
#categoryContent .category-section {
    scroll-margin-top: 115px;
}

.pg-category-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.2vw, 30px);
    margin-bottom: 28px;
}

.pg-category-heading-row h2 {
    color: #111827;
    font-size: clamp(22px, 2.35vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

.pg-category-heading-line {
    width: clamp(35px, 9vw, 125px);
    height: 2px;
    background: #16a34a;
    flex-shrink: 0;
}

.pg-category-grid {
    --pg-category-gap: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pg-category-gap);
    width: 100%;
    max-width: 1230px;
    margin-inline: auto;
    direction: inherit;
}

.pg-category-card {
    display: block;
    position: relative;
    min-width: 0;
    color: #111827;
    text-decoration: none;
    text-align: center;
    outline-offset: 4px;
    transition: transform .25s ease;
}

.pg-category-card:hover {
    transform: translateY(-4px);
}

.pg-category-card:focus-visible {
    outline: 3px solid #16a34a;
    border-radius: 16px;
}

.pg-category-card__media {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #003815;
    box-shadow: 0 7px 20px rgba(0, 48, 17, .11);
}

.pg-category-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.pg-category-card:hover .pg-category-card__media img {
    transform: scale(1.04);
}

.pg-category-card__label {
    display: block;
    padding-top: 11px;
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pg-category-card.is-active .pg-category-card__media {
    box-shadow: 0 0 0 2px #0c9230, 0 9px 24px rgba(0, 80, 30, .15);
}

/* Phone: two cards per row, fifth card centered; labels inside images. */
@media (max-width: 639.98px) {
    .pg-category-grid { --pg-category-gap: 12px; }
    .pg-category-heading-row { margin-bottom: 22px; }
    .pg-category-card { border-radius: 16px; overflow: hidden; }
    .pg-category-card__media { border-radius: 16px; }
    .pg-category-card__label {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        z-index: 1;
        margin: 0;
        padding: 20px 5px 9px;
        color: #fff;
        font-size: clamp(12px, 3.9vw, 17px);
        line-height: 1.3;
        background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
    }
    .pg-category-grid > .pg-category-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - var(--pg-category-gap)) / 2);
    }
}

/* Tablet: 3 columns. Desktop: exactly 5 columns for 5 categories. */
@media (min-width: 640px) and (max-width: 1023.98px) {
    .pg-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .pg-category-grid {
        --pg-category-gap: clamp(16px, 2.4vw, 34px);
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-category-card,
    .pg-category-card__media img { transition: none; }
}












/* ==========================================
   PLUGY — RESPONSIVE PRODUCTS GRID
========================================== */

.plugy-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plugy-products-grid > * {
    min-width: 0;
}

/* Product Card */
.plugy-products-grid .product-card {
    min-width: 0;
    width: 100%;
    height: 100%;
}

/* Product Images */
.plugy-products-grid .product-card img {
    max-width: 100%;
}

/* Tablet */
@media (min-width: 640px) {
    .plugy-products-grid {
        gap: 24px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .plugy-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .plugy-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
























/* ============================================================
   PLUGY — PRODUCT CARD: RESPONSIVE MOBILE FIX
   Add to the END of public/assets/front/css/plugy-custom.css
   Does not affect other site cards or desktop category images.
   ============================================================ */

.plugy-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
}

.plugy-product-image-wrap {
    width: 100%;
    flex-shrink: 0;
}

.plugy-product-image-link {
    width: 100%;
}

.plugy-product-image {
    display: block;
    width: 100%;
    height: auto;
}

.plugy-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/* Desktop: preserve horizontal title + price arrangement. */
.plugy-product-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.plugy-product-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.plugy-product-price {
    flex: 0 0 auto;
    text-align: center;
}

.plugy-product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plugy-product-actions {
    margin-top: auto;
    min-width: 0;
}

.plugy-product-cart {
    min-width: 0;
}

/* Two narrow product cards in the same mobile row. */
@media (max-width: 639px) {
    .plugy-products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .plugy-product-card {
        border-radius: 12px;
    }

    .plugy-product-image-wrap {
        aspect-ratio: 1 / 1;
        padding-top: 0;
    }

    .plugy-product-image-link {
        height: 100%;
    }

    .plugy-product-image {
        height: 100%;
        object-fit: contain;
    }

    .plugy-product-body {
        padding: 10px;
    }

    .plugy-product-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        margin-bottom: 8px;
    }

    .plugy-product-title {
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
        min-height: calc(12px * 1.4 * 3);
    }

    .plugy-product-price {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        max-width: 100%;
        padding: 5px 9px;
        border-radius: 999px;
        font-size: 11px;
        line-height: 1.35;
        white-space: normal;
    }

    .plugy-product-description {
        font-size: 10px;
        line-height: 1.5;
        margin-bottom: 12px;
        min-height: 30px;
    }

    .plugy-product-actions {
        gap: 5px;
    }

    .plugy-product-cart {
        min-height: 38px;
        padding: 8px 4px;
        font-size: 10px;
        line-height: 1.25;
        gap: 5px;
        border-radius: 8px;
    }

    .plugy-product-cart i {
        font-size: 12px;
        flex-shrink: 0;
    }

    .plugy-product-cart span {
        min-width: 0;
    }

    .plugy-product-wishlist {
        flex: 0 0 auto;
        padding: 9px 7px;
        border-radius: 8px;
    }

    .plugy-product-wishlist i {
        font-size: 13px;
    }

    .plugy-product-discount {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }
}









/* ============================================================
   PLUGY EV — HOME FAQ (add at END of plugy-custom.css)
   Scope: .pg-faq only; no impact on other website sections
============================================================ */
.pg-faq {
    background: #ffffff;
    padding: clamp(44px, 6vw, 84px) 16px;
    color: #101820;
}
.pg-faq__container {
    max-width: 1120px;
    margin-inline: auto;
}
.pg-faq__heading {
    margin: 0 auto 30px;
    max-width: 750px;
    text-align: center;
}
.pg-faq__heading h2 {
    margin: 0 0 11px;
    color: #101820;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
}
.pg-faq__heading p {
    margin: 0;
    color: #596471;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.75;
}
.pg-faq__list {
    max-width: 940px;
    margin-inline: auto;
    display: grid;
    gap: 12px;
}
.pg-faq__item {
    border: 1px solid #dde3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(10, 25, 20, 0.025);
    overflow: hidden;
}
.pg-faq__item[open] {
    border-color: #b7dcc2;
    box-shadow: 0 5px 20px rgba(10, 70, 28, 0.055);
}
.pg-faq__question {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 16px 20px;
    color: #152019;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}
.pg-faq__question::-webkit-details-marker { display: none; }
.pg-faq__question::marker { content: ''; }
.pg-faq__question:focus-visible {
    outline: 3px solid #16a34a;
    outline-offset: -3px;
    border-radius: 10px;
}
.pg-faq__toggle {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d7fbe2;
    color: #07612b;
    font: 700 22px/1 Arial, sans-serif;
}
.pg-faq__toggle::before { content: '+'; }
.pg-faq__item[open] .pg-faq__toggle::before { content: '−'; }
.pg-faq__answer {
    padding: 0 20px 20px;
    color: #58636e;
    line-height: 1.85;
    font-size: 15px;
}
.pg-faq__answer p { margin: 0; }
.pg-faq__help {
    text-align: center;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
    margin: 25px auto 0;
}
.pg-faq__help a {
    color: #118339;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pg-faq__help a:hover { color: #065f2d; }
@media (max-width: 640px) {
    .pg-faq { padding-block: 44px; }
    .pg-faq__heading { margin-bottom: 22px; }
    .pg-faq__list { gap: 10px; }
    .pg-faq__question { padding: 14px; min-height: 54px; font-size: 14px; }
    .pg-faq__answer { padding: 0 14px 16px; font-size: 13px; }
    .pg-faq__toggle { width: 26px; height: 26px; flex-basis: 26px; }
}

/* Additional isolation against generic theme heading / details styles */
.pg-faq, .pg-faq * { box-sizing: border-box; }
.pg-faq details.pg-faq__item { display: block; }
.pg-faq details.pg-faq__item > summary.pg-faq__question { display: flex; }
.pg-faq__question > span:first-child { flex: 1 1 auto; min-width: 0; }
.pg-faq__toggle { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
    .pg-faq * { scroll-behavior: auto; }
}







