/**
 * GoGrocer Modern Storefront Stylesheet
 * Clean, Fresh Grocery Palette with Bootstrap 5.3
 */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --amber-500: #f59e0b;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: #fafbfc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Utilities */
.bg-emerald { background-color: var(--emerald-500) !important; }
.bg-emerald-subtle { background-color: var(--emerald-50) !important; }
.text-emerald { color: var(--emerald-600) !important; }
.border-emerald { border-color: var(--emerald-500) !important; }

.btn-emerald {
    background-color: var(--emerald-500);
    border-color: var(--emerald-500);
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-emerald:hover, .btn-emerald:focus {
    background-color: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-outline-emerald {
    color: var(--emerald-600);
    border-color: var(--emerald-500);
    font-weight: 600;
}

.btn-outline-emerald:hover {
    background-color: var(--emerald-500);
    border-color: var(--emerald-500);
    color: #ffffff;
}

.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.font-weight-800 { font-weight: 800; }

.fs-12px { font-size: 12px; }
.fs-13px { font-size: 13px; }
.fs-14px { font-size: 14px; }
.fs-15px { font-size: 15px; }

/* Sticky Navbar */
.storefront-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Search Bar & Dropdown */
.search-input-wrapper {
    position: relative;
    max-width: 580px;
    width: 100%;
}

.search-input-field {
    border-radius: 9999px;
    padding-left: 44px;
    padding-right: 20px;
    height: 46px;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    font-size: 14px;
    transition: var(--transition-fast);
}

.search-input-field:focus {
    background-color: #ffffff;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.search-icon-inside {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 18px;
    pointer-events: none;
}

#search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12);
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
}

/* Category Navigation & Badges */
.category-nav-bar {
    scrollbar-width: none;
}
.category-nav-bar::-webkit-scrollbar {
    display: none;
}

.category-nav-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    padding: 6px 14px;
    border-radius: 9999px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.category-nav-link:hover {
    color: var(--emerald-600);
    background-color: var(--emerald-50);
}

.category-nav-link.active {
    color: var(--emerald-700) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.18) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}

.category-nav-link.active .active-indicator-dot {
    width: 7px;
    height: 7px;
    background-color: var(--emerald-500);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
}

/* Category Hero Card on Category Page */
.category-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 5px solid var(--emerald-500);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.06);
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--slate-800);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover, .category-card.active {
    transform: translateY(-4px);
    border-color: var(--emerald-500);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.16);
    color: var(--emerald-600);
}

.category-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.category-icon-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: var(--transition-fast);
}

.category-card:hover .category-icon-wrap img, .category-card.active .category-icon-wrap img {
    transform: scale(1.1);
}

/* Product Cards */
.grocery-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.grocery-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
}

.grocery-card-img-wrap {
    background: #f8fafc;
    padding: 16px;
    text-align: center;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grocery-card-img-wrap img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-fast);
}

.grocery-card:hover .grocery-card-img-wrap img {
    transform: scale(1.05);
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
}

.grocery-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grocery-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--slate-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

/* Cart Offcanvas Drawer */
.cart-drawer-wrap {
    width: 420px !important;
    max-width: 90vw;
}

/* Floating Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
}

/* Hero Carousel */
.hero-banner-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 320px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero-banner-item {
        height: 180px;
        border-radius: var(--radius-md);
    }
}

/* Order Progress Tracker Styles */
.ring-emerald {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.28) !important;
    animation: pulseEmerald 2s infinite;
}

.ring-warning {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.35) !important;
    animation: pulseWarning 2s infinite;
}

.ring-success {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.35) !important;
}

@keyframes pulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseWarning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.order-progress-timeline {
    position: relative;
}

.order-progress-timeline .row::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 4px;
    background: #e2e8f0;
    z-index: 0;
}

.order-progress-timeline .rounded-circle {
    position: relative;
    z-index: 1;
}

/* Standalone Social Media Icons with Black Hover Effect */
.social-icon-link {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.social-icon-link:hover {
    color: #000000 !important;
}



