/* ==========================================================================
   CHANDRA INNOVATE — MODERN BLINKIT + AMAZON HYBRID STOREFRONT SYSTEM
   ========================================================================== */

:root {
    --ci-orange: #ff6b00;
    --ci-orange-dark: #e04800;
    --ci-orange-light: #fff5eb;
    --ci-green: #10b981;
    --ci-green-dark: #059669;
    --ci-green-light: #ecfdf5;
    --ci-navy: #0f172a;
    --ci-navy-2: #1e293b;
    --ci-slate: #334155;
    --ci-muted: #64748b;
    --ci-line: #e2e8f0;
    --ci-bg: #f8fafc;
    --ci-card: #ffffff;
    --ci-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --ci-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --ci-shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
    --ci-radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ci-navy);
    background-color: var(--ci-bg);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ==========================================================================
   ANNOUNCEMENT TOP BAR
   ========================================================================== */
.top-notice-bar {
    background: linear-gradient(90deg, #ff6b00 0%, #ff8500 50%, #10b981 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   MASTER HEADER
   ========================================================================== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ci-line);
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: var(--ci-shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    min-height: 72px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

/* Blinkit Style Location / Delivery Pill */
.delivery-location-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ci-green-light);
    border: 1px solid #bbf7d0;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.delivery-location-pill:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
}

.delivery-time-tag {
    font-size: 12px;
    font-weight: 900;
    color: var(--ci-green-dark);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delivery-address-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--ci-navy);
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Amazon Style Universal Search Bar */
.search-wrapper {
    flex-grow: 1;
    max-width: 620px;
}

.search-bar-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-bar-form:focus-within {
    border-color: var(--ci-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.search-category-select {
    background: #f1f5f9;
    border: none;
    border-right: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ci-slate);
    padding: 0 12px;
    height: 44px;
    outline: none;
    cursor: pointer;
}

.search-input {
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    outline: none;
    background: transparent;
    color: var(--ci-navy);
}

.search-submit-btn {
    background: var(--ci-orange);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    height: 44px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-submit-btn:hover {
    background: var(--ci-orange-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-become-seller {
    background: #ffffff;
    color: var(--ci-orange);
    border: 1.5px solid var(--ci-orange);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-become-seller:hover {
    background: var(--ci-orange-light);
    color: var(--ci-orange-dark);
}

.btn-user-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ci-navy);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 10px;
}

.btn-user-auth:hover {
    background: #f1f5f9;
}

/* Cart Button with Total Amount Pill (Blinkit Style) */
.header-cart-btn {
    background: var(--ci-green);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.header-cart-btn:hover {
    background: var(--ci-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.cart-items-count-pill {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* ==========================================================================
   CATEGORY NAVIGATION RIBBON
   ========================================================================== */
.category-ribbon {
    background: #ffffff;
    border-bottom: 1px solid var(--ci-line);
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.category-ribbon::-webkit-scrollbar {
    display: none;
}

.category-ribbon-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid var(--ci-line);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ci-slate);
    transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--ci-navy);
    color: #ffffff;
    border-color: var(--ci-navy);
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */
.hero-slider-wrap {
    margin: 20px 0 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ci-shadow-md);
}

.hero-slide-content {
    min-height: 280px;
    padding: 40px;
    display: flex;
    align-items: center;
    position: relative;
    color: #ffffff;
}

.hero-slide-1 {
    background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 60%, #0284c7 100%);
}

.hero-slide-2 {
    background: linear-gradient(125deg, #7c2d12 0%, #ea580c 50%, #f97316 100%);
}

.hero-slide-3 {
    background: linear-gradient(125deg, #064e3b 0%, #059669 60%, #10b981 100%);
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-hero-cta {
    background: #ffffff;
    color: var(--ci-navy);
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta:hover {
    background: #f8fafc;
    color: var(--ci-orange);
    transform: translateY(-2px);
}

/* ==========================================================================
   FEATURE TRUST BADGES
   ========================================================================== */
.trust-bar {
    background: #ffffff;
    border: 1px solid var(--ci-line);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 35px;
    box-shadow: var(--ci-shadow-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ci-orange-light);
    color: var(--ci-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.trust-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--ci-navy);
    margin-bottom: 2px;
}

.trust-sub {
    font-size: 12px;
    color: var(--ci-muted);
}

/* ==========================================================================
   FLASH DEALS & COUNTDOWN TIMER
   ========================================================================== */
.flash-deals-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 35px;
}

.timer-pill {
    background: var(--ci-orange);
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 850;
    color: var(--ci-navy);
    letter-spacing: -0.5px;
    margin: 0;
}

.section-subtitle {
    font-size: 13px;
    color: var(--ci-muted);
    margin-top: 4px;
}

/* ==========================================================================
   BLINKIT + AMAZON PRODUCT CARD
   ========================================================================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--ci-line);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--ci-shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ci-shadow-lg);
    border-color: #cbd5e1;
}

.card-top-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    pointer-events: none;
}

.delivery-speed-badge {
    background: #ffffff;
    color: var(--ci-green-dark);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #bbf7d0;
}

.discount-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.product-img-wrap {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.product-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.unit-weight-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--ci-muted);
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ci-navy);
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-card-title:hover {
    color: var(--ci-orange);
}

.vendor-shop-tag {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vendor-shop-tag strong {
    color: var(--ci-slate);
}

.rating-stars {
    font-size: 11px;
    color: #f59e0b;
    margin-bottom: 10px;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--ci-line);
}

.price-group {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--ci-navy);
}

.mrp-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ==========================================================================
   BLINKIT STYLE ADD & QUANTITY STEPPER BUTTON
   ========================================================================== */
.cart-action-container {
    width: 86px;
    height: 36px;
}

.btn-add-initial {
    background: #ffffff;
    color: var(--ci-green-dark);
    border: 1.5px solid var(--ci-green);
    font-weight: 800;
    font-size: 13px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-add-initial:hover {
    background: var(--ci-green);
    color: #ffffff;
}

.qty-stepper-box {
    background: var(--ci-green);
    color: #ffffff;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.stepper-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    width: 26px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.stepper-btn:active {
    transform: scale(0.85);
}

.stepper-count {
    font-size: 13px;
    font-weight: 800;
}

/* ==========================================================================
   STICKY BOTTOM FLOATING CART BAR (BLINKIT STYLE)
   ========================================================================== */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 32px);
    max-width: 600px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    z-index: 1050;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-cart-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.floating-cart-icon {
    width: 44px;
    height: 44px;
    background: var(--ci-orange);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-items-count {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.floating-total-amount {
    font-size: 18px;
    font-weight: 900;
}

.btn-floating-view-cart {
    background: var(--ci-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.btn-floating-view-cart:hover {
    background: var(--ci-green-dark);
    color: #ffffff;
}

/* ==========================================================================
   MODAL: LOCATION PICKER
   ========================================================================== */
.location-modal-card {
    border-radius: 18px;
    overflow: hidden;
    border: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 25px;
    margin-top: 60px;
}

.site-footer h6 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-link {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.footer-link:hover {
    color: var(--ci-orange);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    margin-top: 35px;
    font-size: 13px;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .delivery-location-pill {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }
    .brand-logo-img {
        height: 38px;
    }
    .search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .btn-become-seller span {
        display: none;
    }
    .hero-slide-content {
        padding: 24px;
        min-height: 220px;
    }
    .hero-title {
        font-size: 24px;
    }
    .product-img-wrap {
        height: 140px;
    }
}
