/*
Theme Name: Apples Island Red V4
Theme URI: http://example.com/apples-island-red-v4/
Author: Antigravity
Author URI: http://example.com/
Description: Custom WordPress theme for Apples Island based on RED A design mockup (Theme 4).
Version: 1.35
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apples-island-red-v4
*/

/* Reset & Variables */
:root {
    --primary-color: #D1121C; /* Bright Red from RED A logo */
    --dark-color: #A30D15;
    --light-bg: #FDF7F7;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #EAEAEA;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: 1px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--dark-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* Header */
.site-header {
    background: #FFFFFF;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo img {
    height: 75px;
    width: auto;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}
.main-navigation a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}
.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section */
.hero-section {
    background-color: #FFFFFF;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-content {
    flex: 1;
    max-width: 500px;
}
.hero-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-subtitle::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}
.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.hero-content h1 span {
    color: var(--primary-color);
    font-style: normal;
}
.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    gap: 15px;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.hero-image img {
    border-radius: 10px;
    background-color: #F8F8F8;
    min-height: 400px;
    width: 100%;
}

/* Features Strip */
.features-strip {
    background: #FFFFFF;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 40px;
}
.features-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: column;
    text-align: center;
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}
.feature-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0 5px;
}
.feature-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FDF7F7;
}
.section-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #F5E6E6;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-img {
    height: 200px;
    background-color: #F8F8F8;
    width: 100%;
    object-fit: cover;
    margin: 15px 15px 0 15px;
    width: calc(100% - 30px);
}
.product-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px auto 15px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-info {
    padding: 0 20px 30px;
}
.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.product-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 60px 0;
}
.stats-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
}
.stat-item h3 {
    font-size: 40px;
    line-height: 1;
    margin: 0 0 5px;
}
.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}
.about-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #e0e0e0;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.play-btn::after {
    content: "";
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 8px;
}
.about-content {
    flex: 1;
}
.about-content h2 {
    font-size: 36px;
    margin: 15px 0 25px;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}
.about-list {
    list-style: none;
    margin-bottom: 30px;
}
.about-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 500;
}
.about-list li::before {
    content: "โ“";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    background-color: #FDF7F7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Process Section */
.process-section {
    background-color: #FDF7F7;
    padding: 80px 0;
    text-align: center;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
    margin-bottom: 40px;
    position: relative;
}
.process-step {
    flex: 1;
    position: relative;
    padding: 0 15px;
}
.step-icon {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 2px solid #F5E6E6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.process-step h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.process-step h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.process-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cert-inner {
    display: flex;
    gap: 40px;
}
.cert-box {
    flex: 1;
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
}
.cert-box h4 {
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 700;
}
.cert-logos {
    display: flex;
    gap: 15px;
}
.cert-logo {
    width: 60px;
    height: 60px;
    background-color: #FDF7F7;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border-radius: 5px;
}
.map-box {
    display: flex;
    gap: 20px;
    align-items: center;
}
.map-content p {
    font-size: 14px;
    margin-bottom: 15px;
}
.map-img {
    flex: 1;
    height: 100px;
    background-color: #E0E0E0;
}

/* Footer Section */
.site-footer {
    background-color: #3B3333;
    color: #FFFFFF;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
}
.footer-cta {
    flex: 1;
}
.footer-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}
.footer-cta p {
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-item span {
    font-size: 12px;
    opacity: 0.7;
    display: block;
}
.contact-item p {
    margin: 0;
    font-weight: 600;
}

/* ==========================================================================
   Products Archive Page Styles
   ========================================================================== */

.products-page-wrapper {
    background-color: #FFFFFF;
}

/* 1. Intro Section */
.products-intro {
    padding: 60px 0 40px;
    text-align: center;
}
.products-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.products-title span {
    color: var(--primary-color);
}
.products-desc {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 2. Layout (Grid) */
.products-archive-section {
    background-color: #FDF7F7; /* Light pink background */
    padding: 40px 0 80px;
}
.products-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.products-sidebar {
    width: 250px;
    flex-shrink: 0;
}
.products-main {
    flex: 1;
}

/* 3. Sidebar Styles */
.sidebar-widget {
    background: transparent;
    margin-bottom: 30px;
}
.sidebar-widget.widget_categories {
    background: transparent;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-widget ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.sidebar-widget ul li a:hover, .sidebar-widget ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}
.sidebar-widget ul li .count {
    font-size: 12px;
    color: #999;
}

/* Certifications Box */
.widget_certifications {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.cert-title {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.cert-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.cert-icon {
    font-size: 20px;
    opacity: 0.7;
}

/* 4. Main Content Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}
.products-showing strong {
    color: var(--text-dark);
}
.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}
.products-sort select {
    padding: 8px 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: #FFF;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

/* 5. Product Grid */
.products-grid-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card-archive {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #F0F0F0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.product-image {
    position: relative;
    background: #FFFFFF;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid #F5F5F5;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image {
    color: #CCC;
    font-size: 14px;
}
.product-badge {
    position: absolute;
    top: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: #FFF;
    letter-spacing: 0.5px;
}
.product-badge.badge-red { background: #D32F2F; left: 15px; } /* Best Seller */
.product-badge.badge-green { background: #2E7D32; right: 15px; } /* Natural */
.product-badge.badge-blue { background: #0288D1; left: 15px; } /* New */
.product-badge.badge-default { background: #555; left: 15px; }

.product-details {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-brand {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    flex: 1;
}
.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* 6. Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 8px;
}
.products-pagination a, .products-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #DDD;
    border-radius: 4px;
    background: #FFF;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.products-pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.products-pagination span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFF;
    font-weight: 600;
}

/* 7. OEM CTA Section */
.products-cta {
    background-color: #FBEAEA;
    padding: 80px 0;
    text-align: center;
}
.products-cta h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.products-cta p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .products-layout { flex-direction: column; }
    .products-sidebar { width: 100%; display: flex; gap: 30px; }
    .sidebar-widget { flex: 1; }
    .products-grid-archive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .products-sidebar { flex-direction: column; gap: 0; }
    .products-grid-archive { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Single Product Page Styles
   ========================================================================== */
.single-product-wrapper {
    background-color: #FFFFFF;
    padding-bottom: 80px;
}

/* Breadcrumbs */
.product-breadcrumbs {
    padding: 20px 0 40px;
}
.product-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #888;
}
.product-breadcrumbs li {
    display: flex;
    align-items: center;
}
.product-breadcrumbs a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.product-breadcrumbs a:hover {
    color: var(--primary-color);
}
.product-breadcrumbs .separator {
    margin: 0 10px;
    color: #CCC;
}
.product-breadcrumbs li.active {
    font-weight: 600;
    color: var(--text-dark);
}

/* Product Details Layout */
.product-layout {
    display: flex;
    gap: 60px;
    align-items: stretch;
}
.product-gallery {
    flex: 1;
    max-width: 45%;
}
.product-main-image {
    background: transparent;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
}

/* Product Info (Right) */
.single-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.tag-pill {
    background: #FBEAEA;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.product-short-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 30px;
}

/* Key Specifications */
.key-specifications h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.specs-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.spec-icon {
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 2px;
}
.spec-content {
    display: flex;
    flex-direction: column;
}
.spec-content strong {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 3px;
}
.spec-content span {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* CTA Button */
.product-actions {
    margin-top: auto;
}
.product-actions .btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 8px;
    background-color: #D32F2F;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}
.product-actions .btn-icon:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

/* Related Products */
.related-products-section {
    background: #FDF7F7; /* Light Pink/Gray */
    padding: 80px 0;
}
.related-header {
    text-align: center;
    margin-bottom: 50px;
}
.related-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.related-header p {
    color: #777;
    font-size: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.related-product-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}
.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.related-image-link {
    display: block;
    background: #FFFFFF;
}
.related-image {
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.related-details {
    padding: 20px;
    background: #FAFAFA;
    border-top: 1px solid #F0F0F0;
}
.related-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.related-view-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: opacity 0.2s;
}
.related-view-btn:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column;
        gap: 40px;
    }
    .product-gallery, .single-product-info {
        max-width: 100%;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .single-product-title {
        font-size: 26px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}




/* ==========================================================================
   About Us Page Styles (Redesign)
   ========================================================================== */

.about-page-wrapper {
    background-color: #FFFFFF;
    color: var(--text-dark);
    font-family: var(--font-family);
    overflow-x: hidden;
}

/* 1. Hero Title */
.about-hero-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #FFFFFF;
}
.about-hero-section h1 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-hero-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* 2. About Story (Home Sweet Island) */
.about-story-section {
    background: radial-gradient(circle at 80% 20%, #FFF0F2 0%, #FFFFFF 50%);
    padding: 80px 20px;
}
.about-story-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-story-img {
    flex: 1;
}
.about-story-img img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.about-story-content {
    flex: 1;
    background-color: #FFF0F2;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 240, 242, 0.5);
}
.about-story-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}
.about-story-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.working-hours {
    margin-bottom: 30px;
}
.working-hours h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.working-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.working-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.about-socials {
    display: flex;
    gap: 15px;
}
.about-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s;
}
.about-socials a:hover {
    transform: scale(1.1);
}

/* 3. About Freshly Made */
.about-fresh-section {
    background: radial-gradient(circle at 20% 50%, #FFF0F2 0%, #FFFFFF 60%);
    padding: 80px 0;
    overflow: hidden;
}
.about-fresh-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-fresh-content {
    flex: 1;
    padding: 0 40px;
}
.about-fresh-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}
.about-fresh-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.about-fresh-img {
    flex: 1;
}
.about-fresh-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px 0 0 100px; /* Half circle effect */
    display: block;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.1);
}

/* 4. Why Choose Us */
.about-values-section {
    padding: 80px 20px 100px;
    background-color: #FFFFFF;
}
.about-values-header {
    text-align: center;
    margin-bottom: 60px;
}
.about-values-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}
.about-values-header p {
    font-size: 14px;
    color: var(--text-muted);
}
.about-values-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 40px;
    align-items: center;
}
.values-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.value-box {
    background-color: #FFF0F2;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
}
.value-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.value-box p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}
.values-center-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-footer-link {
    text-align: center;
    margin-top: 60px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .about-story-container, .about-fresh-container {
        flex-direction: column;
    }
    .about-fresh-img img {
        border-radius: 20px; /* Remove half-circle on mobile */
    }
    .about-values-grid {
        grid-template-columns: 1fr;
    }
    .values-center-image {
        order: -1; /* Image on top */
        max-width: 400px;
        margin: 0 auto;
    }
}



/* ==========================================================================
   Global Responsive Styles (Added for Tablet & Mobile Fixes)
   ========================================================================== */

/* Fix horizontal overflow globally */
html, body {
    width: 100%;
}
.mobile-only-quote {
    display: none;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

.mobile-menu-toggle.active .hamburger-inner {
    background-color: transparent;
}
.mobile-menu-toggle.active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* TABLET (max-width: 991px) */
@media (max-width: 991px) {
    /* Header & Navigation */
    .site-header .main-navigation {
        display: none;
    }
    .site-header .main-navigation.active {
        display: block !important;
    }
    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-actions {
        gap: 0;
    }
    .header-actions .header-btn-quote,
    .header-actions .lang-switcher {
        display: none !important;
    }
    .mobile-only-quote {
        display: block;
        margin-top: 15px;
        width: 100%;
    }
    .mobile-only-quote .btn {
        width: 100%;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: block;
        margin-left: 0;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background-color: #FFFFFF;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Hero Section */
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-subtitle {
        justify-content: center;
    }
    .hero-subtitle::before {
        display: none;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-image {
        width: 100%;
    }
    
    /* About */
    .about-inner {
        flex-direction: column;
        gap: 30px;
    }
    .about-image {
        width: 100%;
    }
    
    /* Process Steps */
    .process-steps {
        flex-wrap: wrap;
        gap: 30px;
    }
    .process-step {
        flex: 1 1 45%;
    }
    
    /* Certifications */
    .cert-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .footer-cta p {
        margin: 0 auto 30px;
    }
    .footer-cta div[style*="display: flex"] {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-contact {
        width: 100%;
        align-items: flex-start;
    }
    .contact-item {
        text-align: left;
    }
}

/* MOBILE (max-width: 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header Adjustments */
    
    /* Hero Content */
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-image img {
        min-height: auto;
    }
    
    /* Buttons Fix (Prevent Overflow) */
    .btn, .btn-primary, .btn-outline {
        padding: 10px 15px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }
    
    /* Features */
    .features-inner {
        flex-direction: column;
        align-items: center;
    }
    
    /* Products Categories Mobile Horizontal Scroll */
    .sidebar-widget.widget_categories ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .sidebar-widget.widget_categories ul::-webkit-scrollbar {
        display: none;
    }
    .sidebar-widget.widget_categories ul li {
        flex: 0 0 auto;
        border-bottom: none;
        padding: 8px 15px;
        background: #f8f8f8;
        border-radius: 25px;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        position: relative;
    }
    .sidebar-widget.widget_categories ul li a {
        white-space: nowrap;
    }
    .sidebar-widget.widget_categories ul li a::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .sidebar-widget.widget_categories ul li:active,
    .sidebar-widget.widget_categories ul li.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }
    .sidebar-widget.widget_categories ul li:active a,
    .sidebar-widget.widget_categories ul li.active a {
        color: #fff;
    }
    .sidebar-widget.widget_categories ul li .count {
        margin-left: 6px;
        background: #eaeaea;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        color: #555;
    }
    .sidebar-widget.widget_categories ul li:active .count,
    .sidebar-widget.widget_categories ul li.active .count {
        background: rgba(255,255,255,0.25);
        color: #fff;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-img {
        width: calc(100% - 20px);
        margin: 10px 10px 0 10px;
    }
    
    /* Stats */
    .stats-inner {
        flex-direction: column;
        gap: 20px;
    }
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Process Steps */
    .process-step {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    
    /* Typography */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Map Box */
    .map-box {
        flex-direction: column;
        text-align: center;
    }
    
    /* 1. Elementor Fix for Mobile Overflow */
    .elementor-row, .elementor-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .elementor-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 3. Inquiry / Contact for OEM Button Fix */
    .product-actions .btn-icon {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }

    /* 4. Adjust Padding specifically for Mobile */
    .about-story-content {
        padding: 20px;
    }
    .about-fresh-content {
        padding: 20px 15px;
    }
}

/* Fix Mobile Tap Highlight on Categories */
.widget_categories a, .category-btn { -webkit-tap-highlight-color: transparent !important; -webkit-touch-callout: none !important; }




/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-page-wrapper {
    background-color: var(--light-bg);
}

/* Hero Section */
.contact-hero {
    padding: 80px 20px 40px;
    background-color: var(--light-bg);
}

.contact-subtitle {
    display: block;
    color: var(--primary-color) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px;
}

.contact-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid-section {
    padding: 20px 20px 60px;
}

/* Ensure flex doesn't wrap on desktop */
@media (min-width: 769px) {
    .contact-grid-section, .contact-grid-section > .e-con-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

.contact-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.card-title {
    color: var(--primary-color) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 30px;
}

/* Info List */
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FDF0F0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 16px;
    height: 16px;
}

.info-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-text span, .info-text a {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    display: block;
}

.info-text a.text-red {
    color: var(--primary-color);
    transition: opacity 0.3s;
}
.info-text a.text-red:hover {
    opacity: 0.8;
}

/* Social Connect */
.social-connect {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.social-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FDF0F0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    transition: all 0.3s;
    text-decoration: none !important;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Form Styles */
.form-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 25px;
    margin-top: -20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #FDFDFD;
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(209, 18, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 9px;
    color: var(--primary-color);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
}

.submit-btn {
    background-color: var(--primary-color) !important;
    color: #FFFFFF !important;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
}

.submit-btn:hover {
    background-color: var(--dark-color) !important;
}

/* CTA Banner Red */
.cta-banner-red {
    background-color: var(--primary-color);
    padding: 40px 50px;
    border-radius: 0;
    margin: 40px auto;
    max-width: 1140px;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.cta-content h2 {
    color: #FFFFFF !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    max-width: 650px;
    margin: 0;
}

.btn-white {
    background-color: #FFFFFF !important;
    color: var(--primary-color) !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.btn-white:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px);
}

/* Map Section */
.contact-map-section {
    padding: 0 0 80px;
}

.map-container {
    max-width: 1140px;
    margin: 0 auto;
}

.map-placeholder {
    position: relative; /* CRITICAL FIX: prevents pin from flying to top of page */
    border-radius: 0;
    overflow: hidden;
    background-color: #e5e7e9;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Thailand_Chonburi_locator_map.svg/1024px-Thailand_Chonburi_locator_map.svg.png'); /* Safe fallback image */
    background-position: center;
    background-size: cover;
    min-height: 450px;
}

.floating-map-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 4px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.floating-map-card h4 {
    color: var(--primary-color) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.floating-map-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cta-flex {
        flex-direction: column;
        text-align: center;
    }
    .cta-content p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 32px !important;
    }
    .contact-card {
        padding: 25px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .floating-map-card {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
    }
}



/* --- ELEMENTOR BRUTE FORCE OVERRIDES --- */
body.elementor-page .contact-hero .elementor-heading-title.contact-subtitle { color: #D1121C !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 2px !important; text-transform: uppercase !important; }
body.elementor-page .contact-hero .elementor-heading-title.contact-title { color: #222222 !important; font-size: 42px !important; font-weight: 700 !important; }
body.elementor-page .contact-card .elementor-heading-title.card-title { color: #D1121C !important; font-size: 22px !important; font-weight: 700 !important; }

/* Fix CTA Banner */
body.elementor-page .cta-banner-red { background-color: #D1121C !important; padding: 60px 0 !important; }
body.elementor-page .cta-banner-red h2 { color: #FFFFFF !important; font-size: 28px !important; margin-bottom: 10px !important; }
body.elementor-page .cta-banner-red p { color: rgba(255,255,255,0.9) !important; font-size: 16px !important; }
body.elementor-page .cta-banner-red .btn-white { background-color: #FFFFFF !important; color: #D1121C !important; font-weight: bold !important; padding: 12px 25px !important; border-radius: 4px !important; display: inline-flex !important; align-items: center !important; }

/* Force Grid Layout */
@media (min-width: 769px) {
    body.elementor-page .contact-grid .elementor-container { display: flex !important; flex-direction: row !important; gap: 40px !important; flex-wrap: nowrap !important; }
    body.elementor-page .contact-grid .elementor-container > .elementor-column.info-card { width: 40% !important; flex: 0 0 40% !important; }
    body.elementor-page .contact-grid .elementor-container > .elementor-column.form-card { width: 60% !important; flex: 0 0 60% !important; }
    
    body.elementor-page .cta-banner-red .cta-flex { display: flex !important; align-items: center !important; justify-content: space-between !important; }
    body.elementor-page .cta-banner-red .cta-content { width: 70% !important; }
    body.elementor-page .cta-banner-red .cta-action { width: 30% !important; text-align: right !important; }
}

/* Force Card Styles */
body.elementor-page .contact-card { background: #FFFFFF !important; padding: 40px !important; border-radius: 8px !important; box-shadow: 0 4px 24px rgba(0,0,0,0.04) !important; border: 1px solid #EAEAEA !important; }
