@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --color-1: #182B55;
    --color-2: #36BFFA;
    --color-4: #0D1237;
    --section-padding: 6rem;
}

* {
    font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
    font-weight: 300;
    color: var(--color-6);
}

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    background-size: cover;
    background-position: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-1);
}

b, strong {
    font-weight: 700;
}

.text-main {
    color: var(--color-1);
}

.text-sub {
    color: var(--color-2);
}

.text-gradient {
    background: linear-gradient(90.45deg, #828282 0.27%, #FFFFFF 49.55%, #8A8A8A 106.26%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 2.5rem;
}

.btn-theme-main {
    background-color: var(--color-1);
    color: white;
}

.btn-theme-main:hover {
    background-color: white;
    border: solid 1px var(--color-1);
    color: var(--color-1);
}

.btn-theme-sub {
    background-color: var(--color-3);
    color: var(--color-4);
}

.btn-theme-sub:hover {
    background-color: var(--color-1);
    color: white;
}

.btn-theme-main,
.btn-theme-sub {
    border-radius: 0.5rem;
    transition: ease 0.3s;
}

.list-languages {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.list-languages>li>button {
    all: unset;
    color: #000000;
    text-transform: uppercase;
    padding: 0 1rem;
    padding-left: 30px;
    background-position: 0.25rem center;
    background-repeat: no-repeat;
    background-size: auto 75%;
    transition: ease 0.2s;
    opacity: 0.5;
}

.list-languages>li>button:hover,
.list-languages>li>button.active {
    opacity: 1;
}

.list-languages>li>button.lang-en {
    background-image: url('../../media/import/us.png');
}

.list-languages>li>button.lang-jp {
    background-image: url('../../media/import/jp.png');
}

.list-languages>li>button.lang-fr {
    background-image: url('../../media/import/fr.png');
}

.list-languages>li>button.lang-cn {
    background-image: url('../../media/import/cn.png');
}

.list-languages>li>button.lang-th {
    background-image: url('../../media/import/th.png');
}

.mobile-bottom-bar {
    display: none;
}

#HeaderMenu .navbar-brand>img {
    height: 30px;
}

.mega-menu-header {
    position: fixed;
    background-color: white;
    top: -100%;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: ease 0.2s;
}

.mega-menu-header.active {
    top: 88px;
}

.mega-menu-header .menu-button {
    display: flex;
    color: #101828;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    transition: ease 0.2s;
    z-index: 100;
}

.mega-menu-header .menu-button:hover, 
.mega-menu-header .menu-button.active {
    background-color: #F9FAFB;
}

.mega-menu-header .menu-category-card {
    display: none;
    height: 100%;
}

.mega-menu-header .menu-category-card.active {
    display: block;
    background-color: #F9FAFB;
}

.mega-menu-header .menu-category-card .menu-button {
    background-color: #F9FAFB;
    border-radius: 8px;
}

.mega-menu-header .menu-category-card .menu-button:hover, 
.mega-menu-header .menu-category-card .menu-button.active {
    background-color: #F2F4F7;
}

/* #carouselHomeSlideshowIndicators .carousel-item div.bg-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1C355E 16.53%, rgba(159, 170, 187, 0.422031) 81.78%, rgba(255, 255, 255, 0) 100%);
}

#carouselHomeSlideshowIndicators .carousel-item img {
    max-height: calc(100vh - 90px);
    object-fit: cover;
} */

#carouselHomeSlideshowIndicators .carousel-item .carousel-caption h5 {
    background: linear-gradient(90.45deg, rgb(170, 170, 170) 0.27%, #FFFFFF 49.55%, rgba(138, 138, 138, 0.5) 106.26%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

#carouselHomeSlideshowIndicators .carousel-item .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    right: auto;
    text-align: left;
    width: 35%;
}

#carouselHomeSlideshowIndicators .carousel-indicators [data-bs-target] {
    border: solid white 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

#carouselHomeSlideshowIndicators .carousel-indicators .active {
    background-color: var(--color-1);
}

.header-home a.btn-theme-main {
    padding: 1rem 2rem;
}

.featured-products {
    background-image: linear-gradient(to bottom, rgba(47, 57, 73, 0.5), rgba(255,255,255,1)), url('../../media/37542628f843ed1a874f9bb1fd8dde3b.jpeg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
}

.featured-products h2 {
    background: linear-gradient(90.45deg, #828282 0.27%, #FFFFFF 49.55%, #8A8A8A 106.26%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 3rem;
}

.featured-products .btn-featured-search {
    background-color: #1C355E;
    border-radius: 8px;
    color: white;
}

.featured-products .card-search {
    box-shadow: 0px 0px 15.1px 0px #53B1FD;
    border-radius: 16px;
    background-color: white;
    padding: 24px;
}

.featured-products .card-featured-backdrop {
    backdrop-filter: blur(10px);
    padding: 16px;
    box-shadow: 2.67px 2.01px 9.36px 0px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.featured-products .card-featured-backdrop .card-featured {
    background-color: rgba(235, 235, 235, 1);
    border-radius: 16px;
    padding: 2rem;
}

.header-products {
    background-image: linear-gradient(360deg, #030B24 -28.95%, rgba(3, 11, 36, 0.7) 100%), url('../../media/29975bd0960a223f995c34c5aca026eb.jpeg');
    padding: 8rem 16rem;
    background-position: center;
    background-size: cover;
    border-radius: 24px;
    text-align: center;
}

.header-products h1 {
    color: white;
    font-weight: 700;
}

.header-products p {
    color: #7F8CA9;
}

.products-list-content {
    background-image: linear-gradient(to bottom, #1C355E 0%, #3A6FC4 100%);
    background-size: 5px 100%;
    background-position: left center;
    background-repeat: no-repeat;
}

.products-category-list {
    background-color: #F9FAFB;
    padding: 2rem;
    border-radius: 24px;
    height: 100%;
}

.products-category-list img {
    height: 300px;
    object-fit: cover;
}

.products-category-list .products-category-item {
    display: flex;
    color: #344054;
    border: 1px solid #D0D5DD;
    box-shadow: 0px 1px 2px 0px #1018280D;
    border-radius: 8px;
    background-color: white;
    align-items: center;
    transition: ease 0.2s;
}

.products-category-list .products-category-item:hover {
    box-shadow: 0px 0px 15.1px 0px #53B1FD;
}

.arrow-up-right {
    transform: rotate(45deg);
}

.card-product-cta {
    background-image: linear-gradient(to bottom, #1c355e25 0%, #1c355e96 100%), url('../../media/669f43c60f2515339e0284ef5a48027d.jpeg');
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

.card-search-item img.card-img-top {
    background-image: linear-gradient(to bottom, var(--color-1) 0%, #00102b 100%);
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.top-avoid-menu {
    position: sticky;
    top: 100px;
}

.hero-tabs button.nav-link {
    border-radius: 0;
    transition: ease 0.2s;
    border-width: 0 0 0 5px !important;
    border-color: whitesmoke !important;
}

.hero-tabs button.nav-link.active, .hero-tabs button.nav-link:hover {
    border-color: var(--color-1) !important;
}

.showcase-tabs button.nav-link {
    border-radius: 0;
    transition: ease 0.2s;
    border-width: 5px 0 0 0 !important;
    border-color: whitesmoke !important;
}

.showcase-tabs button.nav-link.active, .showcase-tabs button.nav-link:hover {
    border-color: var(--color-1) !important;
}

footer {
    background-color: var(--color-4);
    padding-bottom: 1.5rem;
}

footer .footer-logo {
    height: 30px;
}

footer address {
    color: #5E6E91;
}

footer button.btn-footer {
    background: linear-gradient(280.67deg, #818181 -50.41%, #525252 44.49%, #C3C3C3 130.48%);
    box-shadow: 0px 1px 2px 0px #1018280D;
    color: white;
}

footer li a {
    color: #7F8CA9;
}

footer table th {
    vertical-align: top !important;
}

footer table th,
footer table td {
    padding: 0.25rem 0.5rem;
}

footer .social-footer {
    background: #5A5A5A !important;
    background-color: #5A5A5A !important;
}

footer .copyright small {
    color: #667085;
}

/* Header Search Suggestions */
#search-suggestions {
    border-top: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#search-suggestions .suggestion-item {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #e5e7eb;
}

#search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

#search-suggestions .suggestion-item:hover {
    background-color: #f8f9fa !important;
}

#search-suggestions .suggestion-item:last-child:hover {
    background-color: #e9ecef !important;
}

/* Catalog Search Styles */
.card-search-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-search-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.catalog-details-btn {
    transition: all 0.2s ease;
}

.catalog-details-btn:hover {
    transform: translateX(4px);
}

/* Search filter styles */
.search-filter {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.search-filter .form-check-input:checked {
    background-color: var(--color-2);
    border-color: var(--color-2);
}

.search-filter .form-check-input:focus {
    border-color: var(--color-2);
    box-shadow: 0 0 0 0.25rem rgba(54, 191, 250, 0.25);
}

/* Pagination styles */
.pagination .page-link {
    color: var(--color-1);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--color-2);
    background-color: #f8f9fa;
    border-color: var(--color-2);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-2);
    border-color: var(--color-2);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: white;
    border-color: #dee2e6;
}

/* Catalog details page styles */
.catalog-details .badge {
    font-size: 0.875rem;
}

.catalog-details h1 {
    color: var(--color-1);
    font-weight: 600;
}

.catalog-details h3 {
    color: var(--color-1);
    font-weight: 500;
}

/* Modern Featured Badge Styles */
.featured-badge {
    top: 15px;
    right: 15px;
    z-index: 10;
}

.featured-badge-content {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: featuredPulse 2s ease-in-out infinite;
}

.featured-badge-content i {
    font-size: 0.7rem;
    animation: starSpin 3s linear infinite;
}

/* Animations */
@keyframes featuredPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hover effects */
.card-search-item:hover .featured-badge-content {
    background: linear-gradient(135deg, #ffed4a 0%, #ffd700 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7);
}

/* Alternative badge styles for different themes */
.featured-badge-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.featured-badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.featured-badge-new {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .featured-badge {
        top: 10px;
        right: 10px;
    }
    
    .featured-badge-content {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .featured-badge-content i {
        font-size: 0.65rem;
    }
}

/* Print styles */
@media print {
    .no-print,
    .btn,
    .breadcrumb,
    nav,
    header,
    footer,
    .carousel-control-prev,
    .carousel-control-next,
    .badge {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .section {
        padding: 1rem 0 !important;
    }
    
    .catalog-details h1,
    .catalog-details h3 {
        color: black !important;
    }
}

/* Search Suggestions - Modern Google-style */
.search-suggestions-container {
    position: relative;
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    backdrop-filter: blur(10px);
}

.search-suggestions-dropdown.show {
    display: block;
    animation: suggestionsFadeIn 0.2s ease-out;
}

.search-suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
    transform: translateX(4px);
}

.search-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    color: #1976d2;
    font-size: 12px;
    flex-shrink: 0;
}

.suggestion-icon.product {
    background: #e3f2fd;
    color: #1976d2;
}

.suggestion-icon.article {
    background: #f3e5f5;
    color: #7b1fa2;
}

.suggestion-icon.category {
    background: #e8f5e8;
    color: #388e3c;
}

.suggestion-icon.product-category {
    background: #e8f5e8;
    color: #388e3c;
}

.suggestion-icon.article-category {
    background: #fff3e0;
    color: #f57c00;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 500;
    margin: 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-subtitle {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-action {
    color: #999;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-suggestion-item:hover .suggestion-action {
    opacity: 1;
}

.search-suggestions-loading {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-suggestions-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Highlight matched text */
.suggestion-highlight {
    background: #fff3cd;
    font-weight: 600;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Input focus state adjustment */
.catalog-search-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-suggestions-container .catalog-search-input:focus {
    border-radius: 6px 6px 0 0;
}

/* Animations */
@keyframes suggestionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-suggestions-dropdown {
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .search-suggestion-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .suggestion-title {
        font-size: 13px;
    }
    
    .suggestion-subtitle {
        font-size: 11px;
    }
}