/*
Theme Name: Zanzibar Life
Theme URI: https://zanzibar.life
Description: Child theme of Twenty Twenty-Four for Zanzibar Life portal — Tours, Hotels, Shopping & More.
Author: ITNodePro
Author URI: https://itnodepro.com
Template: twentytwentyfour
Version: 2.4.0
Text Domain: zanzibar-life
*/

/* ============================================
   ZANZIBAR LIFE 2.1 — Hochglanz Premium Polish
   ============================================ */

:root {
    /* Primary palette — vibrant ocean & tropical */
    --zl-primary: #0891b2;
    --zl-primary-dark: #0e7490;
    --zl-primary-light: #06b6d4;
    --zl-secondary: #d4a574;
    --zl-accent: #f59e0b;
    --zl-accent-hover: #d97706;
    --zl-cta: #0ea5e9;
    --zl-cta-hover: #0284c7;
    --zl-coral: #f97316;
    --zl-dark: #0f172a;
    --zl-dark-muted: #334155;
    --zl-text: #1e293b;
    --zl-text-muted: #64748b;
    --zl-light: #f8fafc;
    --zl-bg: #ffffff;
    --zl-bg-subtle: #f0fdfa;
    --zl-bg-warm: #fffbeb;
    --zl-border: #e2e8f0;
    --zl-border-light: #f1f5f9;
    --zl-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --zl-shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --zl-shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --zl-shadow-xl: 0 20px 50px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
    --zl-radius-sm: 8px;
    --zl-radius-md: 12px;
    --zl-radius-lg: 16px;
    --zl-radius-xl: 24px;
    --zl-radius-pill: 9999px;
    --zl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --zl-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --zl-glow-primary: 0 0 20px rgba(8, 145, 178, 0.25);
    --zl-glow-cta: 0 0 20px rgba(14, 165, 233, 0.3);
}

/* === BASE === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--zl-bg);
    color: var(--zl-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--zl-primary);
    transition: color var(--zl-transition);
}

a:hover {
    color: var(--zl-primary-dark);
}

/* === TYPOGRAPHY — Premium Weight & Contrast === */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 800;
    color: var(--zl-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1, h1.wp-block-heading {
    font-size: 3rem;
    font-weight: 800;
}

h2, h2.wp-block-heading {
    font-size: 2.25rem;
    font-weight: 800;
}

h3, h3.wp-block-heading {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    color: var(--zl-dark-muted);
    line-height: 1.75;
}

/* Gradient text for main headings */
.wp-block-post-content > h2:first-of-type,
.entry-content > h2:first-of-type {
    background: linear-gradient(135deg, var(--zl-primary) 0%, var(--zl-cta) 50%, var(--zl-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SELECTION COLOR — Theme Tint === */
::selection {
    background: rgba(8, 145, 178, 0.2);
    color: var(--zl-dark);
}

::-moz-selection {
    background: rgba(8, 145, 178, 0.2);
    color: var(--zl-dark);
}

/* === FOCUS RINGS — Premium Style === */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.35);
    border-radius: var(--zl-radius-sm);
}

a:focus-visible {
    border-radius: 4px;
}

/* === HEADER === */
.wp-site-header {
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 0 var(--zl-border);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
}

/* === NAVIGATION === */
.wp-block-navigation {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wp-block-navigation-item a {
    transition: color var(--zl-transition), opacity var(--zl-transition);
    position: relative;
    padding: 8px 14px;
}

.wp-block-navigation-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--zl-primary), var(--zl-cta));
    border-radius: 2px;
    transition: transform var(--zl-transition);
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Clean hamburger menu icon */
.wp-block-navigation__responsive-container-open {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-navigation__responsive-container-open svg {
    display: none;
}

.wp-block-navigation__responsive-container-open::before {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--zl-dark);
    box-shadow: 0 7px 0 var(--zl-dark), 0 14px 0 var(--zl-dark);
    border-radius: 2px;
}

/* === BUTTONS — Premium Gradient with Shimmer & Glow === */
.wp-block-button .wp-block-button__link {
    background: linear-gradient(135deg, var(--zl-cta) 0%, var(--zl-primary) 50%, var(--zl-primary-dark) 100%);
    background-size: 200% 200%;
    color: #fff;
    border-radius: var(--zl-radius-pill);
    padding: 14px 36px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all var(--zl-transition);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
    border: none;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for CTA buttons */
.wp-block-button .wp-block-button__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.wp-block-button .wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button .wp-block-button__link:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 28px rgba(8, 145, 178, 0.4), var(--zl-glow-cta);
    transform: translateY(-3px);
}

.wp-block-button .wp-block-button__link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--zl-primary);
    border: 2px solid var(--zl-primary);
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link::before {
    display: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--zl-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3), var(--zl-glow-primary);
}

/* === HERO SECTION — Cinematic & Immersive === */
.hero-section {
    color: #fff;
    padding: 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
    background: none;
}

.hero-cover {
    min-height: 75vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--zl-radius-xl) var(--zl-radius-xl);
}

/* Ken Burns slow zoom effect on the cover image */
@media (prefers-reduced-motion: no-preference) {
    .hero-cover img.wp-block-cover__image-background,
    .hero-cover video.wp-block-cover__video-background {
        animation: kenburns 25s ease-in-out infinite alternate;
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(8, 145, 178, 0.4) 100%);
    border-radius: var(--zl-radius-xl);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cover h2,
.hero-cover .wp-block-heading {
    color: #fff !important;
    font-size: 3.2rem !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), 0 4px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    line-height: 1.15;
    -webkit-text-fill-color: #fff;
}

.hero-cover p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-cover .wp-block-buttons {
    margin-top: 28px;
    gap: 14px;
}

/* Hero buttons extra glow */
.hero-cover .wp-block-button .wp-block-button__link {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(14, 165, 233, 0.15);
}

.hero-cover .wp-block-button .wp-block-button__link:hover {
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5), 0 0 60px rgba(14, 165, 233, 0.2);
}

/* === FEATURE CARDS — Glassmorphism + 3D Hover === */
.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--zl-radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--zl-transition);
    box-shadow: var(--zl-shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zl-primary), var(--zl-cta), var(--zl-primary-light));
    opacity: 0;
    transition: opacity var(--zl-transition);
}

/* Subtle inner glow on hover */
.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--zl-transition);
    background: radial-gradient(ellipse at 50% 0%, rgba(8, 145, 178, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--zl-shadow-lg), 0 0 30px rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card h3 {
    color: var(--zl-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--zl-text-muted);
}

/* === SECTION SPACING === */
.wp-site-blocks {
    padding-top: 0 !important;
}

.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

.wp-site-blocks > header + * {
    margin-top: 0 !important;
}

/* === COLUMNS / GRID REFINEMENTS === */
.wp-block-columns {
    gap: 24px;
}

/* === "Your Island, Your Way" section heading === */
.wp-block-group > h2.wp-block-heading,
.wp-block-group > .has-text-align-center.wp-block-heading {
    background: linear-gradient(135deg, var(--zl-dark) 0%, var(--zl-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === "Your Island, Your Way" cards === */
.wp-block-group .feature-card {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
}

/* === WooCommerce / Product Styling === */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--zl-radius-md);
    overflow: hidden;
    box-shadow: var(--zl-shadow-sm);
    transition: all var(--zl-transition);
    border: 1px solid var(--zl-border-light);
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--zl-shadow-lg), 0 0 20px rgba(8, 145, 178, 0.06);
    transform: translateY(-6px);
}

.woocommerce ul.products li.product .price {
    color: var(--zl-primary);
    font-weight: 700;
}

.woocommerce ul.products li.product .button,
.woocommerce .add_to_cart_button {
    background: linear-gradient(135deg, var(--zl-cta), var(--zl-primary));
    color: #fff;
    border: none;
    border-radius: var(--zl-radius-pill);
    padding: 10px 24px;
    font-weight: 600;
    transition: all var(--zl-transition);
    font-size: 0.9rem;
}

.woocommerce .add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--zl-primary), var(--zl-primary-dark));
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
    transform: translateY(-2px);
}

/* === DOKAN VENDOR CARDS === */
.dokan-store-list .dokan-single-seller {
    border-radius: var(--zl-radius-lg);
    overflow: hidden;
    transition: all var(--zl-transition);
    box-shadow: var(--zl-shadow-sm);
}

.dokan-store-list .dokan-single-seller:hover {
    transform: translateY(-4px);
    box-shadow: var(--zl-shadow-lg);
}

/* Filter bar */
.dokan-seller-listing-wrap .dokan-store-list-filter {
    background: #fff;
    border-radius: var(--zl-radius-md);
    box-shadow: var(--zl-shadow-sm);
    border: 1px solid var(--zl-border-light);
}

/* === DOKAN STORE PAGES === */
.dokan-store-main {
    background-color: var(--zl-bg);
}

.dokan-store-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

.dokan-single-store {
    min-width: 0;
}

.dokan-store-sidebar {
    order: 0;
}

#dokan-content .profile-frame {
    border-radius: var(--zl-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--zl-shadow-md);
}

/* Store products grid */
.dokan-single-store .seller-items ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.dokan-single-store .seller-items ul.products li.product {
    background: #fff;
    border-radius: var(--zl-radius-md);
    overflow: hidden;
    box-shadow: var(--zl-shadow-sm);
    transition: all var(--zl-transition);
    padding: 0;
    margin: 0;
    border: 1px solid var(--zl-border-light);
}

.dokan-single-store .seller-items ul.products li.product:hover {
    box-shadow: var(--zl-shadow-md);
    transform: translateY(-3px);
}

.dokan-single-store .seller-items ul.products li.product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dokan-single-store .seller-items ul.products li.product .price {
    color: var(--zl-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.dokan-single-store .seller-items ul.products li.product .button,
.dokan-single-store .add_to_cart_button {
    background: linear-gradient(135deg, var(--zl-cta), var(--zl-primary));
    color: #fff;
    border: none;
    border-radius: var(--zl-radius-pill);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--zl-transition);
    min-height: 44px;
    font-size: 0.9rem;
}

.dokan-single-store .add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--zl-primary), var(--zl-primary-dark));
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Dokan store sidebar */
.dokan-store-sidebar {
    background: #fff;
    border-radius: var(--zl-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--zl-shadow-sm);
    align-self: start;
    position: sticky;
    top: 100px;
    border: 1px solid var(--zl-border-light);
}

.dokan-store-sidebar .dokan-widget-area h3,
.dokan-store-sidebar h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zl-dark);
    margin-bottom: 0.75rem;
}

/* Store product search */
.dokan-store-products-filter-area {
    margin-bottom: 1.5rem;
}

.dokan-store-products-filter-area input[type="text"] {
    border: 1.5px solid var(--zl-border);
    border-radius: var(--zl-radius-sm);
    padding: 10px 14px;
    min-height: 44px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--zl-transition), box-shadow var(--zl-transition);
}

.dokan-store-products-filter-area input[type="text"]:focus {
    border-color: var(--zl-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    outline: none;
}

.dokan-store-products-filter-area button,
.dokan-store-products-filter-area input[type="submit"] {
    background: linear-gradient(135deg, var(--zl-cta), var(--zl-primary));
    color: #fff;
    border: none;
    border-radius: var(--zl-radius-pill);
    padding: 10px 24px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--zl-transition);
}

.dokan-store-products-filter-area button:hover,
.dokan-store-products-filter-area input[type="submit"]:hover {
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Dokan store tabs */
.dokan-store-tabs {
    margin-bottom: 1rem;
}

.dokan-store-tabs ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--zl-border);
}

.dokan-store-tabs ul li a {
    display: block;
    padding: 12px 20px;
    min-height: 44px;
    font-weight: 600;
    color: var(--zl-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--zl-transition);
}

.dokan-store-tabs ul li.active a,
.dokan-store-tabs ul li a:hover {
    color: var(--zl-primary);
    border-bottom-color: var(--zl-primary);
}

/* Contact Vendor form */
.dokan-store-sidebar .dokan-widget-area input,
.dokan-store-sidebar .dokan-widget-area textarea {
    border: 1.5px solid var(--zl-border);
    border-radius: var(--zl-radius-sm);
    padding: 10px 14px;
    min-height: 44px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color var(--zl-transition), box-shadow var(--zl-transition);
}

.dokan-store-sidebar .dokan-widget-area input:focus,
.dokan-store-sidebar .dokan-widget-area textarea:focus {
    border-color: var(--zl-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    outline: none;
}

.dokan-store-sidebar .dokan-widget-area textarea {
    min-height: 100px;
    resize: vertical;
}

.dokan-store-sidebar .dokan-widget-area input[type="submit"],
.dokan-store-sidebar .dokan-widget-area button {
    background: linear-gradient(135deg, var(--zl-cta), var(--zl-primary));
    color: #fff;
    border: none;
    border-radius: var(--zl-radius-pill);
    padding: 10px 24px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    transition: all var(--zl-transition);
}

.dokan-store-sidebar .dokan-widget-area input[type="submit"]:hover,
.dokan-store-sidebar .dokan-widget-area button:hover {
    background: linear-gradient(135deg, var(--zl-primary), var(--zl-primary-dark));
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Dokan sorting dropdown */
.dokan-single-store .orderby,
.dokan-store-products-filter-area select {
    min-height: 44px;
    padding: 8px 14px;
    border: 1.5px solid var(--zl-border);
    border-radius: var(--zl-radius-sm);
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color var(--zl-transition);
}

/* Dokan info message */
.dokan-info {
    background: var(--zl-bg-subtle);
    border: 1px solid #99f6e4;
    border-radius: var(--zl-radius-md);
    padding: 16px 20px;
    color: var(--zl-primary-dark);
    font-size: 0.95rem;
}

/* Store header width */
#dokan-content .profile-frame {
    width: 100%;
}

/* Sidebar headings */
.dokan-store-sidebar h2 {
    font-size: 1.15rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 781px) {
    /* Larger touch targets */
    .wp-block-button .wp-block-button__link {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Navigation touch targets */
    .wp-block-navigation-item a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .wp-block-navigation-item a::after {
        display: none;
    }

    /* Font sizes for mobile */
    h1, .wp-block-post-title {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Feature cards stack vertically */
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    /* Hero section mobile — still cinematic */
    .hero-cover {
        min-height: 50vh !important;
    }

    .hero-cover .wp-block-cover__inner-container {
        padding: 28px 20px;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(8, 145, 178, 0.55) 100%);
    }

    .hero-cover .wp-block-cover__inner-container h2,
    .hero-cover .wp-block-cover__inner-container > .wp-block-heading,
    .hero-cover .wp-block-cover__inner-container > p,
    .hero-cover .wp-block-cover__inner-container > .has-text-align-center:not(.wp-block-buttons) {
        display: none;
    }

    /* Buttons in hero stack vertically */
    .hero-section .wp-block-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-section .wp-block-button {
        width: 100%;
        max-width: 280px;
    }

    /* Disable gradient text on mobile for readability */
    .wp-block-post-content > h2:first-of-type,
    .entry-content > h2:first-of-type,
    .wp-block-group > h2.wp-block-heading,
    .wp-block-group > .has-text-align-center.wp-block-heading {
        -webkit-text-fill-color: var(--zl-dark);
        background: none;
    }
}

@media (max-width: 480px) {
    .wp-block-button .wp-block-button__link {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    h1, .wp-block-post-title {
        font-size: 1.5rem;
    }

    .hero-cover {
        min-height: 45vh !important;
    }
}

/* === LANGUAGE SWITCHER === */
.zl-lang-switcher-li {
    list-style: none;
    display: flex;
    align-items: center;
}

.zl-lang-switcher-li .trp-shortcode-switcher__wrapper,
.zl-mobile-lang-switcher .trp-shortcode-switcher__wrapper {
    --font-size: 12px;
    --flag-size: 16px;
    --border-radius: var(--zl-radius-pill);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Hide stray language switcher outside header */
.trp-shortcode-switcher__wrapper {
    display: none;
}

.zl-lang-switcher-li .trp-shortcode-switcher__wrapper,
.zl-mobile-lang-switcher .trp-shortcode-switcher__wrapper {
    display: block;
}

/* Mobile lang switcher */
.zl-mobile-lang-switcher {
    display: none;
}

@media (max-width: 599px) {
    .zl-lang-switcher-li {
        display: none;
    }

    .zl-mobile-lang-switcher {
        display: flex;
        align-items: center;
    }

    .zl-mobile-lang-switcher .trp-shortcode-switcher__wrapper {
        display: block;
        --font-size: 11px;
        --flag-size: 14px;
    }
}

/* ============================================
   MOBILE FIX BUNDLE — April 2026
   (preserved from v1.0 — DO NOT REMOVE)
   ============================================ */

/* --- FIX 1: Horizontal Scroll Prevention --- */
html {
    overflow-x: hidden;
}

.dokan-single-store,
.dokan-store-wrap {
    max-width: 100%;
    box-sizing: border-box;
}

.dokan-store-wrap * {
    box-sizing: border-box;
}

/* --- FIX 2: Dokan Store Pages Layout (mobile) --- */
@media (max-width: 768px) {
    .dokan-store-wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .dokan-store-sidebar {
        order: 2;
        position: static;
    }

    .dokan-single-store {
        order: 1;
    }

    .dokan-single-store .seller-items ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .dokan-store-tabs ul {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dokan-store-tabs ul li a {
        white-space: nowrap;
        padding: 10px 16px;
    }

    .woocommerce-breadcrumb,
    .dokan-store-wrap .breadcrumb {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .woocommerce-breadcrumb a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 6px;
    }
}

/* --- FIX 3: Floating Language Switcher --- */
@media (max-width: 781px) {
    .trp-floater-ls-wrap,
    body > .trp-language-switcher-container,
    .trp-language-switcher-container.trp-floater-ls-wrap {
        display: none !important;
    }
}

.trp-floater-ls-wrap,
.trp-language-switcher-container.trp-floater-ls-wrap {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    z-index: 9999;
}

/* --- FIX 4: Form Fields iOS Zoom Prevention --- */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 44px;
        box-sizing: border-box;
    }
}

/* --- FIX 5: Footer compact on Mobile --- */
@media (max-width: 781px) {
    .site-footer .wp-block-navigation-item,
    footer .wp-block-navigation-item,
    .wp-block-template-part[data-type="footer"] .wp-block-navigation-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    footer .wp-block-navigation-item a,
    .wp-block-template-part[data-type="footer"] .wp-block-navigation-item a {
        padding: 6px 0 !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    footer .wp-block-columns,
    .wp-block-template-part[data-type="footer"] .wp-block-columns {
        gap: 1rem !important;
    }

    footer .wp-block-column,
    .wp-block-template-part[data-type="footer"] .wp-block-column {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    footer .wp-block-heading,
    .wp-block-template-part[data-type="footer"] .wp-block-heading {
        margin-bottom: 0.25rem !important;
    }
}

/* --- FIX 6: Touch Targets Global --- */
@media (max-width: 781px) {
    .wp-block-site-title a,
    header .wp-block-site-title a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .dokan-single-store a,
    .dokan-store-sidebar a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* --- FIX 7: Shop "Coming Soon" spacing --- */
@media (max-width: 768px) {
    .page-id-shop .wp-block-spacer,
    body.post-type-archive-product .wp-block-spacer {
        height: 20px !important;
    }
}

/* --- FIX 8: Vendor Store Cards (shop/store-listing) --- */
.dokan-store-list .dokan-single-seller {
    border-radius: var(--zl-radius-lg);
    overflow: hidden;
    transition: all var(--zl-transition);
}

.dokan-store-list .dokan-single-seller:hover {
    transform: translateY(-4px);
    box-shadow: var(--zl-shadow-lg);
}

/* --- FIX 9: Dokan Layout Override (higher specificity) --- */
.dokan-store-wrap.layout-left,
.dokan-store-wrap.layout-right {
    display: grid !important;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: 100%;
}

.dokan-store-wrap.layout-right {
    grid-template-columns: 1fr 260px;
}

.dokan-store-wrap.layout-left > .dokan-store-sidebar {
    order: 0;
}

.dokan-store-wrap.layout-left > .dokan-single-store {
    order: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .dokan-store-wrap.layout-left,
    .dokan-store-wrap.layout-right {
        grid-template-columns: 1fr !important;
    }
    .dokan-store-wrap > .dokan-store-sidebar {
        order: 2 !important;
    }
    .dokan-store-wrap > .dokan-single-store {
        order: 1 !important;
    }
}

/* --- FIX 10: Floating Language Switcher (correct selector) --- */
.trp-floating-switcher {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
}

@media (max-width: 781px) {
    .trp-floating-switcher {
        display: none !important;
    }
}

/* === FOOTER — Premium Dark with Gradient Border === */
footer,
.wp-block-template-part footer {
    background: linear-gradient(180deg, var(--zl-dark) 0%, #0a1120 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

/* Gradient top border */
footer::before,
.wp-block-template-part footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zl-primary), var(--zl-cta), var(--zl-primary-light), var(--zl-accent));
}

footer h2,
footer h3,
footer .wp-block-heading,
.wp-block-template-part footer .wp-block-heading {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

footer a,
.wp-block-template-part footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--zl-transition), transform var(--zl-transition-fast);
}

footer a:hover,
.wp-block-template-part footer a:hover {
    color: var(--zl-primary-light);
    transform: translateX(2px);
}

footer p,
.wp-block-template-part footer p {
    color: rgba(255, 255, 255, 0.55);
}

/* Footer bottom credit bar */
footer .wp-block-group:last-child,
.wp-block-template-part footer .wp-block-group:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === SUBTLE ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .dokan-store-list .dokan-single-seller,
    .dokan-single-store .seller-items ul.products li.product,
    .woocommerce ul.products li.product {
        will-change: transform;
    }
}

/* === SCROLLBAR — Refined === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--zl-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8, #cbd5e1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b, #94a3b8);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 var(--zl-light);
}

/* === IMAGES — Polished === */
.wp-block-image img {
    border-radius: var(--zl-radius-md);
    transition: transform var(--zl-transition), box-shadow var(--zl-transition);
}

.wp-block-image:hover img {
    box-shadow: var(--zl-shadow-md);
}

/* === SEPARATOR / HR — Gradient === */
hr,
.wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--zl-border), transparent);
    opacity: 0.6;
}

/* === PAGE TITLE (non-hero pages) — Premium look === */
.wp-block-post-title,
.entry-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
