:root {
    color-scheme: light;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-nav: 'Space Grotesk', sans-serif;

    --md-primary: #2563eb;
    --md-on-primary: #ffffff;
    --md-primary-container: #dbeafe;
    --md-on-primary-container: #1e3a8a;
    --md-secondary: #1d4ed8;
    --md-tertiary: #64748b;

    --bg-color: #eff6ff;
    --bg-gradient: radial-gradient(circle at 12% 10%, #f8fbff 0%, #eff6ff 45%, #dbeafe 100%);
    --surface-1: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(245, 249, 255, 0.95);
    --surface-3: rgba(231, 240, 255, 0.98);
    --header-bg: rgba(246, 250, 255, 0.92);
    --footer-bg: rgba(239, 246, 255, 0.94);

    --text-color: #1e293b;
    --text-muted: #475569;
    --border-color: rgba(30, 58, 138, 0.16);
    --state-hover: rgba(37, 99, 235, 0.1);
    --state-focus: rgba(37, 99, 235, 0.2);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-2: 0 16px 30px rgba(0, 0, 0, 0.14);
    --shadow-3: 0 24px 44px rgba(0, 0, 0, 0.17);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --transition: all 0.28s cubic-bezier(0.2, 0, 0, 1);

    --category-packs: #2563eb;
    --deal-chip-bg: #dbeafe;
    --deal-chip-text: #1e3a8a;
    --saving-bg: #dbeafe;
    --saving-text: #1e3a8a;
}

.dark-mode {
    color-scheme: dark;
    --md-primary: #93c5fd;
    --md-on-primary: #0b1120;
    --md-primary-container: #1e3a8a;
    --md-on-primary-container: #dbeafe;
    --md-secondary: #bfdbfe;
    --md-tertiary: #93c5fd;

    --bg-color: #0b1220;
    --bg-gradient: radial-gradient(circle at 18% 8%, #172554 0%, #0b1220 48%, #020617 100%);
    --surface-1: rgba(15, 23, 42, 0.82);
    --surface-2: rgba(17, 28, 53, 0.9);
    --surface-3: rgba(20, 34, 64, 0.98);
    --header-bg: rgba(11, 21, 42, 0.9);
    --footer-bg: rgba(7, 14, 28, 0.92);

    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(147, 197, 253, 0.22);
    --state-hover: rgba(147, 197, 253, 0.18);
    --state-focus: rgba(147, 197, 253, 0.26);

    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.32), 0 14px 30px rgba(0, 0, 0, 0.28);
    --shadow-2: 0 18px 34px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 28px 52px rgba(0, 0, 0, 0.48);

    --category-packs: #93c5fd;
    --deal-chip-bg: #1e3a8a;
    --deal-chip-text: #dbeafe;
    --saving-bg: #1e3a8a;
    --saving-text: #dbeafe;
}

.light-mode {
    color-scheme: light;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}

body.modal-open {
    overflow: hidden;
}

body.allow-zoom {
    touch-action: auto;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    padding-bottom: 26px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 51px;
    background-color: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-1);
    margin: 0 0 20px;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 33px;
    padding: 11px 9px;
    max-width: 864px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.logo span {
    color: var(--md-secondary);
}

.search-bar {
    flex: 0 1 360px;
    margin: 0 16px;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    line-height: 1;
}

.search-bar input {
    width: 100%;
    padding: 9px 11px 9px 35px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background-color: var(--surface-2);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
    font-size: 0.69rem;
    line-height: 1;
    height: 31px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.search-bar input:focus {
    border-color: rgba(0, 0, 0, 0.4);
    background-color: var(--surface-1);
    box-shadow: 0 0 0 4px var(--state-focus);
}

.header-actions {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 6px;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: var(--state-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 600;
    font-family: var(--font-nav);
    transition: var(--transition);
}

.header-nav a.active {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border-color: transparent;
    box-shadow: var(--shadow-1);
}

body.is-gallery .header-nav {
    display: none;
}

.main-nav.floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 8px 16px 11px;
    border-radius: 0;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-nav.floating-nav.is-single {
    background: transparent;
    border-top: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
}

body.is-gallery footer {
    padding-bottom: 117px;
}

.main-nav.floating-nav.is-single ul {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-template-rows: repeat(2, max-content);
    gap: 6px;
    place-items: center;
    padding: 0;
    margin: 0;
}

.main-nav.floating-nav.is-single li {
    list-style: none;
}

.main-nav.floating-nav.is-single .single-nav-top {
    grid-column: 2;
    grid-row: 1;
}

.main-nav.floating-nav.is-single .single-nav-left {
    grid-column: 1;
    grid-row: 2;
}

.main-nav.floating-nav.is-single .single-nav-right {
    grid-column: 3;
    grid-row: 2;
}

.main-nav.floating-nav.is-single .single-nav-bottom {
    grid-column: 2;
    grid-row: 2;
}

.main-nav.floating-nav.is-single a.active {
    background: var(--md-primary);
    color: var(--md-on-primary);
    box-shadow: var(--shadow-1);
    border-color: transparent;
    opacity: 1;
    width: auto;
    min-width: 78px;
    height: 38px;
    border-radius: 999px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1;
}

.main-nav.floating-nav.is-single .nav-text {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 41px;
    padding: 0 16px;
    border-radius: 23px;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.93rem;
    gap: 6px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--text-color);
    background: var(--state-hover);
    border-color: var(--border-color);
}

.main-nav a.active {
    background: var(--md-primary);
    color: var(--md-on-primary);
    box-shadow: var(--shadow-1);
    border-color: transparent;
}

.nav-text {
    display: block;
    font-size: 0.77rem;
    font-weight: 600;
    font-family: var(--font-nav);
}

.icon-btn {
    background: var(--md-primary);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--md-on-primary);
    width: 37px;
    height: 37px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
    box-shadow: var(--shadow-1);
}

.icon-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--md-primary-container);
    color: var(--md-on-primary-container);
    transform: translateY(-1px);
    border-color: var(--border-color);
}

.icon-btn:active {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border-color: transparent;
}

#search-toggle {
    display: none;
}

.gallery-info {
    text-align: center;
    padding: 24px 0 40px;
}

.gallery-info h1 {
    font-size: 1.24rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 15px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.load-more-text {
    display: inline-block;
}

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

.load-more-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.is-end {
    padding: 10px 26px;
}

.load-more-btn.is-end .load-more-icons {
    display: none;
}

.load-more-hidden {
    display: none;
}

.post-card {
    background-color: var(--surface-1);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3);
}

.post-image {
    position: relative;
    width: 100%;
    padding-top: 177.7778%;
    overflow: hidden;
}

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

.post-card:hover .post-image img {
    transform: scale(1.06);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 42%,
        rgba(255, 255, 255, 0.92) 58%,
        rgba(255, 255, 255, 0.45) 78%,
        rgba(255, 255, 255, 0.04) 100%
    );
    color: var(--text-color);
    transform: translateY(0);
    transition: var(--transition);
}

.post-overlay h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-overlay p {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.post-overlay .category {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    background-color: var(--deal-chip-bg);
    color: var(--deal-chip-text);
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 7px;
    font-weight: 700;
}

.dark-mode .post-overlay {
    background: linear-gradient(
        to top,
        rgba(4, 23, 27, 1) 0%,
        rgba(4, 23, 27, 1) 42%,
        rgba(4, 23, 27, 0.92) 58%,
        rgba(4, 23, 27, 0.5) 78%,
        rgba(4, 23, 27, 0.08) 100%
    );
}

.product-meta {
    display: grid;
    gap: 4px;
}

.entry-discount-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid rgba(30, 58, 138, 0.24);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    z-index: 3;
}

.dark-mode .entry-discount-chip {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    border-color: rgba(147, 197, 253, 0.38);
}

.product-brand {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    font-size: 0.72rem;
    color: #f3b700;
    letter-spacing: 0.04em;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.price-current {
    font-weight: 800;
    font-size: 1.224rem;
    color: var(--text-color);
}

.price-old {
    text-decoration: line-through;
    font-size: 0.912rem;
    color: var(--text-muted);
}

.price-saving {
    display: inline-flex;
    margin-top: 5px;
    width: fit-content;
    background: var(--saving-bg);
    color: var(--saving-text);
    border-radius: var(--radius-pill);
    padding: 3px 11px;
    font-size: 0.876rem;
    font-weight: 700;
}

.single-post-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 10px 0 20px;
}

.single-post-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.single-post-category {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--md-primary-container);
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--md-on-primary-container);
    font-family: var(--font-nav);
    font-weight: 700;
}

.single-post-meta {
    margin-top: 10px;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.single-post-meta .product-brand {
    font-size: 0.85rem;
}

.single-post-description {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-color);
}

.single-post-description p {
    margin: 0;
    line-height: 1.45;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.category.category-packs,
.single-post-category.category-packs {
    background-color: var(--deal-chip-bg);
    color: var(--deal-chip-text);
}

footer {
    padding: 30px 0 70px;
    background-color: var(--footer-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
    font-weight: 500;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.32rem;
}

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

.social-links a:hover {
    color: var(--text-color);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 13px;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border-color);
    border-bottom-color: var(--text-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    grid-column: 1 / -1;
    margin: 40px auto;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: scale(1.1);
}

@media (max-width: 896px) {
    body {
        background-attachment: scroll;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 13px 10px;
    }

    .search-bar {
        order: 2;
        flex: 1 1 100%;
        margin: 11px 0 0;
        display: none;
        opacity: 0;
        max-height: 0;
        transition: opacity 0.2s ease, max-height 0.2s ease;
    }

    .header-actions {
        order: 1;
    }

    .header-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    header {
        height: auto;
    }

    #search-toggle {
        display: inline-flex;
    }

    header.search-open .search-bar {
        display: flex;
        opacity: 1;
        max-height: 60px;
    }

    body.is-gallery .header-container {
        flex-wrap: nowrap;
    }

    body.is-gallery .header-nav {
        order: 1;
        width: auto;
        margin-top: 0;
    }

    body.is-gallery .header-actions {
        order: 2;
    }

    body.is-gallery .search-bar {
        display: none;
    }

    body.is-gallery header.search-open .search-bar {
        display: flex;
        opacity: 1;
        max-height: 60px;
    }

    body.is-gallery header.search-open .header-container {
        flex-wrap: wrap;
    }

    body.is-gallery header.search-open .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin: 12px 0 0;
    }

    body.is-gallery header.search-open .header-nav {
        order: 1;
        width: auto;
        margin-top: 0;
    }

    body.is-gallery header.search-open .header-actions {
        order: 2;
    }

    body.is-gallery .header-nav a {
        padding: 4px 6px;
        font-size: 0.57rem;
    }

    .main-nav.floating-nav {
        width: 100%;
        padding: 7px 9px 11px;
    }

    .main-nav a {
        padding: 0 12px;
        font-size: 1rem;
    }

    .nav-text {
        font-size: 0.68rem;
    }

    .gallery-info h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .main-nav a {
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .nav-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 500px) {
    .header-container {
        padding: 13px;
    }

    .search-bar {
        margin: 14px 0 0;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .post-card {
        border-radius: 12px;
    }

    .post-overlay {
        padding: 14px;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.2));
    }

    .post-overlay h2 {
        font-size: 0.9rem;
    }

    .product-rating {
        font-size: 0.66rem;
    }

    .price-current {
        font-size: 1.104rem;
    }

    .price-old {
        font-size: 0.84rem;
    }

    .price-saving {
        font-size: 0.816rem;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: transparent;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    box-shadow: none;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform-origin: center center !important;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.modal:not(.hidden) .modal-body {
    transform: scale(1);
    opacity: 1;
}

.modal-image {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    background-color: transparent;
    display: block;
    outline: 0;
    border: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.close-modal {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: calc(env(safe-area-inset-right, 0px) + 20px);
    background: var(--md-primary);
    color: var(--md-on-primary);
    border: 2px solid transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3010;
    transition: var(--transition);
    box-shadow: var(--shadow-1);
}

.close-modal:hover {
    background: var(--md-primary-container);
    border-color: var(--border-color);
    color: var(--md-on-primary-container);
    transform: scale(1.08) rotate(90deg);
}

.modal-info,
.modal-meta,
.modal-description {
    display: none;
}

.modal-images-container {
    column-count: 4;
    column-gap: 14px;
    width: 100%;
    max-width: 1200px;
    padding: 60px 30px;
    margin: 0 auto;
}

.modal-load-more-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0 40px;
}

.modal-load-more-btn {
    border: none;
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.modal-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.modal-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-images-container:has(.modal-image:only-child) {
    column-count: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}

.modal-images-container .modal-image {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 15px;
    break-inside: avoid;
}

.modal-images-container .modal-image:only-child {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    margin-bottom: 0;
}

.modal-image {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-3);
}

.lazy-post-image {
    min-height: 200px;
    background: var(--surface-3);
    position: relative;
    overflow: hidden;
}

.lazy-post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: loadingShimmer 1.5s infinite;
}

.dark-mode .lazy-post-image::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

@keyframes loadingShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#single-image-modal {
    z-index: 4000;
}

#single-image-modal .close-single-modal {
    z-index: 4010;
}

.single-image-content {
    align-items: center;
    height: 100%;
}

.single-image-body {
    justify-content: center;
    height: 100%;
}

#fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-3);
    display: block;
    outline: 0;
    border: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
    background-color: #000;
}

#single-image-modal .modal-body {
    transform: none;
    opacity: 1;
    transition: none;
}

@media (max-width: 896px) {
    .modal-images-container {
        column-count: 3;
        padding: 40px 20px;
    }
}

@media (max-width: 500px) {
    .modal-images-container {
        column-count: 2;
        column-gap: 10px;
        padding: 30px 15px;
    }

    .modal-images-container .modal-image {
        margin-bottom: 10px;
    }
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--md-primary);
    color: var(--md-on-primary);
    padding: 8px 17px;
    border-radius: 30px;
    font-size: 0.77rem;
    font-weight: 700;
    margin-top: 20px;
    text-decoration: none;
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    color: var(--md-on-primary);
}

.telegram-button i {
    font-size: 0.91rem;
}

h1,
h2,
h3,
.logo a,
.footer-logo a {
    font-family: var(--font-heading);
}

.main-nav a,
button,
input,
.category {
    font-family: var(--font-nav);
}

.bg-shapes {
    display: none;
}

.shape {
    position: absolute;
}

.shape-1 {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    top: -130px;
    right: -120px;
    filter: blur(56px);
}

.shape-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0));
    bottom: -70px;
    left: -80px;
    filter: blur(70px);
}

.shape-3 {
    width: 170px;
    height: 170px;
    top: 22%;
    left: 8%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 0, 0.2);
}

.shape-4 {
    width: 210px;
    height: 210px;
    right: 11%;
    top: 31%;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.14);
}

.shape-5 {
    width: 120px;
    height: 120px;
    bottom: 16%;
    right: 24%;
    border-radius: 50%;
    border: 2px dotted rgba(0, 0, 0, 0.2);
}

.dark-mode .shape-1 {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.dark-mode .shape-2 {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.dark-mode .shape-3 {
    border-color: rgba(255, 255, 255, 0.18);
}

.dark-mode .shape-4 {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .shape-5 {
    border-color: rgba(255, 255, 255, 0.22);
}

/* --- ESTILOS DE PUBLICIDAD / ADS --- */
.top-ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    overflow-x: auto;
}

.top-ad-banner iframe {
    max-width: 100%;
    border: none;
    display: block;
    margin: 0 auto;
}

.post-card.ad-card {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 16px;
    box-sizing: border-box;
    background-color: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.post-card.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.post-card.ad-card .ad-container-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}


