/* ==========================================================================
   Supplier List Cards Styles
   ========================================================================== */

/* Supplier List Cards Container */
.supplier-list-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Supplier Card Horizontal */
.supplier-card-horizontal {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.supplier-card-horizontal:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Supplier Card Wrapper */
.supplier-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   Header Row: Badges + Title
   ========================================================================== */

.supplier-card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.supplier-badges-horizontal {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    text-transform: capitalize;
}

.badge-superior {
    background-color: #ED2629;
    color: #FFFFFF;
}

.badge-verified {
    background-color: #279E49;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-verified svg {
    flex-shrink: 0;
}

.supplier-title-horizontal {
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    color: #108D52;
    margin: 0;
    flex: 1;
}

/* ==========================================================================
   Body: Gallery + Content + Profile (3 columns)
   ========================================================================== */

.supplier-card-body {
    display: flex;
    align-items: stretch;
}

/* Left & Middle Columns Wrapper */
.supplier-card-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
    border-right: 1px solid #ECECEC;
    padding-right: 36px;
}

/* Gallery + Main Content Row */
.supplier-card-content-row {
    display: flex;
    gap: 12px;
    flex: 1;
}

/* ==========================================================================
   Left Column: Image Gallery
   ========================================================================== */

.supplier-card-gallery {
    flex-shrink: 0;
    width: 206px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplier-gallery-main {
    background: #F7F8FA;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    height: 184px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.supplier-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.supplier-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-image.active {
    opacity: 1;
    position: relative;
}

.supplier-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    gap: 16px;
}

.gallery-nav-btn {
    border-radius: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    padding: 0;
}

.gallery-nav-btn.prev {
    background: #F0F2F3;
}

.gallery-nav-btn.prev:hover {
    background: #E0E2E3;
}

.gallery-nav-btn.next {
    background: #108D52;
}

.gallery-nav-btn.next:hover {
    background: #0d7544;
}


.gallery-counter {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #7E7E7E;
}

.gallery-counter .current-image {
    font-weight: 500;
    color: #108D52;
}

/* ==========================================================================
   Middle Column: Features, Actions, Tags
   ========================================================================== */

.supplier-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    min-width: 0;
    height: 220px;
}

/* Features List */
.supplier-features-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 122px;
    justify-content: space-between;
}

.features-list {
    list-style-position: inside;
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #7E7E7E;
    height: 112px;
    overflow: hidden;
}

.features-list li {
    margin-bottom: 0;
    padding-left: 18px;
    text-indent: -18px;
    line-height: 18px;
}

.features-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    width: 100%;
}

/* Actions */
.supplier-actions-horizontal {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-inquiry-now {
    background: #108D52;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 158px;
    justify-content: center;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 
                0px 2px 2px 0px rgba(0, 0, 0, 0.14), 
                0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-inquiry-now:hover {
    background: #0d7544;
    transform: translateY(-1px);
    box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.2), 0px 3px 3px 0px rgba(0, 0, 0, 0.14), 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
}


.btn-action-icon {
    background: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-action-icon:hover {
    background: #F5F5F5;
    transform: translateY(-1px);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

/* SVG Icon Hover States - Tự quản lý bằng CSS */
.btn-chat:hover .icon-chat {
    color: #108D52 !important;
}

.btn-share:hover .icon-share {
    color: #108D52 !important;
}

/* Tags */
.supplier-tags-horizontal {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    column-gap: 8px;
}

.tag-link {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #108D52;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tag-link:hover {
    color: #0d7544;
    text-decoration: underline;
}

.tag-separator {
    width: 1px;
    height: 12px;
    background: #D0D5DD;
}

/* ==========================================================================
   Right Column: Supplier Profile
   ========================================================================== */

.supplier-card-profile {
    flex-shrink: 0;
    width: 258px;
    max-width: 328px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.supplier-profile-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.supplier-profile-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.supplier-profile-link:hover {
    opacity: 0.8;
}

.supplier-profile-link:hover .supplier-name {
    text-decoration: underline;
}

.supplier-profile-link:hover .supplier-avatar {
    cursor: pointer;
}

.supplier-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.supplier-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    max-width: 58px;
    max-height: 58px;
    border-radius: 30px;
    background: #D4D3D4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    color: #000000;
}

.supplier-info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.supplier-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #108D52;
    text-align: center;
    margin: 0;
    width: 100%;
}

.supplier-rating-stars {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
}

.supplier-rating-stars .star {
    display: flex;
    align-items: center;
    justify-content: center;
}


.supplier-location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.supplier-location-info img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.supplier-location-info span {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #7E7E7E;
}

.supplier-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
}

.contact-item-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9f4;
    padding: 4px;
}


.contact-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    color: #108D52;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and below: max 1024px */
@media (max-width: 1024px) {
    .supplier-card-header-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .supplier-card-body {
        gap: 20px;
    }

    .supplier-card-gallery {
        width: 180px;
    }

    .supplier-gallery-main {
        height: 160px;
    }
}

/* Mobile: max 768px */
@media (max-width: 768px) {
    .supplier-card-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .supplier-card-left-content {
        border-right: none;
        border-bottom: 1px solid #ECECEC;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 0;
    }

    .supplier-card-body {
        flex-direction: column;
        gap: 16px;
    }

    .supplier-card-content-row {
        flex-direction: column;
    }

    .supplier-card-gallery {
        width: 100%;
    }

    .supplier-gallery-main {
        height: 200px;
    }

    .supplier-gallery-nav {
        width: auto;
        justify-content: center;
        gap: 12px;
    }

    .supplier-card-main {
        height: auto;
        gap: 12px;
    }

    .supplier-card-profile {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .supplier-profile-card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .supplier-profile-header {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }

    .supplier-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px;
        max-height: 48px;
        font-size: 18px;
    }

    .supplier-info-group {
        align-items: flex-start;
        flex: 1;
    }

    .supplier-name {
        text-align: left;
        font-size: 14px;
    }

    .supplier-rating-stars {
        justify-content: flex-start;
    }

    .supplier-location-info {
        justify-content: flex-start;
        order: 1;
    }

    .supplier-location-info span {
        font-size: 10px;
    }

    .supplier-contact {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .contact-item span {
        font-size: 10px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .supplier-title-horizontal {
        font-size: 14px;
        line-height: 18px;
    }

    .features-list {
        font-size: 10px;
        line-height: 16px;
        max-height: 96px;
        height: auto;
    }

    .features-list li {
        padding-left: 14px;
        text-indent: -14px;
        line-height: 16px;
    }

    .btn-inquiry-now {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 130px;
    }

    .btn-action-icon {
        width: 26px;
        height: 26px;
        padding: 6px;
    }

    .tag-link {
        font-size: 10px;
    }
}

/* Tablet: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .supplier-card-profile {
        width: auto;
        flex: 0 0 auto;
        padding: 22px 12px 20px 0;
    }

    .supplier-profile-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .supplier-profile-header {
        width: auto;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        flex: 0 0 auto;
    }

    .supplier-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
        line-height: 32px;
        flex-shrink: 0;
    }

    .supplier-info-group {
        align-items: flex-start;
        gap: 6px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .supplier-name {
        font-size: 16px;
        line-height: 20px;
        text-align: left;
    }

    .supplier-rating-stars {
        justify-content: flex-start;
    }

    .supplier-rating-stars .star {
        width: 14px;
        height: 14px;
    }

    .supplier-location-info {
        justify-content: flex-start;
    }

    .supplier-location-info span {
        font-size: 12px;
    }

    .supplier-contact {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
        width: auto;
    }

    .contact-item {
        justify-content: flex-end;
    }

    .contact-item span {
        font-size: 12px;
        text-align: right;
    }
}
