/* Latife Theme */
@import url('https://fonts.googleapis.com/css?family=Kanit:400,700&display=swap');

:root {
    --primary-color: #333333;
    --secondary-color: #6c757d;
    --accent-color: #00913f;
    --background-color: #ffffff;
    --text-color: #4d4d4d;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --header-bg: #ffe000;
    --header-text: #4d4d4d;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --button-bg: #1abc9c;
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* Navbar */
.navbar {
    background-color: var(--header-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--header-text) !important;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--header-text) !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
    margin-bottom: 0;
    text-align: center;
}

/* Info Banners */
.info-banners {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.info-banner-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.banner-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.banner-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.banner-text strong {
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.banner-text span {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Product Cards */
.product-card {
    border: none;
    transition: transform 0.2s;
    margin-bottom: 2rem;
    background: transparent;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.product-title {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0;
    margin-top: 0;
    font-size: 0.9rem;
}

.footer h5 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--footer-text);
}

.footer-text {
    color: rgba(255,255,255,0.8);
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: white;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    color: white;
}

.btn-primary:hover {
    background-color: #007a35;
    border-color: #007a35;
    color: white;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

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

.btn-outline-light {
    border-radius: 4px;
}

/* Page Titles */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Product Detail Page */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-product-img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-row {
    flex-wrap: wrap;
}

.thumbnail-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-wrapper:hover,
.thumbnail-wrapper.active {
    border-color: var(--accent-color);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
}

.description-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.quantity-selector .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Related Products */
.related-products {
    border-top: 1px solid var(--border-color);
}

/* Cart Page */
.cart-item-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.order-summary-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-title {
    font-weight: 700;
    color: var(--primary-color);
}

.total-price {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--secondary-color);
}

/* Auth Pages */
.auth-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.auth-card .form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .navbar-logo {
        max-height: 40px;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .info-banner-card {
        padding: 0.75rem;
    }
    
    .banner-text {
        font-size: 0.75rem;
    }
    
    .banner-text span {
        font-size: 0.7rem;
    }
    
    .banner-icon {
        font-size: 1.25rem;
    }
}
