/* Vendor Details Page Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    width: 100%;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Header Section */
.biz-header {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}
.biz-offers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;    align-items: center;
}
.biz-logo {
    width: 135px;
    height: 135px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.biz-details {
    display: flex;
    gap: 20px;
}
.biz-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.biz-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #f4b400;
    text-align: center;
}

.biz-info {
    flex: 1;
    min-width: 250px;
}

.biz-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    position: relative;
}

.biz-info .location {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-info .location i {
    color: #f4b400;
}

.biz-info .category {
    font-size: 15px;
    color: #f4b400;
    font-weight: 600;
    margin-bottom: 8px;
}

.biz-info .offer-text {
    font-size: 12px;
    font-weight: 700;
    color: #1e8f4d;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    display: inline-block;
}

.biz-banner {
    width: 280px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4b400, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

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

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4caf50;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.verified-badge i { font-size: 20px;}

/* Tabs */
.tabs {
    display: flex;
    gap: 32px;
    border-bottom: 2px solid #e0e0e0;
    margin-top: 28px;
    margin-bottom: 24px;
    overflow: hidden;
}

.tabs a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tabs a.active {
    color: #f4b400;
    border-bottom-color: #f4b400;
    font-weight: 700;
}

.tabs a:hover {
    color: #f4b400;
}

/* Content Sections */
.content-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #f4b400;
}

/* About Section */
.about p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.product-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e0e0e0;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

/* Tags Section */
.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag {
    padding: 8px 16px;
    border: 2px solid #f4b400;
    border-radius: 24px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.tag:hover {
    background: #f4b400;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 180, 0, 0.3);
}

/* Contact Section */
.contact-section {
    font-size: 15px;
}

.contact-row {
    margin-bottom: 16px;
    line-height: 1.8;
}

.contact-row .label {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.contact-row .value {
    color: #666;
}

.contact-inline {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 15px;
    margin-top: 12px;
}

.contact-inline a {
    color: #1e8f4d;
    text-decoration: none;
    font-weight: 600;
}

.contact-inline a:hover {
    text-decoration: underline;
}

/* Social Icons */
.social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-row .label {
    font-weight: 700;
    color: #333;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.website {
    background: #333;
}

.social-icon.whatsapp {
    background: #25d366;
}

/* Sidebar */
.vendors-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vendors-box h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid #f4b400;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
    color: #222;
}

.vendors-list {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

.offer-card-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid #b7b7b7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #f4b400;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

a.offer-card-sidebar {
    text-decoration: none;
    color: inherit;
}

.offer-card-sidebar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.offer-card-sidebar .vendor-logo {
    width: 120px;
    height: 70px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    margin: 0px;
}

.offer-card-sidebar .vendor-logo a.logo-link {
    background: none;
    display: inline-block;
    padding: 0px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.offer-card-sidebar .vendor-logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
    max-width: 100px;
}

.offer-card-sidebar .vendor-location {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.vendor-card {
    border: 2px solid #f4b400;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    text-decoration: none;
    display: block;
}

.vendor-card:hover {
    box-shadow: 0 6px 20px rgba(244, 180, 0, 0.3);
    transform: translateY(-4px);
}

.vendor-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f5f5f5;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #f4b400;
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.vendor-card .vname {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.vendor-card .vloc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.vendor-card .voffer {
    font-size: 14px;
    font-weight: 600;
    color: #1e8f4d;
    background: #e8f5e9;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

span.mobile-device {
    display: flex;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .biz-banner {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width:1024px) {
    .container {
        padding: 15px 12px;
    }

    .biz-logo{    width: 100px;
    height: 100px;}

    .biz-header {
        flex-direction: column;
        padding: 16px;
    }

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

    .tabs {
        gap: 20px;
    }

    .tabs a {
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .content-section {
        padding: 16px;
    }

    .section-title {
        font-size: 18px;
    }
}
@media (max-width:768px) {
.biz-offers{
        flex-direction: column;
    align-items: flex-start;
}
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tabs {
        gap: 15px;
        justify-content: center;
        
    }

    .tabs a {
        font-size: 11px;
    }

    .contact-inline {
        flex-direction: column;
        gap: 12px;
    }

    .biz-info h1 {
        font-size: 20px;
    }

    .content-section {
        padding: 14px;
    }
}

/* ✨ LIGHTBOX STYLES */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 15px;
    width: 30px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10000;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
    left: 10px;
}

.lightbox-nav-btn.next {
    right: 10px;
}

.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
}

/* Make product images clickable */
.product-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item img:hover {
    transform: scale(1.05);
}

/* Pinned Badge */
.pinned-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
    padding: 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 10;
    text-align: center;
}

/* Back to Template Button */
.back-to-template-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Icon Placeholders */
.icon-placeholder {
    font-size: 48px;
}

.icon-placeholder.image {
    opacity: 0.5;
}

.icon-placeholder.store {
    opacity: 0.7;
}

/* Empty State with Grid */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1/-1;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Phone Link in Contact */
.contact-phone {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

.contact-phone:hover {
    text-decoration: underline;
}

/* No Vendors Available Message */
.no-vendors-message {
    font-size: 14px;
    color: #999;
}
.content-section .about ul {
    padding-left: 25px;
}