/**
 * US TransceiverSeek Styles
 */

/* Section Container */
.us-transceiverseek-section {
    width: 100%;
    padding: 60px 0;
    background: #EDF0F74A;
}

.us-transceiverseek-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.us-transceiverseek-logo {
    display: block;
    margin: 0 auto 40px auto;
    max-width: 100%;
    height: auto;
}

/* Text Logo Wrapper */
.us-transceiverseek-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

/* Text Logo */
.us-transceiverseek-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 61.84px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #444444;
    display: inline-block;
    position: relative;
    margin: 0;
}

.us-transceiverseek-title .text-red {
    color: #ea272f;
}

.us-transceiverseek-title sup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid #304B92;
    color: #304B92;
    background: transparent;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: 0;
    right: -40px;
}

/* Search Wrapper */
.us-transceiverseek-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 2px solid #d1d9f0;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 6px 32px rgba(48, 75, 146, 0.14), 0 1px 4px rgba(48, 75, 146, 0.08);
    position: relative;
}

/* Search Bar */
.us-transceiverseek-search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.us-transceiverseek-search-form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
}

.us-transceiverseek-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font-size: 16px;
    outline: none;
    color: #374151;
}

.us-transceiverseek-search-input::placeholder {
    color: #9ca3af;
}

/* Input Spinner */
.us-transceiverseek-input-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #ea272f;
    border-radius: 50%;
    animation: us-spinner-rotate 0.6s linear infinite;
    flex-shrink: 0;
    margin-right: 10px;
}

@keyframes us-spinner-rotate {
    to { transform: rotate(360deg); }
}

.us-transceiverseek-search-button {
    background: #ea272f;
    border: none;
    padding: 16px 32px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #ffffff;
    font-size: 18px;
    border-radius: 0px 20px 20px 0px;
}

.us-transceiverseek-search-button:hover {
    background: #c21f26;
}

.us-transceiverseek-search-button i {
    display: block;
}

/* Search Results */
.us-transceiverseek-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.us-transceiverseek-results-list {
    padding: 10px 0;
}

.us-transceiverseek-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.us-transceiverseek-result-item:last-child {
    border-bottom: none;
}

.us-transceiverseek-result-item:hover {
    background: #f9fafb;
}

.us-transceiverseek-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.us-transceiverseek-result-details {
    flex: 1;
    min-width: 0;
}

.us-transceiverseek-result-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.us-transceiverseek-result-sku {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.us-transceiverseek-result-price {
    font-weight: 600;
    font-size: 14px;
    color: #ea272f;
}

.us-transceiverseek-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.us-transceiverseek-see-more {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #ea272f;
}

.us-transceiverseek-see-more:hover {
    background: #f9fafb;
}

/* View All Link */
.us-transceiverseek-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12.02px;
    line-height: 13.53px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #EA272F;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.us-transceiverseek-view-all:hover {
    opacity: 0.8;
}

.us-view-all-arrow {
    height: auto;
}

/* Brands Slider */
.us-transceiverseek-brands-slider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Navigation Buttons */
.us-brands-nav {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.us-brands-nav:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.us-brands-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.us-brands-nav img {
    display: block;
}

/* Track Container */
.us-brands-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 2px 0;
}

/* Track */
.us-brands-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

/* Brand Item */
.us-brands-item {
    flex: 0 0 calc((100% - 75px) / 6);
    width: calc((100% - 75px) / 6);
    min-width: 0;
}

.us-brands-link {
    display: block;
    text-decoration: none;
}

/* Image Wrapper */
.us-brands-image-wrapper {
    background: #ffffff !important;
    border: 1px solid #304B92 !important;
    border-radius: 8px;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

.us-brands-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.us-brands-link:hover .us-brands-image {
    transform: scale(1.1);
}

.us-brands-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.us-brands-link:hover .us-brands-placeholder {
    transform: scale(1.1);
}

.us-brands-placeholder-icon {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9ca3af;
}

/* Bullets */
.us-brands-bullets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.us-brands-bullet {
    width: 17px;
    height: 12px;
    background: url('../images/bullet.png') no-repeat center center;
    background-size: contain;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.us-brands-bullet:hover {
    opacity: 0.7;
}

.us-brands-bullet.active {
    background-image: url('../images/bullet_active.png');
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .us-transceiverseek-section {
        padding: 40px 0;
    }

    .us-transceiverseek-title {
        font-size: 50px;
    }

    .us-transceiverseek-title sup {
        width: 24px;
        height: 24px;
        font-size: 12px;
        right: -35px;
    }

    .us-transceiverseek-search-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .us-transceiverseek-search-bar {
        max-width: 100%;
    }

    .us-brands-item {
        flex: 0 0 calc((100% - 60px) / 5);
        width: calc((100% - 60px) / 5);
    }

    .us-brands-image-wrapper {
        width: 100%;
        height: 140px;
    }
}

@media screen and (max-width: 768px) {
    .us-transceiverseek-section {
        padding: 30px 0;
    }

    .us-transceiverseek-container {
        padding: 0 15px;
    }

    .us-transceiverseek-logo {
        max-width: 300px;
        margin-bottom: 30px;
    }

    .us-transceiverseek-title-wrapper {
        margin-bottom: 30px;
    }

    .us-transceiverseek-title {
        font-size: 40px;
    }

    .us-transceiverseek-title sup {
        width: 20px;
        height: 20px;
        font-size: 10px;
        right: -28px;
    }

    .us-transceiverseek-search-wrapper {
        margin-bottom: 30px;
    }

    .us-transceiverseek-brands-slider {
        gap: 10px;
    }

    .us-brands-item {
        flex: 0 0 calc((100% - 30px) / 4);
        width: calc((100% - 30px) / 4);
    }

    .us-brands-image-wrapper {
        width: 100%;
        height: 120px;
        padding: 15px;
    }

    .us-brands-track {
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .us-transceiverseek-section {
        padding: 20px 0;
    }

    .us-transceiverseek-logo {
        max-width: 250px;
        margin-bottom: 25px;
    }

    .us-transceiverseek-title-wrapper {
        margin-bottom: 25px;
    }

    .us-transceiverseek-title {
        font-size: 30px;
    }

    .us-transceiverseek-title sup {
        width: 18px;
        height: 18px;
        font-size: 9px;
        right: -25px;
    }

    .us-transceiverseek-search-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .us-transceiverseek-search-bar {
        width: 100%;
        max-width: 100%;
    }

    .us-transceiverseek-search-input {
        font-size: 12px;
        padding: 10px 15px;
    }

    .us-transceiverseek-search-button {
        padding: 10px 20px;
    }

    .us-brands-item {
        flex: 0 0 calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
    }

    .us-brands-image-wrapper {
        width: 100%;
        height: 100px;
        padding: 10px;
    }

    .us-transceiverseek-result-image {
        width: 50px;
        height: 50px;
    }

    .us-transceiverseek-result-title {
        font-size: 13px;
    }

    .us-transceiverseek-result-sku,
    .us-transceiverseek-result-price {
        font-size: 11px;
    }
}
