/* =====================================================
   SUNLITE BRAND DESIGN SYSTEM
   Logo navy: #000080 | CTA blue: #1564f5
   ===================================================== */

/* ---- Master brand palette ---- */
:root {
    --brand-navy:    #000080;   /* Exact logo navy — used for dark sections */
    --brand-primary: #1564f5;   /* Vivid CTA blue — buttons, links */
    --brand-hover:   #0d52cc;   /* Button hover — darker */
    --brand-accent:  #4d84ff;   /* Icon accent — lighter blue on dark bg */
    --brand-light:   #eef3ff;   /* Light blue tint for section backgrounds */
    --brand-mid:     #1a3a8a;   /* Mid navy for gradients */
    --brand-sky:     #60a5fa;   /* Sky blue for subtle highlights */
}

/* =====================================================
   SUNLITE STORE — PHASE 1 ENHANCEMENTS
   Inspired by Moglix UX patterns
   ===================================================== */

/* ---- Discount badge overlay (top-right of card) ---- */
.badge-disc-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 3;
    letter-spacing: 0.3px;
    pointer-events: none;
}

/* ---- Promo badge overlay (top-left of card) ---- */
.badge-promo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 3;
    letter-spacing: 0.3px;
    color: #fff;
    background: #ff9800;
    pointer-events: none;
    text-transform: uppercase;
}
.badge-promo-overlay.new-arrival  { background: #15803d; }
.badge-promo-overlay.top-seller   { background: #ff9800; }
.badge-promo-overlay.hot-deal     { background: #d32f2f; }
.badge-promo-overlay.trending     { background: #7c3aed; }
.badge-promo-overlay.limited      { background: #dc2626; }

/* ---- Trust stats bar (Moglix-style compact strip) ---- */
.trust-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: var(--brand-navy, #000080);
    padding: 12px 20px;
    margin: 0 0 0 0;
}
.trust-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 28px;
    border-right: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}
.trust-stat-item:last-child { border-right: none; }
.trust-stat-item i {
    color: var(--brand-accent, #4d84ff);
    font-size: 18px;
}
.trust-stat-item .stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
}
.trust-stat-item .stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1;
}
@media (max-width: 767px) {
    .trust-stat-item {
        padding: 6px 14px;
        border-right: none;
        border-bottom: none;
    }
    .trust-stats-bar { gap: 0; padding: 10px 10px; }
    .trust-stat-item .stat-num { font-size: 14px; }
    .trust-stat-item .stat-label { font-size: 10px; }
}

/* ---- Newsletter section ---- */
.newsletter-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
    padding: 50px 0;
    border-top: none;
    box-shadow: 0 6px 30px rgba(37,99,235,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.newsletter-text h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.newsletter-text p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 480px;
    min-width: 280px;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 13px 18px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-right: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input[type="email"]:focus { border-color: var(--brand-accent, #4d84ff); }
.newsletter-form button {
    padding: 13px 24px;
    background: var(--brand-primary, #1564f5);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.newsletter-form button:hover { background: var(--brand-hover, #0d52cc); }
.newsletter-icon-badge {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
    .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .newsletter-form { max-width: 100%; width: 100%; }
}

/* ---- Estimated delivery tag on product card ---- */
.delivery-tag {
    font-size: 11px;
    color: #15803d;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.delivery-tag i { font-size: 10px; }

/* ---- Improved zero-result search UX ---- */
.search-zero-result {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin: 30px auto;
    max-width: 600px;
}
.search-zero-result .zero-icon {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}
.search-zero-result h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}
.search-zero-result p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
}
.search-zero-result .tip-list {
    text-align: left;
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #475569;
}
.search-zero-result .tip-list li { margin-bottom: 8px; }
.search-zero-result .popular-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.search-zero-result .popular-cat-btn {
    background: var(--brand-light, #eef3ff);
    color: var(--brand-primary, #1564f5);
    border: 1px solid #c0d4ff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.search-zero-result .popular-cat-btn:hover {
    background: var(--brand-primary, #1564f5);
    color: #fff;
    border-color: var(--brand-primary, #1564f5);
}

/* ---- Estimated delivery row on product detail page ---- */
.delivery-estimate-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
}
.delivery-estimate-bar i { font-size: 16px; color: #15803d; }
.delivery-estimate-bar span { color: #475569; font-weight: 400; }
