/**
 * 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-8);
    border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
    padding: var(--space-4);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-fast);
}

.nav-previous:hover,
.nav-next:hover {
    background-color: var(--color-surface-alt);
}

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

.nav-subtitle {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.nav-title {
    font-weight: var(--font-medium);
    color: var(--color-text);
}

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

.author-box {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-top: var(--space-8);
}

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

.author-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

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

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

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

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

.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-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.related-post-card:hover {
    box-shadow: var(--shadow-md);
}

.related-post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.related-post-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

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

.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-2);
    margin-bottom: var(--space-6);
}

.tags-label {
    font-weight: var(--font-medium);
    color: var(--color-text);
}

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

.tag-link:hover {
    background-color: var(--color-primary);
    color: white;
}

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

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.share-label {
    font-weight: var(--font-medium);
    color: var(--color-text);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.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;
}

/* ==========================================================================
   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);
}

/* ==========================================================================
   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: 85vh;
    display: flex;
    align-items: center;
    background-color: #fff;
    /* Explicit Light */
}

.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(60px);
    opacity: 0.8;
    animation: pulseMesh 10s ease-in-out infinite alternate;
}

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

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

    100% {
        opacity: 0.9;
        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: 60px 60px;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 90%);
}

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

.hero-headline {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: var(--space-6);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

.hero-tagline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 500;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.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;
}

.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);
}

.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-4);
    justify-content: center;
    padding-top: var(--space-8);
    /* No borders in ClickUp style */
    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: var(--color-surface);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

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

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

.featured-products-section {
    padding: 0 0 var(--space-20);
    /* Moved up to overlap hero slightly if wanted, or just clean space */
    position: relative;
    margin-top: -60px;
    /* Negative margin to pull up over hero */
    z-index: 20;
}

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

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

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

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

/* Card - Tinted Glass Style */
.product-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    border: 1px solid rgba(108, 72, 197, 0.08);
    /* Subtle Purple Border */
    position: relative;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-surface-tinted);
    /* Kliwon Tint */
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(108, 72, 197, 0.15);
    /* Colored Shadow */
    border-color: rgba(108, 72, 197, 0.3);
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.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 500ms ease;
}

.product-card:hover .product-card-thumbnail img {
    transform: scale(1.08);
    /* Slower, smoother zoom */
}

.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
}

.product-badge.sale {
    background: rgba(242, 123, 189, 0.9);
    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 {
    padding: var(--space-20) 0;
    background-color: var(--color-surface);
    /* Light gray bg */
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 30px 30px;
}

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

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

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

.service-card {
    padding: var(--space-8);
    background: #fff;
    border: 1px solid rgba(108, 72, 197, 0.08);
    border-radius: var(--radius-2xl);
    text-align: left;
    transition: var(--transition-base);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Tinted Hover Effect */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-surface-tinted);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

/* Ensure content is above tint */
.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(108, 72, 197, 0.3);
}

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

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

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

/* ==========================================================================
   Stats Section - Modern Clean
   ========================================================================== */

.stats-section {
    padding: var(--space-16) 0;
    background: var(--color-background);
    /* Clean White */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

/* No dark background, just clean layout */
.stats-section::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
    /* Optional: Add background to stats container for contrast */
}

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

.stat-item {
    text-align: center;
    position: relative;
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    /* Vibrant Gradient Text */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-2);
    font-variant-numeric: tabular-nums;
}

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

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ==========================================================================
   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: 100%;
    /* 1:1 Aspect Ratio force */
    overflow: hidden;
    background: var(--color-surface);
}

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

.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);
}