/* ==========================================================================
   Grocy Theme - Farm-Fresh Supermarket & Grocery Stylesheet
   ========================================================================== */

:root {
    --grocy-primary: #2b7a4b;
    --grocy-primary-hover: #22633c;
    --grocy-primary-light: #f0fdf4;
    --grocy-primary-dark: #144e2e;
    --grocy-accent-amber: #f59e0b;
    --grocy-accent-yellow: #ffbb38;
    --grocy-accent-red: #ef4444;
    --grocy-accent-blue: #3b82f6;
    --grocy-text-dark: #1e293b;
    --grocy-text-muted: #64748b;
    --grocy-border: #e2e8f0;
    --grocy-border-light: #f1f5f9;
    --grocy-border-green: #dcfce7;
    --grocy-card-bg: #ffffff;
    --grocy-radius-xs: 4px;
    --grocy-radius-sm: 8px;
    --grocy-radius-md: 12px;
    --grocy-radius-lg: 16px;
    --grocy-radius-xl: 20px;
    --grocy-radius-full: 9999px;
    --grocy-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --grocy-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
    --grocy-shadow-hover: 0 10px 25px -3px rgba(43, 122, 75, 0.14);
}

body.theme-grocy {
    background-color: #fbfbfc;
    color: var(--grocy-text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   1. Announcement Topbar
   -------------------------------------------------------------------------- */
.grocy-topbar {
    background: #144e2e;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 0;
    font-weight: 500;
}

.grocy-topbar a {
    color: #a7f3d0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.grocy-topbar a:hover {
    color: #ffffff;
}

.grocy-topbar-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

.grocy-topbar-trial-link {
    color: #ffbb38 !important;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. Main Header (Grocy Style)
   -------------------------------------------------------------------------- */
.grocy-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.grocy-logo {
    font-size: 30px;
    font-weight: 900;
    color: var(--grocy-primary);
    letter-spacing: -0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.grocy-logo-leaf {
    color: var(--grocy-primary);
    font-size: 28px;
}

.grocy-location-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: var(--grocy-radius-md);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}

.grocy-search-form {
    background: #ffffff;
    border: 2px solid var(--grocy-primary);
    border-radius: var(--grocy-radius-full);
    display: flex;
    align-items: center;
    padding: 2px 2px 2px 14px;
    transition: all 0.2s ease;
    max-width: 620px;
    width: 100%;
}

.grocy-search-form:focus-within {
    box-shadow: 0 0 0 4px rgba(43, 122, 75, 0.15);
}

.grocy-search-cat-wrap {
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    padding-right: 6px;
    margin-right: 6px;
}

.grocy-cat-select,
.nice-select.grocy-cat-select {
    border: none !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    outline: none !important;
    cursor: pointer !important;
    height: 38px !important;
    line-height: 38px !important;
    padding-left: 4px !important;
    padding-right: 22px !important;
    box-shadow: none !important;
}

.grocy-search-input {
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 13.5px;
    flex-grow: 1;
    outline: none;
    color: var(--grocy-text-dark);
    min-width: 120px;
}

.grocy-search-btn {
    background: var(--grocy-accent-yellow);
    color: #0f172a;
    border: none;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: var(--grocy-radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.grocy-search-btn:hover {
    background: #eab308;
    transform: scale(1.02);
}

.grocy-header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grocy-text-dark);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: var(--grocy-radius-md);
    transition: background 0.2s ease;
    position: relative;
}

.grocy-header-action-item:hover {
    color: var(--grocy-primary);
}

.grocy-action-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 18px;
    transition: all 0.2s ease;
}

.grocy-header-action-item:hover .grocy-action-icon-circle {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--grocy-primary);
}

.grocy-action-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--grocy-accent-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* --------------------------------------------------------------------------
   3. Navbar with Support Hotline
   -------------------------------------------------------------------------- */
.grocy-navbar {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
}

.grocy-cat-trigger-btn {
    background: #2b7a4b;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.grocy-cat-trigger-btn:hover {
    background: var(--grocy-primary-hover);
}

.grocy-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.grocy-nav-item {
    position: relative;
}

.grocy-nav-link,
.grocy-nav-menu > li > a {
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.grocy-nav-link:hover,
.grocy-nav-link.active,
.grocy-nav-menu > li > a:hover,
.grocy-nav-menu > li > a.active {
    color: #2b7a4b;
    background: #f0fdf4;
}

/* Category Flyout Menu */
.nav-cat-item:hover > .nav-subcat-flyout {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-subcat-flyout {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -8px;
    display: none;
    z-index: 1070;
}

/* Level 2 Dropdown */
.grocy-nav-item:hover > .grocy-nav-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.grocy-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    padding: 6px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    pointer-events: none;
}

.grocy-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.grocy-nav-dropdown li {
    position: relative;
    list-style: none;
}

.grocy-nav-dropdown .dropdown-item {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    padding: 7px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    text-decoration: none;
}

.grocy-nav-dropdown .dropdown-item:hover {
    background-color: #f0fdf4;
    color: #2b7a4b;
}

/* Level 3 Subflyout */
.grocy-sub-nav-item:hover > .grocy-nav-subflyout {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.grocy-nav-subflyout {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    padding: 6px;
    margin-left: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
    pointer-events: none;
}

.grocy-nav-subflyout::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
}

/* Category Flyout Menu Subcategories on Hover */
.grocy-nav-cat-item:hover > .grocy-cat-subflyout {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.grocy-cat-subflyout {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    padding: 8px;
    margin-left: 4px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
    pointer-events: none;
}

.grocy-cat-subflyout::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
}

.grocy-hotline-pill {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--grocy-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.grocy-hotline-pill:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   4. Category Pills Strip with Icons (Top row of images)
   -------------------------------------------------------------------------- */
.grocy-cat-strip-section {
    padding: 14px 0 8px;
    background: transparent;
    position: relative;
    z-index: 5;
}

.grocy-cat-strip-wrapper {
    position: relative;
    padding: 0 40px;
}

.grocy-category-swiper {
    width: 100%;
    overflow: hidden;
    padding: 6px 2px 8px;
}

.grocy-cat-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.grocy-cat-pill-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.grocy-cat-pill-card:hover {
    border-color: #2b7a4b;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 122, 75, 0.12);
}

.grocy-cat-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.grocy-cat-pill-card:hover .grocy-cat-icon-circle {
    background: #2b7a4b;
    border-color: #2b7a4b;
}

.grocy-cat-pill-card:hover .grocy-cat-icon-circle i {
    color: #ffffff !important;
}

.grocy-cat-icon-circle img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
}

.grocy-cat-info {
    min-width: 0;
    flex-grow: 1;
    line-height: 1.25;
    overflow: hidden;
}

.grocy-cat-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.grocy-cat-pill-card:hover .grocy-cat-name {
    color: #2b7a4b;
}

.grocy-cat-count {
    font-size: 10.5px;
    color: #64748b;
    white-space: nowrap;
}

.grocy-cat-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #1e293b;
    font-size: 14px;
    padding: 0;
}

.grocy-cat-nav-btn:hover {
    background: #2b7a4b;
    border-color: #2b7a4b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(43, 122, 75, 0.25);
}

.grocy-cat-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.grocy-cat-prev {
    left: 0;
}

.grocy-cat-next {
    right: 0;
}

/* --------------------------------------------------------------------------
   5. Hero Area (Hero Slider + 3-Card Stacked Bento)
   -------------------------------------------------------------------------- */
.grocy-hero-section {
    padding: 16px 0 28px;
}

.grocy-rev-slider-root {
    border-radius: var(--grocy-radius-xl, 20px);
    overflow: hidden;
    height: 100%;
    min-height: 410px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.grocy-rev-slide-frame {
    min-height: 410px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    border-radius: var(--grocy-radius-xl, 20px);
}

.grocy-rev-content-layer {
    position: relative;
    z-index: 2;
    max-width: 58%;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.grocy-rev-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 12px;
    border-radius: var(--grocy-radius-full);
    display: inline-block;
    margin-bottom: 10px;
}

.grocy-rev-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.grocy-rev-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.grocy-rev-price-chip {
    font-size: 28px;
    font-weight: 900;
    color: var(--grocy-primary);
    margin-bottom: 18px;
}

.grocy-rev-primary-btn {
    background: #2b7a4b;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 26px;
    border-radius: var(--grocy-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    box-shadow: 0 4px 14px rgba(43, 122, 75, 0.35);
    transition: all 0.25s ease;
}

.grocy-rev-primary-btn:hover {
    background: var(--grocy-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43, 122, 75, 0.45);
}

.grocy-rev-visual-layer {
    position: relative;
    z-index: 1;
    max-width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grocy-rev-product-img {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

/* Entrance Keyframes */
.swiper-slide .grocy-anim-tag,
.swiper-slide .grocy-anim-title,
.swiper-slide .grocy-anim-sub,
.swiper-slide .grocy-anim-price,
.swiper-slide .grocy-anim-btn,
.swiper-slide .grocy-anim-img {
    opacity: 0;
    will-change: transform, opacity;
}

.swiper-slide-active .grocy-anim-tag { animation: grocyRevInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s; }
.swiper-slide-active .grocy-anim-title { animation: grocyRevInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s; }
.swiper-slide-active .grocy-anim-sub { animation: grocyRevInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s; }
.swiper-slide-active .grocy-anim-price { animation: grocyRevInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.38s; }
.swiper-slide-active .grocy-anim-btn { animation: grocyRevInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.46s; }
.swiper-slide-active .grocy-anim-img { animation: grocyRevImgIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both 0.25s; }

@keyframes grocyRevInDown {
    0% { opacity: 0; transform: translateY(-20px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes grocyRevInUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes grocyRevImgIn {
    0% { opacity: 0; transform: translateX(35px) scale(0.94); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Side 3-Card Stacked Bento */
.grocy-hero-bento-card {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.grocy-hero-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.grocy-hero-bento-card .btn {
    pointer-events: none;
    transition: all 0.25s ease;
}

.grocy-hero-bento-card:hover .btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: scale(1.02);
}

.grocy-hero-bento-card.card-top {
    min-height: 195px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}

.grocy-hero-bento-card.card-mini-blue {
    min-height: 200px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

.grocy-hero-bento-card.card-mini-pink {
    min-height: 200px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 1px solid #fbcfe8;
}

/* --------------------------------------------------------------------------
   5.5 Section Header Category Filter Tabs & Pills
   -------------------------------------------------------------------------- */
.grocy-filter-pills-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.grocy-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--grocy-radius-full, 9999px);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.2;
}

.grocy-filter-pill:hover {
    color: var(--grocy-primary);
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.grocy-filter-pill.active {
    background: var(--grocy-primary);
    border-color: var(--grocy-primary);
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(43, 122, 75, 0.25);
}

.grocy-filter-pill-viewall {
    color: var(--grocy-primary);
    font-weight: 700;
    background: #f0fdf4;
    border-color: #dcfce7;
}

.grocy-filter-pill-viewall:hover {
    background: var(--grocy-primary);
    color: #ffffff !important;
    border-color: var(--grocy-primary);
}

.grocy-filter-pill-viewall i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.grocy-filter-pill-viewall:hover i {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Clean Supermarket Product Card (Featured & Trending Grid)
   -------------------------------------------------------------------------- */
.grocy-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--grocy-radius-md);
    padding: 16px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.grocy-product-card:hover {
    border-color: #86efac;
    transform: translateY(-3px);
    box-shadow: var(--grocy-shadow-hover);
}

.grocy-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.grocy-unit-pill {
    font-size: 11px;
    color: #64748b;
}

.grocy-wishlist-icon-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    transition: color 0.2s ease;
}

.grocy-wishlist-icon-btn:hover,
.grocy-wishlist-icon-btn.active {
    color: #ef4444;
}

.grocy-card-thumb-wrap {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 10px;
    text-decoration: none;
}

.grocy-card-thumb-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.grocy-product-card:hover .grocy-card-thumb-wrap img {
    transform: scale(1.08);
}

.grocy-card-cat-badge {
    background: #f0fdf4;
    color: #16a34a;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--grocy-radius-full);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 4px;
}

.grocy-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.grocy-card-title:hover {
    color: var(--grocy-primary);
}

.grocy-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #f59e0b;
    margin-bottom: 8px;
}

.grocy-card-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.grocy-card-cur-price {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.grocy-card-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.grocy-card-discount-tag {
    background: #fee2e2;
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--grocy-radius-full);
}

.grocy-card-add-btn {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--grocy-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.grocy-card-add-btn:hover {
    background: var(--grocy-primary);
    color: #ffffff;
    border-color: var(--grocy-primary);
}

/* --------------------------------------------------------------------------
   7. Top Sellers / Farmers Bar
   -------------------------------------------------------------------------- */
.grocy-seller-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--grocy-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.grocy-seller-card:hover {
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 122, 75, 0.1);
}

.grocy-seller-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dcfce7;
}

.grocy-seller-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.grocy-seller-meta {
    font-size: 11px;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   8. Deal of the Week Spotlight Box (Red/Green Border with Countdown)
   -------------------------------------------------------------------------- */
.grocy-deal-week-card {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-radius: var(--grocy-radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.06);
}

.grocy-countdown-square-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grocy-countdown-unit-box {
    background: #ef4444;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.grocy-compact-deal-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: var(--grocy-radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.grocy-compact-deal-card:hover {
    border-color: #86efac;
    transform: translateY(-2px);
}

.grocy-compact-deal-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Trio Bento Promo Cards
   -------------------------------------------------------------------------- */
.grocy-trio-promo-card {
    border-radius: var(--grocy-radius-lg);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.grocy-trio-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.grocy-trio-promo-card.card-blue {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border: 1px solid #60a5fa;
}

.grocy-trio-promo-card.card-yellow {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: 1px solid #facc15;
}

.grocy-trio-promo-card.card-pink {
    background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
    border: 1px solid #ec4899;
}

/* --------------------------------------------------------------------------
   10. Scrolling Freshness Green Ticker
   -------------------------------------------------------------------------- */
.grocy-ticker-strip {
    background: #2b7a4b;
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
}

.grocy-ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: grocyTickerAnim 25s linear infinite;
}

@keyframes grocyTickerAnim {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   11. Supermarket 5-Feature Navy Strip & Footer
   -------------------------------------------------------------------------- */
.grocy-footer-features-navy {
    background: #0f172a;
    color: #cbd5e1;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grocy-footer-feature-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grocy-footer-feature-icon {
    font-size: 24px;
    color: #22c55e;
}

.grocy-footer {
    background: #144e2e;
    color: #d1fae5;
    padding-top: 50px;
}

.grocy-footer h6 {
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 18px;
}

.grocy-footer p {
    color: #a7f3d0;
    font-size: 13px;
    line-height: 1.6;
}

.grocy-footer-link {
    color: #d1fae5;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.grocy-footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.grocy-newsletter-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--grocy-radius-full);
    padding: 4px;
    margin-bottom: 14px;
}

.grocy-newsletter-input {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    outline: none;
    flex-grow: 1;
    color: #0f172a;
}

.grocy-newsletter-btn {
    background: var(--grocy-accent-yellow);
    color: #0f172a;
    border: none;
    border-radius: var(--grocy-radius-full);
    padding: 8px 18px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.grocy-newsletter-btn:hover {
    background: #eab308;
}

/* --------------------------------------------------------------------------
   14. Group Buy Cards & Team Deals
   -------------------------------------------------------------------------- */
.grocy-gb-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.grocy-gb-card:hover {
    border-color: #86efac !important;
    box-shadow: 0 10px 25px rgba(43, 122, 75, 0.12) !important;
}

.grocy-gb-card:hover img {
    transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   15. Recent Products & Dynamic AJAX Load More
   -------------------------------------------------------------------------- */
.grocy-load-more-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    border: 1.5px solid var(--grocy-primary);
}

.grocy-load-more-btn:hover {
    background: var(--grocy-primary);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(43, 122, 75, 0.25);
}

.grocy-load-more-btn:active {
    transform: translateY(0);
}

.grocy-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.grocy-recent-item-col {
    animation: grocyFadeInUp 0.35s ease forwards;
}

@keyframes grocyFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   16. Dynamic Brand Marquee Showcase
   -------------------------------------------------------------------------- */
.grocy-brand-marquee-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.grocy-brand-marquee-section::before,
.grocy-brand-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.grocy-brand-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.grocy-brand-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.grocy-brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: grocyBrandScroll 35s linear infinite;
}

.grocy-brand-marquee-section:hover .grocy-brand-marquee-track {
    animation-play-state: paused;
}

@keyframes grocyBrandScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.grocy-brand-marquee-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    min-width: 130px;
    height: 48px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.grocy-brand-marquee-card:hover {
    border-color: #2b7a4b;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 122, 75, 0.12);
}

.grocy-brand-marquee-card img {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.25s ease;
}

.grocy-brand-marquee-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.grocy-brand-text-logo {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Grocy Mobile Bottom Navigation (Style 1: Floating Glow Circle)
   ========================================================================== */
.grocy-bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.grocy-bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

.grocy-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 6px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.grocy-icon-wrap {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 3px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.grocy-nav-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    transition: color 0.2s ease;
}

.grocy-nav-item:hover,
.grocy-nav-item.active {
    color: var(--grocy-primary);
}

.grocy-nav-item.active .grocy-icon-wrap {
    transform: translateY(-2px);
    color: var(--grocy-primary);
}

.grocy-nav-item.active .grocy-nav-label {
    font-weight: 700;
    color: var(--grocy-primary);
}

/* Grocy Center Floating Glow Circle Action */
.grocy-center-action-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1045;
}

.grocy-floating-circle-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: absolute;
    top: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 22px rgba(43, 122, 75, 0.38);
}

.grocy-floating-glow-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(43, 122, 75, 0.18);
    backdrop-filter: blur(4px);
    z-index: 1;
    transition: all 0.3s ease;
}

.grocy-floating-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b7a4b 0%, #15803d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 3px solid #ffffff;
}

.grocy-floating-circle-btn:hover,
.grocy-floating-circle-btn:active {
    transform: scale(1.08);
}

.grocy-floating-circle-btn:hover .grocy-floating-glow-ring {
    inset: -9px;
    background: rgba(43, 122, 75, 0.28);
}

.grocy-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
}

.grocy-brand-marquee-card:hover .grocy-brand-text-logo {
    color: #2b7a4b;
}


