/* ==========================================================================
   Demo Three — Vendor Store (vendor-store.html)
   Loaded after home.css + common.css, before responsive.css
   ========================================================================== */
/* Store header */
.vstore-head {
    margin-bottom: 30px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    overflow: hidden;
}

.vstore-cover {
    height: 260px;
}

.vstore-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vstore-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 0 30px 26px;
}

.vstore-logo {
    width: 120px;
    height: 120px;
    margin-top: -50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    border-radius: 24px;
    background: var(--pg-btn-bg);
    color: #fff;
    font-size: 44px;
    box-shadow: var(--pg-shadow-hover);
}

.vstore-info {
    flex: 1;
    min-width: 240px;
    padding-top: 16px;
}

.vstore-info h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 28px;
    color: var(--pg-dark);
}

.vstore-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--pg-muted);
}

.vend-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pg-muted);
}

.vstore-stats {
    display: flex;
    gap: 28px;
    padding-top: 16px;
    list-style: none;
}

.vstore-stats strong {
    display: block;
    font-family: var(--pg-head-font);
    font-size: 22px;
    color: var(--pg-dark);
}

.vstore-stats span {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--pg-muted);
}

.vstore-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
}

/* Layout */
.vstore-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.vstore-side {
    position: sticky;
    top: var(--pg-sticky-top);
    display: grid;
    gap: 24px;
}

.vstore-side .pg-widget {
    margin-bottom: 0;
}

.vstore-contact {
    display: grid;
    gap: 12px;
    list-style: none;
    font-size: 14px;
    color: var(--pg-muted);
}

.vstore-contact i {
    width: 20px;
    color: var(--pg-accent);
}

.vstore-coupon {
    padding: 24px;
    border: 2px dashed var(--pg-accent);
    border-radius: var(--pg-radius);
    background: var(--pg-accent-soft);
    text-align: center;
}

.vstore-coupon strong {
    display: block;
    font-family: var(--pg-head-font);
    font-size: 34px;
    color: var(--pg-dark);
}

.vstore-coupon p {
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--pg-muted);
}

.vstore-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border-radius: var(--pg-radius-sm);
    background: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--pg-dark);
}

.vstore-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 6px;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    overflow-x: auto;
}

.vstore-tabs button {
    flex-shrink: 0;
    padding: 11px 22px;
    border: none;
    border-radius: var(--pg-radius-sm);
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vstore-tabs button:hover {
    color: var(--pg-accent);
}

.vstore-tabs button.active {
    background: var(--pg-btn-bg);
    color: #fff;
}

.vstore-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--pg-muted);
}

.vstore-toolbar .pg-input {
    width: auto;
}

.vstore-sub {
    margin-top: 24px;
}

.vstore-score {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.vstore-score-big {
    text-align: center;
}

.vstore-score-big strong {
    display: block;
    font-family: var(--pg-head-font);
    font-size: 56px;
    line-height: 1;
    color: var(--pg-dark);
}

.vstore-score-big .pg-stars {
    margin: 8px 0 4px;
    font-size: 16px;
}

.vstore-score-big span {
    display: block;
    font-size: 12px;
    color: var(--pg-muted);
}

.vstore-bars {
    display: grid;
    gap: 10px;
}

.vstore-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--pg-muted);
}

.vstore-bar i.fa-star {
    color: var(--pg-star);
}

.vstore-bar div {
    height: 8px;
    border-radius: 8px;
    background: var(--pg-bg-soft);
    overflow: hidden;
}

.vstore-bar div i {
    display: block;
    height: 100%;
    background: var(--pg-star);
}

.vstore-review {
    margin-bottom: 16px;
}

.vstore-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.vstore-review-head > div {
    flex: 1;
}

.vstore-review-head strong {
    display: block;
    color: var(--pg-dark);
}

.vstore-review-head span {
    font-size: 12px;
    color: var(--pg-muted);
}

.vstore-avatar {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--pg-accent-soft);
    color: var(--pg-accent) !important;
    font-size: 14px !important;
    font-weight: 700;
}

.vstore-review p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pg-muted);
}

@media (max-width: 1199.98px) {
    .vstore-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .vstore-page .pg-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .vstore-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vstore-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: 2;
    }

    .vstore-coupon {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .vstore-cover {
        height: 180px;
    }

    .vstore-profile {
        padding: 0 20px 22px;
        gap: 14px;
    }

    .vstore-logo {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }

    .vstore-info h1 {
        font-size: 22px;
    }

    .vstore-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .vstore-score {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .vstore-stats {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .vstore-actions {
        width: 100%;
    }

    .vstore-actions .pg-btn {
        flex: 1;
    }

    .vstore-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vstore-toolbar .pg-input {
        width: 100%;
    }
}
