/* ============================================================
   Group Order Landing Page  —  /group/{slug}
   Catering site only. Modern, Card-based, Professional Layout.
   ============================================================ */

:root {
    --go-primary: #2e7d32;
    --go-bg: #f5f7f9;
    --go-card-bg: #ffffff;
    --go-text: #1a1a1a;
    --go-text-muted: #666666;
    --go-border: #e0e4e8;
}

/* ---- Layout Level Isolation ---- */
.go-layout {
    min-height: 100vh;
    background: var(--go-bg);
}

.go-header-minimal {
    background: #ffffff !important;
    border-bottom: 1px solid var(--go-border);
    padding: 12px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.go-header-content {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: center;
}

.go-logo-link {
    display: flex;
    justify-content: center;
}

.go-logo-img {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}

.go-header-auth {
    position: absolute;
    right: 16px;
}

/* ---- Page shell ---- */
.go-page {
    min-height: 100vh;
    background: var(--go-bg);
    padding: 24px 16px 100px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.go-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ---- Welcome Section ---- */
.go-welcome {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    text-align: center;
}

.go-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--go-primary);
    margin: 0 0 8px;
}

.go-welcome p {
    color: var(--go-text-muted);
    margin: 0;
}

/* ---- Modern List Layout ---- */
.go-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #333;
    padding-left: 4px;
}

.go-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.go-product-card {
    background: var(--go-card-bg);
    border-radius: 12px;
    border: 1px solid var(--go-border);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.go-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--go-primary);
}

.go-product-card-inner {
    display: flex;
    padding: 16px;
    gap: 20px;
    align-items: flex-start;
}

.go-product-img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.go-product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.go-product-info {
    flex: 1;
}

.go-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--go-text);
    margin: 0 0 2px;
    line-height: 1.2;
}

.go-product-description {
    font-size: 0.85rem;
    color: var(--go-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.go-product-note {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin: 0 0 8px;
}

.go-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.go-product-price {
    font-weight: 700;
    color: var(--go-primary);
    font-size: 1rem;
}

.go-add-btn {
    color: var(--go-primary);
    background: #e8f5e9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Cart Summary */
.go-cart-summary {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 600px;
    background: var(--go-primary);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
    z-index: 100;
}

.go-cart-summary .btn-view {
    background: white;
    color: var(--go-primary);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
}


.go-product-select {
    flex-shrink: 0;
}

/* ---- Slot Cards ---- */
.go-slot-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 24px;
}

.go-slot-header {
    background: #f8f9f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.go-slot-header h3 {
    font-size: 1.1rem;
    color: #111;
    font-weight: 700;
}

/* ---- Generic centered & card containers ---- */
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #aaa;
}

.go-product-info {
    padding: 10px;
    flex: 1;
}

.go-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
    color: #1a1a1a;
}

.go-product-note {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.go-product-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    margin: 0;
}

/* ---- Confirmation screen ---- */
.go-confirm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    padding: 36px 24px;
    max-width: 520px;
    width: 100%;
    margin: 40px auto 0;
    text-align: center;
}

.go-confirm-card .go-check-icon {
    width: 64px;
    height: 64px;
    background: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
}

.go-confirm-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.go-confirm-card p {
    color: #555;
    margin: 0 0 6px;
    font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .go-product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 8px;
    }

    .go-card {
        padding: 20px 16px;
    }

    .go-content {
        padding: 16px 8px 60px;
    }
}
