* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai Looped', sans-serif;
}

/* Kanit font สำหรับหัวข้อทั้งหมด */
h1, h2, h3, h4, h5, h6,
.hero-title,
.services-title,
.section-title,
.promotion-title,
.footer-title,
.category-name,
.product-name,
.mercari-title,
.mercari-product-title,
.testimonial-user h4,
.service-icon-title,
.btn,
.modal-title,
.panel-title,
.popover-title,
strong, b,
*[style*="font-weight: 700"],
*[style*="font-weight: 600"],
*[style*="font-weight: bold"] {
    font-family: 'Kanit', sans-serif;
}

/* กำหนด font-weight เฉพาะสำหรับหัวข้อให้ใช้ Kanit เท่านั้น */
.hero-title { font-weight: 700; }
.services-title { font-weight: 700; }
.section-title { font-weight: 700; }
.promotion-title { font-weight: 700; }
.footer-title { font-weight: 600; }
.mercari-title { font-weight: 700; }
.service-icon-title { font-weight: 600; }

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-red {
    background-color: #3266CC;
    color: #fff;
}

.btn-red:hover {
    background-color: #007bb3;
}

/* Top Bar Styles */
.top-bar {
    background-color: #e8f8ff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.top-bar-item i {
    color: #3266CC;
}

.payment-icons {
    display: flex;
    gap: 8px;
    margin-left: 8px;
}

.payment-icons i {
    font-size: 16px;
    color: #666;
}

/* Header Styles */
.main-header {
    background-color: #3266CC;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.header-logo img {
    height: 40px;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #3266CC;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: #3266CC;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: #007bb3;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.header-action-item:hover {
    color: #3266CC;
}

.header-action-item i {
    font-size: 20px;
}

/* Mobile Search */
.mobile-search {
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.mobile-search .search-input-wrapper {
    margin: 0;
}

/* Navigation Menu Styles */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 70px; /* ความสูงของ header */
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: top 0.3s ease-in-out;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

/* Hide scrollbar for Chrome, Safari, Edge */
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    color: #3266CC;
    background-color: #f8f9fa;
}

.nav-item.active {
    color: #3266CC;
    border-bottom-color: #3266CC;
}

.nav-item span {
    font-family: 'Kanit', sans-serif;
}

/* Hover effects และ improvements */
.top-bar-item:hover {
    color: #3266CC;
}

.header-logo:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Focus states */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 149, 238, 0.1);
}

/* Active states for navigation */
.nav-item:active {
    transform: translateY(1px);
}

/* Smooth scrolling for navigation menu */
.nav-menu {
    scroll-behavior: smooth;
}

/* Loading animation for search */
.search-btn:active {
    transform: scale(0.95);
}

/* Better spacing for payment icons */
.payment-icons i:hover {
    color: #3266CC;
    transform: scale(1.1);
    transition: all 0.2s;
}

/* Header Layout Styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

/* Left side - Logo + Search */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
}

/* Right side - User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Update old classes to work with new structure */
.logo {
    display: flex;
    align-items: center;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

.header-icon:hover {
    color: #3266CC;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    margin-right: 15px;
}

/* Update search bar for new layout */
.search-bar {
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 45px !important;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-bar .search-icon {
    position: absolute;
    left: 10px;
    font-size: 16px;
    color: #fff;
    background: #3266CC;
    padding: 7px;
    border-radius: 25px;
}

.search-bar .search-button {
    position: absolute;
    right: 5px;
    padding: 5px 10px;
    background-color: #3266CC;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

/* Logo styling */
.logo img {
    height: 36px;
}

/* Additional header improvements */
.header-left .logo {
    flex-shrink: 0;
}

.header-left .search-bar {
    flex: 1;
    min-width: 300px;
}

/* Text styling for header */
.header-actions a {
    font-family: 'Noto Sans Thai Looped', sans-serif;
    font-weight: 400;
}

/* Ensure proper spacing */
@media (min-width: 769px) {
    .header-left {
        max-width: 70%;
    }
    
    .header-actions {
        min-width: 30%;
    }
}

.logo img {
    height: 36px;
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 45px !important;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-bar-mobile {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar-mobile input {
    width: 100%;
    padding: 10px 40px 10px 45px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 16px;
    color: #fff;
    background: #3266CC;
    padding: 7px;
    border-radius: 25px;
}

.search-button {
    position: absolute;
    right: 5px;
    padding: 5px 10px;
    background-color: #3266CC;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffd8d8 0%, #fff1f1 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    background-image: url(/frontend/web/images/slideshow/slide-main.png);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
    justify-content: center;
    align-items: center;
    display: flex
;
}

.hero-container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-title {
    font-size: 45px;
    font-weight: 700;
    color: #3266CC;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-cta {
    margin-top: 20px;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-size: 16px;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

.hero-image::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 300px;
    background-color: #3266CC;
    border-radius: 50%;
    z-index: -1;
}

/* Yahoo Auction Banner */
.auction-banner {
    margin: 30px 0;
    border: 2px solid #3266CC;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.auction-carousel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
}

.auction-item {
    text-align: center;
    width: 100px;
}

.auction-item img {
    max-width: 100%;
    height: 70px;
    object-fit: contain;
}

.auction-logo {
    text-align: center;
    margin-bottom: 10px;
}

.auction-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #3266CC;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

/* Services Section */
.services {
    padding: 15px 0;
    background-color: #f5f5f5;
    color: #fff;
}

.services-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-content {
    flex: 2;
    padding: 20px;
}

.services-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.services-title span {
    color: #FFD700;
}

.services-image {
    flex: 1;
    text-align: right;
}

.services-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Partners */
.partners {
    padding: 20px 0;
    background-color: #3266cc;
}

.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    height: 40px;
    object-fit: contain;
}

/* Promotion Banner */
.promotion-banner {
    margin: 30px 0;
    /* background-color: #3266CC; */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    color: #fff;
}

.promotion-container {
    display: flex;
    align-items: center;
    padding: 20px;
}

.promotion-content {
    flex: 2;
    padding: 20px;
}

.promotion-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.promotion-logo img {
    height: 50px;
    margin-right: 10px;
}

.promotion-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.promotion-description {
    font-size: 14px;
    margin-bottom: 10px;
}

.promotion-image {
    flex: 1;
    text-align: right;
}

.promotion-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.promotion-prev {
    left: 10px;
}

.promotion-next {
    right: 10px;
}

/* Products Section */
.products-section {
    /* padding: 40px 0; */
    /* background-color: #ffeaea; */
    /* background-image: url(/frontend/web/images/home/banner-center.png); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.section-title img {
    height: 30px;
    margin-right: 10px;
}

.section-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-action a {
    font-size: 14px;
    color: #3266CC;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* Category Section */
.categories {
    padding: 20px 0;
    background-color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-image img {
    max-height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    text-align: center;
    color: #333;
}

/* Mercari Section */
.mercari-section {
    padding: 40px 0;
    background-color: #f6f6f6;
    position: relative;
    overflow: hidden;
}

.mercari-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.mercari-container {
    position: relative;
    z-index: 1;
}

.mercari-header {
    display: block;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.mercari-logo {
    height: 40px;
    margin-right: 10px;
}

.mercari-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.mercari-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    max-width: 600px;
}

.mercari-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.mercari-product {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mercari-product-image {
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mercari-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mercari-product-content {
    padding: 15px;
}

.mercari-product-tag {
    display: inline-block;
    background-color: #3266CC;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    margin-bottom: 3px;
    position: absolute;
}

.mercari-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mercari-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #3266CC;
    margin-bottom: 10px;
}

.mercari-product-text-price {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    background: #00c300;
    padding: 2px 8px;
    border-radius: 20px;
}

.mercari-product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mercari-product-text-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mercari-product-button {
    background-color: #3266CC;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
}

.mercari-product-shipping {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.mercari-product-shipping i {
    margin-right: 5px;
    color: #4CAF50;
}

.mercari-note {
    text-align: center;
    /* font-size: 14px; */
    color: #666;
    margin-bottom: 30px;
}

/* Testimonials */
.testimonials {
    padding: 40px 0;
    background-color: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar i {
    font-size: 24px;
    color: #ccc;
}

.testimonial-user {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.testimonial-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 14px;
}

/* Services Icons */
.service-icons {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.service-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-icon-item {
    display: flex;
    align-items: center;
}

.service-icon {
    width: 50px;
    height: 50px;
    /* background-color: #3266CC; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 20px;
}

.service-icon-content {
    flex: 1;
}

.service-icon-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.service-icon-description {
    font-size: 12px;
    color: #666;
}

/* Slogan */
.slogan {
    padding: 40px 0;
    background-color: #fff;
    text-align: center;
}

.slogan-text {
    font-size: 36px;
    font-weight: 300;
    color: #3266CC;
    opacity: 0.3;
    text-transform: uppercase;
}

/* Footer */
footer {
    /* background-color: #3266CC; */
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 88px;
    border-radius: 15px;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    margin-right: 30px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    /* margin-bottom: 15px; */
}

.footer-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-menu {
    flex: 1;
    min-width: 150px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    /* margin-bottom: 10px; */
}

.footer-links a {
    /*color: #fff;*/
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #fff;
    font-size: 12px;
    /* color: rgba(255, 255, 255, 0.7); */
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-container {
    padding: 60px 20px 30px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
}

.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-bottom-nav-item span {
    font-size: 12px;
}

.mobile-bottom-nav-item.active {
    color: #3266CC;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .mercari-products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Top Bar - ซ่อนใน mobile */
    .top-bar {
        display: none !important;
    }

    /* Header Mobile */
    .header-content {
        padding: 10px 0;
        gap: 15px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .search-bar {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-icons {
        gap: 15px;
    }
    
    .header-actions {
        gap: 10px;
    }

    .header-action-item span {
        display: none;
    }

    .header-icon {
        font-size: 18px;
    }

    /* Navigation Mobile */
    .main-nav {
        top: 60px;
        display: none; /* ซ่อน nav ใน mobile แล้วใช้ mobile bottom nav แทน */
    }

    /* Mobile Header Actions */
    .mobile-header-actions {
        background-color: #fff;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
        transition: transform 0.3s ease-in-out;
    }

    .mobile-actions-row {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 15px;
    }

    .mobile-search-trigger,
    .mobile-action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
        background: none;
        border: none;
        color: #333;
        text-decoration: none;
        font-size: 12px;
        cursor: pointer;
        transition: color 0.2s;
        flex: 1;
        max-width: 80px;
    }

    .mobile-search-trigger:hover,
    .mobile-action-item:hover {
        color: #3266CC;
    }

    .mobile-search-trigger i,
    .mobile-action-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .mobile-search-trigger span,
    .mobile-action-item span {
        font-family: 'Noto Sans Thai Looped', sans-serif;
        font-size: 11px;
        text-align: center;
    }

         /* Mobile Search Modal */
     .mobile-search-modal {
         position: fixed;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background-color: #fff;
         z-index: 9999;
         transform: translateY(100%);
         transition: transform 0.3s ease-in-out;
         display: flex;
         flex-direction: column;
         opacity: 0;
         visibility: hidden;
     }

     .mobile-search-modal.active {
         transform: translateY(0);
         opacity: 1;
         visibility: visible;
     }

    .mobile-search-header {
        background-color: #3266CC;
        color: white;
        padding: 15px 0;
        flex-shrink: 0;
    }

    .mobile-search-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }

    .mobile-search-close {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-search-header h3 {
        margin: 0;
        font-family: 'Kanit', sans-serif;
        font-size: 18px;
        font-weight: 600;
    }

    .mobile-search-content {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
    }

    .mobile-search-form {
        margin-bottom: 30px;
    }

    .mobile-search-input-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-search-input {
        width: 100%;
        padding: 15px;
        border: 2px solid #ddd;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
        font-family: 'Noto Sans Thai Looped', sans-serif;
    }

    .mobile-search-input:focus {
        border-color: #3266CC;
    }

    .mobile-search-submit {
        background-color: #3266CC;
        color: white;
        border: none;
        border-radius: 10px;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: 'Kanit', sans-serif;
    }

    .mobile-search-submit:hover {
        background-color: #007bb3;
    }

    .mobile-search-suggestions h4 {
        font-family: 'Kanit', sans-serif;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }

    .mobile-search-categories {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-search-category {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 10px;
        text-decoration: none;
        color: #333;
        transition: background-color 0.2s;
    }

    .mobile-search-category:hover {
        background-color: #e9ecef;
    }

    .mobile-search-category i {
        font-size: 20px;
        color: #3266CC;
        width: 24px;
        text-align: center;
    }

         .mobile-search-category span {
         font-family: 'Noto Sans Thai Looped', sans-serif;
         font-size: 14px;
     }

    /* Mobile Top Bar and Header Behavior */
    @media (max-width: 767px) {
        .top-bar {
            display: block !important;
            padding: 5px 0;
            font-size: 10px;
            transition: transform 0.3s ease-in-out;
        }
        
        .top-bar-content {
            flex-direction: column;
            gap: 8px;
            text-align: center;
        }
        
        .top-bar-item {
            justify-content: center;
            font-size: 10px;
        }
        
        .payment-icons i {
            font-size: 12px;
        }

        /* Mobile Header Responsive */
        .main-header {
            transition: transform 0.3s ease-in-out;
        }

        .header-content {
            padding: 10px 0;
        }

        .logo img {
            height: 35px;
        }

                 /* Hide search bar in header for mobile */
         .search-bar {
             display: none !important;
         }

         /* Mobile Header Left Layout */
         .header-left {
             gap: 10px;
             display: flex !important;
             align-items: center;
             justify-content: flex-start;
             flex: 1;
             order: 0;
         }

         .mobile-menu-toggle {
             padding: 8px;
             font-size: 18px;
             background: none;
             border: none;
             color: #333;
             cursor: pointer;
         }

         .mobile-menu-toggle:hover {
             color: #3266CC;
         }

         /* Mobile Header Right - Show search icon and user icon */
         .header-actions {
             display: flex !important;
             align-items: center;
             justify-content: flex-end;
             gap: 5px;
             order: 1;
         }

         .header-icons.hidden-xs.hidden-sm {
             display: none !important;
         }

         .header-icons.hidden-md.hidden-lg {
             display: flex !important;
             gap: 10px;
             order: 1;
         }

        /* Navigation Menu Mobile */
        .main-nav {
            position: sticky;
            top: 0;
            z-index: 100;
            transition: all 0.3s ease-in-out;
        }

        .nav-menu {
            overflow-x: auto;
            white-space: nowrap;
            padding: 0 10px;
        }

        .nav-item {
            min-width: auto;
            padding: 10px 15px;
            font-size: 13px;
        }

                 /* Mobile Header Icons Improvements */
         .header-icons.hidden-md.hidden-lg {
             gap: 10px;
         }

         .header-icons.hidden-md.hidden-lg .header-icon {
             padding: 8px;
         }

         .header-icons.hidden-md.hidden-lg .header-icon img {
             width: 24px;
             height: 24px;
         }

         /* Mobile Search Icon in Header */
         .mobile-search-icon {
             background: none;
             border: none;
             padding: 8px;
             color: #333;
             font-size: 18px;
             cursor: pointer;
             transition: color 0.2s;
             display: block !important;
             order: 0;
         }

         .mobile-search-icon:hover {
             color: #3266CC;
         }

         /* Ensure mobile header actions only show on mobile */
         .mobile-header-actions {
             display: block !important;
         }

         /* Mobile Header Layout Order */
         .mobile-menu-toggle {
             order: 0;
             flex-shrink: 0;
         }

         .logo {
             order: 1;
             flex-shrink: 0;
         }

         .search-bar {
             display: none !important;
         }

         /* Header Content Mobile */
         .header-content {
             display: flex !important;
             align-items: center;
             justify-content: space-between;
             width: 100%;
             padding: 10px 0;
         }
     }

    /* Desktop - Hide mobile elements */
    @media (min-width: 768px) {
        .mobile-header-actions {
            display: none !important;
        }

        .mobile-search-icon {
            display: none !important;
        }

        .mobile-search-modal {
            display: none !important;
        }
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        padding: 0;
        text-align: center;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 45px;
    }
    
    .auction-carousel {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 20px;
        padding: 15px;
    }
    
    .services-container {
        flex-direction: column;
    }
    
    .partners-container {
        gap: 5px;
    }
    
    .partner-item {
        padding: 5px 10px;
    }
    
    .partner-item img {
        height: 25px;
    }
    
    .promotion-container {
        flex-direction: column;
        text-align: center;
    }
    
    .promotion-content {
        order: 1;
    }
    
    .promotion-image {
        order: 0;
        margin-bottom: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .mercari-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-icons-grid {
        /* grid-template-columns: 1fr; */
    }
    
    .slogan-text {
        font-size: 24px;
    }
}
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3266CC;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-info {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00bfff;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffc107;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-success {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.back-button {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    margin: 15px;
    padding: 15px;
}

.back-button svg {
    margin-right: 5px;
    fill: #e74c3c;
}
.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.btn-block {
    width: 100%;
}

/* =================================
   New Mercari Style Header CSS
   ================================= */

/* Main Header Container */
.main-header-new {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile Header Styles */
.mobile-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.mobile-header-content {
    padding: 0;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 56px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: #3266CC;
}

.mobile-logo {
    flex: 1;
    text-align: center;
}

.mobile-logo img {
    height: 32px;
    max-width: 120px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-action-btn:hover {
    background: #f5f5f5;
    color: #3266CC;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #3266CC;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-header-bottom {
    background: #f8f9fa;
    border-top: 1px solid #e6e6e6;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-header-bottom::-webkit-scrollbar {
    display: none;
}

.mobile-categories {
    display: flex;
    gap: 24px;
    min-width: max-content;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
    color: #3266CC;
}

.category-btn i {
    font-size: 16px;
}

/* Desktop Header Styles */
.desktop-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: all 0.2s;
}

.search-wrapper:hover {
    border-color: #3266CC;
}

.search-wrapper:focus-within {
    border-color: #3266CC;
    box-shadow: 0 0 0 3px rgba(255, 2, 17, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn,
.camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #3266CC;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.search-btn:hover,
.camera-btn:hover {
    background: #3A89D8;
}

.camera-btn {
    background: #6c757d;
}

.camera-btn:hover {
    background: #5a6268;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.desktop-action-item:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.desktop-action-item i {
    font-size: 18px;
}

.cart-action {
    position: relative;
}

.cart-count {
    background: #3266CC;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Desktop Navigation */
.desktop-nav {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #3266CC;
    border-bottom-color: #3266CC;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.dropdown-item-custom:last-child {
    border-bottom: none;
}

.dropdown-item-custom:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.dropdown-item-custom i {
    font-size: 16px;
    color: #666;
}

.dropdown-item-custom:hover i {
    color: #3266CC;
}

/* Mobile Navigation Collapse */
.mobile-nav-collapse {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.mobile-nav-content {
    padding: 16px;
}

.mobile-search-section {
    margin-bottom: 20px;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.mobile-search-btn,
.mobile-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #3266CC;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.mobile-camera-btn {
    background: #6c757d;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.mobile-menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #666;
}

.mobile-menu-item:hover i {
    color: #3266CC;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .mobile-header-top {
        padding: 10px 12px;
        min-height: 52px;
    }
    
    .mobile-logo img {
        height: 28px;
    }
    
    .mobile-action-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .mobile-categories {
        gap: 16px;
    }
    
    .category-btn {
        font-size: 10px;
    }
    
    .category-btn i {
        font-size: 14px;
    }
}

/* Animation for mobile menu toggle */
.mobile-nav-collapse.collapsing {
    transition: height 0.35s ease;
}

.mobile-nav-collapse.show {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper stacking */
.main-header-new {
    background: #fff;
    position: relative;
    z-index: 1000;
}

/* Hide old header elements that might conflict */
.navbar-sticky,
.navbar-stuck-menu {
    display: none !important;
}

/* =================================
   New Mercari Style Header CSS
   ================================= */

/* Main Header Container */
.main-header-new {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile Header Styles */
.mobile-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.mobile-header-content {
    padding: 0;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 56px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: #3266CC;
}

.mobile-logo {
    flex: 1;
    text-align: center;
}

.mobile-logo img {
    height: 32px;
    max-width: 120px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-action-btn:hover {
    background: #f5f5f5;
    color: #3266CC;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #3266CC;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-header-bottom {
    background: #f8f9fa;
    border-top: 1px solid #e6e6e6;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-header-bottom::-webkit-scrollbar {
    display: none;
}

.mobile-categories {
    display: flex;
    gap: 24px;
    min-width: max-content;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
    color: #3266CC;
}

.category-btn i {
    font-size: 16px;
}

/* Desktop Header Styles */
.desktop-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.desktop-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 0;
    gap: 24px;
}

.desktop-logo img {
    /* height: 40px; */
    width: 160px;
    max-width: 160px;
}

.desktop-search {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: all 0.2s;
}

.search-wrapper:hover {
    border-color: #3266CC;
}

.search-wrapper:focus-within {
    border-color: #3266CC;
    box-shadow: 0 0 0 3px rgba(255, 2, 17, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.camera-btn {
    background: #6c757d;
}

.camera-btn:hover {
    background: #5a6268;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.desktop-action-item:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.desktop-action-item i {
    font-size: 18px;
}

.cart-action {
    position: relative;
}

.cart-count {
    background: #3266CC;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Desktop Navigation */
.desktop-nav {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #3266CC;
    border-bottom-color: #3266CC;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.dropdown-item-custom:last-child {
    border-bottom: none;
}

.dropdown-item-custom:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.dropdown-item-custom i {
    font-size: 16px;
    color: #666;
}

.dropdown-item-custom:hover i {
    color: #3266CC;
}

/* Mobile Navigation Collapse */
.mobile-nav-collapse {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.mobile-nav-content {
    padding: 16px;
}

.mobile-search-section {
    margin-bottom: 20px;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.mobile-search-btn,
.mobile-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #3266CC;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.mobile-camera-btn {
    background: #6c757d;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: #3266CC;
}

.mobile-menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #666;
}

.mobile-menu-item:hover i {
    color: #3266CC;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .mobile-header-top {
        padding: 10px 12px;
        min-height: 52px;
    }
    
    .mobile-logo img {
        height: 28px;
    }
    
    .mobile-action-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .mobile-categories {
        gap: 16px;
    }
    
    .category-btn {
        font-size: 10px;
    }
    
    .category-btn i {
        font-size: 14px;
    }
}

/* Animation for mobile menu toggle */
.mobile-nav-collapse.collapsing {
    transition: height 0.35s ease;
}

.mobile-nav-collapse.show {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper stacking */
.main-header-new {
    background: #fff;
    position: relative;
    z-index: 1000;
}

/* Hide old header elements that might conflict */
.navbar-sticky,
.navbar-stuck-menu,
.handheld-toolbar {
    display: none !important;
}

/* Mobile Navigation Improvements */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-menu {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.close-menu:hover {
    color: #3266CC;
}