
/* suppliers-critical.css - Extreme optimization with Mobile Bottom Buttons & 6-Column Grid */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color:white;
}


/* Show mobile bottom bar on tablets and mobile */
@media (max-width: 992px) {
    .mobile-bottom-bar {
        display: block;
    }
    
    body {
        padding-bottom: 65px;
    }
}

@media (max-width: 576px) {
    .mobile-nav-item {
        padding: 4px 8px;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* ============================================
   MAIN SUPPLIER STYLES
   ============================================ */
.container-supplier {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.supplier-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 15px;
    padding: 8px 0;
    font-size: 12px;
    background: transparent;
}

.breadcrumb a {
    color: #e67e22;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ============================================
   SUPPLIER GRID - 6 COLUMNS ON DESKTOP
   ============================================ */
.supplier-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 25px 0;
}

/* Supplier Card */
.supplier-card {
    display: block;
    background:none;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0px solid #e0e0e0;
}

.supplier-card:hover {
    transform: translateY(-3px);
    border-color: #e67e22;
}

/* Supplier Banner */
.supplier-banner {
    position: relative;
    width: 100%;
    border-radius: 7px;
    height: 110px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    overflow: hidden;
}

.supplier-banner img {
    width: 100%;
    height:100%;
    object-fit: cover;
}

.supplier-banner.default-banner {
    background: linear-gradient(135deg, #e67e22, #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier-banner.default-banner i {
    font-size: 42px;
    color: rgba(255, 255, 255, 0.3);
}

/* Supplier Logo */
.supplier-logo-wrapper {
    position: relative;
    display: flex;
    justify-content:start;
    margin-top: -40px;
    margin-bottom: 10px;
    z-index: 2;
}

.supplier-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items:center;
    justify-content:center;
    overflow: hidden;
   

}

.supplier-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Supplier Info */
.supplier-info {
    padding: 0 12px 12px;
    text-align: center;
}

.supplier-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-name:hover {
    color: #e67e22;
}

.supplier-address {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.supplier-address i {
    font-size: 10px;
    color: #e67e22;
}

.contact-person {
    font-size: 10px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* Product Badge */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e67e22;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    margin-top: 6px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    margin: 25px 0;
    border: 1px solid #e0e0e0;
}

/* Supplier Footer */
.supplier-footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
}

/* Hero - Hidden */
.hero {
    display: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */


/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .supplier-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .supplier-content {
        padding: 12px 15px;
    }
    
    .supplier-banner {
        height: 90px;
    }
    
    .supplier-logo {
        width: 65px;
        height: 65px;
        margin-top: -10px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    .supplier-info{
        padding:4px 8px 10px;
    }
    
    .supplier-name {
        font-size: 17px;
        font-weight: bold;
    }
    footer{
        display: none !important;
    }
}

/* Mobile Landscape (576px and below) */
@media (max-width: 576px) {
    .supplier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .supplier-content {
        padding: 10px 12px;
    }
    
    .supplier-banner {
        height: 80px;
    }
    
    .supplier-logo {
        width: 55px;
        height: 55px;
        margin-top: -10px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
    .supplier-info{
        padding:4px 8px 10px;
    }
    .supplier-name {
        font-size: 12px;
        font-weight:600 ;
    }
    
    .supplier-address {
        font-size: 10px;
    }
    
    .contact-person {
        font-size: 9px;
    }

}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .supplier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .supplier-banner {
        height: 70px;
    }
    
    .supplier-logo {
        width: 50px;
        height: 50px;
        margin-top: -15px;
    }
    
    .supplier-info {
        padding: 4px 8px 10px;
    }
    
    .supplier-name {
        font-size: 11px;
        font-weight:bold;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ============================================
   LANDSCAPE MODE FIX
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .supplier-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .supplier-banner {
        height: 70px;
    }
    
    .supplier-logo {
        width: 55px;
        height: 55px;
        margin-top: -27px;
    }
    
    .mobile-bottom-nav {
        padding: 4px 12px;
    }
    
    .mobile-nav-item {
        padding: 4px 8px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .supplier-card:hover {
        transform: none;
    }
    
    .supplier-card:active {
        transform: scale(0.98);
        background: #fafafa;
    }
    
    .mobile-nav-item {
        min-height: 44px;
    }
    
    .mobile-nav-item:active {
        background: #f5f5f5;
        color: #e67e22;
    }
}

/* ============================================
   PREVENT HORIZONTAL SCROLL
   ============================================ */
@media (max-width: 768px) {
    .container-supplier,
    .supplier-content,
    .supplier-grid,
    [class*="grid"] {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .supplier-card {
        min-width: 0;
        width: 100%;
    }
    
    .supplier-name,
    .breadcrumb li,
    .supplier-address span {
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #d35400;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .scroll-top {
        bottom: 85px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .scroll-top {
        bottom: 75px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #e67e22;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.supplier-card {
    animation: fadeIn 0.3s ease;
}