/* ============================================================
   Alibaba-style Public Stylesheet
   Reference: https://qdhaoyangly.en.alibaba.com/
   ============================================================ */

/* ============================================================
   1. CSS Reset & Base Styles
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-width: 320px;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #FF6A00;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    color: #191919;
    font-weight: 600;
    line-height: 1.4;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

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

::selection {
    background-color: #FF6A00;
    color: #fff;
}

/* ============================================================
   2. Header & Navigation (legacy styles retained for other pages)
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   3. Banner / Carousel
   ============================================================ */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e0e0e0;
}

.banner-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-carousel .banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-carousel .banner-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.banner-carousel .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
}

.banner-carousel .banner-overlay h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.banner-carousel .banner-overlay p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
}

/* Banner Dots */
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: #FF6A00;
}

/* Banner Arrows */
.banner-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
}

.banner-carousel:hover .carousel-arrow {
    opacity: 1;
}

.banner-carousel .carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

.banner-carousel .carousel-arrow.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.banner-carousel .carousel-arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* ============================================================
   4. Product Card
   ============================================================ */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #FF6A00;
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio for 480x480 */
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Certified Badge */
.certified-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #FF9500, #FFB340);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.35);
    z-index: 5;
}

.certified-badge::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 10px;
}

.certified-badge.verified {
    background: linear-gradient(135deg, #FF6A00, #FF8C33);
}

/* Product Info */
.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #191919;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 42px;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: #FF6A00;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6A00;
    margin-bottom: 4px;
}

.product-price .currency {
    font-size: 13px;
    font-weight: 400;
}

.product-price .unit {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.product-moq {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.product-moq span {
    color: #666;
}

/* Product Card Actions */
.product-card-actions {
    padding: 0 12px 12px;
}

.product-card-actions .btn-inquiry {
    width: 100%;
    padding: 8px 16px;
    background: #FF6A00;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
}

.product-card-actions .btn-inquiry:hover {
    background: #E55D00;
    color: #fff;
}

/* Product card stock indicator */
.stock-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
}

.stock-status.in-stock {
    background: rgba(0, 180, 100, 0.9);
    color: #fff;
}

.stock-status.out-of-stock {
    background: rgba(255, 59, 48, 0.9);
    color: #fff;
}

/* ============================================================
   5. Company Intro Section
   ============================================================ */
.company-intro-section {
    background: #fff;
    padding: 48px 0;
}

.company-intro-section .intro-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.company-intro-section .intro-text {
    flex: 1;
}

.company-intro-section .intro-text h2 {
    margin-bottom: 16px;
}

.company-intro-section .intro-text p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

.company-intro-section .intro-image {
    width: 320px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.company-intro-section .intro-image img {
    width: 100%;
    height: auto;
}

/* Company Stats */
.company-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.stat-item:hover {
    background: #fff8f0;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.1);
}

.stat-item .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #FF6A00;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: 13px;
    color: #666;
}

/* ============================================================
   6. Category Sidebar
   ============================================================ */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-sidebar .sidebar-title {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.15s ease;
    cursor: pointer;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: #FF6A00;
    background: #fff8f0;
    padding-left: 24px;
}

.category-item.active {
    color: #FF6A00;
    font-weight: 600;
    background: #fff8f0;
    border-left: 3px solid #FF6A00;
    padding-left: 17px;
}

.category-item .category-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item .category-count {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

.category-item .category-arrow {
    font-size: 12px;
    color: #ccc;
    transition: all 0.2s;
}

.category-item:hover .category-arrow {
    color: #FF6A00;
    transform: translateX(2px);
}

/* ============================================================
   7. Products Grid (5 columns)
   ============================================================ */
.products-section {
    padding: 32px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Products layout with sidebar */
.products-layout {
    display: flex;
    gap: 24px;
}

.products-layout .products-sidebar {
    width: 220px;
    flex-shrink: 0;
}

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

/* Products Toolbar */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-toolbar .results-count {
    font-size: 14px;
    color: #666;
}

.products-toolbar .results-count strong {
    color: #FF6A00;
}

.products-toolbar .sort-select {
    padding: 6px 32px 6px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23999'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.products-toolbar .sort-select:hover,
.products-toolbar .sort-select:focus {
    border-color: #FF6A00;
}

.products-toolbar .view-toggle {
    display: flex;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.products-toolbar .view-toggle .view-btn {
    padding: 6px 10px;
    font-size: 14px;
    color: #999;
    transition: all 0.15s;
    display: flex;
    align-items: center;
}

.products-toolbar .view-toggle .view-btn:hover {
    color: #666;
}

.products-toolbar .view-toggle .view-btn.active {
    background: #FF6A00;
    color: #fff;
}

/* List view products */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 12px;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    min-width: 200px;
    padding-top: 0;
    height: 200px;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.products-grid.list-view .product-name {
    -webkit-line-clamp: 3;
    min-height: auto;
    margin-bottom: 12px;
    font-size: 15px;
}

.products-grid.list-view .product-price {
    font-size: 20px;
}

.products-grid.list-view .product-card-actions {
    display: flex;
    align-items: center;
    padding: 20px;
}

.products-grid.list-view .product-card-actions .btn-inquiry {
    width: auto;
    padding: 10px 32px;
}

/* ============================================================
   8. Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    padding: 20px 0;
}

.pagination .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.pagination .page-btn:hover {
    border-color: #FF6A00;
    color: #FF6A00;
    background: #fff8f0;
}

.pagination .page-btn.active {
    background: #FF6A00;
    color: #fff;
    border-color: #FF6A00;
}

.pagination .page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-info {
    font-size: 13px;
    color: #999;
    margin: 0 8px;
}

.pagination .page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #999;
}

/* ============================================================
   9. Footer
   ============================================================ */
.site-footer {
    background: #2c2c2c;
    color: #ccc;
    padding-top: 48px;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    flex: 1;
}

.footer-column .footer-logo {
    height: 32px;
    margin-bottom: 16px;
}

.footer-column .footer-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: #999;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FF6A00;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.footer-contact-info .contact-item i {
    color: #FF6A00;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.footer-bottom .footer-copyright {
    color: #666;
}

.footer-bottom .footer-copyright a {
    color: #999;
}

.footer-bottom .footer-copyright a:hover {
    color: #FF6A00;
}

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

.footer-bottom .footer-social a {
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}

.footer-bottom .footer-social a:hover {
    color: #FF6A00;
}

/* ============================================================
   10. Responsive Breakpoints
   ============================================================ */

/* 1200px - Large screens */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .container {
        max-width: 960px;
    }
}

/* 1024px - Medium screens */
@media (max-width: 1024px) {
    .company-intro-section .intro-content {
        flex-direction: column;
    }

    .company-intro-section .intro-image {
        width: 100%;
    }

    .footer-content {
        gap: 32px;
    }
}

/* 768px - Tablets */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-layout {
        flex-direction: column;
    }

    .products-layout .products-sidebar {
        width: 100%;
    }

    .company-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-item {
        min-width: calc(50% - 6px);
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .banner-carousel .banner-slide img {
        height: 180px;
    }

    .banner-carousel .banner-overlay {
        padding: 20px 24px;
    }

    .banner-carousel .banner-overlay h2 {
        font-size: 18px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

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

    .pagination .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 480px - Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-moq {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-card-actions {
        padding: 0 8px 8px;
    }

    .product-card-actions .btn-inquiry {
        padding: 6px 12px;
        font-size: 12px;
    }

    .certified-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .banner-carousel .banner-slide img {
        height: 140px;
    }

    .banner-carousel .banner-overlay h2 {
        font-size: 16px;
    }

    .banner-carousel .banner-overlay p {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-carousel .carousel-arrow {
        display: none;
    }

    .company-stats {
        gap: 8px;
    }

    .stat-item {
        min-width: calc(50% - 4px);
        padding: 12px 8px;
    }

    .stat-item .stat-value {
        font-size: 22px;
    }

    .stat-item .stat-label {
        font-size: 12px;
    }

    .pagination {
        gap: 2px;
    }

    .pagination .page-btn {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ============================================================
   11. Common Components
   ============================================================ */

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: #FF6A00;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #E55D00;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary.sm {
    padding: 6px 20px;
    font-size: 13px;
}

.btn-primary.lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* Outline Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: transparent;
    color: #FF6A00;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    border: 2px solid #FF6A00;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #FF6A00;
    color: #fff;
}

.btn-outline:active {
    transform: scale(0.97);
}

.btn-outline.sm {
    padding: 6px 20px;
    font-size: 13px;
}

.btn-outline.lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 8px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #FF6A00;
    margin-top: 12px;
    border-radius: 2px;
}

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

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header .section-more {
    font-size: 14px;
    color: #FF6A00;
    font-weight: 500;
    transition: opacity 0.2s;
}

.section-header .section-more:hover {
    opacity: 0.8;
}

.section-header .section-more::after {
    content: ' >';
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #e8e8e8;
    border-top-color: #FF6A00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Inline spinner */
.loading-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

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

.empty-state .empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #FF6A00;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ============================================================
   12. Alibaba-style Feature Enhancements
   ============================================================ */

/* Product Card Hover Effect - Enhanced */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6A00, #FF9500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Verified / Certification Badges */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF9500, #FFB340);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.verified-badge.verified-supplier {
    background: linear-gradient(135deg, #FF6A00, #FF8C33);
}

.verified-badge.trade-assurance {
    background: linear-gradient(135deg, #2B8A3E, #3DB54E);
}

/* Dropdown Menu Style (shared) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* Alibaba-style search suggestion */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 200;
}

.search-suggestions .suggestion-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.search-suggestions .suggestion-item:hover {
    background: #fff8f0;
    color: #FF6A00;
}

.search-suggestions .suggestion-item .highlight {
    color: #FF6A00;
    font-weight: 600;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: #FF6A00;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #E55D00;
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

/* Product detail gallery thumbnail strip */
.product-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.product-thumbs .thumb-item {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.product-thumbs .thumb-item.active,
.product-thumbs .thumb-item:hover {
    border-color: #FF6A00;
}

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

/* Tag / Badge components */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.tag-orange {
    background: rgba(255, 106, 0, 0.1);
    color: #FF6A00;
}

.tag-green {
    background: rgba(0, 180, 100, 0.1);
    color: #00B464;
}

.tag-blue {
    background: rgba(0, 102, 204, 0.1);
    color: #0066CC;
}

.tag-gray {
    background: rgba(0, 0, 0, 0.06);
    color: #666;
}

/* Inquiry form floating button */
.floating-inquiry {
    position: fixed;
    bottom: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-inquiry .fi-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    cursor: pointer;
}

.floating-inquiry .fi-btn.chat-btn {
    background: linear-gradient(135deg, #FF6A00, #FF9500);
}

.floating-inquiry .fi-btn.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.floating-inquiry .fi-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-inquiry .fi-btn.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Notification dot */
.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: #191919;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Card container for company page */
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.info-card .info-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #191919;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.info-card .info-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 14px;
}

.info-card .info-row .info-label {
    width: 140px;
    flex-shrink: 0;
    color: #999;
}

.info-card .info-row .info-value {
    flex: 1;
    color: #333;
}

/* Contact form styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.contact-form .form-label .required {
    color: #FF3B30;
    margin-left: 2px;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
    border-color: #FF6A00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.contact-form .form-control::placeholder {
    color: #bbb;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .form-error {
    font-size: 12px;
    color: #FF3B30;
    margin-top: 4px;
}

/* Message / Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    padding: 12px 24px;
    background: #191919;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #2B8A3E;
}

.toast.error {
    background: #FF3B30;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
}

/* Utility classes */
.text-primary { color: #FF6A00 !important; }
.text-success { color: #2B8A3E !important; }
.text-danger { color: #FF3B30 !important; }
.text-warning { color: #FF9500 !important; }
.text-muted { color: #999 !important; }

.bg-light { background-color: #f5f5f5 !important; }
.bg-white { background-color: #fff !important; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
