/* ShopByCountries.com - Main Stylesheet - Hepsiburada Inspired */
/* Design tokens live in tokens.css */
@import url('tokens.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 0.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Header */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Mobile menu toggle should not affect desktop layout.
   icons.css is loaded after main.css, so use higher specificity. */
.icon-button.header-menu-toggle {
    display: none !important;
}

/* Hamburger icon (3 bars) */
.icon-button.header-menu-toggle .hamburger {
    width: 18px;
    height: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.icon-button.header-menu-toggle .hamburger-bar {
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 999px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 32px;
    width: auto;
    margin-right: 0.5rem;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input-large {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input-large:focus {
    border-color: var(--primary-color);
}

.search-btn-large {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn-large:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
    color: var(--gray-700);
}

.theme-icon-sun,
.theme-icon-moon {
    transition: opacity 0.2s ease;
    color: inherit;
}

html.theme-dark .theme-icon-sun {
    display: none;
}

html.theme-dark .theme-icon-moon {
    display: inline-block;
    color: var(--gray-700);
}

html:not(.theme-dark) .theme-icon-moon {
    display: none;
}

html.theme-dark .theme-toggle {
    color: var(--gray-700);
}

html.theme-dark .theme-toggle:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

html.theme-dark .theme-toggle:hover .theme-icon-moon {
    color: var(--gray-900);
}

.language-switcher {
    position: relative;
}

.language-switcher-trigger {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.language-switcher-trigger::-webkit-details-marker {
    display: none;
}

.language-switcher-chevron {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.language-switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 180px;
    padding: 0.35rem;
    margin: 0;
    list-style: none;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    z-index: 1500;
}

.language-switcher-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-800);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
}

.language-switcher-option:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.language-switcher-option.is-active {
    background: rgba(255, 96, 0, 0.12);
    color: var(--primary-color);
    font-weight: 700;
}

.language-switcher-locale {
    color: var(--gray-500);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Failsafe: never show hidden mobile drawers */
.mobile-nav-backdrop[hidden],
.mobile-nav-drawer[hidden] {
    display: none !important;
}

/* --- Mobile/tablet only overrides (desktop 1024px+ untouched) --- */
@media (max-width: 1023px) {
    .main-header {
        padding: 0.6rem 0;
        box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
    }

    .header-top {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .logo {
        grid-area: logo;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Show hamburger on mobile, hide theme toggle in header */
    .icon-button.header-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid var(--gray-200);
        background: var(--gray-100);
    }

    .icon-button.theme-toggle {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .header-search {
        grid-area: search;
        max-width: 100%;
    }

    .logo-image {
        height: 26px;
        margin-right: 0.5rem;
    }

    .logo-text {
        font-size: clamp(1.05rem, 3.2vw, 1.25rem);
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .theme-toggle {
        padding: 0.15rem 0.35rem;
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    html.theme-dark .theme-toggle {
        background: var(--gray-200);
        border-color: var(--gray-300);
    }

    .search-input-large {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .search-btn-large {
        padding: 0.7rem 1.05rem;
    }

    /* Hide desktop navbar on mobile/tablet */
    .main-nav {
        display: none;
    }

    /* Mobile nav drawer */
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1200;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: min(360px, 90vw);
        background: var(--white);
        color: var(--gray-900);
        z-index: 1300;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .mobile-nav-title {
        font-weight: 800;
        letter-spacing: -0.02em;
        font-size: 1.125rem;
    }

    .mobile-nav-close {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0.95rem;
        border-radius: 12px;
        text-decoration: none;
        color: var(--gray-800);
        font-weight: 600;
        background: transparent;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: var(--gray-100);
        color: var(--primary-color);
    }

    .mobile-nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .mobile-nav-language-switcher {
        border-radius: 12px;
    }

    .mobile-nav-language-summary {
        list-style: none;
        cursor: pointer;
    }

    .mobile-nav-language-summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-language-current {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--gray-600);
    }

    .mobile-nav-language-options {
        padding-top: 0.35rem;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .mobile-nav-language-option {
        margin-left: 0.5rem;
        width: calc(100% - 0.5rem);
    }

    .mobile-nav-language-option.is-active {
        color: var(--primary-color);
        background: var(--gray-100);
    }

    /* Touch targets: mobile/tablet only */
    .search-input-large,
    .search-btn-large,
    .theme-toggle,
    .header-menu-toggle,
    .filters-toggle,
    .btn-primary,
    .btn-secondary,
    .btn-reset-filters,
    .btn-load-more,
    .btn-submit,
    .filter-input,
    .sort-select {
        min-height: 44px;
    }

    /* Prevent common horizontal overflow sources */
    .main-content-wrapper,
    .content-layout,
    .home-page,
    .countries-page,
    .top-platforms-page {
        overflow-x: clip;
    }
}

/* Drawer theme button should look like links */
@media (max-width: 1023px) {
    .mobile-nav-theme-toggle {
        border: none;
        cursor: pointer;
        width: 100%;
        text-align: left;
    }
}

/* Main Content Wrapper */
.main-content-wrapper {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.home-page {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.home-hero {
    padding: 1rem 0 2rem;
}

.home-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.home-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.home-hero-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.75rem;
}

.home-search-wrapper {
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.home-search-form {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--box-shadow);
    padding: 0.25rem;
}

.home-search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 999px;
    outline: none;
    background: transparent;
}

.home-search-input::placeholder {
    color: var(--gray-500);
}

.home-search-button {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.home-search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-hover);
}

.home-nav-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--gray-100);
    margin: 0 auto;
}

.home-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.home-nav-tab:hover {
    background: var(--white);
    color: var(--primary-color);
}

.home-nav-tab.is-active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.home-category-section {
    margin-top: 1.5rem;
}

.home-category-section-header {
    max-width: 720px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.home-category-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

.home-category-media {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.08), rgba(0, 168, 255, 0.12));
    aspect-ratio: 4 / 3;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.home-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.home-category-icon {
    font-size: 2.5rem;
}

.home-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-top: 0.25rem;
}

html.theme-dark .home-category-card {
    background: var(--gray-100);
}

html.theme-dark .home-hero-title {
    color: var(--gray-900);
}

html.theme-dark .home-hero-subtitle,
html.theme-dark .home-category-section-subtitle {
    color: var(--gray-700);
}

html.theme-dark .home-nav-tabs {
    background: var(--gray-200);
}

@media (max-width: 1023px) {
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-category-section-header {
        margin-bottom: 0.85rem;
        text-align: left;
    }

    .home-category-section-title {
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .home-category-card {
        border-radius: 14px;
        padding: 0.85rem;
        box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    }

    .home-category-media {
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }

    .home-category-title {
        text-align: left;
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.25;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .home-page {
        padding: 0 1rem 2.5rem;
    }

    .home-hero-inner {
        text-align: left;
    }

    .home-hero-title {
        font-size: 1.6rem;
    }

    .home-hero-subtitle {
        font-size: 0.95rem;
    }

    .home-search-form {
        padding-inline: 0.5rem;
    }

    .home-nav-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-inline: 0.35rem;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .home-category-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .home-category-media {
        aspect-ratio: 3 / 2;
    }
}

.content-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sidebar Filters - Modern Card Style */
.sidebar-filters {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

body.dark-mode .sidebar-filters {
    background: var(--white);
    border-color: var(--gray-200);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 1023px) {
    /* Filters sheet: keep desktop sidebar, add mobile toggle + drawer behaviour */
    .filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 0.9rem;
        border-radius: 12px;
        min-height: 44px;
    }

    .filters-backdrop[hidden] {
        display: none;
    }

    .filters-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1100;
    }

    .sidebar-filters.filters-drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: min(380px, 92vw);
        z-index: 1150;
        border-radius: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }

    .sidebar-filters.filters-drawer.is-open {
        transform: translateX(0);
    }

    .filters-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .filters-drawer-title {
        font-weight: 800;
        letter-spacing: -0.02em;
        font-size: 1.125rem;
    }
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-search {
    margin-bottom: 0.75rem;
}

.filter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-list {
    max-height: none;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox,
.filter-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.filter-checkbox:hover,
.filter-toggle:hover {
    background: var(--gray-50);
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"],
.filter-toggle input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-checkbox span,
.filter-toggle span {
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.filter-checkbox:hover span,
.filter-toggle:hover span {
    color: var(--primary-color);
}

.filter-checkbox input[type="radio"]:checked + span,
.filter-checkbox input[type="checkbox"]:checked + span,
.filter-toggle input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Focus outlines for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    min-width: 0;
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.product-count {
    font-size: 1rem;
    font-weight: normal;
    color: var(--gray-600);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

/* Keep native select popups consistent (prevents first-click theme flash). */
select {
    color-scheme: light;
    background: #ffffff;
    color: #1f2937;
}

select option {
    background: #ffffff;
    color: #111827;
}

html.theme-dark select {
    color-scheme: dark;
    background: #1f1f1f;
    color: #e5e7eb;
    border-color: #3f3f46;
}

html.theme-dark select option {
    background: #1f1f1f;
    color: #e5e7eb;
}

html.theme-dark select.filter-input:focus,
html.theme-dark select.sort-select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

/* Quick Filters - Modern Toggle Style */
.quick-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.quick-filter-tag {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--gray-700);
    position: relative;
}

.quick-filter-tag:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-filter-tag.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.quick-filter-tag.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Listings Grid - Responsive */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.category-card {
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    transition: box-shadow 0.18s;
}

.category-card:hover img {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.15);
}

.category-icon-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    transition: box-shadow 0.18s;
}

.category-card:hover .category-icon-placeholder {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 4rem;
    display: block;
}

.category-name {
    display: block;
    color: var(--gray-900);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    width: 100%;
    word-break: break-word;
    letter-spacing: 0.2px;
}

html.theme-dark .category-name {
    color: var(--gray-800);
}

/* Countries Page */
.countries-page {
    padding: 1rem 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.countries-header {
    text-align: center;
    margin-bottom: 2rem;
}

.countries-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.countries-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.countries-search {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.countries-search-form {
    display: flex !important;
    align-items: center !important;
    background: var(--white) !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    padding: 0.2rem !important;
    border: 1px solid var(--gray-200) !important;
    position: relative !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.countries-search-input {
    flex: 1 !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 999px !important;
    outline: none !important;
    background: transparent !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.countries-search-input::placeholder {
    color: var(--gray-500) !important;
}

.countries-search-button {
    border: none !important;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: 999px !important;
    padding: 0.6rem 1.2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.countries-search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Search results count - Screen reader only */
#search-results-count {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Show results count below search bar */
.countries-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.countries-search-results-info {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
    min-height: 1.25rem;
    margin: 0;
    padding: 0;
}

.countries-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.country-card.hidden {
    display: none !important;
}

.country-card[hidden] {
    display: none !important;
}

.country-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    width: 100%;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.country-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.country-card:hover::before {
    opacity: 1;
}

html.theme-dark .country-card {
    background: #111827 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.country-flag {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    height: 100px;
    position: relative;
}

.flag-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.25s ease;
}

.country-card:hover .flag-image {
    transform: scale(1.05);
}

.flag-emoji {
    font-size: 4.5rem;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.25s ease;
}

.country-card:hover .flag-emoji {
    transform: scale(1.1);
}

.country-name {
    display: block;
    color: var(--gray-900);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    word-break: break-word;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.country-card:hover .country-name {
    color: var(--primary-color);
}

html.theme-dark .country-name {
    color: #f3f4f6 !important;
}

.country-name-native {
    display: block;
    color: var(--gray-500);
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
    word-break: break-word;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

html.theme-dark .country-name-native {
    color: #cbd5e1 !important;
}

.country-listing-count {
    display: block;
    color: var(--gray-500);
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
    font-weight: 500;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.country-card:hover .country-listing-count {
    color: var(--primary-color);
    border-top-color: var(--primary-color);
}

html.theme-dark .country-listing-count {
    color: #d1d5db !important;
    border-top-color: #4b5563 !important;
}

/* Countries page dark surfaces: remove remaining white backgrounds */
html.theme-dark .countries-page,
html.theme-dark .countries-header,
html.theme-dark .countries-search,
html.theme-dark .countries-grid {
    background: transparent;
}

html.theme-dark .countries-search-form {
    background: #111827;
    border: 1px solid #374151;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

html.theme-dark .countries-search-input {
    background: #111827;
    color: #f3f4f6;
}

html.theme-dark .countries-search-input::placeholder {
    color: #9ca3af;
}

html.theme-dark .country-card:hover {
    border-color: #fb923c;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Top Platforms Page Styles */
.top-platforms-page {
    padding: 1rem 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.top-platforms-header {
    text-align: center;
    margin-bottom: 2rem;
}

.top-platforms-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.top-platforms-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.top-platforms-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
}

.top-platform-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    width: 100%;
}

.top-platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.top-platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.top-platform-card:hover::before {
    opacity: 1;
}

html.theme-dark .top-platform-card {
    background: var(--white);
    border-color: var(--gray-200);
}

.top-platform-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    height: 100px;
    position: relative;
}

.platform-icon-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.25s ease;
}

.top-platform-card:hover .platform-icon-image {
    transform: scale(1.05);
}

.platform-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-platform-info {
    width: 100%;
    text-align: center;
}

.top-platform-name {
    display: block;
    color: var(--gray-900);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    word-break: break-word;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.top-platform-card:hover .top-platform-name {
    color: var(--primary-color);
}

html.theme-dark .top-platform-name {
    color: var(--gray-800);
}

.top-platform-country-count {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    gap: 0.25rem;
}

.top-platform-card:hover .top-platform-country-count {
    color: var(--primary-color);
    border-top-color: var(--primary-color);
}

.country-count-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.top-platform-card:hover .country-count-number {
    color: var(--primary-dark);
}

.country-count-label {
    font-weight: 500;
}

html.theme-dark .top-platform-country-count {
    color: var(--gray-600);
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

html.theme-dark .product-card,
body.dark-mode .product-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

html.theme-dark .product-card:hover,
body.dark-mode .product-card:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.3);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4);
}

.product-card:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

/* Top Section: Logo and Favorite Button */
.product-top-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

/* Logo Area - Small and Compact */
.product-logo-area {
    position: relative;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 0.9) 100%);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    overflow: hidden;
    width: 72px;
    height: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.theme-dark .product-logo-area,
body.dark-mode .product-logo-area {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.product-card:hover .product-logo-area {
    transform: scale(1.05);
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.theme-dark .product-card:hover .product-logo-area,
body.dark-mode .product-card:hover .product-logo-area {
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: transparent;
}

.product-image-placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.product-card:hover .product-image-placeholder svg {
    opacity: 0.6;
    transform: scale(1.1);
}

.favorite-btn {
    position: relative;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-600);
    z-index: 10;
    flex-shrink: 0;
}

html.theme-dark .favorite-btn,
body.dark-mode .favorite-btn {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.favorite-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 10px 15px -3px rgba(239, 68, 68, 0.3),
        0 4px 6px -2px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.favorite-btn.favorited {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    border-color: rgba(239, 68, 68, 0.3);
}

.favorite-btn.favorited svg {
    fill: currentColor;
}

/* Product Header */
.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-name {
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.product-name a {
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.theme-dark .product-name a,
body.dark-mode .product-name a {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #f5f5f5; /* Fallback for browsers that don't support background-clip */
}

.product-card:hover .product-name a {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.theme-dark .product-card:hover .product-name a,
body.dark-mode .product-card:hover .product-name a {
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #93c5fd; /* Fallback */
}

/* Category Badge - Prominent */
.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    width: fit-content;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 2px 4px -1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

html.theme-dark .product-category-badge,
body.dark-mode .product-category-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    box-shadow: 
        0 2px 4px -1px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

html.theme-dark .product-category-badge svg,
body.dark-mode .product-category-badge svg {
    color: #93c5fd;
    opacity: 1;
}

.product-card:hover .product-category-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateX(2px);
    box-shadow: 
        0 4px 6px -1px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html.theme-dark .product-card:hover .product-category-badge,
body.dark-mode .product-card:hover .product-category-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #bfdbfe;
    box-shadow: 
        0 4px 6px -1px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.theme-dark .product-card:hover .product-category-badge svg,
body.dark-mode .product-card:hover .product-category-badge svg {
    color: #bfdbfe;
}

.product-category-badge svg {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.product-card:hover .product-category-badge svg {
    transform: scale(1.1);
}

/* Badges: Rounded Pills */
.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.badge-verified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.12) 100%);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 2px 4px -1px rgba(34, 197, 94, 0.1);
}

.product-card:hover .badge-verified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.17) 100%);
    transform: translateY(-1px);
}

html.theme-dark .badge-verified,
body.dark-mode .badge-verified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: #6ee7b7;
}

html.theme-dark .product-card:hover .badge-verified,
body.dark-mode .product-card:hover .badge-verified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.25) 100%);
}

.badge-verified svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.badge-web {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.15) 0%, rgba(229, 85, 0, 0.12) 100%);
    color: var(--primary-color);
    border-color: rgba(255, 96, 0, 0.25);
    box-shadow: 0 2px 4px -1px rgba(255, 96, 0, 0.1);
}

html.theme-dark .badge-web,
body.dark-mode .badge-web {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.25) 0%, rgba(229, 85, 0, 0.2) 100%);
    border-color: rgba(255, 96, 0, 0.5);
    color: #fed7aa;
}

.product-card:hover .badge-web {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.2) 0%, rgba(229, 85, 0, 0.17) 100%);
    transform: translateY(-1px);
}

html.theme-dark .product-card:hover .badge-web,
body.dark-mode .product-card:hover .badge-web {
    background: linear-gradient(135deg, rgba(255, 96, 0, 0.3) 0%, rgba(229, 85, 0, 0.25) 100%);
}

.badge-mobile {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 2px 4px -1px rgba(139, 92, 246, 0.1);
}

html.theme-dark .badge-mobile,
body.dark-mode .badge-mobile {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

.product-card:hover .badge-mobile {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.17) 100%);
    transform: translateY(-1px);
}

html.theme-dark .product-card:hover .badge-mobile,
body.dark-mode .product-card:hover .badge-mobile {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.25) 100%);
}

.badge-store {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.12) 100%);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 2px 4px -1px rgba(34, 197, 94, 0.1);
}

html.theme-dark .badge-store,
body.dark-mode .badge-store {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.product-card:hover .badge-store {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.17) 100%);
    transform: translateY(-1px);
}

html.theme-dark .product-card:hover .badge-store,
body.dark-mode .product-card:hover .badge-store {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.25) 100%);
}

.badge-platform {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.25);
}

/* Product Meta (Country) */
.product-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
}

html.theme-dark .product-meta,
body.dark-mode .product-meta {
    color: #d1d5db;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

html.theme-dark .meta-item,
body.dark-mode .meta-item {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.product-card:hover .meta-item {
    background: rgba(59, 130, 246, 0.05);
    color: var(--gray-600);
}

html.theme-dark .product-card:hover .meta-item,
body.dark-mode .product-card:hover .meta-item {
    background: rgba(59, 130, 246, 0.15);
    color: #e5e7eb;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

html.theme-dark .meta-item svg,
body.dark-mode .meta-item svg {
    opacity: 0.7;
    color: #d1d5db;
}

.product-card:hover .meta-item svg {
    opacity: 0.8;
    transform: scale(1.1);
}

html.theme-dark .product-card:hover .meta-item svg,
body.dark-mode .product-card:hover .meta-item svg {
    opacity: 0.9;
    color: #e5e7eb;
}

/* Product Description */
.product-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    transition: color 0.3s ease;
}

html.theme-dark .product-description,
body.dark-mode .product-description {
    color: #d1d5db;
}

.product-card:hover .product-description {
    color: var(--gray-700);
}

html.theme-dark .product-card:hover .product-description,
body.dark-mode .product-card:hover .product-description {
    color: #e5e7eb;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-primary-action,
.btn-secondary-action {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    min-width: 120px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 1px solid rgba(255, 96, 0, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(255, 96, 0, 0.2),
        0 2px 4px -1px rgba(255, 96, 0, 0.1);
    position: relative;
}

.btn-primary-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #c2410c 100%);
    border-color: rgba(255, 96, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(255, 96, 0, 0.3),
        0 4px 6px -2px rgba(255, 96, 0, 0.2);
}

.btn-primary-action:hover::before {
    opacity: 1;
}

.btn-secondary-action {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--gray-700);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.theme-dark .btn-secondary-action,
body.dark-mode .btn-secondary-action {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.theme-dark .btn-secondary-action:hover,
body.dark-mode .btn-secondary-action:hover {
    background: rgba(31, 41, 55, 1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Legacy button classes for compatibility */
.btn-view-details,
.btn-visit-site {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-view-details {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--gray-700);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.theme-dark .btn-view-details,
body.dark-mode .btn-view-details {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-view-details:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

html.theme-dark .btn-view-details:hover,
body.dark-mode .btn-view-details:hover {
    background: rgba(31, 41, 55, 1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    box-shadow: 
        0 8px 12px -2px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-visit-site {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 1px solid rgba(255, 96, 0, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(255, 96, 0, 0.2),
        0 2px 4px -1px rgba(255, 96, 0, 0.1);
}

.btn-visit-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.btn-visit-site:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #c2410c 100%);
    border-color: rgba(255, 96, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(255, 96, 0, 0.3),
        0 4px 6px -2px rgba(255, 96, 0, 0.2);
}

.btn-visit-site:hover::before {
    opacity: 1;
}

.btn-secondary,
.btn-reset-filters {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.btn-secondary:hover,
.btn-reset-filters:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Load More Container */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    display: none;
    padding: 0.75rem 0;
}

.load-more-container.show {
    display: block;
}

.btn-load-more {
    padding: 0.875rem 2.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more:disabled:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: none;
}

.load-more-spinner {
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.content-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-page h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.content-page h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p,
.content-page ul {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.content-page ul {
    padding-left: 1.2rem;
}

.content-page li {
    margin-bottom: 0.35rem;
}

.content-page form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(255, 96, 0, 0.2);
}

.content-page button[type="submit"] {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.content-page button[type="submit"]:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Enhanced Legal Pages Styling */
.legal-page {
    max-width: 900px;
    padding: 2rem 1.5rem;
    line-height: 1.7;
}

.legal-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.legal-page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.legal-page-header .last-updated {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-style: italic;
    margin: 0;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    padding-top: 0.5rem;
}

.legal-page h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-page strong {
    font-weight: 600;
    color: var(--gray-900);
}

.legal-page a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

.legal-page section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.legal-page section:last-child {
    border-bottom: none;
}

/* Table of Contents */
.table-of-contents {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.table-of-contents h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--gray-700);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Contact Information */
.contact-info {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Cookie Tables */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.cookie-table thead {
    background: var(--gray-100);
}

.cookie-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-300);
}

.cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.cookie-table tbody tr:hover {
    background: var(--gray-50);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.faq-item p {
    margin-bottom: 0.75rem;
}

.faq-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    text-align: center;
}

.about-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    text-align: center;
    font-style: italic;
    color: var(--gray-600);
}

/* Contact Page Enhancements */
.contact-info-section {
    margin-bottom: 2.5rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-detail-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.contact-detail-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form-section {
    margin-bottom: 2.5rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-faq-section,
.contact-response-section,
.contact-alternative-section {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Sitemap Styling */
.sitemap-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.sitemap-list li {
    margin-bottom: 0.5rem;
}

.sitemap-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.sitemap-list a:hover {
    color: var(--primary-dark);
    padding-left: 0.5rem;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem 1.5rem;
}

.sitemap-note {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .legal-page {
        padding: 1.5rem 1rem;
    }

    .legal-page-header h1 {
        font-size: 1.75rem;
    }

    .legal-page h2 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .legal-page h3 {
        font-size: 1.1rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page-header h1 {
        font-size: 1.5rem;
    }

    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* PDP Layout */
.pdp-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pdp-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.pdp-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pdp-logo img,
.pdp-logo .product-image-placeholder {
    width: 96px;
    height: 96px;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.pdp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.pdp-section {
    margin-bottom: 1.5rem;
}

.pdp-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.pdp-description {
    line-height: 1.6;
    color: var(--gray-700);
}

.pdp-summary {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.pdp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    color: var(--gray-900);
}

.pdp-cta-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .pdp-cta-card {
    background: var(--white);
    border-color: var(--gray-200);
}

.pdp-cta-card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pdp-stat {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.btn-visit-site-large {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.pdp-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

/* Platform Details Specific Styles */
.platform-icon-large {
    width: 96px;
    height: 96px;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
}

.country-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.country-link:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modern Platform Detail Page Styles - Complete Reset and Redesign */
.platform-detail-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 3rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    overflow: hidden !important;
}

.platform-detail-page * {
    box-sizing: border-box !important;
}

.platform-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin: 0 0 2rem 0 !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    clear: both !important;
    overflow: hidden !important;
}

.platform-hero-content {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

.platform-icon-wrapper {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.platform-detail-page .platform-icon-large,
.platform-detail-page .platform-icon-placeholder {
    width: 120px !important;
    height: 120px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 4rem !important;
    line-height: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #f1f3f5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.platform-detail-page .platform-icon-placeholder {
    font-weight: 700 !important;
    color: #0066cc !important;
}

.platform-hero-info {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.platform-title {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    clear: both !important;
}

.platform-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.platform-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.platform-badge:hover {
    border-color: #0066cc !important;
    color: #0066cc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.platform-content-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 2rem !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.platform-main-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.platform-section {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    clear: both !important;
    overflow: hidden !important;
}

.platform-section .section-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 0 0.75rem 0 !important;
    border-bottom: 2px solid #f1f3f5 !important;
    clear: both !important;
}

.section-content {
    margin: 1rem 0 0 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.platform-description {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #495057 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.info-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.info-card {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 1.25rem !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    clear: both !important;
}

.info-card:hover {
    background: #ffffff !important;
    border-color: #0066cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.info-card-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #6c757d !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
}

.info-card-value {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.category-tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.625rem 1.25rem !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.category-tag:hover {
    background: #0052a3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.countries-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.country-card {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: #495057 !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.country-card:hover {
    background: #ffffff !important;
    border-color: #0066cc !important;
    color: #0066cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.country-icon {
    color: #0066cc !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.country-name {
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.website-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    background: #0066cc !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    margin: 0 !important;
}

.website-link:hover {
    background: #0052a3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.website-url {
    font-size: 0.9375rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 0 0.75rem 0 !important;
    border-bottom: 2px solid #f1f3f5 !important;
    clear: both !important;
}

.section-header .section-title {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.view-all-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #0066cc !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.view-all-link:hover {
    color: #0052a3 !important;
    gap: 0.75rem !important;
}

.listings-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.disclaimer-box {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 1.25rem !important;
    border-left: 4px solid #adb5bd !important;
    margin: 0 !important;
}

.disclaimer-text {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: #6c757d !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar Styles */
.platform-sidebar {
    position: sticky !important;
    top: 2rem !important;
    height: fit-content !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    clear: both !important;
}

.sidebar-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
}

.sidebar-stats {
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
}

.stat-item {
    text-align: center !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    margin: 0 !important;
}

.stat-value {
    display: block !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #0066cc !important;
    margin: 0 0 0.25rem 0 !important;
    padding: 0 !important;
}

.stat-label {
    display: block !important;
    font-size: 0.875rem !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    margin: 0 0 0.75rem 0 !important;
    box-sizing: border-box !important;
}

.sidebar-button.primary {
    background: #0066cc !important;
    color: #ffffff !important;
}

.sidebar-button.primary:hover {
    background: #0052a3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-button.secondary {
    background: #ffffff !important;
    color: #0066cc !important;
    border-color: #0066cc !important;
}

.sidebar-button.secondary:hover {
    background: #0066cc !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-note {
    font-size: 0.75rem !important;
    color: #6c757d !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .platform-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .platform-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .platform-detail-page {
        padding: 0 1rem 2rem;
    }
    
    .platform-hero {
        padding: 1.5rem;
    }
    
    .platform-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .platform-detail-page .platform-icon-large,
    .platform-detail-page .platform-icon-placeholder {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .platform-title {
        font-size: 1.75rem;
    }
    
    .platform-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    min-width: 32px;
    padding: 0.4rem 0.7rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    cursor: default;
}

/* Footer - Professional Design */
.page-guide-seo-block {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding: 0 1rem;
}

.page-guide-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.page-guide-single-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.page-guide-card-single {
    width: 100%;
}

.page-guide-intro-single {
    margin-bottom: 0;
}

.page-guide-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--box-shadow);
}

.page-guide-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.6rem;
}

.page-guide-intro {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--gray-600);
    margin: 0 0 0.75rem;
}

.page-guide-list {
    margin: 0;
    padding-left: 1rem;
}

.page-guide-list li {
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 0.45rem;
}

html.theme-dark .page-guide-card {
    background: #111827;
    border-color: #374151;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

html.theme-dark .page-guide-title {
    color: #f3f4f6;
}

html.theme-dark .page-guide-intro,
html.theme-dark .page-guide-list li {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .page-guide-card-single {
        width: 100%;
    }

    .page-guide-seo-grid {
        grid-template-columns: 1fr;
    }

    .page-guide-seo-block {
        margin-top: 1.75rem;
    }
}

.main-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    color: var(--gray-300);
    padding: 4.5rem 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2.8fr;
    gap: 4rem;
    align-items: flex-start;
    padding-bottom: 3rem;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
}

.footer-logo-shop {
    color: #f3f4f6;
}

.footer-logo-rest {
    color: #ea580c;
}

.footer-brand-description {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin: 0;
    max-width: 320px;
}


/* Navigation Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 2px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.35rem 0;
    position: relative;
    width: fit-content;
}

.footer-nav-link .icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.footer-nav-link:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-nav-link:hover .icon {
    opacity: 1;
    transform: translateX(0);
}

.footer-nav-link:hover::before {
    width: calc(100% - 0.5rem);
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    margin: 2rem 0;
}

/* Footer Bottom Section */
.footer-bottom {
    padding: 2rem 0 2.5rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-copyright strong {
    color: var(--gray-300);
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.footer-disclaimer p {
    margin: 0;
}

/* Keep footer readable in dark mode (global gray tokens get too dark). */
html.theme-dark .main-footer {
    color: #d1d5db;
}

html.theme-dark .footer-brand-description,
html.theme-dark .footer-nav-link {
    color: #cbd5e1;
}

html.theme-dark .footer-nav-link:hover {
    color: #ffffff;
}

html.theme-dark .footer-copyright {
    color: #9ca3af;
}

html.theme-dark .footer-copyright strong {
    color: #e5e7eb;
}

html.theme-dark .footer-disclaimer {
    color: #94a3b8;
}

html.theme-dark .footer-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
}

/* Responsive Design */
@media (max-width: 1023px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-top {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand-description {
        max-width: 100%;
    }
    
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom-content {
        text-align: left;
    }
    
    .footer-disclaimer {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        flex-wrap: wrap;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .country-card {
        padding: 1.25rem 0.75rem;
    }
    
    .flag-emoji {
        font-size: 3rem;
    }
    
    .countries-title {
        font-size: 1.5rem;
    }
    
    .countries-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .main-footer {
        padding: 2.5rem 0 0;
    }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 33, 33, 0.97);
    color: #f3f4f6;
    z-index: 1500;
    padding: 0.75rem 0;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.cookie-consent p {
    color: #e5e7eb;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    padding-right: 0.75rem;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.cookie-consent-actions .btn-view-details {
    white-space: nowrap;
}

.cookie-consent a {
    color: #7dd3fc;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: #bae6fd;
}

html.theme-dark .cookie-consent {
    background: rgba(15, 23, 42, 0.96);
    color: #f3f4f6;
}

@media (max-width: 1023px) {
    .cookie-consent-inner {
        flex-wrap: wrap;
    }

    .cookie-consent-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #cookie-consent-accept {
        width: 100%;
        min-height: 44px;
    }
}

/* Responsive */
@media (max-width: 1023px) {
    .content-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sidebar-filters {
        width: 100%;
        position: static;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }

    .header-search {
        max-width: 100%;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .product-logo-area {
        width: 60px;
        height: 60px;
        min-width: 60px;
        padding: 0.5rem;
        border-radius: 12px;
    }
    
    .product-name {
        font-size: 1.125rem;
    }
    
    .product-category-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
        border-radius: 10px;
    }
    
    .favorite-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }
    
    .country-card {
        padding: 1.5rem 1rem;
    }
    
    .flag-emoji {
        font-size: 3.5rem;
    }
    
    .countries-title {
        font-size: 1.75rem;
    }
    
    .countries-search {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pdp-content {
        grid-template-columns: 1fr;
    }
    
    .pdp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .pdp-logo img,
    .pdp-logo .product-image-placeholder,
    .platform-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .platform-icon-large {
        font-size: 2.5rem;
    }
    
    .pdp-title {
        font-size: 1.5rem;
    }
    
    .pdp-sidebar {
        order: -1;
    }
    
    .pdp-info-grid {
        grid-template-columns: 1fr;
    }
}
