/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Custom CSS */
:root {
    --base-color: #f97316/*#3a86ff, f97316*/;
    --secondary-color: #ff006e;
    --accent-color: #ffbe0b;
    --dark-color: #252422;
    --light-color: #f8f9fa;
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8E53;
    --dark-orange: #E55A2B;
    --light-orange: #FFE5DD;
    --text-dark: #2C3E50;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8E53 0%, #FFB88C 100%);

    /*========== Font and typography ==========*/
    --body-font: "Prompt", sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
}

body.th {
    font-family: var(--body-font);
    font-weight: 400;
    font-style: normal;
}
/* CTA Button */
.cta-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
    color: white;
}

/* Banner Slider */
.carousel-item {
    height: 450px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--base-color);
    margin: 15px 0;
   
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border-radius: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 250px;
    /* height: 250px;
    max-height: 250px; */
    width: 100%;
    border-radius: 15px 15px 0 0;
    object-fit: cover;
    object-position: top center;
}
.product-img-featured {
    height: 220px;
}

.product-title {
    font-weight: 400;
    margin-bottom: 5px;
    font-size: 1.1rem;
    height: 45px;
    color: var(--bs-secondary-color);
}

.product-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Services Section */
.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: var(--light-color);
    transition: transform 0.3s;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--base-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--base-color);
    border-color: var(--base-color);
}

.btn-primary:hover {
    border-color: #f77215;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.btn-outline-primary {
    border-color: var(--base-color);
    color: var(--base-color);
}

.btn-outline-primary:hover {
    background-color: var(--base-color);
    color: white;
}

/* Footer */
.bg-dark-color {
    background-color: var(--dark-color);
    color: white;
}
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Newsletter */
.newsletter-form {
    position: relative;
}

.newsletter-form input {
    border-radius: 30px;
    padding: 10px 20px;
    padding-right: 60px;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--base-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Filter buttons */
.filter-buttons {
    margin-bottom: 30px;
}

.filter-buttons .btn {
    margin: 5px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}
.navbar-brand img {
    width: 40px;
    height: 40px;
}
.margin-center:before{
    margin: 0 auto !important;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.about-section {
    padding: 80px 0;
/*            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    position: relative;
    overflow: hidden;
    
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.section-title {
    
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}
.section-title-center::after{
    bottom: -20px;
    left: 50%;
    transform: translate(-50%, 0);
}

.product-showcase {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.product-showcase:hover::before {
    left: 100%;
}

.product-showcase:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.product-showcase:hover .product-image {
    transform: scale(1.05);
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.feature-item {
    padding: 1rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.feature-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #2196f3;
}

.feature-icon {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    color: #2196f3;
    transform: rotate(360deg);
}

.highlight-text {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.btn-custom {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid #ff6b35;
    color: #ff6b35;
    background: transparent;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.btn-outline-custom:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}
.shape-orange {
    color: #ff6a00;
    opacity: 0.2;
}

.discount {
    --tw-bg-opacity: 1;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
    /* width: 45px; */
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 3px 10px;
    font-size: .9rem;
    color: #fff;
    border-radius: 5px;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.stats-counter {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
}


@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .about-section {
        padding: 60px 0;
    }
    .product-showcase, .content-card {
        margin-bottom: 2rem;
    }

    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    section {
        padding: 40px 0;
    }
}
@media screen  and (max-width: 992px){
    .content-card {
        padding: 15px;
    }
    .content-card .section-title {
        text-align: center;
        margin-bottom: -40px;
    }
    .content-card .section-title::after {
        left: 50%;
        bottom: -25px;
        transform: translate(-50%, 0);
    }
    .product-img {
        height: 180px;
        padding: 5px;
    }
    .product-title {
        font-size: 1rem;
        height: 40px;
    }
}