/* =========================================================================
   PATNA360 - Premium Mobile First Shop Details Page
   New Theme: Modern Teal & Slate — No Purple
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --p360-primary:   #0D9488;   /* Teal */
    --p360-secondary: #0F766E;   /* Deep Teal */
    --p360-accent:    #14B8A6;   /* Light Teal */
    --p360-blue:      #2563EB;   /* Blue accent */
    --p360-orange:    #F59E0B;   /* Amber */
    --p360-success:   #22C55E;
    --p360-danger:    #EF4444;
    --p360-bg:        #F0FDF9;   /* Very light teal-tinted background */
    --p360-card:      #FFFFFF;
    --p360-text:      #0F172A;
    --p360-subtext:   #64748B;

    --card-radius: 24px;
    --btn-radius:  20px;
    --soft-shadow: 0 8px 24px rgba(13,148,136,0.08);
}

.shop-app-view {
    font-family: 'Inter', sans-serif;
    background: var(--p360-bg);
    color: var(--p360-text);
    min-height: 100vh;
    padding-bottom: 90px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.shop-app-view, .shop-app-view * {
    box-sizing: border-box;
}

/* Hide global navigation */
body { background: var(--p360-bg) !important; }
.p360-nav, .mobile-bottom-nav, footer { display: none !important; }

/* Utilities */
.text-primary { color: var(--p360-primary) !important; }
.text-success  { color: var(--p360-success) !important; }
.text-danger   { color: var(--p360-danger) !important; }
.text-orange   { color: var(--p360-orange) !important; }

/* ── SECTION 1: HERO ── */
.sd-hero { position: relative; height: 300px; }
.sd-hero-top {
    position: absolute; top: 16px; left: 16px; right: 16px; z-index: 20;
    display: flex; justify-content: space-between; align-items: center;
}
.sd-hero-actions { display: flex; gap: 8px; }
.sd-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.88); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--p360-text);
}
.sd-hero-actions .sd-icon-btn { width: auto; padding: 0 16px; gap: 6px; border-radius: 100px; }
.sd-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.sd-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

/* Modern teal-to-blue gradient instead of purple */
.sd-hero-gradient {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0D9488 0%, #0E7490 50%, #1D4ED8 100%);
}
.sd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
}

.sd-hero-content {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
    padding: 20px 24px 24px; color: #FFFFFF !important;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sd-featured-tag {
    background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25); color: #FCD34D;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 100px; margin-bottom: -16px; z-index: 5;
}
.sd-profile-pic {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); margin-bottom: 12px; position: relative;
    background: var(--p360-secondary); z-index: 10;
}
.sd-profile-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sd-profile-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans'; font-size: 2rem; font-weight: 800; color: white !important;
}
.sd-verified-icon {
    position: absolute; bottom: 0; right: -4px; width: 22px; height: 22px;
    background: #22C55E; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white; font-size: 0.7rem; font-weight: bold;
}
.sd-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800;
    margin: 0 0 8px 0; text-shadow: 0 2px 6px rgba(0,0,0,0.4); color: #FFFFFF !important;
}
.sd-rating-row {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 0.95rem; margin-bottom: 12px; color: #FFFFFF !important;
}
.sd-rating-val { font-weight: 800; color: #FFFFFF !important; }
.sd-review-count { color: rgba(255,255,255,0.85) !important; }
.sd-shop-verified {
    background: rgba(34,197,94,0.3); border: 1px solid rgba(34,197,94,0.5);
    padding: 3px 8px; border-radius: 100px;
    font-size: 0.65rem; font-weight: 800; margin-left: 8px; color: #BBFFD8 !important;
}
.sd-tags-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.sd-tag {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    padding: 5px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 500;
}
.sd-status-tag {
    padding: 5px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.sd-status-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.sd-status-tag.active  { background: rgba(34,197,94,0.2);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.3); }
.sd-status-tag.active .dot  { background: #4ADE80; box-shadow: 0 0 6px #4ADE80; animation: blink 1.5s infinite; }
.sd-status-tag.inactive { background: rgba(239,68,68,0.2); color: #F87171; border: 1px solid rgba(239,68,68,0.3); }
.sd-status-tag.inactive .dot { background: #F87171; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── BODY LAYOUT ── */
.sd-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

/* ── REUSABLE CARD ── */
.sd-card {
    background: var(--p360-card); border-radius: var(--card-radius);
    padding: 20px; box-shadow: var(--soft-shadow);
    border: 1px solid rgba(13,148,136,0.06);
}
.sd-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sd-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 800;
    margin: 0; color: var(--p360-text);
}

/* ── SECTION 2: LIVE STATUS CARD ── */
.sd-status-grid { display: flex; }
.sd-status-col { flex: 1; padding: 0 10px; display: flex; flex-direction: column; }
.sd-status-col:first-child { padding-left: 0; padding-right: 16px; border-right: 1px solid #E2E8F0; }
.sd-status-col:last-child  { padding-left: 16px; padding-right: 0; }
.sd-label-sm { font-size: 0.65rem; font-weight: 700; color: var(--p360-subtext); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.sd-status-main { font-family: 'Plus Jakarta Sans'; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sd-status-sub  { font-size: 0.85rem; font-weight: 600; color: var(--p360-text); margin-bottom: 12px; }
.sd-time-ago    { font-size: 0.75rem; color: var(--p360-subtext); display: flex; align-items: center; gap: 4px; }
.sd-loc-main    { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.sd-gps-badge   { display: inline-block; background: #DCFCE7; color: var(--p360-success); font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; margin-bottom: 6px; align-self: flex-start; }
.sd-btn-primary-sm {
    background: linear-gradient(135deg, var(--p360-primary), var(--p360-blue));
    color: white; border: none; padding: 10px; border-radius: 14px; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; margin-top: auto;
}

/* ── SECTION 3: QUICK ACTIONS ── */
.sd-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 12px; gap: 8px; }
.sd-qa-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--p360-text); }
.sd-qa-icon {
    width: 52px; height: 52px; background: #F0FDF9; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s; border: 1px solid rgba(13,148,136,0.1);
}
.sd-qa-item:hover .sd-qa-icon { background: #CCFBF1; transform: scale(1.05); }
.sd-qa-item span { font-size: 0.72rem; font-weight: 700; text-align: center; color: #475569; }

/* ── SECTION 4: MEET THE VENDOR ── */
.sd-section { margin-top: 4px; }
.sd-vendor-card { background: var(--p360-card); border-radius: var(--card-radius); padding: 20px; box-shadow: var(--soft-shadow); border: 1px solid rgba(13,148,136,0.06); }
.sd-vendor-profile { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.sd-vendor-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #CCFBF1; flex-shrink: 0; }
.sd-vendor-img.placeholder { background: #CCFBF1; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: var(--p360-primary); border: none; }
.sd-vendor-info { flex: 1; }
.sd-vendor-name { font-family: 'Plus Jakarta Sans'; font-size: 1.2rem; font-weight: 800; margin-bottom: 2px; }
.sd-vendor-role { font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--p360-primary); }
.sd-vendor-meta { font-size: 0.8rem; color: var(--p360-subtext); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.sd-vendor-quote {
    background: linear-gradient(135deg, #F0FDF9, #E0F2FE);
    border-radius: 16px; padding: 16px; font-size: 0.9rem; color: #0F4C4C; line-height: 1.6;
    position: relative; padding-left: 40px; font-style: italic;
    border-left: 3px solid var(--p360-accent);
}
.quote-mark { position: absolute; left: 12px; top: 8px; font-size: 2.5rem; color: var(--p360-accent); font-family: serif; font-weight: 900; line-height: 1; }

/* ── SECTION 5: WHY PEOPLE VISIT ── */
.sd-scroll-chips { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; margin-left: -16px; padding-left: 16px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.sd-scroll-chips::-webkit-scrollbar { display: none; }
.sd-chip {
    white-space: nowrap; padding: 10px 16px; border-radius: 100px; border: 1px solid #99F6E4;
    background: #F0FDF9; font-weight: 600; font-size: 0.88rem; color: var(--p360-secondary);
    box-shadow: 0 2px 8px rgba(13,148,136,0.05); display: flex; align-items: center; gap: 6px;
}

/* ── SECTION 6: TODAY'S ACTIVITY ── */
.sd-live-badge {
    background: #DCFCE7; color: var(--p360-success); font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 100px; display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 8px rgba(34,197,94,0.15);
}
.sd-live-badge .dot { width: 7px; height: 7px; background: var(--p360-success); border-radius: 50%; animation: blink 1.5s infinite; }
.sd-activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sd-activity-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 16px 8px; border-radius: 20px; background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid #F1F5F9;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sd-activity-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.sd-act-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* Vibrant icon backgrounds */
.sd-icon-views { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); color: #1D4ED8; }
.sd-icon-calls { background: linear-gradient(135deg, #FFEDD5, #FFF7ED); color: #EA580C; }
.sd-icon-nav   { background: linear-gradient(135deg, #CCFBF1, #F0FDF9); color: #0D9488; }

.sd-act-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; font-weight: 900; color: #0F172A; margin-bottom: 2px; line-height: 1; }
.sd-act-lbl { font-size: 0.68rem; color: #94A3B8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }

/* Interest pill footer */
.sd-act-footer {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 14px 16px; background: linear-gradient(135deg, #F0FDF9, #EFF6FF);
    border-radius: 18px; font-size: 0.82rem; color: #475569; font-weight: 600;
    border: 1px solid rgba(13,148,136,0.1);
}
.sd-avatar-pile { display: flex; justify-content: center; align-items: center; }
.sd-avatar-pile .av, .sd-avatar-pile .av-more {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid #F0FDF9; margin-left: -12px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); background: #ffffff;
    transition: transform 0.2s;
}
.sd-avatar-pile .av:first-child { margin-left: 0; }
.sd-avatar-pile .av:hover { transform: scale(1.15); z-index: 10; }
.sd-avatar-pile .av-more {
    background: linear-gradient(135deg, #0D9488, #1D4ED8);
    color: white; font-weight: 800; font-size: 0.72rem; border-color: #F0FDF9;
}

/* ── SECTION 7: COMMUNITY REVIEWS ── */
.sd-review-summary { text-align: center; }
.sd-rev-big { font-family: 'Plus Jakarta Sans'; font-size: 3rem; font-weight: 800; color: #F59E0B; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sd-rev-big .star { font-size: 2rem; }
.sd-rev-sub { font-size: 0.85rem; color: var(--p360-subtext); font-weight: 500; margin-bottom: 16px; }
.sd-divider { border: none; border-top: 1px dashed #E2E8F0; width: 40px; margin: 0 auto 16px; }
.sd-btn-outline {
    width: 100%; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1.5px solid var(--p360-primary); color: var(--p360-primary);
    padding: 14px; border-radius: var(--btn-radius); font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: 0.2s; font-family: 'Inter';
}
.sd-btn-outline:hover { background: #F0FDF9; }
.sd-reviews-list { margin-top: 24px; text-align: left; }
.sd-rev-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #F1F5F9; }
.sd-rev-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sd-rev-item strong { font-size: 0.95rem; color: var(--p360-text); display: block; margin-bottom: 4px; }
.sd-rev-stars { font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 8px; }
.sd-rev-item p { margin: 0; font-size: 0.9rem; color: var(--p360-subtext); line-height: 1.5; }

/* ── SECTION 8: PHOTO GALLERY ── */
.sd-scroll-gallery { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 4px; margin-left: -16px; padding-left: 16px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.sd-scroll-gallery::-webkit-scrollbar { display: none; }
.sd-gal-item { width: 140px; height: 110px; flex-shrink: 0; border-radius: 16px; overflow: hidden; cursor: pointer; }
.sd-gal-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── SECTION 9: NEARBY SHOPS ── */
.sd-scroll-nearby { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; margin-left: -16px; padding-left: 16px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.sd-scroll-nearby::-webkit-scrollbar { display: none; }
.sd-nearby-card {
    width: 240px; flex-shrink: 0; display: flex; gap: 12px; background: var(--p360-card);
    padding: 12px; border-radius: 20px; text-decoration: none;
    box-shadow: 0 4px 12px rgba(13,148,136,0.04); border: 1px solid rgba(13,148,136,0.08);
}
.sd-nearby-card img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.sd-nb-info { flex: 1; min-width: 0; }
.sd-nb-info h4 { margin: 0 0 2px 0; font-size: 0.95rem; font-family: 'Plus Jakarta Sans'; color: var(--p360-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-nb-cat   { font-size: 0.75rem; color: var(--p360-primary); font-weight: 600; margin-bottom: 4px; }
.sd-nb-dist  { font-size: 0.75rem; color: var(--p360-subtext); margin-bottom: 4px; }
.sd-nb-status { font-size: 0.7rem; font-weight: 800; padding: 2px 6px; background: #F0FDF9; border-radius: 100px; display: inline-block; color: var(--p360-primary); }

/* ── SECTION 10: STICKY CTA BAR ── */
.sd-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(13,148,136,0.1);
    padding: 12px 16px 24px 16px;
    display: flex; gap: 10px; align-items: center; justify-content: space-between;
    box-shadow: 0 -6px 24px rgba(13,148,136,0.08);
}
@media (min-width: 500px) {
    .sd-sticky-cta { left: 50%; width: 500px; transform: translateX(-50%); border-radius: 24px 24px 0 0; }
}
.cta-icon {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.65rem; font-weight: 700; color: #475569; text-decoration: none; flex: 1;
}
.cta-icon svg { color: var(--p360-primary); }
.cta-btn-main {
    flex: 2; background: linear-gradient(135deg, var(--p360-primary), var(--p360-blue));
    color: white; border-radius: 100px; padding: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 4px 18px rgba(13,148,136,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn-main:hover { transform: scale(1.02); box-shadow: 0 6px 24px rgba(13,148,136,0.45); }

/* pill_sm utility */
.pill-sm { padding: 2px 8px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; margin-left: 4px; }
.bg-danger-light { background: #FEE2E2; }
.sd-col-border {}
