/* Shop Header V2 Redesign - Matches Reference Image */

:root {
    --header-primary: #079A4B;
    --header-bg: #ffffff;
    --header-text: #1c1c1c;
    --header-text-muted: #64748b;
    --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --header-border: #f1f5f9;
}

.shop-header-v2-container {
    padding: 0;
    background: #f8fafc;
    margin-bottom: 12px; /* Tighter transition to content */
}

/* 1. Banner Section */
.sh-banner-box {
    width: 100%;
    height: 140px; /* Reduced from 180px */
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 20px 20px; /* Softer corners */
}

.sh-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 10px;
}

/* 2. Shop Identity Card */
.sh-id-card {
    background: #fff;
    margin: -30px 14px 12px 14px; /* More compact margins */
    padding: 12px 16px 16px 16px; /* Drastically reduced padding */
    border-radius: 16px;
    position: relative;
    box-shadow: var(--header-shadow);
    z-index: 10;
}

.sh-logo-container {
    position: absolute;
    top: -32px; /* Adjusted for smaller logo */
    left: 16px;
    width: 64px; /* Reduced from 80px */
    height: 64px; /* Reduced from 80px */
    background: #fff;
    border-radius: 12px; /* Tighter corners for smaller size */
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 20;
}

.sh-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.sh-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px; /* Reduced gap */
    padding-top: 15px; /* Offset for logo overlap */
}

.sh-name {
    font-size: 1.25rem; /* Smaller font */
    font-weight: 800;
    color: var(--header-text);
    margin: 0;
}

.sh-status-badge {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 10px; /* Smaller badge */
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #dcfce7;
}

.sh-status-badge.closed {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.sh-address-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--header-text-muted);
    font-size: 0.8rem; /* Smaller font */
    font-weight: 500;
    margin-bottom: 8px;
}

.sh-address-row i {
    color: #ef4444;
    /* Red pin like reference */
}

.sh-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem; /* Smaller font */
    color: var(--header-text-muted);
    flex-wrap: wrap; /* Allow wrapping if needed on small screens */
}

.sh-rating-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 800;
}

.sh-dot {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* 3. Quick Links Section */
.sh-ql-container {
    padding: 0 16px;
    margin-bottom: 24px;
}

.sh-ql-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sh-ql-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--header-text);
    margin: 0;
}

.sh-ql-toggle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--header-primary);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.sh-ql-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; /* Tighter grid */
    transition: all 0.3s ease;
}

.sh-ql-grid.hidden {
    display: none;
}

.sh-ql-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 10px 12px; /* Reduced padding */
    border-radius: 12px; /* Tighter corners */
    display: flex;
    align-items: center;
    gap: 8px; /* Smaller internal gap */
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.sh-ql-card:hover {
    transform: translateY(-2px);
    border-color: var(--header-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sh-ql-icon {
    width: 30px; /* Reduced from 36px */
    height: 30px; /* Reduced from 36px */
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-primary);
    font-size: 0.95rem; /* Smaller icon */
}

.sh-ql-label {
    font-size: 0.85rem; /* Smaller font */
    font-weight: 700;
    color: var(--header-text);
}

/* Responsive Table Styles (Optional) */
@media (min-width: 992px) {
    .sh-ql-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}