/*
|--------------------------------------------------------------------------
| Grocery Theme CSS
|--------------------------------------------------------------------------
| Static frontend styling only.
|--------------------------------------------------------------------------
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7faf5;
    color: #1f2d1f;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e4eee1;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: #1d6b2f;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #e8f7e8;
    border-radius: 50%;
    font-size: 22px;
}

.search-box {
    flex: 1;
    max-width: 520px;
    display: flex;
    border: 1px solid #cfe3ce;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 13px 18px;
    font-size: 15px;
}

.search-box button {
    border: 0;
    padding: 0 22px;
    background: #2f8f46;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link,
.register-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.login-link {
    color: #2f8f46;
    border: 1px solid #cfe3ce;
}

.register-link {
    background: #2f8f46;
    color: #ffffff;
}

/* Navigation */
.main-nav {
    background: #eef8ed;
    border-bottom: 1px solid #dcebd9;
}

.nav-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
}

.nav-link {
    white-space: nowrap;
    color: #375537;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
}

.nav-link.active,
.nav-link:hover {
    color: #2f8f46;
}

/* Hero */
.hero-section {
    padding: 76px 0;
    background:
        radial-gradient(circle at top left, #dff6d9 0, transparent 36%),
        linear-gradient(135deg, #f8fff6, #eef8ed);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 44px;
}

.hero-badge,
.section-tag,
.section-heading span {
    display: inline-block;
    background: #e1f5df;
    color: #247835;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    color: #173f20;
    margin-bottom: 18px;
}

.hero-content p {
    max-width: 620px;
    color: #526352;
    font-size: 17px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-btn {
    background: #2f8f46;
    color: #ffffff;
}

.secondary-btn {
    border: 1px solid #b9d8b8;
    color: #2f8f46;
    background: #ffffff;
}

.hero-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-points span {
    background: #ffffff;
    border: 1px solid #dcebd9;
    border-radius: 999px;
    padding: 8px 12px;
    color: #405540;
    font-weight: 700;
    font-size: 13px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(360px, 100%);
    min-height: 360px;
    background: #ffffff;
    border: 1px solid #dcebd9;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(31, 86, 39, 0.12);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px;
}

.hero-emoji {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #e8f7e8;
    display: grid;
    place-items: center;
    font-size: 78px;
    margin-bottom: 18px;
}

.hero-card h2 {
    color: #173f20;
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-card p {
    color: #526352;
}

/* Sections */
.section-block {
    padding: 72px 0;
}

.section-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: #173f20;
    margin-bottom: 10px;
}

.section-heading p {
    color: #637263;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e0ecde;
    border-radius: 22px;
    padding: 22px 16px;
    text-align: center;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(31, 86, 39, 0.08);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef8ed;
    margin: 0 auto 14px;
    font-size: 32px;
}

.category-card h3 {
    color: #173f20;
    margin-bottom: 6px;
}

.category-card p {
    color: #637263;
    font-size: 14px;
}

/* Deal */
.deal-section {
    padding: 28px 0;
}

.deal-box {
    background: linear-gradient(135deg, #2f8f46, #58b368);
    color: #ffffff;
    border-radius: 28px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.deal-box .section-tag {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.deal-box h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.deal-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
}

.deal-box .primary-btn {
    background: #ffffff;
    color: #2f8f46;
    flex-shrink: 0;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0ecde;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(31, 86, 39, 0.08);
}

.product-image {
    height: 170px;
    background: #eef8ed;
    display: grid;
    place-items: center;
}

.product-image span {
    font-size: 72px;
}

.product-info {
    padding: 18px;
}

.product-category {
    color: #2f8f46;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.product-title {
    color: #173f20;
    font-size: 20px;
    margin-bottom: 14px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-weight: 900;
    color: #173f20;
}

.cart-btn {
    border: 0;
    background: #2f8f46;
    color: #ffffff;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

/* Security */
.security-section {
    padding: 72px 0;
    background: #ffffff;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
}

.security-content h2 {
    color: #173f20;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
}

.security-content p {
    color: #637263;
}

.security-list {
    display: grid;
    gap: 14px;
}

.security-item {
    background: #f7faf5;
    border: 1px solid #e0ecde;
    border-radius: 18px;
    padding: 18px;
    font-weight: 800;
    color: #375537;
}

/* Footer */
.site-footer {
    background: #173f20;
    color: #ffffff;
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 42px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Error */
.theme-error {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
}

/* Responsive */
@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .hero-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .header-actions {
        width: 100%;
    }

    .login-link,
    .register-link {
        flex: 1;
        text-align: center;
    }

    .nav-inner {
        gap: 16px;
    }

    .hero-section {
        padding: 54px 0;
    }

    .category-grid,
    .product-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .deal-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card {
        min-height: 280px;
    }
}

/* Product real image support */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Category real image support */
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Hero real image support */
.hero-image-card {
    width: min(420px, 100%);
    height: 420px;
    background: #ffffff;
    border: 1px solid #dcebd9;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(31, 86, 39, 0.12);
    overflow: hidden;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fixed product image size for uploaded product photos */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    overflow: hidden;
    background: #eef8ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-real-image,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #eef8ed;
}

.product-emoji {
    font-size: 72px;
    line-height: 1;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Auto hero image support */
.auto-hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px;
}

/* Force hero image display */
.hero-image-card {
    width: min(420px, 100%);
    height: 420px;
    background: #ffffff;
    border: 1px solid #dcebd9;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(31, 86, 39, 0.12);
    overflow: hidden;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Grocery category and product image fix */
.category-card {
    overflow: hidden;
    text-align: center;
}

.category-card img,
.category-image img,
.category-thumb img,
.category-icon img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 18px !important;
}

.category-card > img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 18px !important;
}

.category-card h3,
.category-card h4 {
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
}

.product-card {
    overflow: hidden;
}

.product-image,
.product-img,
.product-thumb {
    overflow: hidden;
}

.product-image img,
.product-img img,
.product-thumb img,
.product-card img {
    max-width: 100%;
    object-fit: contain;
}

.product-card .product-image img,
.product-card .product-img img,
.product-card .product-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .category-card img,
    .category-image img,
    .category-thumb img,
    .category-icon img,
    .category-card > img {
        width: 64px !important;
        height: 64px !important;
    }
}

/* Grocery category image fix */
.category-card,
.category-item,
.fresh-category-card {
    overflow: hidden;
}

.category-card img,
.category-item img,
.fresh-category-card img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 16px !important;
}

.category-card h3,
.category-card h4,
.category-card p,
.category-item h3,
.category-item h4,
.category-item p,
.fresh-category-card h3,
.fresh-category-card h4,
.fresh-category-card p {
    position: relative;
    z-index: 2;
}

/* Grocery product image fix */
.product-card img,
.grocery-product-card img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.product-image,
.product-thumb,
.grocery-product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
    background: #eef8ee !important;
    overflow: hidden !important;
}

/* Prevent SVG/IMG from becoming huge */
img {
    max-width: 100%;
}

/* Grocery card spacing polish */
.category-card,
.category-item,
.fresh-category-card {
    text-align: center;
    min-height: 210px;
    padding: 24px 18px !important;
}

@media (max-width: 600px) {
    .category-card img,
    .category-item img,
    .fresh-category-card img {
        width: 64px !important;
        height: 64px !important;
    }

    .product-card img,
    .grocery-product-card img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Grocery category image fix */
.category-card,
.category-item,
.fresh-category-card {
    overflow: hidden;
}

.category-card img,
.category-item img,
.fresh-category-card img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 16px !important;
}

.category-card h3,
.category-card h4,
.category-card p,
.category-item h3,
.category-item h4,
.category-item p,
.fresh-category-card h3,
.fresh-category-card h4,
.fresh-category-card p {
    position: relative;
    z-index: 2;
}

/* Grocery product image fix */
.product-card img,
.grocery-product-card img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.product-image,
.product-thumb,
.grocery-product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
    background: #eef8ee !important;
    overflow: hidden !important;
}

/* Prevent SVG/IMG from becoming huge */
img {
    max-width: 100%;
}

/* Grocery card spacing polish */
.category-card,
.category-item,
.fresh-category-card {
    text-align: center;
    min-height: 210px;
    padding: 24px 18px !important;
}

@media (max-width: 600px) {
    .category-card img,
    .category-item img,
    .fresh-category-card img {
        width: 64px !important;
        height: 64px !important;
    }

    .product-card img,
    .grocery-product-card img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Grocery product image clean fix */
.product-image {
    width: 100%;
    height: 210px;
    background: #eef8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 135px !important;
    height: 135px !important;
    object-fit: contain !important;
    display: block !important;
}

.product-card {
    overflow: hidden;
}

.product-info {
    padding: 22px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.product-bottom button {
    border: none;
    background: #2f9b4f;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

/* Grocery product image final size fix */
.product-image {
    height: 230px !important;
    background: #eef8ee !important;
}

.product-image img {
    width: 190px !important;
    height: 190px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* If product-card uses another image wrapper */
.product-card img {
    max-width: 190px !important;
    max-height: 190px !important;
    object-fit: contain !important;
}

/* Grocery product image full fit fix */
.product-image {
    width: 100% !important;
    height: 230px !important;
    padding: 0 !important;
    background: #eef8ee !important;
    overflow: hidden !important;
    display: block !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.product-card {
    overflow: hidden !important;
}

/* Storefront product carousel */
.storefront-carousel-wrap {
    position: relative;
    width: 100%;
}

.storefront-carousel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}

.storefront-carousel-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: #ffffff;
    color: #f97316;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.storefront-carousel-btn:hover {
    background: #fff7ed;
}

.storefront-product-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.storefront-product-row > * {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.storefront-product-row::-webkit-scrollbar {
    height: 8px;
}

.storefront-product-row::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.35);
    border-radius: 999px;
}

/* Fresh Minimal carousel color */
.storefront-carousel-btn {
    border-color: rgba(22, 163, 74, 0.45);
    color: #16a34a;
}
.storefront-carousel-btn:hover {
    background: #f0fdf4;
}
.storefront-product-row::-webkit-scrollbar-thumb {
    background: rgba(22, 163, 74, 0.42);
}

/* Smooth featured category navigation */
html {
    scroll-behavior: smooth;
}

/* Fresh Minimal dynamic category layout fix */
#categories .category-grid,
#featured-categories .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
    justify-content: center;
    gap: 18px;
}

#categories .category-card,
#featured-categories .category-card {
    min-height: 150px;
    padding: 22px 18px;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    color: #052e16;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
}

#categories .category-card:hover,
#featured-categories .category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.45);
    background: #f0fdf4;
}

#categories .category-icon,
#featured-categories .category-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
}

#categories .category-card h3,
#featured-categories .category-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
}

#categories .category-card p,
#featured-categories .category-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}


/* Product detail link button */
.product-detail-link {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.product-detail-link:hover {
    background: #15803d;
}



/* Header cart link */
.header-actions .cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    text-decoration: none;
    font-weight: 800;
}

.header-actions .cart-link:hover {
    background: #dcfce7;
    color: #166534;
}

/* Shared product card action icons */
.product-card {
    --product-action-color: #052e16;
    --product-action-hover-color: #16a34a;
}

/*
|--------------------------------------------------------------------------
| GLOBAL STOREFRONT RESPONSIVE AUDIT PATCH
|--------------------------------------------------------------------------
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Admin-controlled dynamic banner on home pages */
.dynamic-admin-banner {
    max-width: 100%;
}

@media (max-width: 860px) {
    .dynamic-admin-banner {
        grid-template-columns: 1fr !important;
        padding: 22px !important;
        gap: 18px !important;
        text-align: left !important;
    }

    .dynamic-admin-banner h1,
    .dynamic-admin-banner h2 {
        font-size: clamp(24px, 7vw, 38px) !important;
        line-height: 1.12 !important;
    }

    .dynamic-admin-banner p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .dynamic-admin-banner [style*="width:170px"],
    .dynamic-admin-banner [style*="height:170px"] {
        width: 120px !important;
        height: 120px !important;
        font-size: 38px !important;
    }

    .header,
    .site-header,
    .top-header,
    .main-header {
        max-width: 100%;
    }

    .product-grid,
    .category-grid,
    .featured-category-grid,
    .storefront-product-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .dynamic-admin-banner {
        margin: 16px 0 !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .hero-actions,
    .hero-highlights {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-actions a,
    .hero-actions button {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .product-grid,
    .category-grid,
    .featured-category-grid,
    .storefront-product-row {
        grid-template-columns: 1fr !important;
    }

    .product-card,
    .category-card,
    .category-item,
    .featured-category-card {
        max-width: 100% !important;
    }

    .footer-grid,
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}


/* Theme shared action/modal variables */
:root {
    --product-action-color: #16a34a;
    --product-action-hover-color: #16a34a;
    --product-action-soft-bg: #dcfce7;
    --product-action-heading: #052e16;
    --products-accent: #16a34a;
    --products-soft-bg: #dcfce7;
    --products-heading: #052e16;
}

/* FINAL: dynamic brand only - remove static theme icon */
.brand-icon,
.brand-link.rr-dynamic-brand-only::before,
.brand-link.rr-dynamic-brand-only::after {
    content: none !important;
    display: none !important;
}

/* Grocery homepage section gap polish - only selected homepage sections */
#featured-categories.section-block {
    padding-bottom: 48px !important;
}

#top-selling-products.section-block {
    padding-top: 18px !important;
    padding-bottom: 56px !important;
}

#popular-products.section-block {
    padding-top: 18px !important;
}

#featured-categories .section-heading,
#top-selling-products .section-heading,
#popular-products .section-heading {
    margin-bottom: 26px !important;
}

/* Featured Categories professional polish only */
#featured-categories.section-block {
    padding-top: 34px !important;
    padding-bottom: 44px !important;
}

#featured-categories .container {
    max-width: 1180px !important;
}

#featured-categories .section-heading {
    margin-bottom: 26px !important;
}

#featured-categories .section-heading h2 {
    font-size: 30px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
    font-weight: 850 !important;
}

#featured-categories .category-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
}

#featured-categories .category-card {
    width: 158px !important;
    min-height: 150px !important;
    padding: 22px 16px 18px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 80, 45, 0.12) !important;
    box-shadow: 0 10px 26px rgba(15, 80, 45, 0.055) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

#featured-categories .category-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(22, 163, 74, 0.28) !important;
    box-shadow: 0 16px 34px rgba(15, 80, 45, 0.09) !important;
}

#featured-categories .category-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(135deg, #ecfdf3, #dcfce7) !important;
    margin: 0 !important;
}

#featured-categories .category-icon span {
    font-size: 30px !important;
    line-height: 1 !important;
}

#featured-categories .category-card h3 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #063b20 !important;
}

#featured-categories .category-card p {
    display: none !important;
}

@media (max-width: 640px) {
    #featured-categories .category-grid {
        gap: 12px !important;
    }

    #featured-categories .category-card {
        width: 140px !important;
        min-height: 132px !important;
        padding: 18px 12px 15px !important;
    }

    #featured-categories .section-heading h2 {
        font-size: 26px !important;
    }
}
