* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Premium Sticky Header */
.seller-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-rgb, 255, 255, 255), 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.back-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.back-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.header-seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.header-avatar,
.header-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.header-business-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9375rem;
}

.header-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.header-contact-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* Premium Profile Hero */
.seller-profile-hero {
    background: linear-gradient(180deg, 
        var(--bg-secondary) 0%, 
        var(--bg) 100%
    );
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large img,
.avatar-placeholder-large {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.avatar-placeholder-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
}

.verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 3px solid var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-category {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-stat {
    background: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.business-bio {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 500px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-primary-action:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Products Section */
.products-section {
    padding: 3rem 0 4rem;
    background: var(--bg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.product-count {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Your Product Cards - UNCHANGED */
.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-gallery {
    position: relative;
    background: var(--bg-secondary);
}

.single-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0.75rem;
}

.carousel-btn.next {
    right: 0.75rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.image-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.price-tag {
position: absolute;
top: 0.75rem;
left: 0.75rem;
background: var(--primary);
color: white;
padding: 0.5rem 1rem;
border-radius: 50px;
font-weight: 700;
font-size: 1rem;
box-shadow: var(--shadow-md);
z-index: 10;
}
.product-info {
padding: 1.5rem;
}
.product-desc {
font-size: 0.9375rem;
color: var(--text);
line-height: 1.6;
margin-bottom: 1.25rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.btn-whatsapp-sm {
background: #25D366;
color: white;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-sm);
font-size: 0.875rem;
font-weight: 600;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
transition: var(--transition);
width: 100%;
}
.btn-whatsapp-sm:hover {
background: #128C7E;
transform: translateY(-1px);
}
.empty-state {
text-align: center;
padding: 5rem 2rem;
color: var(--text-light);
}
.empty-state svg {
margin-bottom: 1.5rem;
opacity: 0.4;
}
.empty-state p {
font-size: 1.125rem;
}
/* Separate Powered By Section */
.powered-by-section {
padding: 3rem 0;
background: var(--bg-secondary);
border-top: 1px solid var(--border);
}
.powered-card {
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(20px);
border: 2px solid var(--border);
border-radius: var(--radius-lg);
padding: 2rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
transition: all 0.3s ease;
margin-bottom: 1rem;
}
[data-theme="dark"] .powered-card {
background: rgba(30, 30, 40, 0.6);
}
.powered-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
border-color: var(--primary);
}
.powered-content {
display: flex;
align-items: center;
gap: 1.5rem;
flex: 1;
}
.powered-icon {
font-size: 2.5rem;
flex-shrink: 0;
}
.powered-text h3 {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 0.25rem;
color: var(--text);
}
.powered-text p {
color: var(--text-light);
font-size: 0.9375rem;
}
.powered-cta-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.875rem 1.75rem;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
border-radius: var(--radius);
font-weight: 700;
font-size: 1rem;
text-decoration: none;
transition: all 0.3s ease;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.powered-cta-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.powered-badge-text {
text-align: center;
color: var(--text-light);
font-size: 0.875rem;
margin-top: 0.5rem;
}
.powered-badge-text strong {
color: var(--primary);
font-weight: 700;
}
/* Responsive */
@media (max-width: 768px) {
.profile-content {
flex-direction: column;
align-items: center;
text-align: center;
}.profile-avatar-large img,
.avatar-placeholder-large {
    width: 100px;
    height: 100px;
}

.avatar-placeholder-large {
    font-size: 2.5rem;
}

.business-name {
    font-size: 1.75rem;
}

.business-bio {
    margin-left: auto;
    margin-right: auto;
}

.profile-badges {
    justify-content: center;
}

.products-grid {
    grid-template-columns: 1fr;
}

.section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.powered-card {
    flex-direction: column;
    text-align: center;
}

.powered-content {
    flex-direction: column;
    text-align: center;
}

.powered-cta-btn {
    width: 100%;
    justify-content: center;
}

.header-business-name {
    display: none;
}   
}
@media (max-width: 480px) {
.seller-profile-hero {
padding: 2rem 0 1.5rem;
}
.business-name {
    font-size: 1.5rem;
}

.profile-avatar-large img,
.avatar-placeholder-large {
    width: 80px;
    height: 80px;
}

.avatar-placeholder-large {
    font-size: 2rem;
}

.verified-badge {
    width: 28px;
    height: 28px;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}   
}


/* Add this to your sellerpage.css file */

/* Owner Preview Banner */
.owner-preview-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-size: 14px;
    flex-wrap: wrap;
}

.banner-content svg {
    flex-shrink: 0;
}

.banner-link {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 8px;
    transition: opacity 0.2s;
}

.banner-link:hover {
    opacity: 0.8;
}

/* Make sure the seller header doesn't overlap */
.seller-header {
    top: 0;
}

.owner-preview-banner + .seller-header {
    top: 44px; /* Height of banner */
}

/* Mobile responsive */
@media (max-width: 640px) {
    .banner-content {
        font-size: 13px;
        padding: 0 16px;
    }
    
    .banner-content span {
        text-align: center;
        flex: 1 1 100%;
    }
}