* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --page-bg: #F3F3F3;
    --container-bg: #FFFFFF;
    --card-bg: #ffffff;
    --grid-card-bg: #fdfdfd; 
    --header-text: #121212;
    --body-text: #47474D;
    --link-color: #FB38FB;
    --separator: #CACACA;
    --btn-filled-bg: #121212;
    --btn-filled-text: #FFFFFF;
    --btn-outline-color: #121212;
    --badge-bg: #E0E0E0;
    --badge-text: #121212;
    --accent-bg: #E86053;
    --accent-text: #FFFFFF;
    --shadow: 0px 1px 4px rgba(0, 0, 0, 0.05);
    --card-border: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --page-bg: #121212;
    --container-bg: #1A1A1A;
    --card-bg: #1a1a1a;
    --grid-card-bg: #222222; 
    --header-text: #FFFFFF;
    --body-text: #A1A6A6;
    --link-color: #FB38FB;
    --separator: #CACACA;
    --btn-filled-bg: #FFFFFF;
    --btn-filled-text: #121212;
    --btn-outline-color: #FFFFFF;
    --badge-bg: #2A2A2A;
    --badge-text: #FFFFFF;
    --accent-bg: #E74C3C;
    --accent-text: #FFFFFF;
    --shadow: 0px 1px 4px rgba(0, 0, 0, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
}

html {
    background-color: #F3F3F3;
    transition: background-color 0.3s ease;
}

html[data-theme="dark"] {
    background-color: #121212;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--page-bg);
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.header {
    background-color: var(--container-bg);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.site-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--header-text);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-main {
    font-weight: 500;
    color: var(--header-text);
    line-height: 1;
}

.brand-sub {
    font-weight: 300;
    font-size: 14px;
    opacity: 0.8;
    color: var(--header-text);
    line-height: 1;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-selector {
    position: relative;
    display: block;
}

.language-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    color: var(--header-text);
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: 0;
    height: 44px;
}

.language-dropdown-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .language-dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.current-lang {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.language-selector.active .dropdown-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--container-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border-radius: 0;
    overflow: hidden;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--body-text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background-color: rgba(251, 56, 251, 0.1);
    color: var(--link-color);
}

.lang-option.active {
    color: var(--link-color);
    font-weight: 500;
}

.lang-code {
    font-weight: 500;
}

.lang-name {
    font-size: 12px;
    opacity: 0.8;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text);
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    border-radius: 0;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lucide {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.language-dropdown-trigger .lucide,
.theme-toggle .lucide {
    width: 20px;
    height: 20px;
}

.post-info .lucide {
    width: 14px;
    height: 14px;
}

.post-toggle .lucide {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.post-card.expanded .post-toggle .lucide {
    transform: rotate(180deg);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.theme-icon-light {
    display: block;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.main {
    flex: 1;
    padding: 32px 0;
    min-height: 300px;
    background-color: var(--page-bg);
}

.filters-section {
    margin-bottom: 40px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    position: relative;
}

.filters-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 4px;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--page-bg));
    pointer-events: none;
    z-index: 1;
}

.filter-tags {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 40px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.tag-filter {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 12px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
}

.tag-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tag-filter.active {
    background-color: var(--link-color);
    color: var(--accent-text);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    border-radius: 0;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--link-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.post-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.post-meta {
    flex: 1;
}

.post-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--header-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--body-text);
    opacity: 0.7;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--body-text);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    padding: 0;
}

.share-button:hover {
    color: var(--link-color);
    opacity: 1;
}

.share-button:focus {
    outline: none;
}

.share-button .lucide {
    width: 16px;
    height: 16px;
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--btn-filled-bg);
    color: var(--btn-filled-text);
    padding: 12px 24px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
}

.post-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.post-tag {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-radius: 0;
}

.post-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-toggle {
    color: var(--body-text);
    padding: 2px;
    align-self: flex-start;
    margin-top: 4px;
}

.post-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card.expanded .post-content {
    max-height: 10000px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-content-inner {
    padding: 20px 20px 24px;
    border-top: 1px solid rgba(202, 202, 202, 0.2);
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--header-text);
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

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

.post-content h1 { font-size: 26px; }
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 19px; }
.post-content h4 { font-size: 17px; }
.post-content h5 { font-size: 15px; }
.post-content h6 { font-size: 14px; }

.post-content p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.75;
}

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

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-content a:hover {
    opacity: 0.8;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.75;
}

.post-content blockquote {
    border-left: 3px solid var(--link-color);
    padding-left: 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--body-text);
    opacity: 0.8;
}

.post-content code {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 3px 8px;
    font-family: monospace;
    font-size: 13px;
    border-radius: 0;
}

.post-content pre {
    background-color: var(--badge-bg);
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
    font-size: 13px;
    border-radius: 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 28px 0;
    display: block;
}

.post-content hr {
    border: none;
    border-top: 1px solid rgba(202, 202, 202, 0.3);
    margin: 32px 0;
}

.video-wrapper {
    position: relative;
    margin: 32px -16px 32px -16px; 
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

/* 640px and up */
@media (min-width: 640px) {
    .video-wrapper {
        margin: 40px 0;
    }
}

/* 1024px and up */
@media (min-width: 1024px) {
    .video-wrapper {
        margin: 48px 0;  /* Change from 40px to 48px */
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.grid-wrapper {
    position: relative;
    margin: 32px -16px;
    background-color: transparent; 
    padding: 24px 0;
    box-shadow: none; 
    border-radius: 0;
}

.grid {
    display: flex;
    gap: 20px;
    padding: 0 16px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.grid::-webkit-scrollbar {
    display: none;
}

.grid::after {
    content: '';
    padding-right: 16px;
    flex-shrink: 0;
}

.grid-card {
    background-color: var(--grid-card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    padding: 0;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.grid-card img {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    margin: 0;
    display: block;
}

.grid-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--header-text);
    margin-bottom: 12px;
}

.grid-card-content-text {
    font-size: 14px;
    color: var(--body-text);
    margin: 0 0 12px 0;
    flex: 1;
    line-height: 1.6;
}

.grid-card-excerpt {
    display: inline;
}

.grid-card-full {
    display: none;
}

.grid-card.expanded .grid-card-excerpt {
    display: none;
}

.grid-card.expanded .grid-card-full {
    display: inline;
}

.grid-card-toggle {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s ease;
    align-self: flex-start;
    font-family: inherit;
}

.grid-card-toggle:hover {
    opacity: 0.8;
}

.accordion {
    margin: 32px 0;
    background-color: var(--container-bg);
    box-shadow: var(--shadow);
    padding: 8px 16px;
    border-radius: 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(202, 202, 202, 0.2);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--header-text);
    font-weight: 500;
    font-size: 15px;
}

.accordion-header:active {
    opacity: 0.7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    transition: max-height 0.3s ease-in;
}

.accordion-content-inner {
    padding: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
}

.form {
    margin: 32px 0;
    padding: 28px 20px;
    background-color: var(--container-bg);
    box-shadow: var(--shadow);
    border-radius: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--header-text);
    font-weight: 500;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(202, 202, 202, 0.3);
    background-color: var(--container-bg);
    color: var(--body-text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease;
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--link-color);
}

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

.hero-banner {
    position: relative;
    overflow: hidden;
    margin: 16px -16px 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 0;
    box-shadow: var(--shadow);
}

@media (min-width: 640px) {
    .hero-banner {
        margin: 24px -32px 32px;
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .hero-banner {
        margin: 32px -40px 40px;
        min-height: 450px;
        border-radius: 0;
    }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-banner .btn:not(.btn-outline),
.hero-banner .btn-filled,
.hero-banner a.btn:not(.btn-outline),
.hero-banner a.btn-filled {
    background-color: white;
    color: #121212;
    border: 1px solid white;
}

.hero-banner .btn:not(.btn-outline):hover,
.hero-banner .btn-filled:hover,
.hero-banner a.btn:not(.btn-outline):hover,
.hero-banner a.btn-filled:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #121212;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-banner .btn-outline,
.hero-banner a.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.hero-banner .btn-outline:hover,
.hero-banner a.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.hero-buttons .btn {
    flex: 0 0 auto;
    min-width: 200px;
    text-align: center;
}

@media (max-width: 639px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 800px;
    }
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.2s ease;
    position: relative;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.alert.warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-left: 4px solid #ffc107;
}

[data-theme="dark"] .alert.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #fff3cd;
}

.alert.info {
    background-color: rgba(13, 110, 253, 0.15);
    color: #055160;
    border-left: 4px solid #0d6efd;
}

[data-theme="dark"] .alert.info {
    background-color: rgba(13, 110, 253, 0.1);
    color: #cfe2ff;
}

.alert.error {
    background-color: rgba(220, 53, 69, 0.15);
    color: #842029;
    border-left: 4px solid #dc3545;
}

[data-theme="dark"] .alert.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #f8d7da;
}

.alert.success {
    background-color: rgba(25, 135, 84, 0.15);
    color: #0f5132;
    border-left: 4px solid #198754;
}

[data-theme="dark"] .alert.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #d1e7dd;
}

.alert-text {
    display: inline;
}

.alert-excerpt {
    display: inline;
}

.alert-full {
    display: none;
}

.alert.expanded .alert-excerpt {
    display: none;
}

.alert.expanded .alert-full {
    display: inline;
}

.alert-toggle {
    background: none;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s ease;
    display: none;
    margin-left: 4px;
    text-decoration: underline;
    font-family: inherit;
}

.alert-toggle:hover {
    opacity: 0.8;
}

@media (max-width: 639px) {
    .alert {
        padding: 14px 16px;
        font-size: 14px;
        margin: 20px -16px;
        border-radius: 0;
        border-left-width: 6px;
    }
    
    .alert.has-toggle .alert-toggle {
        display: inline;
    }
}

@media (min-width: 640px) {
    .alert {
        margin: 28px 0;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: 0;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-filled {
    background-color: var(--btn-filled-bg);
    color: var(--btn-filled-text);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--btn-outline-color);
    color: var(--btn-outline-color);
}

.btn-outline:hover {
    background-color: var(--btn-outline-color);
    color: var(--container-bg);
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    margin: 32px 0;
    overflow: hidden;
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 0;
}

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

.product-image {
    width: 100%;
    height: 240px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--header-text);
    margin-bottom: 12px;
}

.product-description {
    color: var(--body-text);
    margin-bottom: 24px;
    font-size: 14px;
    flex: 1;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.product-price {
    font-size: 24px;
    font-weight: 500;
    color: var(--link-color);
}

.product-footer .btn {
    font-size: 14px;
    padding: 12px 24px;
}

.load-more-container {
    text-align: center;
    margin-top: 48px;
}

#loadMoreBtn {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}

.footer {
    background-color: var(--container-bg);
    padding: 40px 0;
    margin-top: auto;
    box-shadow: var(--shadow);
}

.footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--body-text);
    opacity: 0.7;
}

@media (min-width: 640px) {
    .container {
        padding: 0 32px;
    }
    
    .main {
        padding: 56px 0;
    }
    
    .posts-container {
        gap: 32px;
    }
    
    .filters-section {
        margin: 0 0 40px 0;
    }
    
    .grid-wrapper {
        margin: 40px 0;
        position: static;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0;
        overflow-x: visible;
        align-items: stretch;
    }
    
    .grid::after {
        display: none;
    }
    
    .grid-card {
        flex: unset;
        max-width: unset;
        height: 100%;
        border-radius: 0;
    }
    
    .product-card {
        flex-direction: row;
    }
    
    .product-image {
        width: 240px;
        flex-shrink: 0;
        height: auto;
    }
    
    .product-content {
        padding: 32px;
    }
    
    .product-footer {
        margin-top: auto;
    }
    
    .form {
        margin: 32px 0;
    }
    
    .accordion {
        margin: 32px 0;
    }
    
    .product-card {
        margin: 32px 0;
    }
    
    .video-wrapper {
        margin: 32px 0;
    }
    
    .hero-banner {
        border-radius: 0;
    }
    
    .post-card {
        border-radius: 0;
    }
    
    .product-card {
        border-radius: 0;
    }
    
    .form {
        border-radius: 0;
    }
    
    .accordion {
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .header {
        padding: 28px 0;
    }
    
    .header-content {
        gap: 24px;
    }
    
    .site-title {
        font-size: 28px;
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
    
    .brand-sub {
        font-size: 28px;
    }
    
    .header-controls {
        gap: 16px;
    }
    
    .main {
        padding: 64px 0;
    }
    
    .filters-section {
        margin-bottom: 56px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    .filters-section::after {
        display: none;
    }
    
    .filter-tags {
        overflow-x: visible;
        padding-right: 0;
        margin-right: 0;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .posts-container {
        gap: 40px;
    }
    
    .post-card {
        border-radius: 0;
    }
    
    .post-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }
    
    .post-header {
        padding: 32px;
        gap: 16px;
    }
    
    .post-header:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    [data-theme="dark"] .post-header:hover {
        background-color: rgba(255, 255, 255, 0.02);
    }
    
    .post-title {
        font-size: 22px;
        margin-bottom: 14px;
    }
    
    .post-info {
        font-size: 14px;
        gap: 20px;
    }
    
    .post-info .lucide {
        width: 16px;
        height: 16px;
    }
    
    .post-tags {
        gap: 12px;
        margin-top: 20px;
    }
    
    .post-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .post-content-inner {
        padding: 32px 32px 36px;
    }
    
    .post-content h1 { font-size: 32px; margin-top: 40px; margin-bottom: 24px; }
    .post-content h2 { font-size: 28px; margin-top: 36px; margin-bottom: 20px; }
    .post-content h3 { font-size: 24px; margin-top: 32px; margin-bottom: 18px; }
    .post-content h4 { font-size: 20px; }
    .post-content h5 { font-size: 18px; }
    .post-content h6 { font-size: 16px; }
    
    .post-content p {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.8;
    }
    
    .post-content li {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .post-content blockquote {
        margin: 36px 0;
        padding-left: 28px;
    }
    
    .post-content pre {
        padding: 28px;
        margin-bottom: 28px;
    }
    
    .post-content img {
        margin: 36px 0;
    }

    .post-content .grid-card img {
        margin: 0;
    }
    .post-content hr {
        margin: 40px 0;
    }
    
    .grid-wrapper {
        margin: 48px 0;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 32px;
    }
    
    .grid-card {
        border-radius: 0;
    }
    
    .grid-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .grid-card img {
        height: 220px;
    }
    
    .grid-card-content {
        padding: 28px;
    }
    
    .video-wrapper {
        margin: 40px 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    
    .hero-content {
        padding: 56px 40px;
    }
    
    .hero-content h1 {
        font-size: 48px;
        margin-bottom: 24px;
    }
    
    .hero-content p {
        font-size: 20px;
        margin-bottom: 36px;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 16px;
        padding: 16px 32px;
    }
    
    .product-card {
        margin: 40px 0;
        border-radius: 0;
    }
    
    .product-card:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }
    
    .product-image {
        width: 280px;
    }
    
    .product-content {
        padding: 36px;
    }
    
    .product-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .product-description {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .product-footer .btn {
        font-size: 15px;
        padding: 14px 28px;
    }
    
    .form {
        margin: 40px 0;
        padding: 40px;
        border-radius: 0;
    }
    
    .form-group {
        margin-bottom: 28px;
    }
    
    .accordion {
        margin: 40px 0;
        padding: 8px 32px;
        border-radius: 0;
    }
    
    .accordion-header {
        padding: 28px 0;
        font-size: 16px;
    }
    
    .accordion-content-inner {
        padding: 0 0 28px;
        font-size: 15px;
        line-height: 1.8;
    }
    
    .footer {
        margin-top: 80px;
        padding: 48px 0;
    }
    
    .footer-text {
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--link-color);
    color: white;
}

*:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

button:focus {
    outline-offset: 4px;
}

.tag-filter:focus,
.post-tag:focus {
    outline: none;
}

.hidden {
    display: none !important;
}

.error-message {
    text-align: center;
    padding: 56px 20px;
    color: var(--body-text);
    font-size: 15px;
    opacity: 0.7;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 0;
    min-height: 140px;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background:
        conic-gradient(var(--link-color) 0deg 120deg, rgba(0,0,0,0.12) 120deg 360deg);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 6px), #000 0);
            mask: radial-gradient(farthest-side, #0000 calc(100% - 6px), #000 0);
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 0 4px rgba(251, 56, 251, 0.06);
}

[data-theme="dark"] .spinner {
    background:
        conic-gradient(var(--link-color) 0deg 120deg, rgba(255,255,255,0.12) 120deg 360deg);
    box-shadow: 0 0 0 4px rgba(251, 56, 251, 0.08);
}

.spinner-text {
    color: var(--body-text);
    font-size: 13px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: pulse 1.6s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
    .spinner-text { animation: none; }
}

/* Center all button text */
.btn,
.btn-filled,
.btn-outline,
button {
    justify-content: center;
    text-align: center;
}

/* Ensure hero banner buttons are centered */
.hero-buttons .btn {
    justify-content: center;
    text-align: center;
}

/* For custom-button elements that get converted to buttons/links */
.hero-banner .btn,
.hero-banner a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.post-content .caption-text,
.caption-text {
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: var(--header-text);
    margin: 24px 0 32px 0 !important;
    font-weight: 400;
    opacity: 0.9;
    display: block;
}

@media (min-width: 640px) {
    .post-content .caption-text,
    .caption-text {
        font-size: 19px !important;
        line-height: 1.8 !important;
        margin: 28px 0 36px 0 !important;
    }
}

@media (min-width: 1024px) {
    .post-content .caption-text,
    .caption-text {
        font-size: 20px !important;
        line-height: 1.85 !important;
        margin: 32px 0 40px 0 !important;
    }
}

/* Fix button link colors in post content */
.post-content a.btn-filled {
    color: var(--btn-filled-text) !important;
}

.post-content a.btn-outline {
    color: var(--btn-outline-color) !important;
}

/* But hero banner buttons override with their own colors */
.hero-banner a.btn-filled,
.hero-banner a.btn:not(.btn-outline) {
    color: #121212 !important;
}

.hero-banner a.btn-outline {
    color: white !important;
}

/* Quantity Popup Styles */
.quantity-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantity-popup-overlay.show {
    display: flex;
}

.quantity-popup-overlay.visible {
    opacity: 1;
}

.quantity-popup {
    background-color: var(--container-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    padding: 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quantity-popup-overlay.visible .quantity-popup {
    transform: scale(1);
}

.quantity-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--body-text);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--header-text);
}

[data-theme="dark"] .quantity-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.quantity-popup-close .lucide {
    width: 20px;
    height: 20px;
}

.quantity-popup-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--header-text);
    margin-bottom: 8px;
    text-align: center;
}

.quantity-popup-subtitle {
    font-size: 15px;
    color: var(--body-text);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.6;
}

.quantity-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.quantity-popup-info {
    background-color: var(--badge-bg);
    border: 1px solid var(--card-border);
    padding: 16px;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.quantity-popup-info .lucide {
    width: 20px;
    height: 20px;
    color: var(--header-text);
    flex-shrink: 0;
    margin-top: 2px;
}

.quantity-popup-info div {
    flex: 1;
}

.quantity-popup-info strong {
    display: block;
    color: var(--header-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.quantity-popup-info p {
    margin: 0;
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.5;
}

@media (max-width: 639px) {
    .quantity-popup-info {
        padding: 12px;
        margin-top: 20px;
    }
    
    .quantity-popup-info strong {
        font-size: 14px;
    }
    
    .quantity-popup-info p {
        font-size: 12px;
    }
}

.quantity-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--container-bg);
    border: 2px solid var(--card-border);
    color: var(--header-text);
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 56, 251, 0.3);
}

@media (max-width: 639px) {
    .quantity-popup {
        padding: 24px;
    }
    
    .quantity-popup-title {
        font-size: 20px;
    }
    
    .quantity-popup-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .quantity-buttons {
        gap: 10px;
    }
    
    .quantity-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* Market Selection Styles */
.popup-step {
    width: 100%;
}

.market-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.market-flag-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--container-bg);
    border: 2px solid var(--card-border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.market-flag-btn:hover {
    border-color: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 56, 251, 0.2);
}

.market-flag-btn:active {
    transform: translateY(0);
}

[data-theme="dark"] .market-flag-btn {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .market-flag-btn:hover {
    border-color: var(--link-color);
}

.flag-img {
    width: 48px;
    height: 36px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.market-flag-btn span {
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--body-text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.back-btn:hover {
    background: var(--badge-bg);
    color: var(--header-text);
}

.back-btn .lucide {
    width: 16px;
    height: 16px;
}

@media (max-width: 639px) {
    .market-buttons {
        gap: 12px;
    }
    
    .market-flag-btn {
        min-width: 70px;
        padding: 10px;
    }
    
    .flag-img {
        width: 40px;
        height: 30px;
    }
    
    .market-flag-btn span {
        font-size: 13px;
    }
}