/* ============================================
   SUPPLIER DETAIL PAGE - COMPLETE STYLES
   ============================================ */

:root {
    --primary: #6B21E5;
    --primary-dark: #4A0D9C;
    --primary-light: #9B4DFF;
    --primary-gradient: linear-gradient(135deg, #6B21E5, #9B4DFF);
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1F2937;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(107, 33, 229, 0.08);
    --shadow-lg: 0 4px 16px rgba(107, 33, 229, 0.12);
    --shadow-xl: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 70px;
}

/* ============================================
   HEADER & LOGO
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:active {
    background: var(--gray-200);
    transform: scale(0.95);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-cube {
    position: relative;
    width: 32px;
    height: 32px;
    perspective: 800px;
}

.logo-cube .cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(28deg);
    transition: transform 0.3s ease;
}

.logo:hover .cube {
    transform: rotateX(28deg) rotateY(38deg);
}

.logo-cube .face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--primary-gradient);
    border-radius: 4px;
}

.logo-cube .front {
    transform: translateZ(16px);
    background: linear-gradient(135deg, #6B21E5, #9B4DFF);
}

.logo-cube .right {
    transform: rotateY(90deg) translateZ(16px);
    background: linear-gradient(135deg, #4A0D9C, #6B21E5);
}

.logo-cube .top {
    transform: rotateX(90deg) translateZ(16px);
    background: linear-gradient(135deg, #9B4DFF, #B47BFF);
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo-text span {
    color: var(--primary-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.search-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-toggle:hover {
    background: var(--gray-200);
}

/* Search Bar */
.search-bar {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.search-bar.show {
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 15px;
    background: var(--gray-100);
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

.search-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: calc(100vh - 140px);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-state i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 16px;
}

.error-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.error-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.back-btn-large {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
}

.back-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 33, 229, 0.3);
}

/* ============================================
   SUPPLIER HEADER CARD
   ============================================ */
.supplier-header-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.supplier-header-compact {
    display: flex;
    gap: 16px;
    align-items: center;
}

.supplier-logo-compact {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.supplier-logo-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-info-compact {
    flex: 1;
}

.supplier-name-compact {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.supplier-stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.supplier-stats-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.supplier-stats-compact i {
    color: var(--primary);
    font-size: 11px;
}

.supplier-badges-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
}

.verified-badge-compact {
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E7F5E8;
    padding: 2px 8px;
    border-radius: 20px;
}

.featured-badge-compact {
    background: var(--accent);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   SHOP URL BANNER
   ============================================ */
.shop-url-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 12px 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-url-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-url-content i {
    font-size: 20px;
    color: white;
    opacity: 0.9;
}

.shop-url-info {
    flex: 1;
    min-width: 180px;
}

.shop-url-label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-url-code {
    font-size: 13px;
    font-weight: 500;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    word-break: break-all;
}

.copy-shop-url-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.copy-shop-url-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.copy-shop-url-btn:active {
    transform: translateY(0);
}

/* ============================================
   SHARE SHOP BUTTON
   ============================================ */
.share-shop-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.share-shop-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.share-shop-btn:active {
    transform: translateY(0);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-nav {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--white);
    padding: 0 4px;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    padding: 12px 0 10px;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BANNER SECTION
   ============================================ */
.banner-section {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--gray-200);
}

.banner-image {
    width: 100%;
    height: 100%;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.banner-overlay h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.banner-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-pill {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 40px;
    font-size: 13px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-pill i {
    margin-right: 6px;
    font-size: 12px;
}

/* ============================================
   TAGLINE
   ============================================ */
.tagline {
    background: var(--primary-gradient);
    color: white;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hot-label {
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.welcome-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

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

.product-image {
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.product-moq {
    font-size: 11px;
    color: var(--gray-500);
}

/* ============================================
   PRODUCTS HEADER
   ============================================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.products-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.products-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.products-search input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.2s;
}

.products-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

/* ============================================
   PROFILE SECTIONS
   ============================================ */
.profile-section {
    margin-bottom: 24px;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}

.profile-section h3 i {
    color: var(--primary);
}

.profile-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    white-space: pre-line;
}

.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-section.half {
    margin-bottom: 0;
}

/* Core Values */
.core-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.core-value-tag {
    padding: 6px 14px;
    background: var(--primary-light);
    color: white;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.facility-item {
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

.facility-label {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.facility-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

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

.certification-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.certification-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.cert-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.cert-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.cert-info {
    flex: 1;
}

.cert-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.cert-meta {
    font-size: 11px;
    color: var(--gray-500);
}

/* Markets List */
.markets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-tag {
    padding: 6px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    font-size: 12px;
    transition: all 0.2s;
}

.market-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.timeline-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.timeline-description {
    font-size: 12px;
    color: var(--gray-600);
}

/* ============================================
   TIPS GRID
   ============================================ */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tip-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tip-image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

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

.tip-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.tip-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tip-excerpt {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.tip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray-500);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    padding: 8px 0 12px;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 11px;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item:active {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--primary);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

/* ============================================
   SHARE MODAL SPECIFIC STYLES
   ============================================ */
.share-shop-info {
    text-align: center;
    margin-bottom: 20px;
}

.share-description {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.shop-url-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin: 12px 0;
}

.shop-url-display {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    color: var(--primary);
    word-break: break-all;
    background: transparent;
    border: none;
}

.copy-url-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.copy-url-btn:hover {
    background: rgba(107, 33, 229, 0.1);
    transform: scale(1.1);
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-option i {
    font-size: 18px;
}

.share-option.whatsapp {
    background: #25D366;
    color: white;
}

.share-option.facebook {
    background: #1877F2;
    color: white;
}

.share-option.twitter {
    background: #1DA1F2;
    color: white;
}

.share-option.email {
    background: #6B7280;
    color: white;
}

.share-option:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.share-option:active {
    transform: translateY(0);
}

/* ============================================
   INQUIRY MODAL STYLES
   ============================================ */
.modal-description {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.contact-option {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.contact-option:hover {
    border-color: var(--primary-light);
    background: var(--white);
}

.option-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.option-icon.whatsapp {
    background: #25D36620;
    color: #25D366;
}

.option-icon.email {
    background: #6B21E520;
    color: var(--primary);
}

.option-icon.message {
    background: #10B98120;
    color: var(--secondary);
}

.option-title h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.option-title p {
    font-size: 12px;
    color: var(--gray-500);
}

.contact-action-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.contact-action-btn.whatsapp-btn {
    background: #25D366;
    color: white;
}

.contact-action-btn.email-btn {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.contact-action-btn.message-btn {
    background: var(--secondary);
    color: white;
}

.contact-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.message-form {
    margin-bottom: 12px;
}

.message-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

.message-preview {
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.preview-item {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.preview-label {
    font-weight: 500;
    color: var(--gray-500);
}

/* ============================================
   RATING MODAL STYLES
   ============================================ */
.rating-category {
    margin-bottom: 20px;
}

.rating-category label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.star-rating {
    display: flex;
    gap: 8px;
}

.star-rating i {
    font-size: 24px;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--accent);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.submit-rating-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 33, 229, 0.3);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 400px;
    margin: 0 auto;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--secondary);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--primary);
}

/* ============================================
   TEXT MUTED
   ============================================ */
.text-muted {
    color: var(--gray-500);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    grid-column: 1 / -1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-row {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .supplier-header-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .supplier-stats-compact {
        justify-content: center;
    }
    
    .supplier-badges-compact {
        justify-content: center;
    }
    
    .banner-section {
        height: 150px;
    }
    
    .banner-overlay {
        padding: 12px;
    }
    
    .banner-overlay h2 {
        font-size: 16px;
    }
    
    .shop-url-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .copy-shop-url-btn {
        align-self: flex-end;
    }
    
    .shop-url-info {
        width: 100%;
    }
    
    .share-options-grid {
        grid-template-columns: 1fr;
    }
    
    .share-shop-btn span {
        display: none;
    }
    
    .share-shop-btn i {
        font-size: 18px;
        margin: 0;
    }
    
    .share-shop-btn {
        padding: 8px 12px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 8px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-moq {
        font-size: 10px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .category-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .shop-url-code {
        font-size: 11px;
    }
    
    .shop-url-label {
        font-size: 9px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.shop-url-banner,
.stats-cards,
.product-card,
.tip-card {
    animation: fadeInUp 0.4s ease;
}

/* ============================================
   PROFESSIONAL FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    margin-top: 30px;
    padding: 40px 0 0;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo .logo-cube.small {
    width: 32px;
    height: 32px;
    perspective: 600px;
}

.footer-logo .logo-cube.small .cube {
    transform: rotateX(18deg) rotateY(28deg);
}

.footer-logo .logo-cube.small .face {
    width: 32px;
    height: 32px;
}

.footer-logo .logo-cube.small .front {
    transform: translateZ(16px);
}

.footer-logo .logo-cube.small .right {
    transform: rotateY(90deg) translateZ(16px);
}

.footer-logo .logo-cube.small .top {
    transform: rotateX(90deg) translateZ(16px);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--primary-light);
}

.footer-about {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.footer-contact li i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
}

.footer-badge {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-badge img {
    background: var(--primary);
    border-radius: 4px;
    padding: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.meta-credit {
    text-align: center;
    padding: 10px;
    background: var(--gray-900);
    color: var(--gray-500);
    font-size: 12px;
    border-top: 1px solid var(--gray-800);
}

.meta-credit span {
    color: var(--primary-light);
    margin-right: 4px;
}