/*
Theme Name: Kliwon2026
Theme URI: https://kliwon.id
Author: Kliwon Team
Author URI: https://kliwon.id
Description: Tema WordPress SEO-friendly, aman, dan ringan dengan dukungan WooCommerce dan SupportCandy. Dibangun dengan fokus pada performa, keamanan, dan UX yang modern.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kliwon2026
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */

:root {
    /* ==========================================================================
       Design Tokens - Agency / SaaS Theme (Refined)
       ========================================================================== */

    /* Brand Colors */
    --color-primary: #7B68EE;
    /* Medium Slate Blue - Modern & Trustworthy */
    --color-primary-dark: #6A5ACD;
    --color-primary-light: #9370DB;
    --color-secondary: #0F172A;
    /* Slate 900 */
    --color-accent: #EC4899;
    /* Pink 500 */
    --color-accent-dark: #DB2777;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7B68EE 0%, #3B82F6 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-glow: linear-gradient(135deg, rgba(123, 104, 238, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    --gradient-mesh: radial-gradient(at 10% 10%, rgba(123, 104, 238, 0.4) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(59, 130, 246, 0.4) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.4) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(123, 104, 238, 0.4) 0px, transparent 50%);

    /* Backgrounds */
    --color-background: #FFFFFF;
    --color-surface: #F8FAFC;
    /* Slate 50 */
    --color-surface-alt: #F1F5F9;
    /* Slate 100 */
    --color-surface-card: #FFFFFF;
    --color-border: #E2E8F0;
    /* Slate 200 */
    --color-border-hover: #CBD5E1;
    /* Slate 300 */

    /* Text Colors */
    --color-text: #334155;
    /* Slate 700 */
    --color-text-heading: #0F172A;
    /* Slate 900 */
    --color-text-muted: #64748B;
    /* Slate 500 */
    --color-text-light: #94A3B8;
    /* Slate 400 */
    --color-text-inverted: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes (Scale 1.2) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Font Weights */
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(123, 104, 238, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --container-content: 800px;
    /* Slightly wider for modern feel */
    --sidebar-width: 350px;
    --header-height: 72px;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* Legacy Support / Aliases */
    --color-dark: var(--color-secondary);
    --color-dark-alt: #1E293B;
    /* Slate 800 */
    --color-text-on-dark: var(--color-text-inverted);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    overflow-x: clip;
    /* Ensure root also prevents horizontal spill */
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: clip;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-heading);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    /* Tighten headings for modern look */
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    /* Extra bold for main titles */
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

p {
    margin-bottom: var(--space-4);
    font-weight: 400;
    color: var(--color-text);
}

p.lead {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

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

strong,
b {
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
}



em,
i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

code,
pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

code {
    background-color: var(--color-surface);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

pre {
    background-color: var(--color-text);
    color: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul,
ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Images & Media
   ========================================================================== */

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    scrollbar-width: thin;
}

figure {
    margin: var(--space-6) 0;
}

figcaption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    text-align: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 72, 197, 0.1);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: var(--leading-none);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(123, 104, 238, 0.3), 0 2px 4px -1px rgba(123, 104, 238, 0.15);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(123, 104, 238, 0.4), 0 4px 6px -2px rgba(123, 104, 238, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--color-background);
    color: var(--color-text-heading);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-text-muted);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
}

th,
td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: var(--font-semibold);
    background-color: var(--color-surface);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}






html {
    height: 100%;
}

body {
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fix for WordPress Admin Bar */
.admin-bar .site {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .site {
        min-height: calc(100vh - 46px);
    }
}

.site-content {
    flex: 1;
    padding: var(--space-12) 0;
}

@media (max-width: 767px) {
    .site-content {
        padding: var(--space-8) 0;
    }
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .content-area.has-sidebar {
        grid-template-columns: 1fr var(--sidebar-width);
    }
}

.main-content {
    min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    /* Glassmorphism Header */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    height: var(--header-height);
    transition: all 0.3s ease;
}

/* Adjust sticky position when Admin Bar is present */
.admin-bar .site-header {
    top: 32px;
}

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

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-logo,
.custom-logo-link img,
.custom-logo {
    max-height: 44px;
    /* Slightly increased for better visibility */
    width: auto;
    height: auto;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.site-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin: 0;
}

.site-title a {
    color: var(--color-text);
}

.site-title a:hover {
    color: var(--color-primary);
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        margin-right: auto;
        margin-left: var(--space-12);
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--color-text);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--color-primary);
}

/* Header Layout & Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
    /* Push to right on mobile if nav is hidden, or right of nav on desktop */
}

@media (min-width: 768px) {
    .header-actions {
        margin-left: var(--space-4);
    }
}

.action-link,
.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text);
    background-color: var(--color-surface);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.action-link:hover,
.cart-link:hover {
    color: var(--color-primary);
    background-color: rgba(108, 72, 197, 0.1);
}

.cart-link {
    width: auto;
    padding: 0 var(--space-2);
    gap: var(--space-1);
    min-width: 40px;
}

.cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: var(--font-bold);
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
}

/* Mobile Menu Toggle alignment */
.menu-toggle {
    margin-left: var(--space-2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    padding: var(--space-4);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-fixed);
    overflow-y: auto;
}

.mobile-navigation.is-open {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: var(--space-4);
    color: var(--color-text);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-menu a:hover {
    color: var(--color-primary);
    background-color: var(--color-surface);
}

/* Dropdown Menus (Desktop) */
@media (min-width: 768px) {
    .main-navigation .menu-item-has-children {
        position: relative;
    }

    .main-navigation .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background-color: var(--color-background);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: var(--space-2);
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        pointer-events: none;
        /* Prevent accidental clicks when hidden */
    }

    .main-navigation .menu-item-has-children:hover>.sub-menu,
    .main-navigation .menu-item-has-children:focus-within>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-navigation .sub-menu li {
        display: block;
    }

    .main-navigation .sub-menu a {
        display: block;
        padding: var(--space-3) var(--space-4);
        color: var(--color-text);
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
        white-space: nowrap;
    }

    .main-navigation .sub-menu a:hover {
        background-color: var(--color-surface);
        color: var(--color-primary);
    }

    /* Chevron for parent items */
    .main-navigation .menu-item-has-children>a {
        padding-right: var(--space-6);
        position: relative;
    }

    .main-navigation .menu-item-has-children>a::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid currentColor;
        opacity: 0.5;
    }
}

/* Mobile Sub-Menu Toggles */
.mobile-nav-menu .menu-item-has-children {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    /* Ensure it sits above the link click area if they overlap, though positioning puts it to the right */
    z-index: 10;
}

.submenu-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.mobile-nav-menu .menu-item-has-children.active>.submenu-toggle svg {
    transform: rotate(180deg);
}

/* Ensure sub-menu hidden by default and shown when active */
.mobile-nav-menu .sub-menu {
    display: none;
    padding-left: var(--space-4);
    background-color: rgba(0, 0, 0, 0.02);
    margin: 0;
    list-style: none;
}

.mobile-nav-menu .menu-item-has-children.active>.sub-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Cleanup: Remove hover fallback if we strictly want click only, or keep it as backup? 
   Better to remove hover for touch devices to avoid "sticky hover" issues. */
.mobile-nav-menu .menu-item-has-children:hover>.sub-menu {
    display: none;
    /* Reset hover behavior for mobile, rely on JS toggle */
}

/* Re-apply block if active */
.mobile-nav-menu .menu-item-has-children.active:hover>.sub-menu {
    display: block;
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar {
        display: block;
    }
}

.widget {
    background-color: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
}

.widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: var(--space-2);
}

.widget a {
    color: var(--color-text);
}

.widget a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-dark);
    /* Deep dark background */
    color: var(--color-text-on-dark);
    padding: var(--space-16) 0 var(--space-4);
    position: relative;
    border-top: none;
    background-image: var(--gradient-dark);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .footer-widgets {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        text-align: left;
        padding: 0 var(--space-4);
        /* Add side padding to prevent being too close to edge */
    }

    /* First column (Branding) spans full width */
    .footer-widgets>.footer-column:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-branding-wrapper {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-2);
        margin-top: 0;
    }

    .footer-branding-wrapper .footer-widget img {
        margin: 0 auto;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-widget .widget-title {
        display: block;
        margin-bottom: var(--space-4);
        font-size: var(--text-base);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
        /* Assuming 3 columns, adjust if 4 */
    }
}

.footer-widget .widget-title {
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    display: inline-block;
}

/* Footer Branding Wrapper (Widget + Text) */
.footer-branding-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    margin-top: -30px;
    /* Move up significantly */
}

.footer-branding-wrapper .footer-widget {
    margin-bottom: 0 !important;
}

.footer-branding-wrapper .brand-text {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Specific styling for the image inside the branding widget */
.footer-branding-wrapper .footer-widget img {
    max-width: 40px !important;
    height: 40px !important;
    width: 40px !important;
    margin: 0 !important;
    flex-shrink: 0;
    object-fit: contain;
}

/* General Footer Widget Images (non-branding) */
.site-footer .footer-widget:not(.footer-branding-wrapper .footer-widget) img {
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: var(--space-4);
    display: block;
    object-fit: contain;
}

.footer-social-icons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 300ms ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    color: white;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Fix for filled icons like X (Twitter) */
.social-icon svg.feather-twitter {
    fill: currentColor !important;
    stroke: none !important;
}

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

.footer-widget li {
    margin-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: var(--space-3);
}

.footer-widget li:last-child {
    border-bottom: none;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 300ms ease;
    display: inline-block;
}

.footer-widget a:hover {
    color: white;
    transform: translateX(4px);
    /* Slide effect */
}

.site-info {
    text-align: center;
    color: #ffffff !important;
    font-size: var(--text-sm);
    padding-top: var(--space-6);
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 1;
}

.site-info p {
    color: #ffffff !important;
    margin: 0;
}

.site-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.site-info a:hover {
    color: white;
}



/* ==========================================================================
   Cards & Post Items
   ========================================================================== */

.post-card {
    background-color: var(--color-background);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border-light);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(108, 72, 197, 0.2);
}

.post-card-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-surface);
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--space-5);
}

.post-card-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.post-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

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

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-header {
    margin-bottom: var(--space-8);
}

.single-post-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-inverted);
    background: var(--gradient-primary);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.25);
}

.single-post-category a {
    color: inherit;
}

.single-post-category a:hover {
    color: inherit;
    opacity: 0.9;
}

.single-post-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    color: var(--color-text-heading);
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: var(--text-5xl);
        line-height: 1.15;
    }
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.single-post-meta a {
    color: var(--color-text);
    font-weight: var(--font-medium);
}

.single-post-meta a:hover {
    color: var(--color-primary);
}

.meta-separator {
    color: var(--color-text-light);
    font-size: var(--text-xs);
}

/* Featured Image */
.single-post-thumbnail {
    margin-bottom: var(--space-10);
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.single-post-thumbnail:hover img {
    transform: scale(1.02);
}

.thumbnail-caption {
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-surface);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* Placeholder Featured Image */
.single-post-thumbnail--placeholder {
    background: var(--gradient-mesh), var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: var(--space-8);
    text-align: center;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .placeholder-icon {
        width: 80px;
        height: 80px;
    }
}

.placeholder-category {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Post Content */
.single-post-content {
    max-width: var(--container-content);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
}

.single-post-content p {
    margin-bottom: var(--space-6);
}

.single-post-content>*:first-child {
    margin-top: 0;
}

.single-post-content>*:last-child {
    margin-bottom: 0;
}

/* Post Footer Section */
.single-post-footer {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.pagination a {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.pagination a:hover {
    background-color: var(--color-primary);
    color: white;
}

.pagination .current {
    background-color: var(--color-primary);
    color: white;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs-separator {
    color: var(--color-text-light);
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
    gap: var(--space-2);
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-form .search-submit:hover {
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: var(--space-16) 0;
}

.error-404-title {
    font-size: var(--text-5xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.error-404-message {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease forwards;
}

.slide-up {
    animation: slideUp var(--transition-slow) ease forwards;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .pagination,
    .comments-area {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/**
 * Component Styles
 *
 * Additional component-specific styles
 */

/* ==========================================================================
   Posts Grid
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Archive Header
   ========================================================================== */

.archive-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.archive-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.archive-description {
    color: var(--color-text-muted);
    max-width: 600px;
}

/* ==========================================================================
   Search Header
   ========================================================================== */

.search-header {
    margin-bottom: var(--space-8);
}

.search-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.search-title span {
    color: var(--color-primary);
}

.search-count {
    color: var(--color-text-muted);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
    padding: var(--space-5);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.nav-previous:hover,
.nav-next:hover {
    background-color: var(--color-surface-alt);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.nav-title {
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* ==========================================================================
   Author Box
   ========================================================================== */

.author-box {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    margin-top: var(--space-10);
    align-items: flex-start;
}

@media (max-width: 639px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-background);
    box-shadow: var(--shadow-md);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-heading);
}

.author-bio {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-8);
    color: var(--color-text-heading);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.related-post-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.related-post-thumbnail {
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: var(--space-5);
}

.related-post-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.related-post-title a {
    color: var(--color-text-heading);
}

.related-post-title a:hover {
    color: var(--color-primary);
}

.related-post-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Post Tags
   ========================================================================== */

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.tags-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    margin-right: var(--space-1);
}

.tag-link {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.tag-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.share-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    margin-right: var(--space-1);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn-facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn-facebook:hover {
    background-color: #0d65d9;
    color: white;
}

.share-btn-twitter {
    background-color: #000000;
    color: white;
}

.share-btn-twitter:hover {
    background-color: #333333;
    color: white;
}

.share-btn-whatsapp {
    background-color: #25d366;
    color: white;
}

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

.share-btn-telegram {
    background-color: #0088cc;
    color: white;
}

.share-btn-telegram:hover {
    background-color: #006699;
    color: white;
}

.share-btn-copy {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

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

.share-btn-copy.copied {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}


/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
}

.comment .children {
    list-style: none;
    padding-left: var(--space-6);
    margin-top: var(--space-4);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.comment-author .fn {
    font-weight: var(--font-semibold);
}

.comment-metadata {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.comment-content {
    margin-bottom: var(--space-3);
}

.comment-content p {
    margin-bottom: var(--space-2);
}

.reply a {
    font-size: var(--text-sm);
    color: var(--color-primary);
}

/* Comment Form */
.comment-respond {
    margin-top: var(--space-8);
}

.comment-reply-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
    margin-bottom: var(--space-4);
}

.comment-form .submit {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.comment-form .submit:hover {
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   Placeholder Thumbnail
   ========================================================================== */

.post-card-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    aspect-ratio: 16 / 9;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-border);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    max-width: var(--container-content);
}

.page-header {
    margin-bottom: var(--space-6);
}

.page-title {
    font-size: var(--text-3xl);
}

.page-thumbnail {
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.page-links {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
}

/* Full Width Page Template */
.page-content.full-width {
    max-width: 100%;
}

.container-full-width {
    max-width: var(--container-max);
    margin: 0 auto;
}

.container-full-width .content-area {
    display: block;
}

.container-full-width .main-content {
    width: 100%;
}

/* ==========================================================================
   Sticky Sidebar
   ========================================================================== */

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
        align-self: start;
    }
}

/* ==========================================================================
   Entry Content Styles
   ========================================================================== */

.entry-content h2 {
    margin-top: var(--space-8);
}

.entry-content h3 {
    margin-top: var(--space-6);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignleft {
    float: left;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
}

.entry-content .alignright {
    float: right;
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.entry-content .wp-caption {
    max-width: 100%;
    margin: var(--space-6) 0;
}

.entry-content .wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-2);
}

/* Responsive embeds */
.entry-content iframe,
.entry-content embed,
.entry-content video {
    max-width: 100%;
}

.entry-content .wp-block-embed {
    margin: var(--space-6) 0;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Homepage Sections - Common
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(108, 72, 197, 0.1);
    /* Primary color low opacity */
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    border: 1px solid rgba(108, 72, 197, 0.1);
    backdrop-filter: blur(4px);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    font-weight: 800;
    /* Bolder font */
    letter-spacing: -0.02em;
    /* Tighter letter spacing */
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-4xl);
    }
}

.section-description {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-10);
}

/* ==========================================================================
   Hero Section - ClickUp Style (Light & Vibrant)
   ========================================================================== */

.hero-section {
    position: relative;
    padding: var(--space-20) 0 var(--space-20);
    overflow: hidden;
    min-height: 100vh;
    /* Full viewport height for impact */
    display: flex;
    align-items: center;
    background-color: #fff;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-24) 0 var(--space-12);
        /* Account for fixed header */
        text-align: center;
    }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 1;
}

/* Kliwon Signature Mesh Overlay */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    filter: blur(80px);
    /* Softer blur */
    opacity: 0.6;
    /* More subtle */
    animation: pulseMesh 10s ease-in-out infinite alternate;
}

/* Remove old blobs */
.hero-gradient::after {
    display: none;
}

@keyframes pulseMesh {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    /* Clean grid pattern */
    background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 40px 40px;
    /* Smaller grid */
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 3rem;
    /* Smaller on mobile */
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Brand Gradient Accent on Headline */
.hero-headline strong,
.hero-headline span {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 5rem;
        /* Larger on desktop */
        line-height: 1.1;
    }
}

.hero-tagline {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: var(--text-xl);
        margin-bottom: var(--space-10);
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        /* Row on larger screens */
    }
}

.btn-hero-primary {
    background: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, #8a4ef8 100%);
    color: white;
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 20px rgba(108, 72, 197, 0.2);
    transition: var(--transition-bounce);
    border: none;
    width: 100%;
    /* Full width on mobile */
    max-width: 300px;
}

@media (min-width: 640px) {
    .btn-hero-primary {
        width: auto;
    }
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(108, 72, 197, 0.3);
    color: white;
}

.btn-hero-secondary {
    background: #fff;
    color: var(--color-text);
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    font-weight: 700;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 300px;
}

@media (min-width: 640px) {
    .btn-hero-secondary {
        width: auto;
    }
}

.btn-hero-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-text-muted);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    padding-top: var(--space-8);
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    /* Translucent */
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.hero-badge svg {
    stroke: var(--color-primary);
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Featured Products Section - Refined
   ========================================================================== */

/* ==========================================================================
   Featured Products - Premium Cards
   ========================================================================== */

.featured-products-section {
    padding: var(--space-24) 0 var(--space-20);
    position: relative;
    z-index: 20;
    margin-top: var(--space-12) !important;

}

/* Background Decor Blob */
.products-bg-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(123, 104, 238, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.featured-products-section .container {
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-card-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-surface);
}

.product-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-thumbnail img {
    transform: scale(1.1);
}

/* Badges */
.product-badges {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 2;
}

.product-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badge.sale {
    background: rgba(236, 72, 153, 0.9);
    color: white;
}

.product-badge.digital {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-heading);
}

/* Overlay on Hover */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-white {
    background: white;
    color: var(--color-text-heading);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .btn-white {
    transform: translateY(0);
}

.product-card-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.product-card-title a {
    color: var(--color-text-heading);
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.product-card-price del {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 4px;
}

.btn-icon-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-cart:hover {
    background: var(--color-primary);
    color: white;
}

.product-badge.digital {
    background: rgba(26, 26, 46, 0.85);
    /* Dark */
    color: white;
    right: var(--space-4);
    left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card-content {
    padding: var(--space-6);
}

.product-category {
    display: block;
    font-size: 0.7rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.product-card-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
    min-height: 2.5em;
    /* Two lines forced height */
}

.product-card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.product-card-title a:hover {
    color: var(--color-primary);
}

.product-card-price {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.product-card-price del {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    opacity: 0.7;
    margin-right: var(--space-2);
}

.product-card-price ins {
    text-decoration: none;
    color: var(--color-primary);
}

.btn-product-add {
    width: 100%;
    background: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-3);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

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

/* ==========================================================================
   Services Section - Glassmorphism Cards
   ========================================================================== */

/* ==========================================================================
   Services Section - Modern Glassmorphism
   ========================================================================== */

.services-section {
    padding: var(--space-20) 0;
    position: relative;
    background-color: var(--color-surface);
    overflow: hidden;
}

.services-bg-decor {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    opacity: 0.2;
    filter: blur(60px);
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(123, 104, 238, 0.2);
    box-shadow: 0 20px 40px -5px rgba(123, 104, 238, 0.15), 0 8px 10px -6px rgba(123, 104, 238, 0.1);
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(3deg);
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(123, 104, 238, 0.4);
}

.service-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-secondary);
}

.service-description {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.service-card:hover .service-link {
    gap: 8px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    padding: var(--space-24) 0;
    background: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    transition: var(--transition-base);
    position: relative;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--color-border);
}

.testimonial-quote {
    margin-bottom: var(--space-6);
    color: var(--color-primary-light);
    transform: scale(1.5);
    transform-origin: top left;
    opacity: 0.5;
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
    /* Push to bottom */
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    /* Pink gradient */
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid white;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: var(--text-base);
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    position: relative;
    padding: var(--space-24) 0;
    overflow: hidden;
    margin: var(--space-12) var(--space-4) var(--space-8);
    /* Float it inside card */
    border-radius: var(--radius-2xl);
}

.cta-background {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    /* Primary Gradient */
}

/* Pattern overlay */
.cta-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .cta-headline {
        font-size: 3.5rem;
    }
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: white;
    color: var(--color-primary);
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-bounce);
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--color-primary-dark);
}

.btn-cta svg {
    transition: transform var(--transition-fast);
}

.btn-cta:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   How It Works (Workflow) Section
   ========================================================================== */

.how-it-works-section {
    padding: var(--space-20) 0;
    background: var(--color-background);
}

.workflow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    counter-reset: workflow-counter;
}

@media (min-width: 768px) {
    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .workflow-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.workflow-step-card {
    position: relative;
    padding: var(--space-6);
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(108, 72, 197, 0.1);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.workflow-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
    background: var(--color-surface-tinted);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-border);
    line-height: 1;
    opacity: 0.5;
}

.workflow-step-card:hover .step-number {
    color: var(--color-primary-light);
    opacity: 0.2;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.step-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Front Page - No default content padding
   ========================================================================== */

.is-front-page .site-content {
    padding: 0;
    background-color: var(--color-background);
    /* White background main */
}

/**
 * WooCommerce Styles - Premium Agency Redesign
 * Focus: Cleanliness, Hierarchy, Professionalism.
 */

/* ==========================================================================
   Global / Utilities
   ========================================================================== */
:root {
    --wc-product-gap: var(--space-8);
    --wc-border-color: #e5e7eb;
    --wc-bg-hover: #f9fafb;
    --wc-primary: var(--color-primary);
}

.woocommerce-products-header {
    margin-bottom: var(--space-12);
    text-align: center;
}

.woocommerce-products-header__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-heading);
}

/* ==========================================================================
   Shop Page - The Grid
   ========================================================================== */
.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--wc-product-gap);
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.products .product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--wc-border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.products .product .woocommerce-loop-product__link {
    display: block;
    position: relative;
    padding-top: 50%;
    /* Even more compact on mobile */
    overflow: hidden;
    background: white !important;
}

@media (min-width: 1024px) {
    .products .product .woocommerce-loop-product__link {
        padding-top: 80%;
    }
}

.products .product img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 1024px) {
    .products .product img {
        height: 80% !important;
    }
}

.products .product:hover img {
    transform: scale(1.05);
}

/* Card Content */
.products .product .woocommerce-loop-product__title {
    padding: var(--space-4) var(--space-5) 0;
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.4;
}

.products .product .price {
    padding: var(--space-2) var(--space-5) var(--space-4);
    font-size: var(--text-md);
    color: var(--color-text);
    font-weight: 500;
    margin: 0;
    display: block;
}

.products .product .price del {
    opacity: 0.5;
    margin-right: 0.5em;
    font-weight: 400;
}

.products .product .price ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--wc-primary);
}

/* Add to Cart Button */
.products .product .button,
.products .product .add_to_cart_button {
    margin: auto var(--space-5) var(--space-5);
    /* Push to bottom */
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid var(--wc-border-color);
    color: var(--color-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.products .product .button:hover,
.products .product .add_to_cart_button:hover {
    background: var(--color-heading);
    color: #fff;
    border-color: var(--color-heading);
}

/* Sale Badge */
.onsale {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--color-heading);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Single Product Layout
   ========================================================================== */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .single-product .product {
        grid-template-columns: 1.2fr 0.8fr;
        /* Image larger */
        gap: var(--space-16);
        align-items: start;
        /* For sticky */
    }
}

/* Gallery */
.woocommerce-product-gallery {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wc-border-color);
}

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

/* Product Info (Sticky) */
.entry-summary {
    position: sticky;
    top: 40px;
}

.entry-summary .product_title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--color-heading);
}

.entry-summary .price {
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.entry-summary .price ins {
    text-decoration: none;
    color: var(--wc-primary);
    font-weight: 700;
}

.entry-summary .woocommerce-product-details__short-description {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* Add to Cart Form */
.cart {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.quantity {
    position: relative;
}

.quantity .qty {
    width: 100%;
    height: 56px;
    border: 1px solid var(--wc-border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-heading);
}

.single_add_to_cart_button {
    height: 56px;
    background: var(--color-primary);
    /* Brand Color */
    color: white;
    font-weight: 600;
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: opacity 0.2s;
}

.single_add_to_cart_button:hover {
    opacity: 0.9;
}

/* Meta */
.product_meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-top: var(--space-6);
    border-top: 1px solid var(--wc-border-color);
}

.product_meta>span {
    display: block;
    margin-bottom: var(--space-2);
}

.product_meta a {
    color: var(--color-heading);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--wc-border-color);
}

/* Tabs */
.woocommerce-tabs {
    margin-top: var(--space-16);
    border-top: 1px solid var(--wc-border-color);
    padding-top: var(--space-12);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    margin: 0 0 var(--space-8);
    padding: 0;
    list-style: none;
    gap: var(--space-8);
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-muted);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-heading);
    border-color: var(--color-heading);
}

/* Hide clutter */
.related.products {
    margin-top: var(--space-20);
}


.related.products>h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-wa:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background-color: #20bd5a;
}

.floating-wa svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@media (max-width: 767px) {
    .floating-wa {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 50px;
        height: 50px;
    }

    .floating-wa svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   Mobile Carousels (Services, Workflow, Products, Testimonials)
   ========================================================================== */

@media (max-width: 639px) {

    /* Containers */
    .services-grid,
    .workflow-steps,
    .products-grid,
    .testimonials-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding-bottom: var(--space-8);
        /* Space for scrollbar or touch area */
        margin-left: calc(var(--space-4) * -1);
        /* Full bleed left */
        margin-right: calc(var(--space-4) * -1);
        /* Full bleed right */
        padding-left: var(--space-4);
        /* Padding to frame start */
        padding-right: var(--space-4);
        /* Padding to frame end */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling iOS */
        scrollbar-width: none;
        /* Firefox */
        grid-template-columns: none !important;
        /* Override grid */
        width: 100% !important;
    }

    /* Hide scrollbar for Chrome/Safari/Opera */
    .services-grid::-webkit-scrollbar,
    .workflow-steps::-webkit-scrollbar,
    .products-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    /* Items */
    .service-card,
    .workflow-step-card,
    .product-card,
    .testimonial-card,
    .featured-products-section .product-card {
        flex: 0 0 85% !important;
        /* Show part of next item */
        scroll-snap-align: center;
        width: 85% !important;
        /* Fallback */
        margin-bottom: 0 !important;
        /* Remove bottom margin if any */
        max-width: 85% !important;
    }

    /* Ensure height consistency */
    .products-grid .product-card {
        height: auto;
        min-height: 100%;
    }

    /* Workflow Specifics - Horizontal Connector */
    .workflow-steps {
        gap: var(--space-4);
    }

    .workflow-step-card .step-connector {
        display: none !important;
        /* Hide vertical connectors in carousel */
    }
}

/* Force Tabs Visibility on Mobile */
@media (max-width: 639px) {
    .woocommerce div.product .woocommerce-tabs {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: 100% !important;
        margin-top: var(--space-8) !important;
        clear: both !important;
    }

    /* .woocommerce-tabs .panel {
        display: block !important;
    } */

    .woocommerce-tabs ul.tabs {
        display: flex !important;
    }
}