/* Ganja Menu — frontend (customer-facing) styles */

.ganja-menu {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a2e;
    margin: 16px 0 24px;
}
.ganja-menu *, .ganja-menu *::before, .ganja-menu *::after { box-sizing: border-box; }

.ganja-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.ganja-menu__title {
    margin: 0; font-size: 24px; font-weight: 700; color: #1a472a;
}
.ganja-menu__meta {
    display: flex; align-items: center; gap: 14px; font-size: 13px; color: #6b7280; flex-wrap: wrap;
}
.ganja-menu__updated {
    display: inline-flex; align-items: center; gap: 6px;
    color: #9ca3af;
}
.ganja-menu__updated svg { color: #d1d5db; }
.ganja-menu__updated--fresh { color: #16a34a; }
.ganja-menu__updated--fresh svg { color: #22c55e; }
.ganja-menu__count { font-weight: 600; }
.ganja-menu__verified {
    background: linear-gradient(135deg, #2d6a3f, #16a34a);
    color: #fff; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
}

/* Delivery badge + CTA */
.ganja-delivery-badge {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    display: inline-flex; align-items: center; gap: 4px;
}
.ganja-delivery-badge small { font-weight: 500; opacity: 0.9; }

.ganja-delivery-cta {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.ganja-delivery-cta__text strong {
    display: block; font-size: 15px; color: #1e3a8a;
}
.ganja-delivery-cta__radius {
    font-size: 12px; color: #1d4ed8;
}
a.ganja-delivery-cta__btn,
a.ganja-delivery-cta__btn:link,
a.ganja-delivery-cta__btn:visited {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    padding: 14px 26px; border-radius: 8px;
    font-weight: 800 !important; font-size: 16px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
    border: 2px solid #15803d !important;
    letter-spacing: 0.01em;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
a.ganja-delivery-cta__btn:hover,
a.ganja-delivery-cta__btn:focus,
a.ganja-delivery-cta__btn:active {
    background: linear-gradient(135deg, #15803d, #14532d) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.55);
    text-decoration: none !important;
}

/* Mobile: stack delivery CTA, full-width button, trimmed padding */
@media (max-width: 640px) {
    .ganja-delivery-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }
    .ganja-delivery-cta__text { text-align: center; }
    a.ganja-delivery-cta__btn,
    a.ganja-delivery-cta__btn:link,
    a.ganja-delivery-cta__btn:visited {
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        white-space: normal;
        text-align: center;
    }
    .ganja-delivery-badge { font-size: 10px; padding: 2px 8px; }
    .ganja-delivery-badge small { display: none; }
}

.ganja-menu__note {
    background: #f0fdf4; border-left: 3px solid #16a34a;
    padding: 12px 16px; border-radius: 4px; margin-bottom: 16px;
    font-size: 14px; color: #166534;
}

.ganja-menu__controls {
    margin-bottom: 24px;
    position: sticky; top: 0; z-index: 10;
    background: #ffffff;
    padding: 12px 0;
}
.ganja-menu__search {
    width: 100%; max-width: 480px;
    padding: 10px 14px;
    border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
}
.ganja-menu__search:focus {
    outline: none; border-color: #2d6a3f;
    box-shadow: 0 0 0 3px rgba(45, 106, 63, 0.15);
}
.ganja-menu__filters {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.ganja-menu__filter-btn {
    padding: 7px 14px;
    border: 1px solid #d1d5db; background: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 500; color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}
.ganja-menu__filter-btn:hover {
    border-color: #2d6a3f; color: #2d6a3f;
}
.ganja-menu__filter-btn--active {
    background: #2d6a3f; border-color: #2d6a3f; color: #fff;
}
.ganja-menu__filter-count { opacity: 0.7; margin-left: 4px; font-size: 11px; }

.ganja-menu__section { margin-bottom: 32px; }
.ganja-menu__section--featured .ganja-menu__item {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fde68a;
}
.ganja-menu__section-title {
    margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #1a1a2e;
}
.ganja-menu__section-count { color: #9ca3af; font-weight: 400; font-size: 14px; }

.ganja-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.ganja-menu__item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.ganja-menu__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #a7f3d0;
}
.ganja-menu__item--oos { opacity: 0.55; }

.ganja-menu__item-image {
    position: relative;
    aspect-ratio: 1.4;
    background: #f3f4f6;
    overflow: hidden;
}
.ganja-menu__item-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ganja-menu__item-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 54px;
    opacity: 0.3;
}

.ganja-menu__item-badges {
    position: absolute; top: 8px; left: 8px;
    display: flex; gap: 4px; flex-wrap: wrap;
}
.ganja-menu__badge {
    padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.ganja-menu__badge--sale      { background: #dc2626; color: #fff; }
.ganja-menu__badge--new       { background: #16a34a; color: #fff; }
.ganja-menu__badge--featured  { background: #fbbf24; color: #78350f; padding: 3px 6px; }
.ganja-menu__badge--oos       { background: #6b7280; color: #fff; }

.ganja-menu__item-body {
    padding: 14px 14px 16px; flex: 1;
    display: flex; flex-direction: column;
}
.ganja-menu__item-brand {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 4px;
}
.ganja-menu__item-name {
    margin: 0 0 6px; font-size: 15px; font-weight: 600;
    color: #1a1a2e; line-height: 1.3;
}
.ganja-menu__item-strain {
    font-size: 12px; color: #6b7280;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.ganja-menu__strain-link { color: #2d6a3f; text-decoration: none; font-weight: 500; }
.ganja-menu__strain-link:hover { text-decoration: underline; }

.ganja-menu__type {
    display: inline-block;
    padding: 2px 7px; border-radius: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ganja-menu__type--indica    { background: #ede9fe; color: #6d28d9; }
.ganja-menu__type--sativa    { background: #fef3c7; color: #b45309; }
.ganja-menu__type--hybrid    { background: #d1fae5; color: #065f46; }
.ganja-menu__type--cbd, .ganja-menu__type--high-cbd { background: #dbeafe; color: #1e40af; }
.ganja-menu__type--other     { background: #f3f4f6; color: #4b5563; }

.ganja-menu__item-potency {
    display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap;
}
.ganja-menu__potency-tag {
    background: #f3f4f6; color: #374151;
    padding: 2px 7px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
}

.ganja-menu__item-price {
    margin-top: auto; padding-top: 6px;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
}
.ganja-menu__price {
    font-size: 18px; font-weight: 700; color: #1a472a;
}
.ganja-menu__price-sale {
    font-size: 18px; font-weight: 700; color: #dc2626;
}
.ganja-menu__price-orig {
    font-size: 13px; color: #9ca3af; text-decoration: line-through;
}
.ganja-menu__unit { font-size: 12px; color: #6b7280; }

.ganja-menu__item-desc {
    margin: 6px 0 0; font-size: 12px; color: #6b7280; line-height: 1.5;
}

.ganja-menu__empty {
    text-align: center; padding: 48px 24px;
    color: #cbd5e1;
    background: #0f172a;
    border-radius: 10px;
}
.ganja-menu__empty h3 { color: #ffffff; }
.ganja-menu__empty p { color: #cbd5e1; }
.ganja-menu__empty strong { color: #ffffff; }
.ganja-menu__empty-icon { font-size: 48px; margin-bottom: 14px; }
.ganja-menu__empty-icon img { max-height: 56px; width: auto; display: inline-block; }
.ganja-menu__empty h3 { margin: 0 0 8px; }
.ganja-menu__empty--owner {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
}
.ganja-menu__btn {
    display: inline-block; padding: 10px 24px;
    border-radius: 6px; font-weight: 600; font-size: 14px;
    text-decoration: none; margin-top: 12px;
}
.ganja-menu__btn--primary {
    background: #2d6a3f; color: #fff;
}
.ganja-menu__btn--primary:hover { background: #1a472a; color: #fff; }

.ganja-menu__footer {
    margin-top: 28px; padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: center; color: #9ca3af; font-size: 12px;
}
.ganja-menu__footer a { color: #6b7280; }

@media (max-width: 640px) {
    .ganja-menu__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ganja-menu__item-image { aspect-ratio: 1.2; }
    .ganja-menu__item-name { font-size: 14px; color: #0f172a; }
    .ganja-menu__price, .ganja-menu__price-sale { font-size: 16px; }
    .ganja-menu__controls { padding: 10px 0; }

    /* Brighter text on mobile — dark theme was washing out muted greys */
    .ganja-menu__meta { color: #e5e7eb; font-weight: 500; }
    .ganja-menu__updated { color: #f3f4f6; }
    .ganja-menu__updated svg { color: #a7f3d0; }
    .ganja-menu__count { color: #ffffff; }
    .ganja-menu__section-title { color: #ffffff; }
    .ganja-menu__section-count { color: #d1d5db; }
    .ganja-menu__empty { color: #e5e7eb; }
    .ganja-menu__empty h3 { color: #ffffff; }
    .ganja-menu__filter-btn { color: #f3f4f6; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
    .ganja-menu__filter-btn--active { color: #fff; background: #2d6a3f; border-color: #2d6a3f; }
    .ganja-menu__item-brand { color: #cbd5e1; }
    .ganja-menu__item-strain { color: #e5e7eb; }
    .ganja-menu__item-desc { color: #e5e7eb; }
    .ganja-menu__unit { color: #d1d5db; }
    .ganja-menu__footer, .ganja-menu__footer a { color: #d1d5db; }

    /* Item cards keep their white background so inner text stays dark-on-light */
    .ganja-menu__item .ganja-menu__item-brand { color: #6b7280; }
    .ganja-menu__item .ganja-menu__item-strain { color: #4b5563; }
    .ganja-menu__item .ganja-menu__item-desc { color: #4b5563; }
    .ganja-menu__item .ganja-menu__unit { color: #6b7280; }
}
