/* Account Section */
.account {
    padding: 8rem 0 4rem;
}

@media (max-width: 640px) {
    .account {
        padding: 6rem 0 3rem;
    }
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .account-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Section */
.product {
    padding: clamp(1.25rem, 4vw, 2rem) 0 var(--section-spacing-y);
}

@media (max-width: 640px) {
    .product {
        padding: clamp(0.75rem, 4vw, 1.25rem) 0 var(--section-spacing-y);
    }
}

.breadcrumb-trail {
    margin-top: clamp(0.5rem, 2vw, 1.1rem);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(12, 19, 34, 0.42));
    backdrop-filter: blur(12px);
}

.breadcrumb-trail .container {
    padding-block: clamp(0.35rem, 2vw, 0.6rem);
}

.breadcrumb-trail__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.breadcrumb-trail__item {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-trail__item::after {
    content: '/';
    opacity: 0.5;
}

.breadcrumb-trail__item:last-child::after {
    display: none;
}

.breadcrumb-trail__link {
    color: inherit;
}

.breadcrumb-trail__link:hover,
.breadcrumb-trail__link:focus-visible {
    color: var(--color-primary);
}

.breadcrumb-trail__current {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

/* Category Section */
.category-header {
    padding: 4rem 0 2rem;
}

.page-category .services {
    padding-top: 0;
}

.product-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
    }
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-images .main-image {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.22), transparent 65%),
        var(--color-surface-2);
    display: grid;
    place-items: center;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-images .main-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(12, 18, 31, 0.35);
}

.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.product-images .main-image[data-has-image="false"] img {
    display: none;
}

.product-images .main-image[data-has-image="true"] .product-placeholder {
    display: none;
}

.product-placeholder {
    text-align: center;
    color: var(--color-text-muted);
}

.product-placeholder .placeholder-icon {
    font-size: clamp(3rem, 7vw, 4rem);
    margin-bottom: 0.5rem;
}

.page-product main,
.page-category main {
    padding-top: 0;
    margin-top: 0;
}

.page-product main>*:first-child,
.page-category main>*:first-child {
    margin-top: 0;
}

.page-product .breadcrumb-trail,
.page-category .breadcrumb-trail {
    margin-top: 0;
    padding-block: clamp(0.25rem, 1vw, 0.45rem);
}

.page-product .breadcrumb-trail .container,
.page-category .breadcrumb-trail .container {
    padding-block: 0;
}

.page-product .product {
    padding-top: clamp(0.4rem, 2vw, 1rem);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.product-category-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-category-label a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.product-category-label a:hover {
    opacity: 0.8;
}

.product-category-label:empty {
    display: none;
}

.product-title {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0;
}

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

.product-price-group {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.current-price {
    font-size: clamp(2.4rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.old-price {
    display: none;
    font-size: var(--font-size-lg);
    color: rgba(226, 232, 240, 0.45);
    text-decoration: line-through;
}

.discount,
#product-price-note {
    display: none;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    border: 1px solid rgba(99, 102, 241, 0.28);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

#product-stock {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.24);
}

.product-variations {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.product-variations label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.product-variations select {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.75rem 1rem;
    background: rgba(12, 19, 34, 0.9);
    color: var(--color-text);
    transition: border var(--transition-base), box-shadow var(--transition-base);
}

.product-variations select:focus-visible {
    outline: none;
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.product-variations small {
    color: var(--color-text-muted);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    height: 3.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(12, 19, 34, 0.6);
}

.qty-btn {
    border: none;
    background: rgba(99, 102, 241, 0.18);
    color: var(--color-text);
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: var(--font-weight-semibold);
    transition: background var(--transition-base), transform var(--transition-base);
}

.qty-btn:hover {
    background: rgba(99, 102, 241, 0.28);
    transform: translateY(-1px);
}

#quantity {
    width: 72px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(12, 19, 34, 0.8);
    padding: 0 0.5rem;
    height: 100%;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 clamp(2rem, 4vw, 2.75rem);
    height: 3.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
}

.add-to-cart.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.product-features {
    display: grid;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.product-features h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--color-text);
}

.product-features ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.product-features li {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.product-long-description {
    display: grid;
    gap: 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    background: rgba(12, 19, 34, 0.78);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-sm);
}

.product-long-description h2 {
    margin: 0;
    font-size: var(--font-size-3xl);
}

.product-long-description p,
.product-long-description li {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.product-long-description ul,
.product-long-description ol {
    padding-left: 1.2rem;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.product-long-description ul {
    list-style: disc;
}

.product-long-description ol {
    list-style: decimal;
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart {
        width: 100%;
    }
}

/* Blog Listing Page */
.page-hero {
    padding: 6rem 0 2rem;
}

.page-hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-end;
}

.blog-page .page-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.08));
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
    margin-bottom: 2.5rem;
}

.blog-page .page-hero .page-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 640px;
}

.blog-page .page-hero .blog-search {
    background: rgba(15, 23, 42, 0.65);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    max-width: 420px;
    align-self: stretch;
}

.blog-page .page-hero .blog-search input[type="search"] {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.blog-page .page-hero .blog-search input[type="search"]::placeholder {
    color: rgba(229, 231, 235, 0.45);
}

.blog-page .page-hero .blog-search .btn-primary {
    padding-inline: 1.75rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .page-hero .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-page .page-hero {
        margin-bottom: 2rem;
    }

    .blog-page .page-hero .blog-search {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        max-width: none;
    }

    .blog-page .page-hero .blog-search input[type="search"],
    .blog-page .page-hero .blog-search .btn-primary {
        width: 100%;
    }
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.page-hero-content p {
    font-size: 1.1rem;
    color: var(--muted-text-color);
    margin-bottom: 1rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.blog-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.blog-search input[type="search"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
}

.blog-filters {
    padding: 1.5rem 0;
}

.filter-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-link {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.filter-link:hover,
.filter-link.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-color);
}

.blog-list {
    padding: 1rem 0 3rem;
}

.blog-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.blog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.blog-pagination .page-link.active,
.blog-pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-summary {
    padding: 3rem 0 5rem;
}

.summary-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

.summary-card h2 {
    margin-bottom: 0.75rem;
}

/* Blog Post Detail */

.blog-post-page {
    --post-hero-top: clamp(5.5rem, 10vw, 7.5rem);
    --post-hero-bottom: clamp(2.5rem, 6vw, 3.75rem);
    --post-section-spacing: clamp(3rem, 6vw, 4.75rem);
    --post-card-padding: clamp(1.6rem, 2.8vw, 2.4rem);
    --post-card-gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.post-hero {
    padding: var(--post-hero-top, 7rem) 0 var(--post-hero-bottom, 4rem);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(236, 72, 153, 0.18));
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.post-hero .container {
    max-width: 900px;
}

.post-hero .post-breadcrumb {
    color: rgba(229, 231, 235, 0.7);
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.post-hero .post-breadcrumb a {
    color: rgba(229, 231, 235, 0.85);
}

.post-hero .post-breadcrumb a:hover {
    color: #fff;
}

.post-hero h1 {
    margin: 1.6rem 0 1rem;
    color: #fff;
    max-width: 48ch;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(229, 231, 235, 0.75);
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.post-hero-meta time {
    color: inherit;
}

.meta-separator {
    opacity: 0.5;
}

.post-detail {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, transparent 100%);
}

.post-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.post-main {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.post-cover {
    margin: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.7);
    transition: transform 0.3s ease;
}

.post-cover:hover {
    transform: translateY(-4px);
}

.post-cover img {
    width: 100%;
    height: clamp(300px, 40vw, 500px);
    object-fit: cover;
    display: block;
}

.post-cover figcaption {
    padding: 1.75rem 2.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(229, 231, 235, 0.8);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
    .post-cover img {
        height: 260px;
    }
}

.post-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.55) 100%);
    border-radius: var(--border-radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.85;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    backdrop-filter: blur(10px);
}

.post-content>* {
    margin: 0;
}

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

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 0;
    padding-top: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.875rem;
    margin-top: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
    padding-top: 0;
    margin-top: 0;
}

.post-content p {
    margin: 0;
    color: rgba(229, 231, 235, 0.9);
}

.post-content ul,
.post-content ol {
    margin: 0;
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style-position: outside;
    color: rgba(229, 231, 235, 0.85);
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    padding-left: 0.5rem;
    margin-left: 0;
}

.post-content blockquote {
    margin: 0;
    padding: 1.75rem 2.25rem;
    border-left: 5px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
    color: rgba(229, 231, 235, 0.9);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-style: italic;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.post-footer {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.25);
}

.share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.2) 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3), inset 0 0 0 1px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
}

.share-label {
    font-weight: 600;
    color: rgba(229, 231, 235, 0.9);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.share-link--x {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-link--x:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.share-link:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.share-link--linkedin {
    background: rgba(10, 102, 194, 0.25);
    border-color: rgba(10, 102, 194, 0.35);
}

.share-link--linkedin:hover {
    background: rgba(10, 102, 194, 0.4);
    border-color: rgba(10, 102, 194, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.3);
}

.share-link--whatsapp {
    background: rgba(52, 211, 153, 0.25);
    border-color: rgba(52, 211, 153, 0.35);
}

.share-link--whatsapp:hover {
    background: rgba(52, 211, 153, 0.38);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.3);
}

.share-link--copy {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.share-link--copy:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--post-card-gap, 2.25rem);
}

.post-highlight-card,
.post-cta-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius-lg);
    padding: var(--post-card-padding, 2.25rem);
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(99, 102, 241, 0.18);
    display: flex;
    flex-direction: column;
    gap: var(--post-card-gap, 2rem);
}

.post-highlight-card h2 {
    font-size: 1.5rem;
    margin: 0;
}

.post-highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.post-highlight-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: rgba(229, 231, 235, 0.8);
}

.post-highlight-list span {
    opacity: 0.65;
    font-size: 0.9rem;
}

.post-highlight-list a {
    color: var(--primary-color);
}

.post-highlight-excerpt {
    margin: 0;
    color: rgba(229, 231, 235, 0.75);
}

.post-highlight-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.post-highlight-actions .btn-primary,
.post-highlight-actions .btn-secondary {
    width: 100%;
    text-align: center;
}

.post-cta-card h3 {
    font-size: 1.35rem;
}

.post-cta-card p {
    margin: 0;
}

.related-posts {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.2) 100%);
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.related-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.related-all {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    margin-left: auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem);
}

.related-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.related-card-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.related-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1;
}

.related-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

.related-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.related-card h3 a {
    transition: color 0.2s ease;
}

.related-card:hover h3 a {
    color: var(--primary-color);
}

.related-card p {
    flex: 1;
    color: rgba(229, 231, 235, 0.8);
    line-height: 1.7;
}

.related-card .read-more {
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.related-card .read-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.related-card:hover .read-more::after {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .post-main {
        max-width: 100%;
    }

    .post-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 640px) {
    .post-content {
        padding: 2rem 1.5rem;
        font-size: 1.05rem;
        gap: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-cover img {
        height: 240px;
    }

    .post-cover figcaption {
        padding: 1.25rem 1.5rem;
    }

    .share-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .share-link {
        width: 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card-body {
        padding: 1.5rem;
    }
}

.blog-not-found .empty-state {
    margin: 4rem auto;
}

.product-features li {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.05));
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

.product-features li:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.product-features li::before {
    content: "\2714";
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#product-long-description-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

#product-long-description-content h3,
#product-long-description-content h4 {
    color: var(--text-color);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

#product-long-description-content p {
    margin-bottom: 1rem;
    color: var(--muted-text-color);
}

#product-long-description-content strong,
#product-long-description-content b {
    font-weight: 600;
    color: var(--text-color);
}

#product-long-description-content em,
#product-long-description-content i {
    font-style: italic;
    color: var(--muted-text-color);
}

#product-long-description-content ul,
#product-long-description-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

#product-long-description-content ul li,
#product-long-description-content ol li {
    margin-bottom: 0.5rem;
    color: var(--muted-text-color);
    line-height: 1.5;
}

#product-long-description-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-style: italic;
    color: var(--muted-text-color);
}

#product-long-description-content code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-color);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#product-long-description-content pre {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.4;
}

#product-long-description-content pre code {
    background: none;
    padding: 0;
    border: none;
}

#product-long-description-content hr {
    border: none;
    height: 1px;
    background: rgba(99, 102, 241, 0.2);
    margin: 2rem 0;
}

#product-long-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
}

#product-long-description-content th,
#product-long-description-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

#product-long-description-content th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

#product-long-description-content td {
    color: var(--muted-text-color);
}

#product-long-description-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

#product-long-description-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .product-long-description {
        margin-top: clamp(1.5rem, 5vw, 2.5rem);
        padding: 1.5rem 1rem;
    }

    .product-long-description h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #product-long-description-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    #product-long-description-content h3,
    #product-long-description-content h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    #product-long-description-content ul,
    #product-long-description-content ol {
        padding-left: 1.5rem;
    }

    #product-long-description-content blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }

    #product-long-description-content table {
        font-size: 0.9rem;
    }

    #product-long-description-content th,
    #product-long-description-content td {
        padding: 0.5rem;
    }
}

/* Related Products */
.related-products {
    padding: 4rem 0;
}

@media (max-width: 640px) {
    .related-products {
        padding: 3rem 0;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Section */
.cart {
    padding: 8rem 0 4rem;
}

@media (max-width: 640px) {
    .cart {
        padding: 6rem 0 3rem;
    }
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    font-size: var(--font-size-xl);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: var(--font-family-display);
}

.empty-cart p {
    color: var(--muted-text-color);
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
}

.empty-cart .btn-primary {
    margin-top: 1rem;
}

.cart-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
    }

    .item-quantity,
    .item-total,
    .remove-btn {
        grid-column: span 2;
        justify-self: end;
    }
}

.item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.placeholder-icon {
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.item-details p {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin-bottom: 0.5rem;
}

.item-variation {
    color: var(--muted-text-color);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.item-price {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.cart-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
    height: fit-content;
}

@media (min-width: 968px) {
    .cart-summary {
        position: sticky;
        top: 6.5rem;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

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

.summary-row.total {
    border-top: 2px solid var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.continue-shopping {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.continue-shopping:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Checkout Section */
.checkout {
    padding: 8rem 0 4rem;
}

@media (max-width: 640px) {
    .checkout {
        padding: 6rem 0 3rem;
    }
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1080px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-column,
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-summary {
    position: sticky;
    top: 6.5rem;
}

@media (max-width: 1080px) {
    .checkout-summary {
        position: static;
    }
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.summary-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-title {
    font-weight: 600;
    color: var(--text-color);
}

.summary-item-variation {
    font-size: var(--font-size-xs);
    color: var(--muted-text-color);
}

.summary-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.summary-item-qty {
    font-size: var(--font-size-xs);
    color: var(--muted-text-color);
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.empty-cart-summary {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* License Box Styles (for hesabim.php) */
.license-box-wrapper {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 1rem !important;
}

.license-delivery-title {
    margin-bottom: 0.5rem;
    margin-top: 0 !important;
}

.license-delivery-content {
    white-space: pre-wrap;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Product Interface Showcase */
.product-interface-showcase {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(12, 18, 31, 0.4);
}

.product-interface-showcase[data-has-interface="false"] {
    display: none;
}

.interface-showcase-header {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.08));
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.interface-showcase-header h2 {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-2xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.interface-showcase-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.interface-showcase-image {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08), transparent 70%);
}

.interface-showcase-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.interface-showcase-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(12, 18, 31, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.interface-showcase-image img:hover {
    transform: scale(1.02);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.15),
        0 30px 60px rgba(12, 18, 31, 0.35),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 40px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
    .product-interface-showcase {
        margin-top: 2rem;
    }

    .interface-showcase-header h2 {
        font-size: var(--font-size-xl);
    }

    .interface-showcase-image {
        padding: 1rem;
    }

    .interface-showcase-image img {
        border-radius: var(--radius-sm);
    }
}