* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

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: #F02D34;
    color: #fff;
}

.btn-red:hover {
    background-color: #d02228;
}

/* Header Styles */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.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: #f02d34;
    padding: 7px;
    border-radius: 25px;
}

.search-button {
    position: absolute;
    right: 5px;
    padding: 5px 10px;
    background-color: #F02D34;
    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: #F02D34;
    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: #F02D34;
    border-radius: 50%;
    z-index: -1;
}

/* Yahoo Auction Banner */
.auction-banner {
    margin: 30px 0;
    border: 2px solid #F02D34;
    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: #F02D34;
    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: 40px 0;
    background-color: #F02D34;
    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%;
}

/* Partners */
.partners {
    padding: 20px 0;
    /* background-color: #fff; */
}

.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: 30px;
    object-fit: contain;
}

/* Promotion Banner */
.promotion-banner {
    margin: 30px 0;
    /* background-color: #F02D34; */
    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: #F02D34;
    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: #F02D34;
    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: #F02D34;
    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: #F02D34;
    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: #F02D34;
    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: #F02D34;
    opacity: 0.3;
    text-transform: uppercase;
}

/* Footer */
footer {
    /* background-color: #F02D34; */
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 60px;
    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: #F02D34;
}

/* 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) {
    .header-container {
        padding: 10px;
    }
    
    .search-bar {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-icons {
        gap: 15px;
    }
    
    .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: #F02D34;
    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: 10px;
}

.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: -webkit-fill-available;
}