/*
Theme Name: Templates Mania
Theme URI: https://templatesmania.com
Author: Templates Mania
Author URI: https://templatesmania.com
Description: A premium dark-themed WordPress theme designed for showcasing WordPress themes, plugins, and digital products. Features glassmorphism UI, gradient accents, responsive design, and SEO optimization. Built for ThemeForest marketplace sellers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: templates-mania
Tags: theme-showcase, dark-theme, glassmorphism, portfolio, e-commerce, custom-menu, featured-images, full-width-template, custom-header, custom-logo, threaded-comments, translation-ready
*/

/* =========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================= */
:root {
    /* Brand Colors */
    --tm-primary: #4A6CF7;
    --tm-primary-dark: #3B5DE7;
    --tm-primary-light: #6C8AFF;
    --tm-primary-glow: rgba(74, 108, 247, 0.3);
    --tm-secondary: #6C5CE7;
    --tm-accent: #00D2FF;
    --tm-accent-green: #0CEBAB;

    /* Dark Theme Backgrounds */
    --tm-bg-darkest: #050A18;
    --tm-bg-dark: #0B1120;
    --tm-bg-card: #111827;
    --tm-bg-card-hover: #1A2332;
    --tm-bg-elevated: #1E293B;
    --tm-bg-glass: rgba(17, 24, 39, 0.7);
    --tm-bg-glass-light: rgba(30, 41, 59, 0.5);

    /* Text Colors */
    --tm-text-primary: #F1F5F9;
    --tm-text-secondary: #94A3B8;
    --tm-text-muted: #64748B;
    --tm-text-accent: #4A6CF7;

    /* Borders */
    --tm-border: rgba(148, 163, 184, 0.1);
    --tm-border-light: rgba(148, 163, 184, 0.2);
    --tm-border-glow: rgba(74, 108, 247, 0.3);

    /* Gradients */
    --tm-gradient-primary: linear-gradient(135deg, #4A6CF7 0%, #6C5CE7 100%);
    --tm-gradient-hero: linear-gradient(135deg, #0B1120 0%, #1A1A3E 50%, #0B1120 100%);
    --tm-gradient-card: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(108, 92, 231, 0.05) 100%);
    --tm-gradient-text: linear-gradient(135deg, #4A6CF7, #00D2FF);

    /* Shadows */
    --tm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --tm-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --tm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --tm-shadow-glow: 0 0 20px rgba(74, 108, 247, 0.2);
    --tm-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(148, 163, 184, 0.1);

    /* Spacing */
    --tm-space-xs: 0.25rem;
    --tm-space-sm: 0.5rem;
    --tm-space-md: 1rem;
    --tm-space-lg: 1.5rem;
    --tm-space-xl: 2rem;
    --tm-space-2xl: 3rem;
    --tm-space-3xl: 4rem;
    --tm-space-4xl: 6rem;

    /* Border Radius */
    --tm-radius-sm: 6px;
    --tm-radius-md: 10px;
    --tm-radius-lg: 16px;
    --tm-radius-xl: 20px;
    --tm-radius-full: 9999px;

    /* Transitions */
    --tm-transition-fast: 0.15s ease;
    --tm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tm-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

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

    /* Z-index scale */
    --tm-z-base: 1;
    --tm-z-dropdown: 100;
    --tm-z-sticky: 200;
    --tm-z-overlay: 300;
    --tm-z-modal: 400;
    --tm-z-toast: 500;

    /* Container */
    --tm-container-max: 1280px;
    --tm-container-narrow: 800px;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--tm-font-primary);
    background-color: var(--tm-bg-dark);
    color: var(--tm-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--tm-primary);
    text-decoration: none;
    transition: var(--tm-transition);
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tm-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tm-text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--tm-text-secondary);
    margin-bottom: var(--tm-space-md);
}

/* =========================================================================
   UTILITY CLASSES
   ========================================================================= */
.tm-container {
    width: 100%;
    max-width: var(--tm-container-max);
    margin: 0 auto;
    padding: 0 var(--tm-space-xl);
}

.tm-container-narrow {
    max-width: var(--tm-container-narrow);
}

.tm-section {
    padding: var(--tm-space-4xl) 0;
    position: relative;
}

.tm-section-header {
    text-align: center;
    margin-bottom: var(--tm-space-3xl);
}

.tm-section-header h2 {
    margin-bottom: var(--tm-space-md);
}

.tm-section-header .tm-badge {
    display: inline-block;
    background: var(--tm-gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: var(--tm-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--tm-space-md);
}

.tm-gradient-text {
    background: var(--tm-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tm-grid {
    display: grid;
    gap: var(--tm-space-xl);
}

.tm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.tm-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

@media (max-width: 768px) {

    .tm-grid-4,
    .tm-grid-3,
    .tm-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   GLASSMORPHISM CARD
   ========================================================================= */
.tm-glass-card {
    background: var(--tm-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-space-xl);
    transition: var(--tm-transition);
    position: relative;
    overflow: hidden;
}

.tm-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.tm-glass-card:hover {
    border-color: var(--tm-border-glow);
    box-shadow: var(--tm-shadow-glow);
    transform: translateY(-4px);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--tm-font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--tm-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--tm-transition);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.tm-btn-primary {
    background: var(--tm-gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.tm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.45);
    color: #fff;
}

.tm-btn-secondary {
    background: transparent;
    color: var(--tm-text-primary);
    border: 1px solid var(--tm-border-light);
}

.tm-btn-secondary:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
    background: rgba(74, 108, 247, 0.05);
}

.tm-btn-ghost {
    background: var(--tm-bg-glass);
    color: var(--tm-text-primary);
    border: 1px solid var(--tm-border);
    backdrop-filter: blur(8px);
}

.tm-btn-ghost:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

.tm-btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.tm-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

/* Ripple effect */
.tm-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 10%, transparent 10%);
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.tm-btn:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */
.tm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--tm-z-sticky);
    padding: 1rem 0;
    transition: var(--tm-transition);
}

.tm-header.scrolled {
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tm-border);
    padding: 0.75rem 0;
}

.tm-header .tm-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tm-logo {
    display: flex;
    align-items: center;
    z-index: var(--tm-z-overlay);
}

.tm-logo img {
    height: 40px;
    width: auto;
}

.tm-nav {
    display: flex;
    align-items: center;
    gap: var(--tm-space-xl);
}

.tm-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--tm-space-sm);
}

.tm-nav-menu li {
    position: relative;
}

.tm-nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--tm-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition);
}

.tm-nav-menu>li>a:hover,
.tm-nav-menu>li.current-menu-item>a,
.tm-nav-menu>li.current-menu-parent>a {
    color: var(--tm-text-primary);
    background: rgba(74, 108, 247, 0.1);
}

/* Dropdown Menu */
.tm-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-md);
    padding: var(--tm-space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--tm-transition);
    box-shadow: var(--tm-shadow-lg);
    z-index: var(--tm-z-dropdown);
}

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

.tm-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--tm-text-secondary);
    font-size: 0.85rem;
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition-fast);
}

.tm-nav-menu .sub-menu a:hover {
    color: var(--tm-text-primary);
    background: rgba(74, 108, 247, 0.1);
}

.tm-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--tm-space-md);
}

/* Search Toggle */
.tm-search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text-secondary);
    cursor: pointer;
    transition: var(--tm-transition);
}

.tm-search-toggle:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

/* Mobile Menu Toggle */
.tm-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    cursor: pointer;
    z-index: var(--tm-z-overlay);
    padding: 0;
}

.tm-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tm-text-primary);
    transition: var(--tm-transition);
    border-radius: 2px;
}

.tm-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.tm-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.tm-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .tm-menu-toggle {
        display: flex;
    }

    .tm-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--tm-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--tm-transition);
        z-index: var(--tm-z-overlay - 1);
    }

    .tm-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .tm-nav-menu {
        flex-direction: column;
        gap: var(--tm-space-md);
    }

    .tm-nav-menu>li>a {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

    .tm-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: var(--tm-space-xl);
    }
}

/* =========================================================================
   SEARCH OVERLAY
   ========================================================================= */
.tm-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.95);
    z-index: var(--tm-z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: var(--tm-transition);
}

.tm-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tm-search-overlay .tm-search-form {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--tm-space-xl);
}

.tm-search-overlay .tm-search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-family: var(--tm-font-primary);
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border-light);
    border-radius: var(--tm-radius-lg);
    color: var(--tm-text-primary);
    outline: none;
    transition: var(--tm-transition);
}

.tm-search-overlay .tm-search-input:focus {
    border-color: var(--tm-primary);
    box-shadow: var(--tm-shadow-glow);
}

.tm-search-close {
    position: absolute;
    top: var(--tm-space-xl);
    right: var(--tm-space-xl);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--tm-transition);
}

.tm-search-close:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.tm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--tm-gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

.tm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 108, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 92, 231, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 210, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid pattern */
.tm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.tm-hero-content {
    position: relative;
    z-index: var(--tm-z-base);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tm-space-3xl);
    align-items: center;
}

.tm-hero-text {
    max-width: 600px;
}

.tm-hero-text .tm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 108, 247, 0.1);
    border: 1px solid rgba(74, 108, 247, 0.2);
    color: var(--tm-primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--tm-radius-full);
    margin-bottom: var(--tm-space-xl);
}

.tm-hero-text h1 {
    margin-bottom: var(--tm-space-lg);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
}

.tm-hero-text p {
    font-size: 1.15rem;
    margin-bottom: var(--tm-space-2xl);
    max-width: 480px;
}

.tm-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--tm-space-md);
    flex-wrap: wrap;
}

.tm-hero-stats {
    display: flex;
    gap: var(--tm-space-2xl);
    margin-top: var(--tm-space-3xl);
    padding-top: var(--tm-space-2xl);
    border-top: 1px solid var(--tm-border);
}

.tm-hero-stats .stat-item h3 {
    font-size: 1.75rem;
    color: var(--tm-text-primary);
    background: var(--tm-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tm-hero-stats .stat-item p {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    margin-bottom: 0;
}

/* Hero Showcase */
.tm-hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}

.tm-hero-showcase .tm-showcase-main {
    width: 100%;
    max-width: 500px;
    border-radius: var(--tm-radius-xl);
    overflow: hidden;
    box-shadow: var(--tm-shadow-lg);
    border: 1px solid var(--tm-border);
    position: relative;
    z-index: 2;
}

.tm-hero-showcase .tm-showcase-main img {
    width: 100%;
    height: auto;
}

.tm-hero-showcase .tm-floating-card {
    position: absolute;
    background: var(--tm-bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-md);
    padding: var(--tm-space-md);
    box-shadow: var(--tm-shadow-md);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.tm-hero-showcase .tm-floating-card:nth-child(2) {
    top: 10%;
    right: -10%;
    animation-delay: -2s;
}

.tm-hero-showcase .tm-floating-card:nth-child(3) {
    bottom: 15%;
    left: -8%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Decorative Elements */
.tm-hero .tm-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.tm-hero .tm-glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(74, 108, 247, 0.12);
    top: 10%;
    left: -5%;
}

.tm-hero .tm-glow-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(108, 92, 231, 0.1);
    bottom: 10%;
    right: -5%;
}

@media (max-width: 1024px) {
    .tm-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tm-hero-text {
        max-width: 100%;
    }

    .tm-hero-text p {
        max-width: 100%;
    }

    .tm-hero-actions {
        justify-content: center;
    }

    .tm-hero-stats {
        justify-content: center;
    }

    .tm-hero-showcase {
        display: none;
    }
}

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */
.tm-product-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    transition: var(--tm-transition);
    position: relative;
}

.tm-product-card:hover {
    border-color: var(--tm-border-glow);
    box-shadow: var(--tm-shadow-glow);
    transform: translateY(-6px);
}

.tm-product-card .tm-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.tm-product-card .tm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tm-transition-slow);
}

.tm-product-card:hover .tm-product-image img {
    transform: scale(1.05);
}

.tm-product-card .tm-product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(11, 17, 32, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--tm-space-xl);
    opacity: 0;
    transition: var(--tm-transition);
}

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

.tm-product-card .tm-product-overlay .tm-btn {
    transform: translateY(20px);
    transition: var(--tm-transition);
}

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

.tm-product-card .tm-product-badge {
    position: absolute;
    top: var(--tm-space-md);
    left: var(--tm-space-md);
    background: var(--tm-gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--tm-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.tm-product-card .tm-product-info {
    padding: var(--tm-space-lg);
}

.tm-product-card .tm-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tm-space-sm);
}

.tm-product-card .tm-product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tm-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tm-product-card .tm-product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #FBBF24;
    font-size: 0.8rem;
}

.tm-product-card .tm-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--tm-space-sm);
}

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

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

.tm-product-card .tm-product-excerpt {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    margin-bottom: var(--tm-space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-product-card .tm-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--tm-space-md);
    border-top: 1px solid var(--tm-border);
}

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

.tm-product-card .tm-product-price .currency {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
}

.tm-product-card .tm-product-sales {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

/* =========================================================================
   STATS / COUNTER SECTION
   ========================================================================= */
.tm-stats-section {
    position: relative;
    background: var(--tm-bg-darkest);
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
}

.tm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tm-space-xl);
}

.tm-stat-card {
    text-align: center;
    padding: var(--tm-space-2xl);
    position: relative;
}

.tm-stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: var(--tm-border);
}

.tm-stat-card:last-child::after {
    display: none;
}

.tm-stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 108, 247, 0.1);
    border: 1px solid rgba(74, 108, 247, 0.2);
    border-radius: var(--tm-radius-md);
    margin: 0 auto var(--tm-space-lg);
    color: var(--tm-primary);
    font-size: 1.5rem;
}

.tm-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--tm-font-heading);
    background: var(--tm-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: var(--tm-space-xs);
}

.tm-stat-label {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .tm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-stat-card:nth-child(2)::after {
        display: none;
    }
}

/* =========================================================================
   FEATURES / WHY CHOOSE US
   ========================================================================= */
.tm-feature-card {
    text-align: center;
    padding: var(--tm-space-2xl);
}

.tm-feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-gradient-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    margin: 0 auto var(--tm-space-lg);
    color: var(--tm-primary);
    font-size: 1.75rem;
    transition: var(--tm-transition);
}

.tm-feature-card:hover .tm-feature-icon {
    background: var(--tm-gradient-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.tm-feature-card h4 {
    margin-bottom: var(--tm-space-sm);
}

.tm-feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.tm-testimonial-card {
    padding: var(--tm-space-2xl);
}

.tm-testimonial-stars {
    color: #FBBF24;
    margin-bottom: var(--tm-space-md);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.tm-testimonial-text {
    font-size: 1rem;
    color: var(--tm-text-secondary);
    font-style: italic;
    margin-bottom: var(--tm-space-lg);
    line-height: 1.8;
}

.tm-testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--tm-space-md);
}

.tm-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tm-border-glow);
}

.tm-testimonial-name {
    font-weight: 600;
    color: var(--tm-text-primary);
    font-size: 0.95rem;
}

.tm-testimonial-role {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

/* =========================================================================
   CTA / NEWSLETTER
   ========================================================================= */
.tm-cta-section {
    background: var(--tm-gradient-primary);
    position: relative;
    overflow: hidden;
}

.tm-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
}

.tm-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tm-cta-content h2 {
    color: white;
    margin-bottom: var(--tm-space-md);
}

.tm-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto var(--tm-space-2xl);
}

.tm-newsletter-form {
    display: flex;
    gap: var(--tm-space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.tm-newsletter-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-family: var(--tm-font-primary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--tm-radius-md);
    color: white;
    outline: none;
    transition: var(--tm-transition);
}

.tm-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.tm-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.tm-newsletter-btn {
    background: white;
    color: var(--tm-primary);
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: var(--tm-radius-md);
    border: none;
    cursor: pointer;
    font-family: var(--tm-font-primary);
    transition: var(--tm-transition);
}

.tm-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .tm-newsletter-form {
        flex-direction: column;
    }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.tm-footer {
    background: var(--tm-bg-darkest);
    border-top: 1px solid var(--tm-border);
    padding-top: var(--tm-space-4xl);
}

.tm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--tm-space-3xl);
    margin-bottom: var(--tm-space-3xl);
}

.tm-footer-brand p {
    font-size: 0.9rem;
    margin: var(--tm-space-lg) 0;
    max-width: 300px;
}

.tm-footer-social {
    display: flex;
    gap: var(--tm-space-sm);
}

.tm-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-bg-glass);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    color: var(--tm-text-secondary);
    font-size: 1rem;
    transition: var(--tm-transition);
}

.tm-footer-social a:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
    background: rgba(74, 108, 247, 0.1);
}

.tm-footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--tm-space-lg);
    color: var(--tm-text-primary);
}

.tm-footer-links li {
    margin-bottom: var(--tm-space-sm);
}

.tm-footer-links a {
    color: var(--tm-text-muted);
    font-size: 0.9rem;
    transition: var(--tm-transition);
}

.tm-footer-links a:hover {
    color: var(--tm-primary);
    padding-left: 4px;
}

.tm-footer-bottom {
    border-top: 1px solid var(--tm-border);
    padding: var(--tm-space-xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tm-space-md);
}

.tm-footer-bottom p {
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    margin-bottom: 0;
}

.tm-footer-bottom-links {
    display: flex;
    gap: var(--tm-space-lg);
}

.tm-footer-bottom-links a {
    color: var(--tm-text-muted);
    font-size: 0.85rem;
}

.tm-footer-bottom-links a:hover {
    color: var(--tm-primary);
}

@media (max-width: 768px) {
    .tm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tm-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   PAGE TEMPLATES COMMON
   ========================================================================= */

/* Page Header (Breadcrumb Banner) */
.tm-page-header {
    background: var(--tm-bg-darkest);
    padding: var(--tm-space-4xl) 0 var(--tm-space-3xl);
    margin-top: 80px;
    border-bottom: 1px solid var(--tm-border);
    position: relative;
    overflow: hidden;
}

.tm-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 108, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.tm-page-header h1 {
    margin-bottom: var(--tm-space-sm);
    position: relative;
}

.tm-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--tm-space-sm);
    font-size: 0.85rem;
    position: relative;
}

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

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

.tm-breadcrumb .separator {
    color: var(--tm-text-muted);
}

.tm-breadcrumb .current {
    color: var(--tm-primary);
}

/* =========================================================================
   DOCUMENTATION PAGE
   ========================================================================= */
.tm-docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--tm-space-3xl);
    align-items: start;
}

.tm-docs-sidebar {
    position: sticky;
    top: 100px;
}

.tm-docs-nav {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-space-lg);
}

.tm-docs-nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-text-muted);
    margin-bottom: var(--tm-space-md);
    padding-bottom: var(--tm-space-sm);
    border-bottom: 1px solid var(--tm-border);
}

.tm-docs-nav ul li {
    margin-bottom: var(--tm-space-xs);
}

.tm-docs-nav ul li a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: var(--tm-text-secondary);
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition-fast);
}

.tm-docs-nav ul li a:hover,
.tm-docs-nav ul li a.active {
    color: var(--tm-primary);
    background: rgba(74, 108, 247, 0.1);
}

.tm-docs-content {
    min-width: 0;
}

.tm-docs-content h2 {
    margin: var(--tm-space-2xl) 0 var(--tm-space-md);
    padding-bottom: var(--tm-space-sm);
    border-bottom: 1px solid var(--tm-border);
}

.tm-docs-content h3 {
    margin: var(--tm-space-xl) 0 var(--tm-space-md);
}

.tm-docs-content p {
    margin-bottom: var(--tm-space-md);
}

.tm-docs-content pre {
    background: var(--tm-bg-darkest);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-md);
    padding: var(--tm-space-lg);
    overflow-x: auto;
    margin-bottom: var(--tm-space-xl);
    font-family: var(--tm-font-mono);
    font-size: 0.85rem;
    color: var(--tm-text-secondary);
    line-height: 1.6;
}

.tm-docs-content code {
    font-family: var(--tm-font-mono);
    background: rgba(74, 108, 247, 0.1);
    color: var(--tm-primary-light);
    padding: 0.15rem 0.4rem;
    border-radius: var(--tm-radius-sm);
    font-size: 0.85em;
}

.tm-docs-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.tm-docs-content ul,
.tm-docs-content ol {
    padding-left: var(--tm-space-xl);
    margin-bottom: var(--tm-space-md);
}

.tm-docs-content ul li,
.tm-docs-content ol li {
    margin-bottom: var(--tm-space-sm);
    color: var(--tm-text-secondary);
    font-size: 0.95rem;
}

.tm-docs-content ul li {
    list-style: disc;
}

.tm-docs-content ol li {
    list-style: decimal;
}

@media (max-width: 768px) {
    .tm-docs-layout {
        grid-template-columns: 1fr;
    }

    .tm-docs-sidebar {
        position: static;
    }
}

/* =========================================================================
   CHANGELOG / UPDATES
   ========================================================================= */
.tm-changelog-item {
    position: relative;
    padding-left: var(--tm-space-3xl);
    padding-bottom: var(--tm-space-2xl);
    border-left: 2px solid var(--tm-border);
    margin-left: var(--tm-space-md);
}

.tm-changelog-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--tm-primary);
    border-radius: 50%;
    border: 3px solid var(--tm-bg-dark);
}

.tm-changelog-version {
    display: inline-flex;
    align-items: center;
    gap: var(--tm-space-sm);
    margin-bottom: var(--tm-space-sm);
}

.tm-changelog-version .version {
    background: var(--tm-gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: var(--tm-radius-full);
}

.tm-changelog-version .date {
    color: var(--tm-text-muted);
    font-size: 0.85rem;
}

.tm-changelog-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--tm-radius-sm);
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.tm-changelog-tag.added {
    background: rgba(12, 235, 171, 0.15);
    color: #0CEBAB;
}

.tm-changelog-tag.fixed {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.tm-changelog-tag.improved {
    background: rgba(74, 108, 247, 0.15);
    color: #4A6CF7;
}

.tm-changelog-tag.removed {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.tm-changelog-list {
    padding-left: 0;
}

.tm-changelog-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--tm-space-sm);
    margin-bottom: var(--tm-space-sm);
    color: var(--tm-text-secondary);
    font-size: 0.9rem;
}

/* =========================================================================
   SUPPORT TICKET FORM
   ========================================================================= */
.tm-form-group {
    margin-bottom: var(--tm-space-lg);
}

.tm-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tm-text-primary);
    margin-bottom: var(--tm-space-sm);
}

.tm-form-input,
.tm-form-select,
.tm-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--tm-font-primary);
    font-size: 0.9rem;
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-md);
    color: var(--tm-text-primary);
    outline: none;
    transition: var(--tm-transition);
}

.tm-form-input:focus,
.tm-form-select:focus,
.tm-form-textarea:focus {
    border-color: var(--tm-primary);
    box-shadow: 0 0 0 3px var(--tm-primary-glow);
}

.tm-form-textarea {
    resize: vertical;
    min-height: 150px;
}

.tm-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%2394A3B8'%3E%3Cpath d='M4.427 6.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 6H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.tm-form-select option {
    background: var(--tm-bg-card);
    color: var(--tm-text-primary);
}

.tm-form-file {
    display: block;
    width: 100%;
    padding: var(--tm-space-xl);
    border: 2px dashed var(--tm-border);
    border-radius: var(--tm-radius-md);
    text-align: center;
    cursor: pointer;
    color: var(--tm-text-muted);
    transition: var(--tm-transition);
}

.tm-form-file:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.tm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--tm-space-3xl);
}

.tm-contact-info-card {
    padding: var(--tm-space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--tm-space-md);
}

.tm-contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 108, 247, 0.1);
    border-radius: var(--tm-radius-md);
    color: var(--tm-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tm-contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: var(--tm-space-xs);
}

.tm-contact-info-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tm-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   POLICY PAGE
   ========================================================================= */
.tm-policy-content {
    max-width: var(--tm-container-narrow);
    margin: 0 auto;
}

.tm-policy-content h2 {
    font-size: 1.5rem;
    margin: var(--tm-space-2xl) 0 var(--tm-space-md);
    color: var(--tm-text-primary);
}

.tm-policy-content h3 {
    font-size: 1.15rem;
    margin: var(--tm-space-xl) 0 var(--tm-space-sm);
}

.tm-policy-content p,
.tm-policy-content li {
    color: var(--tm-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.tm-policy-content ul {
    padding-left: var(--tm-space-xl);
    margin-bottom: var(--tm-space-md);
}

.tm-policy-content ul li {
    list-style: disc;
    margin-bottom: var(--tm-space-sm);
}

/* =========================================================================
   BLOG / SINGLE POST
   ========================================================================= */
.tm-blog-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    transition: var(--tm-transition);
}

.tm-blog-card:hover {
    border-color: var(--tm-border-glow);
    transform: translateY(-4px);
}

.tm-blog-card .tm-blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tm-blog-card .tm-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tm-transition-slow);
}

.tm-blog-card:hover .tm-blog-image img {
    transform: scale(1.05);
}

.tm-blog-card .tm-blog-body {
    padding: var(--tm-space-lg);
}

.tm-blog-card .tm-blog-meta {
    display: flex;
    align-items: center;
    gap: var(--tm-space-md);
    margin-bottom: var(--tm-space-sm);
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

.tm-blog-card .tm-blog-title {
    font-size: 1.15rem;
    margin-bottom: var(--tm-space-sm);
}

.tm-blog-card .tm-blog-title a {
    color: var(--tm-text-primary);
}

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

/* Single Post */
.tm-single-post {
    max-width: var(--tm-container-narrow);
    margin: 0 auto;
}

.tm-single-post .tm-post-featured-image {
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    margin-bottom: var(--tm-space-2xl);
}

.tm-single-post .entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

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

.tm-single-post .entry-content h2,
.tm-single-post .entry-content h3 {
    margin-top: var(--tm-space-2xl);
    margin-bottom: var(--tm-space-md);
}

.tm-single-post .entry-content img {
    border-radius: var(--tm-radius-md);
    margin: var(--tm-space-xl) 0;
}

.tm-single-post .entry-content blockquote {
    border-left: 3px solid var(--tm-primary);
    padding: var(--tm-space-md) var(--tm-space-xl);
    margin: var(--tm-space-xl) 0;
    background: var(--tm-bg-card);
    border-radius: 0 var(--tm-radius-md) var(--tm-radius-md) 0;
}

.tm-single-post .entry-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0;
}

/* Post Navigation */
.tm-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tm-space-xl);
    margin-top: var(--tm-space-3xl);
    padding-top: var(--tm-space-2xl);
    border-top: 1px solid var(--tm-border);
}

/* Comments */
.tm-comments-section {
    margin-top: var(--tm-space-3xl);
    padding-top: var(--tm-space-2xl);
    border-top: 1px solid var(--tm-border);
}

.tm-comment {
    display: flex;
    gap: var(--tm-space-lg);
    margin-bottom: var(--tm-space-xl);
    padding-bottom: var(--tm-space-xl);
    border-bottom: 1px solid var(--tm-border);
}

.tm-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.tm-about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tm-space-3xl);
    align-items: center;
}

.tm-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--tm-space-xl);
}

.tm-team-card {
    text-align: center;
    padding: var(--tm-space-2xl);
}

.tm-team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--tm-space-md);
    border: 3px solid var(--tm-border-glow);
}

.tm-team-card h4 {
    margin-bottom: var(--tm-space-xs);
}

.tm-team-card .role {
    color: var(--tm-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================= */
.tm-product-single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--tm-space-3xl);
    align-items: start;
}

.tm-product-gallery {
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--tm-border);
}

.tm-product-gallery img {
    width: 100%;
    height: auto;
}

.tm-product-sidebar {
    position: sticky;
    top: 100px;
}

.tm-product-sidebar .tm-price-card {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-space-xl);
    margin-bottom: var(--tm-space-xl);
}

.tm-product-sidebar .tm-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tm-text-primary);
    margin-bottom: var(--tm-space-lg);
}

.tm-product-sidebar .tm-price-amount .currency {
    font-size: 1.25rem;
    color: var(--tm-text-muted);
    vertical-align: super;
}

.tm-product-sidebar .tm-btn {
    width: 100%;
    margin-bottom: var(--tm-space-sm);
}

.tm-product-meta-list {
    margin-top: var(--tm-space-lg);
    padding-top: var(--tm-space-lg);
    border-top: 1px solid var(--tm-border);
}

.tm-product-meta-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--tm-space-sm) 0;
    border-bottom: 1px solid var(--tm-border);
    font-size: 0.85rem;
}

.tm-product-meta-list li span:first-child {
    color: var(--tm-text-muted);
}

.tm-product-meta-list li span:last-child {
    color: var(--tm-text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .tm-product-single-layout {
        grid-template-columns: 1fr;
    }

    .tm-product-sidebar {
        position: static;
    }
}

/* =========================================================================
   PAGINATION
   ========================================================================= */
.tm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tm-space-sm);
    margin-top: var(--tm-space-3xl);
}

.tm-pagination a,
.tm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--tm-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tm-text-secondary);
    border: 1px solid var(--tm-border);
    transition: var(--tm-transition);
}

.tm-pagination a:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

.tm-pagination .current {
    background: var(--tm-gradient-primary);
    color: white;
    border-color: transparent;
}

/* =========================================================================
   SCROLL TO TOP
   ========================================================================= */
.tm-scroll-top {
    position: fixed;
    bottom: var(--tm-space-xl);
    right: var(--tm-space-xl);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--tm-radius-md);
    cursor: pointer;
    z-index: var(--tm-z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--tm-transition);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.tm-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tm-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.45);
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
.tm-preloader {
    position: fixed;
    inset: 0;
    background: var(--tm-bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tm-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.tm-preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tm-border);
    border-top-color: var(--tm-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.tm-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tm-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   WORDPRESS DEFAULTS
   ========================================================================= */
.wp-block-image {
    margin-bottom: var(--tm-space-xl);
}

.wp-block-image img {
    border-radius: var(--tm-radius-md);
}

.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignleft {
    float: left;
    margin-right: var(--tm-space-xl);
    margin-bottom: var(--tm-space-md);
}

.alignright {
    float: right;
    margin-left: var(--tm-space-xl);
    margin-bottom: var(--tm-space-md);
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: var(--tm-bg-card);
    border-radius: var(--tm-radius-sm);
    box-shadow: var(--tm-shadow-md);
    clip: auto;
    color: var(--tm-text-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--tm-space-md);
    margin-bottom: var(--tm-space-xl);
}

.gallery-item {
    border-radius: var(--tm-radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

/* WordPress Calendar */
.wp-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-calendar-table th,
.wp-calendar-table td {
    padding: var(--tm-space-sm);
    text-align: center;
    border: 1px solid var(--tm-border);
}

.wp-calendar-table th {
    background: var(--tm-bg-card);
    color: var(--tm-text-primary);
    font-weight: 600;
}

/* Sidebar Widgets */
.tm-sidebar .widget {
    background: var(--tm-bg-card);
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-space-xl);
    margin-bottom: var(--tm-space-xl);
}

.tm-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--tm-space-md);
    padding-bottom: var(--tm-space-sm);
    border-bottom: 1px solid var(--tm-border);
}

/* =========================================================================
   PRINT STYLES
   ========================================================================= */
@media print {

    .tm-header,
    .tm-footer,
    .tm-scroll-top,
    .tm-preloader,
    .tm-search-overlay {
        display: none;
    }

    body {
        background: white;
        color: #333;
    }

    .tm-container {
        max-width: 100%;
    }
}