/*
Theme Name:   Kiwiaudio
Theme URI:    https://kiwiaudio.vn
Description:  Premium Standalone Theme for Kiwiaudio.vn (Audio Brand Aesthetic)
Author:       Kiwiaudio
Author URI:   https://kiwiaudio.vn
Version:      1.0.1
Text Domain:  kiwiaudio
*/

/* --- SYSTEM DESIGN & VARIABLES --- */
:root {
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f9fbf7;
    --accent-green: #83b735;
    --accent-green-dark: #6a952b;
    --accent-green-light: #e6f3d5;
    --color-accent: #83b735;
    --color-accent-dark: #6a952b;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --border-color: #e5e5e7 !important;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 35px rgba(131, 183, 53, 0.08);
}

*, ::before, ::after {
    --border-color: #e5e5e7 !important;
    --wd-border-color: #e5e5e7 !important;
    --wd-brd-color: #e5e5e7 !important;
    --wd-border-color-rgb: 229, 229, 231 !important;
}

/* General border color resets to prevent default black/dark borders */
table, th, td, hr, pre, code, fieldset, legend,
.woocommerce-checkout-review-order, .woocommerce-checkout-payment,
.woocommerce-cart-form, .cart_totals, .cart-totals,
.shop_table, .shop_table td, .shop_table th,
.widget, .widget li, .widget ul,
.select2-container--default .select2-selection--single,
.select2-dropdown,
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-navigation li,
.product-tabs-wrapper, .product-tabs-content, .comments-area,
.comment-list .comment, .comment-respond, .comment-form,
.single-post-related, .product-spec-item, .tem-phu-content {
    border-color: #e5e5e7 !important;
}

/* --- FORCE GLOBAL FONT-FAMILY (INTER) MATCHING FOOTER --- */
html, body, h1, h2, h3, h4, h5, h6, p, a, span, li, input, select, textarea, button, td, th, label {
    font-family: 'Inter', sans-serif !important;
}

/* Ensure FontAwesome icons keep their font family */
[class^="fa-"], [class*=" fa-"], .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa::before, .fas::before, .far::before, .fab::before, .fa-solid::before, .fa-regular::before, .fa-brands::before,
[class^="fa-"]::before, [class*=" fa-"]::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'FontAwesome' !important;
}

/* Ensure WordPress Dashicons & Admin Bar icons keep their font family */
.dashicons, .dashicons-before, [class^="dashicons-"], [class*=" dashicons-"], 
.ab-icon, .ab-icon::before, .ab-item::before, #wp-admin-bar-menu-toggle .ab-icon::before {
    font-family: dashicons !important;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- PREMIUM GLASS NAVIGATION --- */
.kiwi-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 10px rgba(0,0,0,0.02);
    transition: top 0.2s ease;
}

/* Offset sticky header when WP admin bar is present */
.admin-bar .kiwi-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .kiwi-header {
        top: 46px;
    }
}

.kiwi-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.kiwi-logo img {
    width: 170px;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.kiwi-logo img:hover {
    transform: scale(1.03);
}

.kiwi-nav {
    display: block;
}

.kiwi-nav-center {
    margin: 0 auto;
}

.kiwi-nav-right {
    margin: 0;
    padding-right: 25px;
    border-right: 1px solid var(--border-color);
}

.kiwi-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.kiwi-nav ul {
    display: flex;
    list-style: none;
    gap: 20px; /* Reduced gap to fit long menus */
    align-items: center;
    margin: 0;
    padding: 0;
}

.kiwi-nav li {
    position: relative;
}

.kiwi-nav a {
    display: block;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    padding: 30px 0; /* Vertical alignment */
    color: var(--text-main);
    transition: var(--transition-smooth);
}

/* Soundwave underline animation effect */
.kiwi-nav a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kiwi-nav a:hover {
    color: var(--accent-green);
}

.kiwi-nav a:hover::after,
.kiwi-nav .current-menu-item a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 2nd Level Dropdown Menu Styles */
.kiwi-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
}

.kiwi-nav li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3rd Level Dropdown Menu Styles (Flyout to the right) */
.kiwi-nav ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    transform: translateX(10px);
}

.kiwi-nav ul.sub-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.kiwi-nav ul.sub-menu li {
    width: 100%;
}

.kiwi-nav ul.sub-menu a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0;
}

.kiwi-nav ul.sub-menu a::after {
    display: none; /* No underline inside dropdown */
}

.kiwi-nav ul.sub-menu a:hover {
    background: var(--bg-hover);
    color: var(--accent-green);
}

.kiwi-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Premium Search form */
.kiwi-search-form {
    position: relative;
}

.kiwi-search-form input {
    background: #f5f5f7;
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    outline: none;
    font-size: 13px;
    transition: var(--transition-smooth);
    width: 200px;
    font-family: var(--font-body);
}

.kiwi-search-form input:focus {
    width: 280px;
    border-color: var(--accent-green);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(131, 183, 53, 0.1);
}

.kiwi-cart-link {
    display: flex;
    align-items: center;
    background: var(--accent-green-light);
    color: var(--accent-green-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.kiwi-cart-link:hover {
    background: var(--accent-green);
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- PREMIUM HERO SLIDER (SPLIT GRID) --- */
.kiwi-hero-slider {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9f5 100%);
    border-bottom: 1px solid var(--border-color);
}

.kiwi-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.kiwi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    background: transparent;
}

.kiwi-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.kiwi-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    height: 100%;
    width: 100%;
}

.kiwi-hero-content {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out 0.3s, opacity 0.6s ease-out 0.3s;
}

.kiwi-slide.active .kiwi-hero-content {
    transform: translateY(0);
    opacity: 1;
}

.kiwi-hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-green-light);
    color: var(--accent-green-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
}

.kiwi-hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.2;
}

.kiwi-hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.kiwi-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.8s ease-out 0.2s;
}

.kiwi-slide.active .kiwi-hero-image {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.kiwi-hero-image img {
    max-height: 440px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.06));
    transition: var(--transition-smooth);
}

.kiwi-hero-image img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 20px 40px rgba(131,183,53,0.12));
}

.kiwi-hero-mobile-btn {
    display: none !important;
}

/* Slider Controls Styling */
.kiwi-slider-nav {
    position: absolute;
    bottom: 40px;
    right: 80px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.kiwi-slider-nav button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.kiwi-slider-nav button:hover {
    background: var(--accent-green);
    color: #ffffff;
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.kiwi-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.kiwi-dot {
    width: 10px;
    height: 10px;
    background: rgba(131, 183, 53, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.kiwi-dot.active {
    background: var(--accent-green);
    width: 25px;
    border-radius: 10px;
}

.kiwi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 30px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(131, 183, 53, 0.25);
    transition: var(--transition-smooth);
}

.kiwi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(131, 183, 53, 0.35);
    color: #ffffff;
}

/* --- PRODUCT CARDS (AUDIOPHILE STANDARD) --- */
.section-title-wrap {
    margin-bottom: 45px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.kiwi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.kiwi-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.kiwi-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.kiwi-card:hover .kiwi-card-title a {
    color: var(--accent-green);
}

.kiwi-card-image {
    position: relative;
    padding-top: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kiwi-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: var(--transition-smooth);
}

.kiwi-card:hover .kiwi-card-image img {
    transform: scale(1.06);
}

.kiwi-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: none; /* Removed the divider line between image and body content */
    background: #ffffff;
}

.kiwi-card-category {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-green-dark);
    background: var(--accent-green-light);
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 700;
}

.kiwi-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 44px;
}

.kiwi-card-title a {
    color: var(--text-main);
}

.kiwi-card-title a:hover {
    color: var(--accent-green);
}

.kiwi-card-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: auto;
}

/* --- PRODUCT DETAIL PAGE (HIGH-FIDELITY LAYOUT) --- */
.kiwi-product-details-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    margin-top: 50px;
}

.kiwi-product-gallery {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 130px;
    box-shadow: var(--shadow-soft);
}

.kiwi-product-gallery img {
    border-radius: 12px;
    max-height: 500px;
    object-fit: contain;
}

.kiwi-product-summary {
    display: flex;
    flex-direction: column;
}

.kiwi-product-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.kiwi-product-price {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 30px;
}

.kiwi-product-meta-block {
    background: #f5f5f7;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 35px;
}

.kiwi-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kiwi-meta-row:last-child {
    border-bottom: none;
}

.kiwi-meta-label {
    font-weight: 700;
    color: var(--text-muted);
}

.kiwi-meta-val {
    color: var(--text-main);
    font-weight: 600;
}

.kiwi-product-short-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.kiwi-product-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
}

/* Custom WooCommerce buttons for single product */
.kiwi-product-summary .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 16px 45px !important;
    border-radius: 30px !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 8px 20px rgba(131, 183, 53, 0.2) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

.kiwi-product-summary .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(131, 183, 53, 0.3) !important;
}

/* --- TECHNICAL SPECIFICATIONS GRID --- */
.product-specs-container,
.product-specs-container *,
.product-spec-item,
.product-spec-name,
.product-spec-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.product-specs-container {
    margin-top: 60px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.product-specs-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 35px;
}

.product-specs-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

.product-specs-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-spec-item {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

/* Alternating card backgrounds in vertical stacks */
.product-spec-item:nth-child(odd) {
    background: #ffffff;
}

.product-spec-item:nth-child(even) {
    background: #f7f9f5;
}

.product-spec-item:hover {
    background: #eff3eb;
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.product-spec-name {
    font-weight: 700;
    color: #000000; /* Bold black prefix */
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-spec-value {
    color: #000000; /* Text color in black */
    font-size: 14.5px;
    font-weight: 500;
}

.product-spec-value ul {
    margin-left: 18px;
    list-style-type: disc;
}

/* --- ALTERNATING FEATURES SECTION --- */
.product-features-repeater-container {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.product-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.product-feature-row-reverse {
    direction: rtl;
}

.product-feature-row-reverse > * {
    direction: ltr;
}

.product-feature-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.product-feature-image img:hover {
    transform: scale(1.02);
}

.product-feature-text {
    padding: 10px;
}

.product-feature-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.25;
}

.product-feature-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
}

/* --- LABELS / TEM PHU --- */
.product-tem-phu {
    margin-top: 80px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--accent-green);
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(131, 183, 53, 0.04);
}

.product-tem-phu-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-tem-phu-body {
    font-size: 14.5px;
    color: var(--text-main);
    line-height: 1.85;
}

/* Style paragraphs and list items inside tem phu like a structured physical label sheet */
.product-tem-phu-body p,
.product-tem-phu-body li {
    padding: 10px 0;
    margin: 0 !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.product-tem-phu-body p:last-child,
.product-tem-phu-body li:last-child {
    border-bottom: none;
}

/* --- FOOTER (AUDIOPHILE STANDARD) --- */
.kiwi-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9f5 100%);
    border-top: 3px solid var(--accent-green);
    padding: 80px 0 0;
    margin-top: 60px;
}

.kiwi-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.kiwi-footer-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.kiwi-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-green);
}

.kiwi-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.kiwi-footer-links a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.kiwi-footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 11px;
    color: var(--accent-green);
    transition: var(--transition-smooth);
}

.kiwi-footer-links a:hover {
    color: var(--accent-green);
    transform: translateX(4px);
}

.kiwi-footer-links a:hover::before {
    color: var(--accent-green-dark);
    margin-right: 12px;
}

.kiwi-footer-contact p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.kiwi-footer-social-icon {
    display: inline-block;
    transition: var(--transition-smooth);
}

.kiwi-footer-social-icon:hover {
    transform: translateY(-3px) scale(1.12);
    filter: brightness(1.15);
}

.kiwi-footer-legal {
    border-left: 3px solid var(--accent-green);
    padding-left: 15px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 25px;
}

.kiwi-footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Custom specifications layout inside product-specs-body */
.product-specs-body ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs-body li {
    position: relative;
    padding: 14px 20px;
    font-size: 14.5px;
    color: var(--text-main);
    background: #f7f9f5;
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
    transition: var(--transition-smooth);
    line-height: 1.6;
}

.product-specs-body li:hover {
    background: #eff3eb;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-specs-body li::before {
    content: none !important;
}

/* Premium styling support for specs tables */
.product-specs-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 15px;
}

.product-specs-body tr {
    background: #f7f9f5;
    transition: var(--transition-smooth);
}

.product-specs-body tr:hover {
    background: #eff3eb;
}

.product-specs-body td {
    padding: 14px 20px;
    font-size: 14.5px;
    color: var(--text-main);
    line-height: 1.6;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.product-specs-body td:first-child {
    border-left: 4px solid var(--accent-green);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 600;
}

.product-specs-body td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (max-width: 768px) {
    .product-specs-body ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-specs-body li:hover {
        transform: none;
    }
}

/* --- PREMIUM TABBED LAYOUT --- */
.kiwi-tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.kiwi-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kiwi-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.kiwi-tab-btn:hover {
    color: var(--text-main);
}

.kiwi-tab-btn.active {
    color: var(--accent-green);
}

.kiwi-tab-btn.active::after {
    transform: scaleX(1);
}

.kiwi-tab-panel {
    display: none;
    opacity: 0;
    animation: kiwiFadeIn 0.5s forwards ease-in-out;
}

.kiwi-tab-panel.active {
    display: block;
}

@keyframes kiwiFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ALTERNATING PRODUCT BANNERS --- */
.kiwi-alt-image {
    padding: 10px !important; /* Reduce border padding globally */
    overflow: hidden !important; /* Clip zoomed edges */
}

.kiwi-alt-image img {
    transform: scale(1.15) !important; /* Zoom in the image globally */
}

.kiwi-alt-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.kiwi-alt-image:hover img {
    transform: scale(1.22) !important; /* Scale even more on hover */
}

.kiwi-alt-row {
    padding: 70px 0;
    width: 100%;
}

@media (max-width: 991px) {
    .kiwi-alt-banner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 60px !important;
    }
    .kiwi-alt-content {
        order: 1 !important;
        text-align: center;
    }
    .kiwi-alt-image {
        order: 2 !important;
    }
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 991px) {
    .kiwi-nav {
        margin: 0;
    }
    .kiwi-nav-right {
        padding-right: 0;
        border-right: none;
    }
    .kiwi-header-right {
        gap: 15px;
    }
    .kiwi-hero-slider {
        height: 700px !important;
        padding: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f7f9f5 100%);
    }
    .kiwi-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: center;
        text-align: center;
        gap: 20px;
        padding: 40px 20px 90px !important;
        box-sizing: border-box;
        height: 100%;
    }
    .kiwi-hero-content {
        max-width: 100%;
        order: 1;
        transform: translateY(0);
        opacity: 1;
    }
    .kiwi-hero-image {
        order: 2;
        margin-top: 10px;
        height: auto;
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    .kiwi-hero-image img {
        max-height: 250px;
    }
    .kiwi-slider-nav {
        display: none; /* Hide arrows on mobile for clean screen space */
    }
    .kiwi-slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px !important;
    }
    .kiwi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .kiwi-product-details-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .kiwi-product-gallery {
        position: relative;
        top: 0;
        padding: 30px;
    }
    .product-feature-row,
    .product-feature-row-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .kiwi-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .kiwi-grid {
        grid-template-columns: 1fr;
    }
    .kiwi-hero-slider {
        height: 610px !important;
    }
    .kiwi-hero-grid {
        padding: 30px 15px 75px !important;
        gap: 15px !important;
    }
    .kiwi-hero-badge {
        margin-bottom: 12px !important;
        padding: 6px 14px !important;
    }
    .kiwi-hero-title {
        font-size: 26px !important;
        margin-bottom: 15px !important;
        line-height: 1.25 !important;
    }
    .kiwi-hero-desc {
        font-size: 13.5px !important;
        margin-bottom: 20px !important;
    }
    .kiwi-hero-image img {
        max-height: 210px !important;
    }
    .product-specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .kiwi-header-inner {
        height: 60px;
        padding: 0 15px;
    }
}

/* --- NEWS GRID LAYOUT --- */
.kiwi-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .kiwi-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .kiwi-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- SINGLE POST CONTENT STYLING --- */
.entry-content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content img {
    margin: 35px auto;
    display: block;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow: var(--shadow-soft);
}

.entry-content h1,
.entry-content h2, 
.entry-content h3, 
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 55px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* --- PRODUCT DETAILS CATEGORIES LINK --- */
.kiwi-cats-list a {
    color: var(--text-muted) !important;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.kiwi-cats-list a:hover {
    color: var(--accent-green) !important;
    text-decoration: underline;
}

/* --- PRODUCT DETAILS SHORT DESCRIPTION BOX --- */
.kiwi-product-short-desc {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    margin-left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.kiwi-product-short-desc-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    padding: 12px 15px 12px 15px !important;
    margin: -10px -10px 10px -10px !important;
    background: #f7f9f5; /* Light header background */
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.kiwi-product-short-desc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kiwi-product-short-desc li,
.kiwi-product-short-desc p {
    padding: 10px 15px !important;
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-main);
    border-radius: 6px;
    border: none !important;
}

/* Remove default bullet markers for both bullet types */
.kiwi-product-short-desc li::before {
    content: none !important;
}
/* Alternating background colors: odd lines white, even lines soft gray */
.kiwi-product-short-desc li:nth-child(odd),
.kiwi-product-short-desc p:nth-child(odd) {
    background: #ffffff !important;
}

.kiwi-product-short-desc li:nth-child(even),
.kiwi-product-short-desc p:nth-child(even) {
    background: #f7f9f5 !important;
}

@media (max-width: 768px) {
    .kiwi-product-short-desc {
        margin-left: 0;
    }
}

/* --- COMMENTS & REVIEWS STYLE --- */
.comment-reply-link {
    color: var(--accent-green) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.comment-reply-link:hover {
    color: var(--accent-green-dark) !important;
    text-decoration: underline;
}
.comment-list .children {
    list-style: none;
    padding-left: 50px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 20px;
    }
}

/* --- PRODUCT ARCHIVE CATEGORY NAVIGATION PILLS --- */
.kiwi-archive-categories {
    margin-bottom: 45px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.kiwi-archive-cat-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    background: #f7f9f5;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.kiwi-archive-cat-btn:hover {
    color: var(--accent-green);
    background: #ffffff;
    border-color: var(--accent-green);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(131, 183, 53, 0.12);
}

.kiwi-archive-cat-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%) !important;
    border-color: var(--accent-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(131, 183, 53, 0.25) !important;
}

/* --- PREMIUM PRODUCT BADGES --- */
.kiwi-card-image {
    position: relative;
    overflow: hidden;
}

.kiwi-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.25);
    z-index: 10;
    letter-spacing: 0.03em;
    pointer-events: none;
    animation: pulseBadge 2.5s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 14px rgba(255, 59, 48, 0.4);
    }
}

/* --- SUB-CATEGORY NAV BUTTONS --- */
.kiwi-archive-subcat-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.kiwi-archive-subcat-btn:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.kiwi-archive-subcat-btn.active {
    color: var(--accent-green) !important;
    background: rgba(131, 183, 53, 0.08) !important;
    border-color: var(--accent-green) !important;
    font-weight: 600;
}

/* --- SINGLE PRODUCT TABS SWITCHER --- */
.kiwi-product-tab-trigger {
    border-right: 1px solid var(--border-color) !important;
}

.kiwi-product-tab-trigger:last-child {
    border-right: none !important;
}

.kiwi-product-tab-trigger:hover {
    color: var(--accent-green) !important;
    background-color: rgba(131, 183, 53, 0.02) !important;
}

.kiwi-product-tab-trigger.active {
    color: var(--accent-green-dark) !important;
    background-color: #ffffff !important;
    border-bottom-color: var(--accent-green) !important;
}

@media (max-width: 768px) {
    .kiwi-product-tabs-header {
        flex-direction: column;
    }
    .kiwi-product-tab-trigger {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }
    .kiwi-product-tab-trigger:last-child {
        border-bottom: none !important;
    }
}

/* --- PRODUCT ARCHIVE SEARCH BAR INTERACTIVE STYLES --- */
.kiwi-archive-search-form:focus-within {
    border-color: var(--accent-green) !important;
    box-shadow: 0 6px 20px rgba(131, 183, 53, 0.12) !important;
}
.kiwi-archive-search-submit:hover {
    background: var(--accent-green-dark) !important;
}
.kiwi-archive-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* --- DEALER PAGE BORDER OVERRIDES AND FIXES --- */
.kiwi-branch-card > div[style*="border-top"] {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px dashed #e5e5e7 !important;
}

.kiwi-region-tabs {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 2px solid #e5e5e7 !important;
}

/* --- MOBILE & TABLET NAVIGATION ENGINE --- */
.desktop-only {
    display: block;
}

.kiwi-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    outline: none;
}

.kiwi-toggle-bar {
    display: block;
    width: 24px;
    height: 2.2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.25s ease;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .kiwi-mobile-toggle {
        display: flex;
    }
    
    .kiwi-header-inner {
        height: 75px;
        padding: 0 20px;
    }
    
    .kiwi-logo img {
        width: 140px;
    }
    
    .kiwi-hero-desktop-btn {
        display: none !important;
    }
    
    .kiwi-hero-mobile-btn {
        display: inline-block !important;
        margin-top: 20px;
        box-shadow: none;
    }
    
    .kiwi-hero-image {
        flex-direction: column;
    }
}

/* Slide-out Mobile Navigation Drawer */
.kiwi-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}

.kiwi-mobile-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.kiwi-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 29, 31, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kiwi-mobile-drawer.active .kiwi-drawer-backdrop {
    opacity: 1;
}

.kiwi-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 310px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px 24px;
    box-sizing: border-box;
}

.kiwi-mobile-drawer.active .kiwi-drawer-content {
    transform: translateX(0);
}

body.kiwi-drawer-open {
    overflow: hidden !important;
}

.kiwi-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.kiwi-drawer-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.kiwi-drawer-close:hover {
    color: var(--text-main);
}

.kiwi-drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 5px;
}

.kiwi-mobile-nav {
    flex: 1;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-list li {
    position: relative;
    width: 100%;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-menu-list li a:hover {
    color: var(--accent-green);
}

/* Mobile Dropdown Submenus */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 2px solid var(--accent-green-light);
}

.mobile-menu-list .sub-menu li a {
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: none;
}

.mobile-menu-list .sub-menu li a:hover {
    color: var(--accent-green-dark);
}

/* Submenu Accordion Toggle Button */
.kiwi-submenu-toggle {
    position: absolute;
    right: 0;
    top: 6px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    outline: none;
    z-index: 10;
}

.kiwi-submenu-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.kiwi-submenu-toggle.active {
    transform: rotate(180deg);
    color: var(--accent-green);
}

.kiwi-drawer-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* --- ADDITIONAL LAYOUT RESPONSIVENESS --- */
@media (max-width: 991px) {
    /* Alternating Homepage Showcase Banners Stack */
    .kiwi-alt-row {
        padding: 45px 0 !important;
    }
    
    .kiwi-alt-banner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 0 !important; /* Spacing handled by row padding */
    }
    
    .kiwi-alt-banner .kiwi-alt-content {
        order: 2 !important;
        text-align: center;
    }
    
    .kiwi-alt-banner .kiwi-alt-image {
        order: 1 !important;
        max-width: 380px;
        margin: 0 auto;
        padding: 5px !important; /* Extra tight border padding on mobile */
        overflow: hidden !important;
    }
    
    .kiwi-alt-banner .kiwi-alt-image img {
        max-height: 270px !important; /* Taller image height limit */
        transform: scale(1.18) !important; /* Zoom in to crop out empty margins */
    }
    
    /* Center text alignments on mobile sections */
    .kiwi-featured-section {
        padding: 50px 0 40px !important;
    }
    
    .kiwi-news-section {
        padding: 50px 0 40px !important;
    }
    
    .kiwi-cta-section {
        padding: 50px 20px !important;
    }
    
    .kiwi-alternating-banners {
        padding: 30px 0 50px !important;
    }
}

@media (max-width: 768px) {
    /* Tabs Wrap/Scroll - Fixed and Centered (no swiping) */
    .kiwi-tabs-header {
        display: flex !important;
        flex-wrap: nowrap !important; /* Force single row */
        overflow-x: hidden !important; /* Disable horizontal scrolling */
        justify-content: center !important; /* Center the tabs on mobile */
        padding: 0 0 5px 0 !important; /* Reset padding to normal */
        margin-left: 0 !important; /* Reset margin */
        margin-right: 0 !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
        border-bottom: 1px solid var(--border-color);
        scrollbar-width: none;
    }
    
    .kiwi-tab-btn {
        flex-shrink: 0 !important; /* Prevent squeezing */
        padding: 10px 14px !important; /* Compact padding to fit nicely */
        font-size: 13px !important;
    }
    
    /* Dealer Dashboard stack layout */
    .kiwi-dealer-dashboard {
        padding: 24px 15px !important;
        gap: 30px !important;
    }
    
    .kiwi-branches-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .kiwi-dealer-map-container {
        flex: 1 1 100% !important;
    }
}

@media (max-width: 480px) {
    .kiwi-logo img {
        width: 115px !important;
    }
    
    .kiwi-header-inner {
        height: 60px;
    }
}

/* --- HOMEPAGE NEWS GRID RESPONSIVENESS --- */
.kiwi-news-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 991px) {
    .kiwi-news-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .kiwi-news-grid-home {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* --- RELATED PRODUCTS & RELATED POSTS GRID RESPONSIVENESS --- */
.kiwi-related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

.kiwi-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 991px) {
    .kiwi-related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 576px) {
    .kiwi-related-products-grid,
    .kiwi-related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Product specifications mobile compact horizontal stretch */
    .product-specs-container {
        padding: 24px 16px !important;
        border-radius: 12px !important;
    }
    .product-specs-header {
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
    }
    .product-specs-title {
        font-size: 20px !important;
    }
    .product-specs-col {
        gap: 6px !important; /* Minimize gaps between items */
    }
    .product-spec-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important; /* Compact padding */
        gap: 15px !important;
    }
    .product-spec-name {
        margin-bottom: 0 !important; /* Align inline */
        font-size: 11px !important;
        flex-shrink: 0;
    }
    .product-spec-value {
        font-size: 13.5px !important;
        text-align: right !important;
    }

    /* Single product details compact layout overrides */
    .kiwi-main-content {
        padding-top: 10px !important; /* Pull content up close to header */
    }
    .kiwi-product-details-grid {
        margin-top: 10px !important; /* Pull details closer to breadcrumbs */
        gap: 20px !important; /* Pull image and description closer */
    }
    .kiwi-product-gallery {
        padding: 15px !important; /* Tighter padding for gallery on mobile */
        border-radius: 12px !important;
    }
    .woocommerce-breadcrumb {
        margin-bottom: 6px !important;
    }
    .kiwi-product-title {
        font-size: 24px !important; /* Make title larger again */
        margin-top: 6px !important;
        margin-bottom: 8px !important;
    }
    .product-feature-text h3 {
        font-size: 20px !important; /* Shrink alternating features titles on mobile */
        margin-bottom: 12px !important;
    }
    .product-feature-text p {
        font-size: 16px !important; /* Make description text larger on mobile */
        line-height: 1.75 !important;
    }
    .kiwi-product-price {
        font-size: 20px !important; /* Shrink price */
        margin-bottom: 10px !important;
    }
    .kiwi-product-short-desc {
        margin-bottom: 10px !important;
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
    .kiwi-product-warranty-info {
        padding: 6px 12px !important; /* Compact padding */
        margin-bottom: 10px !important;
        font-size: 15px !important; /* Make warranty text larger */
    }
    .kiwi-product-cats {
        font-size: 12px !important;
    }
    .kiwi-product-extended-details {
        margin-top: 15px !important; /* Pull details closer */
    }
    .product-specs-container {
        margin-top: 15px !important; /* Pull specifications closer */
    }

    /* Single blog post mobile responsive typography */
    .entry-title {
        font-size: 24px !important; /* Shrink article main title */
        margin-bottom: 12px !important;
    }
    .entry-content {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
    .entry-content h1 { font-size: 24px !important; margin-top: 35px !important; margin-bottom: 12px !important; }
    .entry-content h2 { font-size: 20px !important; margin-top: 30px !important; margin-bottom: 12px !important; }
    .entry-content h3 { font-size: 18px !important; margin-top: 25px !important; margin-bottom: 10px !important; }
    .entry-content h4 { font-size: 16px !important; margin-top: 22px !important; margin-bottom: 8px !important; }
    .entry-content h5 { font-size: 15px !important; margin-top: 20px !important; margin-bottom: 8px !important; }
    .entry-content h6 { font-size: 14px !important; margin-top: 20px !important; margin-bottom: 8px !important; }
    
    /* Category and Subcategory horizontal scroll on mobile */
    .kiwi-archive-categories,
    .kiwi-archive-subcategories {
        display: flex !important;
        flex-wrap: nowrap !important; /* Force single row */
        overflow-x: auto !important; /* Enable horizontal scrolling */
        justify-content: flex-start !important; /* Start from the left */
        padding: 5px 15px 10px 15px !important; /* Keep enough bottom padding for shadows */
        margin-left: -15px !important; /* Stretch container from edge to edge */
        margin-right: -15px !important;
        -webkit-overflow-scrolling: touch; /* Smooth iOS inertia scroll */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .kiwi-archive-categories::-webkit-scrollbar,
    .kiwi-archive-subcategories::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari */
    }
    
    .kiwi-archive-cat-btn,
    .kiwi-archive-subcat-btn {
        flex-shrink: 0 !important; /* Prevent squishing of buttons */
    }

    .kiwi-archive-categories {
        margin-bottom: 8px !important; /* Clean gap below main categories */
    }

    .kiwi-archive-subcategories {
        margin-top: 0 !important; /* No negative margin to prevent overlap */
        margin-bottom: 15px !important; /* Clean gap below subcategories */
    }

    /* Compacting header spacing for catalog pages on mobile */
    .kiwi-main-content {
        padding-top: 25px !important; /* Pull header layout up closer to top nav */
    }
    
    .section-title-wrap {
        margin-bottom: 15px !important; /* Tighten gap below catalog title */
    }
    
    .section-title {
        font-size: 24px !important; /* Compact title size */
    }

    .kiwi-archive-search-wrap {
        margin-bottom: 20px !important; /* Tighten spacing below search bar */
    }
}

/* --- DISABLE HOVER EFFECTS ON TOUCH DEVICES (MOBILE & TABLET) --- */
@media (max-width: 1024px) {
    /* Prevent image and container scaling/translations */
    .kiwi-card:hover .kiwi-card-image img,
    .kiwi-hero-image img:hover,
    .product-feature-image img:hover,
    .kiwi-alt-image:hover img,
    .product-spec-item:hover,
    .kiwi-card:hover,
    .kiwi-dealer-card:hover,
    .kiwi-alt-image:hover {
        transform: none !important;
        transition: none !important;
    }
    
    /* Reset card hover border and shadow */
    .kiwi-card:hover {
        box-shadow: var(--shadow-soft) !important;
        border-color: var(--border-color) !important;
    }
    
    .kiwi-dealer-card:hover {
        box-shadow: var(--shadow-soft) !important;
    }
    
    .kiwi-alt-image:hover {
        box-shadow: var(--shadow-soft) !important;
    }

    /* Reset specifications item hover back to normal alternating backgrounds */
    .product-spec-item:hover {
        background: inherit !important;
        border-color: var(--border-color) !important;
        box-shadow: none !important;
    }
    .product-spec-item:nth-child(odd):hover {
        background: #ffffff !important;
    }
    .product-spec-item:nth-child(even):hover {
        background: #f7f9f5 !important;
    }

    /* Prevent sticky hover backgrounds on primary green buttons */
    .kiwi-btn:hover,
    .single_add_to_cart_button:hover,
    .kiwi-archive-search-submit:hover {
        background: var(--accent-green) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    /* Prevent sticky hovers on category pills */
    .kiwi-archive-cat-btn:hover,
    .kiwi-archive-subcat-btn:hover {
        background: #f7f9f5 !important;
        color: var(--text-main) !important;
        border-color: var(--border-color) !important;
    }
    .kiwi-archive-cat-btn.active:hover,
    .kiwi-archive-subcat-btn.active:hover {
        background: var(--accent-green) !important;
        color: #ffffff !important;
        border-color: var(--accent-green) !important;
    }
    
    /* Remove active category button shadow and movement on mobile */
    .kiwi-archive-cat-btn,
    .kiwi-archive-cat-btn.active {
        box-shadow: none !important;
        transform: none !important;
    }

    /* Prevent sticky hovers on tab triggers */
    .kiwi-tab-btn:hover,
    .kiwi-product-tab-trigger:hover {
        background: transparent !important;
        color: var(--text-main) !important;
        border-color: var(--border-color) !important;
    }
    .kiwi-tab-btn.active:hover,
    .kiwi-product-tab-trigger.active:hover {
        background: var(--accent-green) !important;
        color: #ffffff !important;
        border-color: var(--accent-green) !important;
    }
}

/* --- BACK TO TOP FLOATING BUTTON --- */
.kiwi-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background-color: var(--accent-green);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(131, 183, 53, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(15px);
}

.kiwi-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.kiwi-back-to-top:hover {
    background-color: #6fa127; /* Darker theme green */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(131, 183, 53, 0.4);
}

/* Adjust position on small mobile screens to stay out of the way */
@media (max-width: 576px) {
    .kiwi-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    .kiwi-back-to-top:hover {
        transform: translateY(0); /* Disable hover translation on mobile */
    }
}
