:root {
    --primary: #E85D75;
    --primary-dark: #C9445C;
    --accent: #2E7D6B;
    --accent-soft: #E9F5F2;
    --text: #2B2B2B;
    --muted: #6B7280;
    --bg-soft: #FAF7F5;
    --border: #EEE7E3;
    --white: #FFFFFF;
    --danger: #DC2626;
    --warning: #D97706;
    --radius: 12px;
    --shadow-sm: 0 2px 10px rgba(43, 43, 43, 0.05);
    --shadow-md: 0 8px 24px rgba(43, 43, 43, 0.08);
    --transition: all 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--white);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top announcement bar */
.gc-topbar {
    background: var(--text);
    color: var(--white);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
}

.gc-topbar a {
    color: var(--white);
    opacity: 0.9;
}

.gc-topbar a:hover {
    opacity: 1;
    color: #FFD4DC;
}

/* Header */
.gc-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.gc-search-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    overflow: hidden;
    transition: var(--transition);
}

.gc-search-box:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.12);
}

.gc-search-box input {
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    flex: 1;
    font-size: 0.925rem;
    color: var(--text);
    outline: none;
}

.gc-search-box button {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.15rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.gc-search-box button:hover {
    background: var(--primary-dark);
}

.gc-pincode-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.gc-pincode-pill:hover {
    border-color: var(--primary);
    background: var(--white);
}

.gc-nav-strip {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.gc-nav-link {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.gc-nav-link:hover, .gc-nav-link.active {
    color: var(--primary);
}

/* Buttons */
.btn-gc-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    font-size: 0.925rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gc-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-gc-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.925rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gc-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cards & Badges */
.gc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.gc-badge-sameday {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.gc-badge-standard {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.gc-badge-eggless {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

/* Product Grid & Skeletons */
.gc-product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-soft);
}

.gc-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gc-card:hover .gc-product-img-wrap img {
    transform: scale(1.04);
}

.gc-skeleton {
    background: linear-gradient(90deg, #F3EEEB 25%, #FAF7F5 50%, #F3EEEB 75%);
    background-size: 200% 100%;
    animation: gcShimmer 1.4s infinite;
    border-radius: var(--radius);
}

@keyframes gcShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Form Controls */
.gc-input, .gc-select, .gc-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-size: 0.925rem;
    transition: var(--transition);
}

.gc-input:focus, .gc-select:focus, .gc-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.12);
}

/* Soft Section */
.gc-section-soft {
    background: var(--bg-soft);
}

/* Footer */
.gc-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.gc-footer h6 {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.gc-footer a {
    color: var(--muted);
    display: inline-block;
    padding: 0.2rem 0;
}

.gc-footer a:hover {
    color: var(--primary);
}

/* Toast notification */
.gc-toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gc-toast {
    background: var(--text);
    color: var(--white);
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    max-width: 340px;
}

.gc-toast.success { border-left: 4px solid var(--accent); }
.gc-toast.error { border-left: 4px solid var(--danger); }

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
}

.page-item .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

nav[aria-label="Pagination Navigation"] svg {
    width: 16px;
    height: 16px;
}

/* Mobile Drawer & Responsive Rules */
.gc-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.gc-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
}

.gc-mobile-drawer.open {
    display: block;
}

.gc-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.gc-mobile-drawer-panel {
    position: relative;
    width: min(300px, 84vw);
    height: 100%;
    background: var(--white);
    padding: 1.25rem;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gc-mobile-drawer-panel a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.gc-mobile-drawer-panel a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.gc-nav-strip {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gc-nav-strip::-webkit-scrollbar {
    display: none;
}

.table-responsive-gc {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .gc-hamburger {
        display: inline-flex;
    }

    .gc-topbar {
        font-size: 0.75rem;
        padding: 0.35rem 0;
    }

    .gc-topbar-msg {
        display: none;
    }

    .gc-header .container.py-3 {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .gc-logo-img {
        height: 32px !important;
        width: auto;
    }

    .gc-pincode-pill {
        width: 100%;
        justify-content: center;
        padding: 0.45rem 0.75rem;
        font-size: 0.8125rem;
    }

    .gc-nav-strip {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .gc-nav-link {
        padding: 0.55rem 0.75rem;
        font-size: 0.84rem;
    }

    .btn-gc-primary, .btn-gc-outline {
        min-height: 42px;
    }

    .gc-product-card-actions {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .gc-filter-collapse {
        display: none;
    }

    .gc-filter-collapse.open {
        display: block;
    }
}
