/*
Theme Name: 1991files
Theme URI: https://1991files.com/
Author: Larx Vo
Author URI: https://larxvo.com/
Description: Modern WordPress theme for graphic download website
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: larxvo
*/

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2a68e9;
  --color-primary-hover: #1020ff;
  --color-secondary: #ff9800;
  --color-danger: #e74c3c;
  --color-text: #1f2937;
  --color-text-light: #e8f0ff;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-top: #f8faff;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Be Vietnam Pro';
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* Comment List - Remove all markers */
.comment-list,
.comment-list * {
  list-style: none !important;
  list-style-type: none !important;
}

.comment-list li::marker,
.comment-list li::before,
.comment-list ol li::marker,
.comment-list ol li::before,
.comment-list ul li::marker,
.comment-list ul li::before {
  display: none !important;
  content: '' !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  opacity: 0 !important;
}

ol.comment-list,
ul.comment-list {
  list-style: none !important;
  padding-left: 0 !important;
}

ol.comment-list li,
ul.comment-list li {
  list-style: none !important;
  list-style-type: none !important;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-top: 168px; /* Space for top menu + header */
}

/* ===== TOP MENU ===== */
.top-menu {
  background: var(--color-top);
  color: #fff;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  border-bottom: 1px solid #edf1fa;
}

/* Admin Bar Adjustment for Top Menu */
.admin-bar .top-menu {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .top-menu {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .top-menu {
    top: 0;
  }
}

.top-menu .container {
  max-width: 100%;
  padding: 0 var(--spacing-lg);
}

.top-navigation ul {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.top-navigation a {
  color: #5f6b84;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.3s;
}

.top-navigation a:hover {
  opacity: 0.8;
  color:#376fe5;
}



/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid #e7ebf4;
  position: fixed;
  top: 41px; /* Below top menu */
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}


/* Admin Bar Adjustment */
.admin-bar .site-header {
  top: 70px; /* 32px admin bar + 41px top menu */
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 84px; /* 46px admin bar + 41px top menu */
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .site-header {
    top: 38px; /* Only top menu on mobile */
  }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

.secondary-navigation {
  display: none;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.secondary-navigation ul,
.secondary-navigation .menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.secondary-navigation li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.secondary-navigation a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
}

.secondary-navigation a:hover {
  color: var(--color-primary);
}

.main-navigation {
  display: flex;
  gap: var(--spacing-md);
}

.main-navigation ul {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

.main-navigation a:hover {
  color: var(--color-primary);
}

.header-search {
  flex: 1;
  max-width: none;
  min-width: 0;
}

.search-form {
  position: relative;
  width: 100%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-type-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-type-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.search-form .search-type-select {
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%236b7280" d="M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z"/></svg>') no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
  min-width: 150px;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-form .search-type-select:focus {
  border-color: var(--color-primary);
}

/* Custom Dropdown Styles */
.search-type-wrapper.custom-select {
  position: relative;
}

.search-type-wrapper.custom-select .search-type-select {
  display: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.6075rem 2.5rem 0.6075rem 2.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  min-width: 150px;
  white-space: nowrap;
  transition: all 0.3s ease;
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: var(--color-primary);
}

.custom-select-trigger.active {
  border-color: var(--color-primary);
}

.custom-select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  pointer-events: none;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-select-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0 0 10px 10px;
  box-shadow: -1px 15px 20px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.custom-select-options.active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.custom-select-option:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.custom-select-option.selected {
  background: rgba(37, 123, 233, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

.search-form label {
  position: relative;
  flex: 1;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-primary);
}

.search-form button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 0.5rem;
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
}

.search-form button svg {
  stroke: var(--color-text) !important;
  fill: none !important;
}

.search-submit svg {
  stroke: var(--color-text) !important;
  fill: none !important;
}

/* Search Input Wrapper */
.search-input-wrapper {
  position: relative;
  flex: 1;
}

/* Search Autocomplete Dropdown */
.search-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
}



.autocomplete-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.autocomplete-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.autocomplete-title svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.clear-history {
  font-size: 0.8rem;
  color: var(--color-danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.clear-history:hover {
  background: rgba(231, 76, 60, 0.1);
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--color-text);
}

.autocomplete-item:hover {
  background: var(--color-bg-light);
}

.history-item {
  font-size: 0.9rem;
}

.history-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.post-item {
  border-bottom: 1px solid var(--color-border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb.no-thumb {
  color: var(--color-text-light);
}

.post-thumb.no-thumb svg {
  width: 24px;
  height: 24px;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.meta-item {
  padding: 0.2rem 0.5rem;
  background: var(--color-bg-light);
      color: var(--color-primary);
  border-radius: 4px;
}

/* Tag items in autocomplete */
.tag-item {
  border-bottom: 1px solid var(--color-border);
}

.tag-item:last-child {
  border-bottom: none;
}

.tag-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.tag-item .tag-info {
  flex: 1;
  min-width: 0;
}

.tag-item .tag-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.tag-item .tag-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.tag-item:hover {
  background: linear-gradient(135deg, rgba(47, 132, 245, 0.05) 0%, rgba(39, 82, 174, 0.05) 100%);
}

.tag-item:hover .tag-name {
  color: var(--color-primary);
}

.autocomplete-view-all {
  display: block;
  text-align: center;
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--color-border);
  transition: background 0.2s;
}

.autocomplete-view-all:hover {
  background: #2a68e9;color: var(--color-text-light);
}

.autocomplete-loading,
.autocomplete-empty,
.autocomplete-error {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.autocomplete-error {
  color: var(--color-danger);
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Hide mobile-only elements on desktop */
.mobile-menu-header,
.mobile-menu-close,
.search-toggle-btn {
  display: none;
}

/* Mobile menu toggle - show by default */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0px;
  height: 40px;
  width: 40px;
  border-radius: 8px;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(45deg, #4ba9f9 0%, #2a68e9 50%, #0e5bfb 100%) !important;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 55, 200, 0.24) !important;display: flex;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #2398fb 0%, #0858ff 50%, #2d70f9 100%) !important;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline svg {
  flex-shrink: 0;
}

.user-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}


.user-account-btn:hover {
  color:#2a68e9;
}

/* Avatar Styling - Bo trÃ²n táº¥t cáº£ avatar */
.avatar,
img.avatar,
.avatar-32,
.avatar-24,
.avatar-20,
.avatar-18,
.user-avatar-icon {
  border-radius: 50% !important;
  object-fit: cover;
}

.user-avatar-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.user-account-dropdown {
  position: relative;
}

.user-account-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.user-account-dropdown:hover .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.dropdown-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.dropdown-item.logout {
  color: var(--color-danger);
}

.dropdown-item.logout:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--color-danger);
}

/* ===== CATEGORY BAR ===== */
.category-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 70px 0;
}

.category-bar .container {
  max-width: 1400px;
  padding: 0 var(--spacing-lg);
}

.category-tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.category-tag {
  padding: 0.5rem 1rem;
  background: var(--color-bg-light);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.5s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  border: none;
}

.category-tag i {
  font-size: 0.9rem;
}

.category-tag.has-custom-color {
  background: linear-gradient(135deg, var(--cat-bg) 0%, var(--cat-bg-dark) 100%);
  color: var(--cat-text);
}

.category-tag:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(33, 89, 94, 0.3);
}

.category-tag.active {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(112, 174, 253, 0.4);
  font-weight: 600;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.content-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  max-width: 100%;
}

/* No sidebar layout - full width */
.content-layout.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

.content-layout.no-sidebar .main-content {
  max-width: 100%;
}

/* Hide sidebar toggle button on desktop */
.sidebar-toggle-btn {
  display: none;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 170px; /* Below top menu + header */
  height: fit-content;
  border-right: 1px solid var(--color-border);
  padding-right: var(--spacing-md);
}

/* Hide mobile sidebar header on desktop */
.sidebar-mobile-header {
  display: none;
}

/* Hide sidebar overlay on desktop */
.sidebar-overlay {
  display: none;
}

.filter-section {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 5px;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

/* Active filter section - khi Ä‘ang lá»c */
.filter-section[style*="dashed"] {
  background: linear-gradient(45deg, #4ba9f9 0%, #2a68e9 50%, #0e5bfb 100%) !important;
  border: 2px solid var(--color-primary) !important;
  border-style: solid !important;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15) !important;
}

.filter-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  padding-top: 15px;
}

/* Active filters header */
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.filter-header h3 {
  margin-bottom: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  flex: 1;
}

.filter-header .clear-filters-btn {
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0;
  width: auto;
  box-shadow: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-header .clear-filters-btn:hover {
  background: var(--color-danger);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.25);
}

.filter-header .clear-filters-btn::before {
  display: none;
}

/* Filter tags */
.filter-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.45rem 0.85rem !important;
  background: #fff !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  color: var(--color-text) !important;
}

.filter-tag:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(35, 81, 233, 0.116) !important;
}

.filter-tag span:last-child {
  color: var(--color-text-light) !important;
  font-weight: bold !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

.filter-tag:hover span:last-child {
  color: #fff !important;
  transform: scale(1.15) !important;
}

.selected-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 0 !important;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-option input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background-color: #fff;
}

.filter-option input[type="checkbox"]:hover {
  border-color: #9ca3af;
}

.filter-option input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-option input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.filter-option label {
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text);
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.color-swatch-wrapper {
  cursor: pointer;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch.selected {
  transform: scale(1.05);
}

.color-swatch.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* ===== TAGS FILTER CLOUD ===== */
.tags-filter-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tag-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  line-height: 1.2;
}

.tag-filter-item:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, #122c79 100%);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(25, 47, 240, 0.137);
}

.tag-filter-item:hover .tag-name,
.tag-filter-item:hover .tag-count {
  color: #fff;
}

.tag-filter-item.selected {
  background: linear-gradient(135deg, var(--color-primary) 0%, #122c79 100%);
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(35, 81, 233, 0.116);
}

.tag-filter-item.selected .tag-name,
.tag-filter-item.selected .tag-count {
  color: #fff;
}

.tag-filter-item .tag-name {
  color: var(--color-text);
  transition: color 0.25s ease;
}

.tag-filter-item .tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.35rem;
  background: var(--color-bg-light);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.25s ease;
}

.tag-filter-item:hover .tag-count,
.tag-filter-item.selected .tag-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.category-item:hover {
  background: var(--color-bg-light);
}

.clear-filters-btn {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: linear-gradient(135deg, var(--color-danger) 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.18);
  position: relative;
  overflow: hidden;
}

.clear-filters-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.clear-filters-btn:hover::before {
  left: 100%;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(231, 76, 60, 0.35);
}

/* ===== POST GRID - COLUMN MASONRY LAYOUT ===== */
.posts-grid {
  column-count: 6;
  column-gap: 1.2rem;
}

/* No posts found message */
.no-posts {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-light);
  border-radius: 12px;
  margin: 2rem 0;
  column-span: all;
  -webkit-column-span: all;
  break-inside: avoid;
}

.no-posts h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  display: block;
}

.no-posts p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0;
  display: block;
}

/* Sort Filter */
.sort-filter-wrapper {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 1rem;
}

.filter-left-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-collections {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.btn-collections:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.btn-collections svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: all 0.3s;
}

.btn-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.btn-featured:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.btn-featured svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: all 0.3s;
}

.sort-filter {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  visibility: visible !important;
}

.sort-select {
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%236b7280" d="M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z"/></svg>') no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer !important;
  outline: none;
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 160px;
  pointer-events: auto !important;
}

.sort-select:hover {
  border-color: var(--color-primary);
}

.sort-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(0, 55, 200, 0.24) !important;
}

/* Custom Dropdown for Sort Filter */
.sort-filter.custom-select {
  position: relative;
}

.sort-filter.custom-select .sort-select {
  display: none;
}

.sort-filter .custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  cursor: pointer;
  min-width: 160px;
  white-space: nowrap;
  transition: all 0.3s ease;
  height: 38px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.sort-filter .custom-select-trigger:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.sort-filter .custom-select-trigger.active {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(0, 55, 200, 0.24) !important;
}

.sort-filter .custom-select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  pointer-events: none;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-filter .custom-select-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sort-filter .custom-select-trigger.active .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.sort-filter .custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.sort-filter .custom-select-options.active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}

.sort-filter .custom-select-option {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.sort-filter .custom-select-option:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.sort-filter .custom-select-option.selected {
  background: rgba(37, 123, 233, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 1800px) {
  .posts-grid {
    column-count: 6;
  }
}

@media (max-width: 1600px) {
  .posts-grid {
    column-count: 5;
  }
}

@media (max-width: 1200px) {
  .posts-grid {
    column-count: 4;
  }
}

@media (max-width: 1024px) {
  .posts-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    column-count: 2;
    column-gap: 0.5rem;
  }
  
  /* Sort filter wrapper - Keep on same row on mobile */
  .sort-filter-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  
  .filter-left-actions {
    flex: 1;
  }
  
  .sort-filter {
    flex-shrink: 0;
  }
  
  .btn-collections {
    width: auto;
    justify-content: center;
    font-size: 0;
    padding: 0.5rem;
    gap: 0;
    min-width: auto;
  }
  
  .btn-collections span {
    display: none;
  }
  
  .btn-collections svg {
    width: 16px;
    height: 16px;
  }
  
  .btn-featured {
    width: auto;
    justify-content: center;
    font-size: 0;
    padding: 0.5rem;
    gap: 0;
    min-width: auto;
  }
  
  .btn-featured span {
    display: none;
  }
  
  .btn-featured svg {
    width: 16px;
    height: 16px;
  }
  
  .sort-filter {
       justify-content: flex-end;
  }
  
  /* Reduce icon sizes on mobile post cards */
  .post-favorite {
    width: 24px !important;
    height: 24px !important;
    padding: 4px !important;
  }
  
  .post-favorite svg {
    width: 12px !important;
    height: 12px !important;
  }
  
  .card-download-btn,
  .post-thumbnail-wrapper .card-download-btn {
    width: 24px !important;
    height: 24px !important;
    padding: 4px !important;
    top: 2.5rem !important;
    border-radius: 50% !important;
  }
  
  .card-download-btn svg,
  .post-thumbnail-wrapper .card-download-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .file-badge {
    padding: 2px 5px !important;
    font-size: 0.55rem !important;
    height: auto !important;
    line-height: 1.7 !important;
  }
  
  .vip-badge-overlay {
    padding: 2px 5px !important;
    font-size: 0.55rem !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  
  /* Reduce overlay title size on mobile */
  .overlay-title {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  /* Reduce card spacing on mobile */
  .post-card.pinterest-style {
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    column-count: 2;
    column-gap: 0.5rem;
  }
  
  /* Compact button on small mobile */
  .btn-collections {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-collections svg {
    width: 16px;
    height: 16px;
  }
  
  .sort-select {
    font-size: 0.85rem;
    min-width: 140px;
  }
  
  /* Further reduce card spacing on small mobile */
  .post-card.pinterest-style {
    margin-bottom: 0.5rem !important;
  }
}

/* Pinterest Style Card */
.post-card.pinterest-style {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s ease;
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.2rem;
  display: block;
  width: 100%;
}

.post-thumbnail-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.post-thumbnail-wrapper:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover Overlay with Title */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  z-index: 5;
}

.post-thumbnail-wrapper:hover .hover-overlay {
  opacity: 1;
}

.overlay-content {
  width: 100%;
  text-align: left;
}

.overlay-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  text-align: left;
}

.overlay-title a {
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overlay-title a:hover {
  color: var(--color-primary);
}

/* Download Button - Same Style as Favorite Button */
.card-download-btn {
  position: absolute;
  top: 3rem;
  right: 0.75rem;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: none;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 6;
  gap: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(10px);
}

/* Show download button on hover */
.post-thumbnail-wrapper:hover .card-download-btn {
  opacity: 1;
  transform: translateX(0);
}

.card-download-btn:hover {
  background: var(--color-primary) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 8px 18px rgba(0, 55, 200, 0.24) !important
}

.card-download-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--color-primary);
  fill: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-download-btn:hover svg {
  stroke: #fff;
}

.card-download-btn.downloading {
  pointer-events: none;
  opacity: 0.7;
}

.card-download-btn.downloading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.card-download-btn svg.spin-animation {
  animation: spin 1s linear infinite;
}



/* Sticky/Featured Badge Icon - Below Download Button */
.sticky-badge-icon {
  position: absolute;
  top: 6.0rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 6;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-thumbnail-wrapper:hover .sticky-badge-icon {
  opacity: 1;
  transform: translateX(0);
}

.sticky-badge-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}



/* Post Content Below Image - Hide */
.post-content-below {
  display: none;
}

.post-card.pinterest-style .post-title {
  display: none;
}

/* Remove old overlay-download-btn styles */
.overlay-download-btn,
.overlay-meta,
.overlay-vip,
.overlay-downloads,
.overlay-views {
  display: none;
}

/* Badges - Always Visible */
.file-badge {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 28px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show file-badge on hover */
.post-thumbnail-wrapper:hover .file-badge {
  opacity: 1;
  transform: translateY(0);
}

.post-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  z-index: 6;
}

.badge-freepack {
  background: var(--color-primary);
}

.badge-sale {
  background: var(--color-secondary);
}

.badge-hot {
  background: var(--color-danger);
}

.badge-new {
  background: #3b82f6;
}

.post-favorite {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(-10px);
}

/* Show favorite button on hover */
.post-thumbnail-wrapper:hover .post-favorite {
  opacity: 1;
  transform: translateX(0);
}

/* Hide favorite button by default, show on hover - for both favorited and not favorited */
.post-thumbnail-wrapper:hover .post-favorite {
  opacity: 1;
  transform: translateX(0);
}

.post-favorite.is-favorited {
  opacity: 0;
  transform: translateX(10px);
}

.post-favorite:hover {
  background: var(--color-danger);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.post-favorite:hover svg {
  fill: #fff;
  stroke: #fff;
}

.post-favorite svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-danger);
  fill: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-favorite.is-favorited svg {
  fill: var(--color-danger);
  animation: heartBeat 0.3s ease;
}

.post-favorite.is-favorited:hover {
  background: var(--color-danger);
  transform: scale(1.1);
}

.post-favorite.is-favorited:hover svg {
  fill: #fff;
  stroke: #fff;
}

/* Animation for favorite button */
@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.2);
  }
}

.post-favorite.animate-pulse {
  animation: heartBeat 0.3s ease;
}

.post-favorite.active svg {
  fill: var(--color-danger);
}

/* Remove old post-content and post-title styles for pinterest style */
.post-card.pinterest-style .post-content {
  display: block;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== TOP DOWNLOAD PAGE ===== */
.top-download-page.site-main {
  flex: 1;
  padding-top: 15px;
}

.top-download-item {
  position: relative;
}

.rank-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  min-width: 38px;
  height: 38px;
  padding: 0 0.625rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Top 3 special styling */
.rank-badge.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  font-size: 1rem;
  min-width: 42px;
  height: 42px;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  color: #000;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.5);
  font-size: 0.95rem;
  min-width: 40px;
  height: 40px;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.5);
  font-size: 0.9rem;
}

.rank-badge svg {
  width: 14px;
  height: 14px;
}

.rank-badge.rank-1 svg,
.rank-badge.rank-2 svg,
.rank-badge.rank-3 svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Top download page header styling */
.top-download-page .page-header h1 svg {
  color: var(--color-primary);
}

/* Top download page mobile adjustments */
@media (max-width: 768px) {
  .top-download-page.site-main {
    padding-top: 0;
  }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-xl) 0;
}

.pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

/* Footer menu styles */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--color-primary);
}

.footer-info,
.footer-links,
.footer-social {
  font-size: 0.9rem;
  color: var(--color-text);
}

.footer-info p,
.footer-links a,
.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  color: var(--color-text);
}

.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social a:hover:not(.social-icon) {
  color: var(--color-primary);
}

.social-icon:hover {
  color: #fff !important;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 250px 1fr;
  }
  
  .posts-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .site-main {
    padding-top: 180px;
  }
  
  .featured-files-page.site-main {
    padding-top: 0;
  }
  
  .header-top {
    flex-wrap: wrap;
  }
  
  .main-navigation {
    order: 4;
    width: 100%;
  }
  
  .main-navigation ul {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  /* Reduce top spacing on account page mobile (no category bar) */
  .site-main.account-page {
    padding-top: 18px !important;
  }
  
  /* Mobile category tags - horizontal scroll */
  .category-bar {
    position: relative;
    padding: 0 !important;
  }
  
  .category-bar .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 var(--spacing-md);
  }
  
  .category-tags {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0;
    justify-content: flex-start;
    flex: 1;
  }
  
  .category-tags::-webkit-scrollbar {
    display: none;
  }
  
  /* Adjust category tag size on mobile */
  .category-tag {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    height: 32px;
  }
  
  /* Sidebar toggle button on mobile */
  .sidebar-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 0.5rem;
    padding: 0;
  }
  
  .sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
  }
  
  .sidebar-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text);
    stroke-width: 2.5;
  }
  
  /* Hide sidebar by default on mobile, show as slide-in menu */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 0 0 10rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  /* Mobile sidebar header */
  .sidebar-mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--color-primary);
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .sidebar-mobile-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
  }
  
  .sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
  }
  
  .sidebar-close-btn:hover {
    background: #e5e7eb;
  }
  
  .sidebar-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text);
  }
  
  /* Add padding to sidebar content */
  .sidebar .filter-section {
    margin: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .sidebar .active-filters {
    margin: 0rem;
  }
  
  /* Overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(8px) !important;-webkit-backdrop-filter;
    z-index: 1001;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .site-main {
    padding-top: 83px;
  }
  
  .featured-files-page.site-main {
    padding-top: 0 !important;
  }
  
  .posts-grid {
    column-count: 2;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  background: var(--color-bg-light);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.download-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.file-info {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  flex-wrap: wrap;
}

.file-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.file-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.larxvo-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: var(--spacing-sm);
}

.larxvo-download-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.larxvo-download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.larxvo-download-btn svg {
  width: 24px;
  height: 24px;
}

.larxvo-download-btn .spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vip-requirement {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
}

.vip-requirement.vip {
  background: #ffd700;
  color: #1a1a1a;
  font-weight: 700;
}

.larxvo-download-message {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.larxvo-download-message.success {
  background: #2a68e9;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.larxvo-download-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.larxvo-download-message .icon {
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.larxvo-download-btn .spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== SINGLE DESIGN FILE PAGE ===== */
.single-design-file .container {
  max-width: 1400px;
  padding: 0 var(--spacing-lg);
  margin: 0 auto;
}

.single-design-file.site-main {
  padding-top: 0px;
}

/* Featured Files Page Styles */
.featured-files-page.site-main {
  flex: 1;
  padding-top: 15px;
}

.single-design-file .breadcrumb a:hover {
  color: var(--color-primary-hover);
}

.single-design-layout {
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Fixed height for single design left column */
.single-design-file .single-design-left {
  min-height: 600px;
}

.single-design-file .single-design-left > .post-thumbnail-wrapper {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background blur effect using the same image */
.single-design-file .single-design-left > .post-thumbnail-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(40px);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0.6;
}

.single-design-file .single-design-left > .post-thumbnail-wrapper img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Favorite button in single page - always visible */
.single-design-file .post-favorite {
  position: absolute;
  top: 16px;
  right: 70px;
  z-index: 10;
  opacity: 1 !important;
  transform: translateX(0) !important;
  width: 38px;
  height: 38px;
}

@media (max-width: 1024px) {
  .single-design-layout {
    grid-template-columns: 1fr;
  }
  
  .single-design-sidebar {
    order: -1;
  }
  
  .single-design-file .single-design-left > .post-thumbnail-wrapper {
    height: 400px;
  }
  
  .single-design-file .single-design-left {
    min-height: 400px;
  }
}

.post-thumbnail-wrapper img {
  transition: transform 0.3s ease;
}

.post-thumbnail-wrapper:hover img {
  transform: scale(1.02);
}

.vip-badge-overlay {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 28px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.vip-badge-overlay.free {
  color: #22c55e;
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.vip-badge-overlay.vip {
  background: rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.entry-content {
  line-height: 1.8;
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.file-description-list ul li:last-child {
  border-bottom: none;
}

.entry-tags .tag-item:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.sidebar-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vip-badge-inline {
  display: inline-block;
}

.vip-badge-inline.free {
  background: #e8f5e9;
  color: #2e7d32;
}

.vip-badge-inline.vip {
  background: #ffd700;
  color: #1a1a1a;
  font-weight: 700;
}

.larxvo-download-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.larxvo-download-btn:active {
  transform: translateY(0);
}

.action-btn {
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--color-primary);
  color: var(--color-text);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.action-btn:hover svg {
  stroke: var(--color-text);
}

/* Favorite button active state */
.action-btn.favorite.is-favorited {
  background: rgba(231, 76, 60, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.action-btn.favorite.is-favorited svg {
  fill: var(--color-danger);
  stroke: var(--color-danger);
}

.action-btn.favorite.is-favorited:hover {
  background: rgba(220, 53, 69, 0.15);
  color: var(--color-danger);
  border-color: var(--color-danger);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.action-btn.favorite.is-favorited:hover svg {
  fill: var(--color-danger);
  stroke: var(--color-danger);
}

.taxonomy-card a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.related-posts-section {
  animation: fadeIn 0.5s ease-in-out;
}

/* Related posts grid - use column masonry like homepage */
.related-posts-grid {
  column-count: 6;
  column-gap: 1.2rem;    padding: 1rem 0 3rem 0;
}

.related-posts-grid .post-card {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}

/* Related Posts Grid Responsive Breakpoints */
@media (max-width: 1800px) {
  .related-posts-grid {
    column-count: 6;
  }
}

@media (max-width: 1600px) {
  .related-posts-grid {
    column-count: 5;
  }
}

@media (max-width: 1400px) {
  .related-posts-grid {
    column-count: 4;
  }
}

@media (max-width: 1024px) {
  .related-posts-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    column-count: 2;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  /* Container padding */
  .single-design-file .container {
    padding: 0 var(--spacing-sm) !important;
  }
  
  /* Main layout - single column */
  .single-design-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Sidebar goes first on mobile */
  .single-design-sidebar {
    order: -1;
  }
  
  /* Breadcrumb */
  .single-design-file .breadcrumb {
    margin: 1rem 0 1rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Thumbnail wrapper */
  .single-design-file .single-design-left > .post-thumbnail-wrapper {
    height: 300px !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
  }
  
  .single-design-file .single-design-left {
    min-height: auto !important;
  }
  
  /* Badges on thumbnail */
  .post-thumbnail-wrapper .post-badge {
    top: 8px !important;
    left: 8px !important;
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
  }
  
  .post-thumbnail-wrapper .vip-badge-overlay {
    top: 8px !important;
    right: 8px !important;
    padding: 3px 4px !important;
    font-size: 0.7rem !important;
    height: auto !important;
  }
  
  /* Favorite button */
  .single-design-file .post-favorite {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  
  .single-design-file .post-favorite svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Entry content */
  .single-design-file .entry-content {
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Tags section */
  .single-design-file .entry-tags {
    margin-top: 1rem !important;
  }
  
  .single-design-file .entry-tags h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .single-design-file .tag-item {
    padding: 0.3rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
  }
  
  /* Sidebar cards */
  .sidebar-card {
    padding: 1rem !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
  }
  
  .sidebar-card h1 {
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .sidebar-card h3 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .sidebar-card h4 {
    font-size: 0.85rem !important;
  }
  
  /* Meta info */
  .meta-info {
    font-size: 0.8rem !important;
    gap: 0.5rem !important;
  }
  
  .meta-info svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  /* File info grid */
  .file-info-grid .info-row {
    padding-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
  }
  
  .file-info-grid .info-row span {
    font-size: 0.8rem !important;
  }
  
  .file-info-grid .info-row strong {
    font-size: 0.85rem !important;
  }
  
  /* VIP badge inline */
  .vip-badge-inline {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  
  /* VIP notices */
  .vip-active-notice,
  .vip-notice {
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }
  
  .vip-active-notice strong,
  .vip-notice strong {
    font-size: 0.85rem !important;
  }
  
  .vip-active-notice svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Download button */
  .larxvo-download-btn {
    padding: 0.85rem !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
  }
  
  .larxvo-download-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Download message */
  .larxvo-download-message {
    margin-top: 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  /* Action buttons */
  .action-buttons {
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
  }
  
  .action-btn {
    padding: 0.7rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }
  
  .action-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .action-btn span {
    display: none;
  }
  
  /* Taxonomy card */
  .taxonomy-card > div {
    margin-bottom: 1rem !important;
  }
  
  .taxonomy-card > div:last-child {
    margin-bottom: 0 !important;
  }
  
  .taxonomy-card a {
    padding: 0.3rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
  }
  
  /* Related posts section */
  .related-posts-section {
    margin-top: 2rem !important;
    padding-top: 2rem !important;
  }
  
  .related-posts-section h3 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .related-posts-grid {
    column-count: 2 !important;
    column-gap: 0.75rem !important;
  }
  
  .related-posts-grid .post-card {
    break-inside: avoid !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Collection Taxonomy Page Mobile */
  .collection-header {
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }
  
  .collection-header h1 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  .collection-header p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }
  
  .collection-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0 !important;
  }
  
  .control-left,
  .control-right {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .control-left .collection-count {
    font-size: 0.85rem !important;
  }
  
  .btn-follow-collection,
  .btn-copy-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
  
  #collection-sort {
    width: 100% !important;
    font-size: 0.85rem !important;
  }
}

/* ===== NOTIFICATION POPUP ===== */
.larxvo-notification {
  position: fixed;
  top: 90px;
  right: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  z-index: 99999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid var(--color-primary);
  backdrop-filter: blur(10px);
  max-width: 320px;
}

.larxvo-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.larxvo-notification::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .larxvo-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===== ACCOUNT PAGE ===== */

body.account-page .breadcrumb {
  padding-top: 0px;
  padding-bottom: 10px;
}

.account-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.account-page > .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Reduce top spacing on account page (no category bar) */
.site-main.account-page {
  padding-top: 18px;
}

.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Account Sidebar */
.account-sidebar {
  position: sticky;
  top: 140px;
  height: fit-content;
}

.sidebar-section {
  background: #fff;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.account-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-menu li {
  margin-bottom: 0.5rem;
}

.account-menu li:last-child {
  margin-bottom: 0;
}

.account-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.account-menu a:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.account-menu li.active a {
  background: var(--color-primary);
  color: #fff;
}

/* Account Content */
.account-content {
  background: #fff;
}

.account-info-card {
  background: #fff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(21, 129, 218, 0.06);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.account-info-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--color-text);
  font-size: 0.95rem;
}

.info-value {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
}

.status-active {
  color: var(--color-primary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
  border-color: var(--color-primary);
}

.pricing-card.best-value {
  border-color: var(--color-secondary);
}

.recommended-badge,
.best-value-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.recommended-badge {
  background: var(--color-primary);
}

.best-value-badge {
  background: var(--color-secondary);
}

.plan-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-align: center;
}

.plan-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-price .price {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-card.best-value .plan-price .price {
  color: var(--color-secondary);
}

.plan-price .price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
}

.plan-features {
  margin-bottom: 1.5rem;
}

.feature-badge {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.feature-badge.highlight {
  background: rgba(27, 105, 251, 0.1);
  border-color: var(--color-primary);
}

.feature-badge .badge-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.feature-badge .badge-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.btn-purchase {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-purchase:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 129, 218, 0.3);
}

.btn-purchase.highlight {
  background: var(--color-primary);
}

.btn-purchase.highlight:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn-purchase.best {
  background: var(--color-secondary);
}

.btn-purchase.best:hover {
  background: #e68900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Plan Description */
.plan-description {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}

.plan-description h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.plan-description h3:first-child {
  margin-top: 0;
}

.plan-description ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.plan-description ul li {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.plan-description ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.plan-description a {
  color: var(--color-primary);
  text-decoration: underline;
}

.plan-description a:hover {
  color: var(--color-primary-hover);
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .account-layout {
    grid-template-columns: 1fr;
  }
  
  .account-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .account-sidebar {
    grid-template-columns: 1fr;
  }
  
  .pricing-card {
    padding: 1.25rem;
  }
  
  .plan-price .price {
    font-size: 1.5rem;
  }
}

/* Account section styles */
.account-section {
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}

.account-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 2px solid #2a68e9;
  padding-bottom: 15px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 30px;
}

.empty-state svg {
  color: #bdc3c7;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.empty-state p {
  color: #7f8c8d;
  margin-bottom: 25px;
}

/* Favorites grid - List style */
.favorites-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.favorite-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
}

.favorite-item:hover {
      box-shadow: 0 10px 40px rgba(24, 98, 245, 0.06) !important;
  border-color: var(--color-primary);
}

.favorite-thumbnail {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 6px;
}

.favorite-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.favorite-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.favorite-item:hover .favorite-thumbnail img {
  transform: scale(1.05);
}

.favorite-info {
  flex: 1;
  min-width: 0;
}

.favorite-info h3 {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.favorite-info h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-info h3 a:hover {
  color: var(--color-primary);
}

.favorite-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #7f8c8d;
  flex-wrap: wrap;
}

.favorite-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.favorite-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-download-favorite,
.remove-favorite {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
}

.btn-download-favorite {
  color: var(--color-primary);
}

.btn-download-favorite:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.remove-favorite {
  color: #e74c3c;
}

.remove-favorite:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
  transform: scale(1.1);
}

.btn-download-favorite svg,
.remove-favorite svg {
  width: 18px;
  height: 18px;
}

/* Orders table */
.orders-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.orders-table thead {
  background: #f8f9fa;
}

.orders-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.orders-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

.orders-table tbody tr:hover {
  background: #f8f9fa;
}

.order-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.order-status.status-pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.status-processing {
  background: #cce5ff;
  color: #004085;
}

.order-status.status-completed {
  background: #2a68e9;
  color: #fff;
}

.order-status.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.btn-view-order,
.btn-download-invoice,
.btn-view-file {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-view-order {
  background: #3498db;
  color: white;
}

.btn-view-order:hover {
  background: #2980b9;
}

.btn-download-invoice,
.btn-view-file {
  background: #95a5a6;
  color: white;
}

.btn-download-invoice:hover,
.btn-view-file:hover {
  background: #7f8c8d;
}

/* Download stats - Removed old styles, now using inline styles in template */

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Download history table */
.download-history-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.download-history-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.download-history-table thead {
  background: #f8f9fa;
}

.download-history-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.download-history-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

.download-history-table tbody tr:hover {
  background: #f8f9fa;
}

.download-file-name {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.download-file-name:hover {
  color: #3498db;
}

/* Responsive styles for account tabs */
@media (max-width: 768px) {
  .favorite-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .favorite-thumbnail {
    width: 100%;
    height: 180px;
  }
  
  .favorite-actions {
    justify-content: flex-end;
    margin-top: 10px;
  }
  
  .favorites-grid {
    gap: 12px;
  }
  
  .orders-table,
  .download-history-table {
    font-size: 13px;
  }
  
  .orders-table th,
  .orders-table td,
  .download-history-table th,
  .download-history-table td {
    padding: 10px;
  }
  
  .download-stats {
    grid-template-columns: 1fr;
  }
  
  .order-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .favorite-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .favorite-info h3 {
    font-size: 14px;
  }
}

/* ===== MOBILE RESPONSIVE - COMPLETE ===== */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
  .header-top {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .top-menu .container {
    padding: 0 var(--spacing-sm);
  }
  
  .main-navigation,
  .secondary-navigation {
    gap: var(--spacing-sm);
  }
  
  .header-search {
    max-width: 400px;
  }
}

/* Mobile Landscape & Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Top Menu - Mobile */
  .top-navigation ul {
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0;
  }
  
  .top-navigation a {
    padding: 0.2rem 0.4rem;
  }
  
  /* Header - Mobile Compact Layout */
  .header-top {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    padding: 0.5rem 0;
    gap: 0.3rem;
    overflow: visible;
    align-items: center;
  }
  
  .site-header .container {
    overflow: visible;
  }
  
  .site-logo {
    font-size: 0.9rem;
    grid-column: 1;
    grid-row: 1;
  }
  
  .site-logo img {
    max-height: 24px;
  }
  
  /* Search - Icon only, click to show popup */
  .header-search {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    margin-left: auto;
    position: relative;
  }
  
  /* Hide search form by default */
  .header-search .search-form {
    display: none;
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    background: #fff;padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;        border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
  
  .header-search .search-form.active {
    display: flex;
  }
  
  /* Search toggle icon button */
  .search-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }
  
  .search-toggle-btn svg {
    width: 25px;
    height: 25px;
    stroke: currentColor !important;
    stroke-width: 2;
  }
  
  /* Header actions on same row */
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 0.3rem;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .header-actions .btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-width: 40px;
    white-space: nowrap;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 auto;
    border-radius: 8px;
  }
  
  /* Hide "Mua lÆ°á»£t táº£i" button on mobile */
  .header-actions .btn-primary {
    display: none !important;
  }
  
  /* Hide button text on mobile, keep icons only */
  .header-actions .btn span {
    display: none !important;
  }
  
  .header-actions .btn svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }
  
  /* Mobile Menu Toggle - After header actions, same row */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    grid-column: 4;
    grid-row: 1;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }
  
  .mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    display: block;
  }
  
  /* Hide main navigation, show secondary in mobile menu */
  .main-navigation {
    display: none !important;
  }
  
  /* Account page - reduce padding on mobile */
  body.account-page .site-main.account-page,
  .site-main.account-page {
    padding-top: 12px !important;
  }
  
  /* Account page - when logged in (but not admin) */
  body.logged-in:not(.admin-bar).account-page .site-main.account-page,
  body.logged-in:not(.admin-bar) .site-main.account-page {
    padding-top: 30px !important;
  }
  
  .secondary-navigation {
    display: none;
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    overflow-y: auto;
    padding: 0;
  }
  
  .secondary-navigation.active {
    display: block !important;
  }
  
  /* Mobile menu header with close button */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--color-primary);
    background: #f9fafb;
  }
  
  .mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
  }
  
  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background 0.3s;
  }
  
  .mobile-menu-close:hover {
    background: #e5e7eb;
  }
  
  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text);
  }
  
  .secondary-navigation ul {
    flex-direction: column;
    padding: 0;
    gap: 0 !important;
    margin: 0;
    list-style: none;
  }
  
  .secondary-navigation li {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .secondary-navigation li:last-child {
    border-bottom: none;
  }
  
  .secondary-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
  }
  
  .secondary-navigation a:hover,
  .secondary-navigation a.current-menu-item {
    background: #f0f9ff;
    color: var(--color-primary);
    padding-left: 2rem;
  }
  
  .secondary-navigation a:hover::before,
  .secondary-navigation a.current-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
  }
  
  /* Header Actions - Compact icons only on same row as logo */
  .header-actions {
    order: 2;
    gap: 0.4rem;
    margin-left: auto;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .header-actions .btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    min-width: auto;
    white-space: nowrap;
    width: auto !important;
    flex: 0 0 auto;
  }
  
  .header-actions .btn-primary {
    width: auto !important;
    max-width: none;
  }
  
  /* Hide all button text on mobile, keep icons only */
  .header-actions .btn span {
    display: none !important;
  }
  
  .header-actions .btn svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }
  
  /* User dropdown - Icon only */
  .user-account-btn span {
    display: none !important;
  }
  
  .user-account-btn {
    padding: 0.45rem !important;
  }
  
  .user-avatar-icon {
    width: 25px;
    height: 25px;
  }
  
  .dropdown-arrow {
    display: none !important;
  }
  
  .account-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }
  
  .search-form {
    flex-direction: row;
    gap: 0.4rem;
    align-items: stretch;
  }
  
  .search-type-wrapper {
    flex: 0 0 auto;
    width: auto;
  }
  
  .search-form .search-type-select {
    width: auto;
    padding: 0.55rem 1.75rem 0.55rem 2rem;
    min-width: 90px;
    font-size: 0.8rem;
  }
  
  .search-type-wrapper .custom-select-trigger {
    width: auto;
    padding: 0.45rem 1.75rem 0.45rem 2rem;
    min-width: 90px;
    font-size: 0.8rem;
    height: auto;
  }
  
  .search-type-icon {
    width: 14px;
    height: 14px;
    left: 0.5rem;
  }
  
  .search-type-wrapper .custom-select-arrow {
    right: 0.5rem;
    width: 10px;
    height: 6px;
  }
  
  .search-form label {
    flex: 1;
    min-width: 0;
  }
  
  .search-form input[type="search"] {
    padding: 0.55rem 2.5rem 0.55rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .search-form button {
    right: 0.3rem;
  }
  
  .search-form button svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text) !important;
  }
  
  /* Adjust main content padding */
  .site-main {
    padding-top: 120px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  /* Top Menu - Compact */
  .top-menu {
    font-size: 0.7rem;
  }
  
  .top-navigation ul {
    gap: 0.2rem;
    font-size: 0.7rem;
    padding: 0.75rem 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .top-navigation ul::-webkit-scrollbar {
    display: none;
  }
  
  .top-navigation a {
    padding: 0.15rem 0.35rem;
    white-space: nowrap;
  }
  
  .top-menu .container {
    padding: 0 0.4rem;
  }
  
  /* Header - Ultra Compact for small screens */
  .header-top {
    padding: 0.4rem;
    gap: 0.35rem;
  }
  
  .site-logo {
    font-size: 0.9rem;
  }
  
  .site-logo img {
    max-height: 26px;
  }
  
  /* Header Actions - Smaller icons */
  .header-actions {
    gap: 0.3rem;
  }
  
  .header-actions .btn {
    padding: 0.4rem 0.5rem;
  }
  
  .header-actions .btn svg {
    width: 18px;
    height: 18px;
  }
  
  .user-avatar-icon {
    width: 25px;
    height: 25px;
  }
  
  /* Search - Compact but still horizontal */
  .search-form {
    gap: 0.3rem;
  }
  
  .search-form .search-type-select {
    padding: 0.5rem 1.5rem 0.5rem 1.75rem;
    font-size: 0.75rem;
    min-width: 80px;
  }
  
  .search-type-icon {
    width: 13px;
    height: 13px;
    left: 0.4rem;
  }
  
  .search-form input[type="search"] {
    font-size: 0.8rem;
  }
  
  .search-form button {
    right: 1.25rem;
  }
  
  .search-form button svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text) !important;
  }
  
  /* Dropdown menu */
  .account-dropdown-menu {
    min-width: 170px;
    font-size: 0.8rem;
  }
  
  .dropdown-item {
    padding: 0.6rem 0.75rem;
  }
  
  .dropdown-item svg {
    width: 15px;
    height: 15px;
  }
  
  /* Adjust main content */
  .site-main {
    padding-top: 106px;
  }

  /* When logged in as regular user - pages need more padding */
  body.logged-in:not(.admin-bar).home .site-main,
  body.logged-in:not(.admin-bar).blog .site-main,
  body.logged-in:not(.admin-bar).single-post .site-main,
  body.logged-in:not(.admin-bar).category .site-main,
  body.logged-in:not(.admin-bar).tag .site-main,
  body.logged-in:not(.admin-bar).archive .site-main,
  body.logged-in:not(.admin-bar).page-template-page-blog .site-main,
  body.logged-in:not(.admin-bar).page-template-page-collections .site-main,
  body.logged-in:not(.admin-bar).page-template-page-file-noi-bat .site-main {
    padding-top: 106px;
  }
  
  /* When logged in as admin - default */
  body.admin-bar .site-main {
    padding-top: 30px;
  }
  
  /* Exception: Blog pages need more padding with admin bar (46px) */
  body.admin-bar.blog .site-main,
  body.admin-bar.single-post .site-main,
  body.admin-bar.category .site-main,
  body.admin-bar.tag .site-main,
  body.admin-bar.archive .site-main,
  body.admin-bar.page-template-page-blog .site-main,
  body.admin-bar.page-template-page-collections .site-main,
  body.admin-bar.page-template-page-file-noi-bat .site-main {
    padding-top: 56px;
  }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
  .top-menu {
    font-size: 0.65rem;
  }
  
  .top-navigation ul {
    font-size: 0.65rem;
    gap: 0.15rem;
  }
  
  .top-navigation a {
    padding: 0.1rem 0.25rem;
  }
  
  .top-menu .container {
    padding: 0 0.3rem;
  }
  
  .header-top {
    padding: 0.3rem;
    gap: 0.3rem;
  }
  
  .site-logo {
    font-size: 0.85rem;
  }
  
  .site-logo img {
    max-height: 24px;
  }
  
  /* Keep search horizontal but more compact */
  .search-form {
    gap: 0.25rem;
  }
  
  .search-form .search-type-select {
    font-size: 0.7rem;
    padding: 0.45rem 1.4rem 0.45rem 1.6rem;
    min-width: 75px;
  }
  
  .search-type-icon {
    width: 12px;
    height: 12px;
    left: 0.35rem;
  }
  
  .search-form input[type="search"] {
    padding: 0.45rem 2rem 0.45rem 0.55rem;
    font-size: 0.75rem;
  }
  
  .header-actions {
    gap: 0.25rem;
  }
  
  .header-actions .btn {
    padding: 0.35rem 0.45rem;
  }
  
  .header-actions .btn svg {
    width: 16px;
    height: 16px;
  }
  
  .user-avatar-icon {
    width: 20px;
    height: 20px;
  }
  
  .search-form button {
    right: 0.2rem;
    padding: 0.4rem;
  }
  
  .search-form button svg {
    width: 15px;
    height: 15px;
    stroke: var(--color-text) !important;
  }
  
  .site-main {
    padding-top: 100px;
  }
}

/* Landscape Orientation Fix */
@media (max-height: 500px) and (orientation: landscape) {
  .site-main {
    padding-top: 100px;
  }
  
  .header-top {
    padding: 0.5rem;
  }
  
  .top-menu {
    font-size: 0.75rem;
  }
  
  .top-navigation ul {
    padding: 0.65rem 0;
  }
}

/* Safe Area for Notched Devices (iPhone X, etc) - Removed to eliminate side spacing */


/* Áp dụng hiệu ứng cho phần thân (line) và đầu mũi tên (polyline) khi hover vào nút */
.larxvo-download-btn:hover svg polyline,
.larxvo-download-btn:hover svg line {
    animation: downloadArrowSlide 1.2s infinite ease-in-out;
    /* Đảm bảo tâm chuyển động chuẩn xác cho thẻ SVG con */
    transform-origin: center;
    transform-box: fill-box;
}

/* Giữ cho phần khay hứng (path) ở dưới đứng im và không bị ảnh hưởng bởi animation */
.larxvo-download-btn:hover svg path {
    animation: none;
    transform: none;
}

/* Định nghĩa hiệu ứng trượt xuống: Mũi tên xuất hiện từ trên, trượt xuống khay và mờ đi */
@keyframes downloadArrowSlide {
    0% {
        transform: translateY(-4px);
        opacity: 0;
    }
    30% {
        opacity: 1; /* Mũi tên hiện rõ khi đang trượt xuống */
    }
    70% {
        transform: translateY(3px);
        opacity: 1;
    }
    100% {
        transform: translateY(5px); /* Chạm gần đáy khay */
        opacity: 0; /* Mờ đi để lặp lại vòng mới */
    }
}


/* Trạng thái mặc định của nút heart */
.post-favorite {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Đảm bảo hiệu ứng không tràn ra ngoài */
}

/* Biểu tượng trái tim bên trong nút */
.post-favorite svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hiệu ứng nhấp nháy cho biểu tượng trái tim khi hover */
.post-favorite:hover svg {
  animation: post-favorite-pulse 1.2s infinite ease-in-out;
}

/* Định nghĩa hiệu ứng nhấp nháy (pulse) cho trái tim */
@keyframes post-favorite-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1); /* Phóng lớn một chút */
    opacity: 0.7; /* Giảm độ mờ một chút */
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hiệu ứng thu nhỏ và phóng lớn khi click */
.post-favorite:active svg {
  transform: scale(0.9);
  transition: all 0.1s ease-in-out;
}



//* HERO SLIDER *//

/* --- Desktop Styles (Màn hình lớn) --- */
.hero-creative-split {
    padding: 80px 0;
    overflow: hidden;
    background: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content-left { flex: 0 0 45%; }
.hero-visual-right { 
    flex: 0 0 50%; 
    height: 500px; 
    position: relative; 
}

.horizontal-coverflow-container {
    width: 100%; height: 100%;
    perspective: 1200px;
}

.coverflow-track {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
}

.coverflow-item {
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 420px;
    margin-top: -210px; margin-left: -150px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; visibility: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.coverflow-item img { width: 100%; height: 100%; object-fit: cover; }

/* Trạng thái hiển thị Desktop */
.coverflow-item.is-active {
    opacity: 1; visibility: visible; z-index: 10;
    transform: translateX(0) scale(1) translateZ(100px);
}
.coverflow-item.is-prev {
    opacity: 0.5; visibility: visible; z-index: 5;
    transform: translateX(-220px) scale(0.8) rotateY(20deg);
}
.coverflow-item.is-next {
    opacity: 0.5; visibility: visible; z-index: 5;
    transform: translateX(220px) scale(0.8) rotateY(-20deg);
}

/* --- RESPONSIVE: Tablet (Dưới 1024px) --- */
/* --- RESPONSIVE CHO TABLET & MOBILE --- */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column !important; /* ÉP BUỘC CHUYỂN THÀNH HÀNG DỌC */
        text-align: center;
        gap: 30px; /* Khoảng cách giữa Text và Slider */
        padding-top: 40px;
    }

    .hero-content-left {
        flex: 0 0 100%;
        width: 100%;
        order: 1; /* Chữ nằm trên */
    }

    .hero-visual-right {
        flex: 0 0 100%;
        width: 100%;
        height: 350px; /* Chiều cao vùng chứa slider */
        order: 2; /* Slider nằm dưới */
    }

    /* Thu nhỏ các tấm ảnh để không bị tràn lề màn hình mobile */
    .coverflow-item {
        width: 200px;
        height: 280px;
        margin-left: -100px; /* Nửa width */
        margin-top: -140px; /* Nửa height */
    }

    /* Điều chỉnh vị trí 2 tấm ảnh phụ sát vào trung tâm hơn */
    .coverflow-item.is-prev {
        transform: translateX(-120px) scale(0.7) rotateY(15deg);
        opacity: 0.4;
    }
    .coverflow-item.is-next {
        transform: translateX(120px) scale(0.7) rotateY(-15deg);
        opacity: 0.4;
    }
}

/* Tối ưu riêng cho điện thoại nhỏ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem; 
        line-height: 1.2;
    }

    .hero-visual-right {
        height: 300px;
    }

    .coverflow-item {
        width: 160px;
        height: 230px;
        margin-left: -80px;
        margin-top: -115px;
    }

    .coverflow-item.is-prev { transform: translateX(-90px) scale(0.65); }
    .coverflow-item.is-next { transform: translateX(90px) scale(0.65); }
}


@media (max-width: 991px) {
    /* 1. Khung bao ngoài cùng */
    .sort-filter-wrapper {
        display: flex !important;
        align-items: center !important; /* Căn giữa dọc tất cả các thành phần */
        gap: 8px !important;
        width: 100% !important;
        padding: 10px 0 !important;
    }

    /* 2. Khung chứa 3 nút bên trái */
    .filter-left-actions {
        display: flex !important;
        flex: 1 !important; /* Chiếm không gian còn lại */
        gap: 8px !important;
        align-items: center !important;
    }



    /* 4. Xử lý riêng cho nút Bộ lọc (Icon duy nhất) */
    .sidebar-toggle-btn {
        width: 42px;
        min-width: 42px;
        height:38px;
        border: 1px solid var(--color-border);
    border-radius: 8px;
        padding: 0;
    }

    /* 5. Xử lý nút Bộ sưu tập và Yêu thích (Có text) */
    .btn-collections, .btn-featured {
        flex: 1; /* Chia đều không gian cho 2 nút có chữ */
        gap: 6px;
        white-space: nowrap;
    }


    /* Icon đồng nhất size */
    .filter-left-actions svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2 !important;
    }

    /* Ẩn bớt chữ trên màn hình quá nhỏ để tránh tràn lề */
    @media (max-width: 380px) {
        .btn-collections span, .btn-featured span {
            display: none; /* Chỉ hiện icon nếu máy quá bé */
        }
        .btn-collections, .btn-featured {
            flex: 0 0 42px;
        }
    }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shimmer-effect 3s infinite;
}

@keyframes shimmer-effect {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; } /* Tạo thời gian nghỉ giữa các lần quét */
}

.woocommerce ul.order_details li strong{color:var (--color-primary)!important;}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  
  color: #2a68e9;
  
  /* Kích thước: w-6 h-6 trên mobile, w-10 h-10 trên desktop */
  width: 24px;
  height: 24px;
  margin-left: 24px; /* tương đương ml-6 */
}

@media (max-width: 768px) {
    /* Lớp phủ mờ (20% còn lại) */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 99998 !important; /* Thấp hơn menu */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Menu chính (80%) */
    .secondary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80% !important;
        height: 100dvh !important;
        background-color: #fff !important;
        z-index: 99999 !important; /* CAO NHẤT để không bị mờ */
        transform: translateX(-101%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: block !important;
    }

    .secondary-navigation.active {
        transform: translateX(0) !important;
    }

    /* Đảm bảo chữ rõ nét */
    .secondary-navigation * {
        filter: none !important;
        backdrop-filter: none !important;
    }
}


/* Container chính của Search */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

/* Form search tạo thành một khối thống nhất */
.search-form {
    display: flex;
    align-items: center;
        background: var(--color-bg);
    border: 1px solid #e1e4e8;
    border-radius: 10px 10px 0 0;
        padding: 4px 0 6px 0px;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi click vào search (Focus) */
.search-form:focus-within {
    background: #fff;
    border-color: #2a68e9;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Phần chọn loại (Tất cả, Định dạng...) */
.search-type-wrapper {
    display: flex;
    align-items: center;
    border-right: 1px solid #e1e4e8; /* Vạch chia tinh tế */
    color: #666;
}

.search-type-select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 4px;
    cursor: pointer;
    outline: none;
    color: inherit;
}

/* Ô nhập liệu */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 15px !important;
    outline: none !important;
}

/* Nút Submit */
.search-submit {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-submit:hover {
    color: #007bff; /* Đổi màu khi hover */
}

/* Responsive cho Mobile */
@media (max-width: 991px) {
    .header-search {
        max-width: 100%;
    }
    
    .search-type-wrapper {
        display: none; /* Ẩn bớt phần chọn trên mobile cho gọn */
    }
}


.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}


/* Style cho Badge VIP trong Card Tài Khoản */
.premium-package-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background: #000;
    border-radius: 8px; /* Bo góc khớp với phong cách Card của bạn */
    overflow: hidden;
    z-index: 1;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Viền Cam - Vàng chạy liên tục (Snake Border) */
.premium-package-badge::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-image: conic-gradient(
        transparent, 
        #ff8c00 10%, /* Cam đậm */
        #f1c40f 25%, /* Vàng Gold */
        #fff 35%,    /* Ánh nắng trắng */
        #f1c40f 50%, 
        transparent 100%
    );
    animation: rotateBorder 3.5s linear infinite;
}

/* Lớp mặt nạ bên trong để viền trông thanh mảnh */
.premium-package-badge::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: #111;
    border-radius: 7px;
}

/* Hiệu ứng chữ vàng phát sáng (Golden Shimmer) */
.premium-text-shimmer {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(
        120deg, 
        #e67e22 0%, 
        #f1c40f 25%, 
        #fff 50%, 
        #f1c40f 75%, 
        #e67e22 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 2.5s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textShine {
    to { background-position: 200% center; }
}