/* ========================================================
   El Shaib - Homepage Specific Stylesheet (Modern & Lean)
   ======================================================== */

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 50%, #D8F3DC 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    padding-top: 0.5rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--light-green, #D8F3DC);
    color: var(--primary-dark, #006C48);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(64, 145, 108, 0.15);
}
.hero-badge i {
    color: var(--primary, #40916C);
}
.hero-brand-name {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--primary-dark, #006C48);
    margin-bottom: 0.25rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    margin-bottom: 1.1rem;
    line-height: 1.4;
}
.hero-description {
    font-size: 0.96rem;
    color: var(--text-muted, #6C757D);
    margin-bottom: 1.75rem;
    line-height: 1.85;
    max-width: 520px;
}
.hero-buttons {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.hero-search {
    position: relative;
    max-width: 480px;
    margin-bottom: 1.25rem;
}
.hero-search input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3.5rem;
    border: 2px solid #D8F3DC;
    border-radius: var(--radius-lg, 16px);
    font-size: 0.92rem;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.hero-search input:focus {
    border-color: var(--primary, #40916C);
    outline: none;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.18);
}
.hero-search button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-darkest, #1B4332) 0%, var(--primary-dark, #006C48) 100%);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.hero-search button:hover {
    background: linear-gradient(135deg, var(--primary-dark, #006C48) 0%, var(--primary, #40916C) 100%);
    transform: translateY(-50%) scale(1.05);
}

/* Stats Bar in Hero */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}
.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light-green, #D8F3DC);
    color: var(--primary-dark, #006C48);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(64, 145, 108, 0.15);
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-darkest, #1B4332);
    line-height: 1.1;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #6C757D);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border: 3px solid #fff;
}
.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.hero-image-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 2;
}
.hero-image-badge--top {
    top: 1.25rem;
    right: 1.25rem;
}
.hero-image-badge--bottom {
    bottom: 3.5rem;
    left: 1.25rem;
}
.hero-image-badge i {
    color: var(--primary, #40916C);
}
.hero-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.25rem 0.85rem;
    color: #fff;
}
.hero-image-caption small {
    display: block;
    font-size: 0.76rem;
    opacity: 0.85;
}
.hero-image-caption strong {
    font-size: 0.96rem;
    font-weight: 800;
}

/* --- Features Section --- */
.features-section {
    padding: 3.5rem 0;
    background-color: #fff;
}
.feature-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #E9ECEF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #40916C);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    transition: transform 0.25s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon--fresh { background: #E8F5E9; color: #2E7D32; }
.feature-icon--quality { background: #FEF3C7; color: #D97706; }
.feature-icon--value { background: #E0E7FF; color: #4338CA; }
.feature-icon--delivery { background: #D8F3DC; color: #006C48; }
.feature-card h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted, #6C757D);
    margin: 0;
    line-height: 1.6;
}

/* --- Products Section on Homepage --- */
.products-section {
    padding: 4rem 0;
    background-color: #F8FAF9;
}
.products-header {
    text-align: center;
    margin-bottom: 2.75rem;
}
/* Products section tabs and layout on home (card and titles provided by components.css) */
.products-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}
.products-view-all {
    text-align: center;
    margin-top: 2.5rem;
}
.products-view-all a {
    color: var(--primary-dark, #006C48);
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-dark, #006C48);
    padding-bottom: 0.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.products-view-all a:hover {
    color: var(--primary, #40916C);
    border-color: var(--primary, #40916C);
    gap: 0.75rem;
}

/* --- Why Choose Us Section --- */
.why-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
}
.why-card {
    height: 100%;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    text-align: center;
    padding: 2rem 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.why-card:hover {
    box-shadow: 0 10px 24px rgba(27, 67, 50, 0.1);
    transform: translateY(-4px);
    border-color: #D8F3DC;
}
.why-card .why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--primary-darkest, #1B4332), var(--primary, #40916C));
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
}
.why-card h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    margin-bottom: 0.5rem;
}
.why-card p {
    font-size: 0.85rem;
    color: var(--text-muted, #6C757D);
    margin: 0;
    line-height: 1.6;
}

/* --- How to Order Section --- */
.steps-section {
    padding: 4rem 0;
    background-color: #fff;
}
.step-card {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}
.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-darkest, #1B4332), var(--primary-dark, #006C48));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(27, 67, 50, 0.2);
}
.step-icon {
    width: 68px;
    height: 68px;
    background-color: #D8F3DC;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-dark, #006C48);
    font-size: 1.6rem;
    transition: transform 0.25s ease;
}
.step-card:hover .step-icon {
    transform: scale(1.1) rotate(-3deg);
}
.step-card h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark, #012D1D);
    margin-bottom: 0.45rem;
}
.step-card p {
    font-size: 0.82rem;
    color: var(--text-muted, #6C757D);
    margin: 0;
    line-height: 1.6;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991.98px) {
    .hero-brand-name { font-size: 2.6rem; }
    .hero-title { font-size: 1.45rem; }
    .hero-image-wrapper { margin-top: 2rem; }
    .stats-bar { justify-content: center; }
}
@media (max-width: 767.98px) {
    .hero-brand-name { font-size: 2.2rem; }
    .hero-title { font-size: 1.25rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { text-align: center; }
    .hero-image-badge { font-size: 0.72rem; padding: 0.35rem 0.85rem; }
    .stats-bar { gap: 1rem; }
}

/* ========================================================
   4 Departments Showcase & Cross-Sell Styles
   ======================================================== */
.departments-section {
    background-color: #F8FAF8;
    position: relative;
}
.dept-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.75rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 108, 72, 0.12);
}
.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #006C48;
}
.dept-card--shaib::before { background: linear-gradient(90deg, #F39C12, #E67E22); }
.dept-card--breakfast::before { background: linear-gradient(90deg, #F1C40F, #D35400); }
.dept-card--essentials::before { background: linear-gradient(90deg, #27AE60, #2ECC71); }
.dept-card--boxes::before { background: linear-gradient(90deg, #8E44AD, #9B59B6); }

.dept-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.dept-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #F4FAF6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dept-emoji {
    font-size: 1.85rem;
}
.dept-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #012D1D;
    margin: 0;
}
.dept-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.dept-tag-chip {
    display: inline-flex;
    align-items: center;
    background: #F8FAF9;
    border: 1px solid #E2E8F0;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.32rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dept-tag-chip:hover {
    background: #006C48;
    color: #FFFFFF !important;
    border-color: #006C48;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 108, 72, 0.2);
}
.btn-dept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #006C48;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-top: auto;
}
.btn-dept:hover {
    background: #014D33;
    transform: translateX(-3px);
}

/* --- Departments Footer & Pagination --- */
.departments-footer {
    margin-top: 2.75rem;
}
.departments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.dept-page-btn,
.dept-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #1F2937;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.dept-page-btn:hover,
.dept-page-number:hover {
    border-color: #006C48;
    color: #006C48;
    transform: translateY(-2px);
    background: #F0FDF4;
    box-shadow: 0 4px 8px rgba(0, 108, 72, 0.12);
}
.dept-page-number.active {
    background: #006C48;
    border-color: #006C48;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 108, 72, 0.25);
}
.departments-view-all {
    margin-top: 1rem;
}
.departments-view-all .btn-outline-custom {
    padding: 0.65rem 2rem;
    font-size: 0.95rem;
}

/* Subtle Shipping Saver Incentive Bar */
.shipping-saver-bar {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 16px;
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #166534;
    box-shadow: 0 2px 8px rgba(0, 108, 72, 0.05);
    flex-wrap: wrap;
}
.ss-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.ss-content {
    flex-grow: 1;
    font-size: 0.92rem;
    line-height: 1.6;
}
.ss-tag {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    margin-left: 0.5rem;
}
.ss-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #006C48;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 0.95rem;
    background: #FFFFFF;
    border: 1px solid #86EFAC;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.ss-cta:hover {
    background: #006C48;
    color: #FFFFFF !important;
    border-color: #006C48;
}

