/* Base Container */
.thta-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Typography */
.thta-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #10415a;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Hero Section */
.thta-hero-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.thta-sidebar {
    width: 25%;
}

.thta-cat-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thta-cat-menu li {
    margin-bottom: 15px;
    position: relative;
}

.thta-cat-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #38657d;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.thta-cat-menu > li:hover > a {
    background-color: #274b5e;
}

.thta-cat-menu > li.menu-item-has-children > a::after {
    content: "\25B6"; /* Right arrow */
    font-size: 10px;
    margin-left: auto;
}

/* Submenu */
.thta-cat-menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
    z-index: 99;
}

.thta-cat-menu li:hover > .sub-menu {
    display: block;
}

.thta-cat-menu .sub-menu li {
    margin: 0;
}

.thta-cat-menu .sub-menu li a {
    background: transparent;
    color: #333;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: normal;
}

.thta-cat-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #10415a;
}

/* Banner */
.thta-banner {
    width: 75%;
    border-radius: 8px;
    overflow: hidden;
}

.thta-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Product Section & Grid (Replaces Slider) */
.thta-section {
    margin-bottom: 50px;
}

.thta-product-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.thta-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thta-product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e6251b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.badge-banchay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff8a00;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.thta-container .product-title {
    font-size: 15px;
    margin: 0 0 10px !important;
    line-height: 1.4;
}

.thta-container .product-title a {
    color: #10415a;
    text-decoration: none;
    font-weight: bold;
}

.product-price {
    color: #e6251b;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
    margin-bottom: 10px;
}

.product-price del {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    margin-right: 5px;
}

.product-rating {
    margin-bottom: 10px;
    color: #ffb400;
}

/* Add to cart button override */
.thta-container .thta-add-to-cart {
    display: none !important; /* Hide until hover */
    background: #10415a !important;
    color: #fff !important;
    text-align: center;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    border: none !important;
    text-transform: none !important;
    width: 100%;
    box-sizing: border-box;
}

.thta-container .thta-product-item:hover .thta-add-to-cart {
    display: block !important;
}

/* Specific Layout for Category Box */
.thta-cat-layout {
    display: flex;
    background: #f9f9fb;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
}

.thta-cat-banner {
    width: 30%;
    background: #fff8eb;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.thta-cat-banner h3 {
    font-family: 'Great Vibes', cursive, serif;
    font-size: 32px;
    color: #d27b2a;
    margin: 0 0 10px;
}

.thta-cat-banner p {
    font-style: italic;
    color: #a4815a;
}

.thta-cat-products {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.thta-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thta-view-more {
    text-align: center;
    margin-top: 20px;
}

.btn-view-more {
    background-color: #ff9900;
    color: #fff;
    padding: 10px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-view-more:hover {
    background-color: #e68a00;
}

/* Blog Section */
.thta-blog-layout {
    display: flex;
    gap: 20px;
}

.thta-blog-featured {
    width: 60%;
}

.thta-blog-featured .blog-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 350px;
}

.thta-blog-featured .blog-info h3 {
    font-size: 24px;
    margin: 15px 0 10px;
}

.thta-blog-featured .blog-info h3 a {
    color: #10415a;
    text-decoration: none;
}

.thta-blog-featured .blog-excerpt {
    color: #666;
    line-height: 1.6;
}

.thta-blog-list {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.thta-blog-list-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.thta-blog-list-item .blog-image-small {
    width: 120px;
    flex-shrink: 0;
}

.thta-blog-list-item .blog-image-small img {
    width: 100%;
    border-radius: 6px;
    height: 80px;
    object-fit: cover;
}

.thta-blog-list-item .blog-info-small h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.thta-blog-list-item .blog-info-small h4 a {
    color: #10415a;
    text-decoration: none;
}

.thta-blog-list-item .blog-excerpt-small {
    font-size: 13px;
    color: #777;
}

/* Responsive */
@media (max-width: 1024px) {
    .thta-product-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .thta-hero-section {
        flex-direction: column;
    }
    .thta-sidebar, .thta-banner {
        width: 100%;
    }
    .thta-cat-menu .sub-menu {
        position: relative;
        left: 0;
    }
    .thta-cat-layout {
        flex-direction: column;
    }
    .thta-cat-banner, .thta-cat-products {
        width: 100%;
    }
    .thta-product-slider, .thta-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .thta-blog-layout {
        flex-direction: column;
    }
    .thta-blog-featured, .thta-blog-list {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .thta-product-slider, .thta-product-grid {
        grid-template-columns: 1fr;
    }
}
