        /* --- 1. HEADER (Dark Purple) --- */
/* Add/Update this in public/css/vendor-profile.css */

.store-header {
    width: 100%;
    height: 80px;
    background-color: #2c0e38;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 1. Logo (Right) */
.header-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
.header-logo img {
    height: 45px;
    width: auto;
}

/* 2. Title (Center) */
.header-title {
    flex: 2;
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Spacer (Left) */
.header-spacer {
    flex: 1;
}

@media (max-width: 768px) {
    .header-title { font-size: 1.1rem; }
}

        /* --- 2. HERO SECTION --- */
.vendor-hero {
    position: relative;
    background-color: #fff;
    margin-bottom: 50px;
}

.vendor-banner {
    width: 80%; /* ✅ UPDATED: Matches page width */
    max-width: none; /* Remove the 1200px limit */
    margin: 0 auto;
    height: 320px;
    background-color: #ddd;
    /* (Background image handled inline in HTML) */
    background-size: cover;
    background-position: center;
    border-radius: 0 0 16px 16px;
}

.vendor-banner.no-banner {
    background: linear-gradient(135deg, #8f3f99, #5a2a6b);
    background-image: none;
}

.vendor-info-bar {
    width: 80%; /* ✅ UPDATED: Matches page width */
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    top: -60px;
    margin-bottom: -40px;
}

/* ... (Keep .vendor-logo, .vendor-text, .vendor-name, etc. exactly the same) ... */

.vendor-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }

.vendor-text {
    margin-right: 25px;
    margin-left: 25px;
    margin-top: 75px;
    flex: 1;
}
html[dir="rtl"] .vendor-text { margin-left: 0; }
html[dir="ltr"] .vendor-text { margin-right: 0; }

.vendor-name {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.vendor-rating {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.vendor-location {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}
.location-part::after { content: "-"; margin: 0 5px; color: #ccc; }
.location-part:last-child::after { content: ""; margin: 0; }


/* --- 3. GRID SYSTEM (UPDATED) --- */

.container {
    width: 80%; /* ✅ UPDATED: 80% of the screen width */
    max-width: none; /* Removes the 1200px cap */
    margin: 0 auto;
    padding: 0 0 80px 0; /* Adjusted padding */
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #2c0e38;
    border-right: 5px solid #8b5cf6;
    padding-right: 15px;
}
html[dir="ltr"] .section-title {
    border-right: none;
    border-left: 5px solid #8b5cf6;
    padding-right: 0;
    padding-left: 15px;
}

.products-grid {
    display: grid;
    /* ✅ FIXED: Forces 4 items per row on large screens */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet (Laptop) - 3 items */
@media (max-width: 1200px) {
    .container, .vendor-banner, .vendor-info-bar { width: 90%; } /* Wider on smaller screens */
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet (Portrait) - 2 items */
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile - 1 item */
@media (max-width: 600px) {
    .container, .vendor-banner, .vendor-info-bar { width: 95%; } /* Full width on mobile */
    .products-grid { grid-template-columns: 1fr; }

    .vendor-info-bar { flex-direction: column; align-items: center; text-align: center; top: -50px; }
    .vendor-text { margin: 15px 0 0 0; padding-bottom: 20px; }
    .vendor-banner { height: 180px; border-radius: 0; }
}
/* Fix for WordPress Emoji Images */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}
