:root {
  --font-sans:
    "Inter",
    "Inter Fallback",
    "Inter Fallback Android",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --primary-color: #4d43e5;
  --primary-dark: #3b32b5;
  --secondary-color: #1e1b4b;
  --accent-color: #f59e0b;
  --success-color: #16a34a;
  --warning-color: #eab308;
  --danger-color: #dc2626;
  --bg-body: #f6f6f8;
  --bg-card: #ffffff;
  --text-main: #1e1b4b;
  --text-muted: #64748b;
  --input-bg: #f0eff4;
  --input-border: #e2e1e6;
  --input-text: #1e1b4b;
  --placeholder-color: #94a3b8;
  --border-color: #e2e1e6;
  --sidebar-bg: #1e1b4b;
  --sidebar-text: #ffffff;
  --modal-bg: #ffffff;
  --modal-border: #e2e1e6;
  --table-header-bg: #2980b9;
  --table-header-text: #ffffff;
  --table-border: #eeeeee;
  --scroll-track: #f6f6f8;
  --scroll-thumb: #e2e1e6;
  --scroll-thumb-hover: #4d43e5;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color-scheme: light;
  --fs-hero-title: clamp(1.5rem, 5vw, 2.8rem);
  --fs-hero-subtitle: clamp(0.9rem, 2.5vw, 1.1rem);
  --fs-section-title: clamp(1.3rem, 4vw, 2rem);
  --fs-card-title: clamp(0.9rem, 2vw, 1.1rem);
}

html.dark-mode {
  --bg-body: #121117;
  --bg-card: #1d1c26;
  --text-main: #f1f0f5;
  --text-muted: #a09eb7;
  --input-bg: #252430;
  --input-border: #2a2938;
  --input-text: #f1f0f5;
  --placeholder-color: #64748b;
  --border-color: #2a2938;
  --sidebar-bg: #121117;
  --sidebar-text: #f1f0f5;
  --modal-bg: #2c2c26;
  --modal-border: #444444;
  --table-header-bg: #1e3a29;
  --table-header-text: #ecf0f1;
  --table-border: #444444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --scroll-track: #121117;
  --scroll-thumb: #2a2938;
  --scroll-thumb-hover: #4d43e5;
  color-scheme: dark;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

@font-face {
  font-family: "bootstrap-icons";
  src:
    url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2")
      format("woff2"),
    url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff")
      format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter Fallback Android";
  src: local("Roboto");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
  min-height: 100vh;
  top: 0 !important;
  position: static !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  color: var(--secondary-color);
  transition: color 0.3s;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3 {
  color: #f1f0f5;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border-radius: 6px;
  border: 3px solid var(--scroll-track);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-hover);
}

html.dark-mode ::-webkit-scrollbar-track,
html.dark-mode::-webkit-scrollbar-track {
  background: #121117 !important;
}

html.dark-mode ::-webkit-scrollbar-thumb,
html.dark-mode::-webkit-scrollbar-thumb {
  background-color: #2a2938;
  border-color: #121117;
}

html.dark-mode ::-webkit-scrollbar-corner,
html.dark-mode::-webkit-scrollbar-corner {
  background-color: #121117;
}

@keyframes softFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.user-view {
  animation: 0.4s cubic-bezier(0.4, 0, 0.2, 1) softFadeIn;
}

.skeleton {
  background: #eee;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  border-radius: 5px;
  background-size: 200% 100%;
  animation: 1.5s linear infinite shine;
}

html.dark-mode .skeleton {
  background: linear-gradient(110deg, #1d1c26 8%, #2a2938 18%, #1d1c26 33%);
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.sk-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  height: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.sk-img {
  width: 100%;
  height: 200px;
}

.sk-title {
  width: 80%;
  height: 24px;
}

.sk-text {
  width: 60%;
  height: 16px;
}

.sk-price {
  width: 40%;
  height: 20px;
  margin-top: auto;
}

.admin-body .app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #1e1b4b;
  color: #fff;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition:
    left 0.3s,
    background-color 0.3s;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

html.dark-mode .sidebar {
  background-color: #121117;
  border-right: 1px solid #2a2938;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  flex-shrink: 0;
}

.user-profile-section {
  transition: opacity 0.2s;
}

.user-profile-section:hover {
  opacity: 0.8;
}

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

.btn-admin-theme {
  background: 0 0;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  transition:
    transform 0.2s,
    color 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-admin-theme:hover {
  color: #fff;
  transform: scale(1.1);
}

.nav-utils {
  display: flex;
  align-items: center;
}

.admin-lang-select {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f1f0f5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: 0;
  transition: 0.3s;
  text-align: center;
  text-transform: uppercase;
  min-width: 45px;
}

.admin-lang-select option {
  background-color: #1e1b4b;
  color: #fff;
}

.mobile-close-btn {
  color: #e74c3c;
  font-size: 1.8rem;
  margin-left: 5px;
  display: none;
}

.sidebar ul {
  flex: 1;
  overflow-y: auto;
}

.sidebar li {
  padding: 12px 15px;
  margin: 5px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

html.dark-mode .sidebar li,
html.dark-mode .sidebar li.menu-item-parent {
  color: #fff;
}

.drilldown-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

@media (max-width: 768px) {
  .drilldown-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .drilldown-header .btn-back-mon {
    margin-bottom: 10px;
  }

  .limit-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .limit-wrapper button {
    width: auto !important;
    flex-grow: 0;
  }
}

.sidebar > ul > li.active,
.sidebar > ul > li:hover {
  background-color: #4d43e5;
}

html.dark-mode .sidebar > ul > li.active,
html.dark-mode .sidebar > ul > li:hover {
  background-color: #4d43e5;
  color: #fff;
}

.sidebar-footer {
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  flex-shrink: 0;
}

.btn-logout-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-logout-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(231, 76, 60, 0.4);
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

.btn-logout-custom:active {
  transform: scale(0.98);
}

.content {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 30px;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

@media (max-width: 1024px) {
  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .content {
    margin-left: 0;
    width: 100%;
  }

  .admin-body .app-container {
    flex-direction: column;
  }

  .admin-mobile-toggle {
    display: inline-block;
  }

  .mobile-close-btn {
    display: block;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

form {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  transition: background-color 0.3s;
}

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

label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-main);
  transition: color 0.3s;
}

html.dark-mode label {
  color: #fff !important;
}

html.dark-mode small {
  color: #a09eb7 !important;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid transparent;
  background-color: var(--input-bg);
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
  font-family: inherit;
  box-shadow: none;
  color: var(--input-text);
}

::placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  background-color: var(--bg-card);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  outline: 0;
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
}

html.dark-mode input:focus,
html.dark-mode textarea:focus {
  background-color: var(--input-bg);
  border-color: #4d43e5;
}

select.admin-lang-select {
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-save {
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  transition:
    transform 0.1s,
    background 0.3s;
  font-weight: 500;
}

.btn-save:hover {
  background: #218838;
}

.btn-save:active {
  transform: scale(0.98);
}

.preview-img-card {
  position: relative;
  width: 100px;
  height: 125px;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.preview-img-card.is-thumbnail {
  border-color: #2ecc71;
  background-color: #e8f8f5;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.preview-img-card img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  background: #eee;
}

.btn-remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: 0.2s;
}

.btn-remove-img:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.thumb-select-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 0.75rem;
  cursor: pointer;
  background: #f1f2f6;
  color: #7f8c8d;
  font-weight: 600;
  transition: 0.3s;
  width: 100%;
  border-top: 1px solid #eee;
  margin-bottom: 0 !important;
}

.thumb-select-label:hover {
  background: #e2e6ea;
  color: #1e1b4b;
}

.preview-img-card input[type="radio"] {
  display: none;
}

.preview-img-card input[type="radio"]:checked + .thumb-select-label {
  background: #2ecc71;
  color: #fff;
  content: "Utama";
}

html.dark-mode .preview-img-card {
  background: var(--bg-card);
  border-color: var(--input-border);
}

html.dark-mode .preview-img-card img {
  background: 0 0;
}

html.dark-mode .thumb-select-label {
  background: #2a2938;
  border-top-color: #a09eb7;
  color: #a09eb7 !important;
}

html.dark-mode .preview-img-card.is-thumbnail {
  border-color: #27ae60;
  background-color: #1e1b4b;
}

html.dark-mode
  .preview-img-card
  input[type="radio"]:checked
  + .thumb-select-label {
  background: #27ae60;
  color: #fff !important;
}

.list-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
  margin-top: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  overflow: visible !important;
  position: relative;
}

.card .img-container {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: -webkit-radial-gradient(white, black);
}

html.dark-mode .card {
  border: 1px solid #2a2938;
}

.card iframe,
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.product-card .img-container img {
  border-radius: 0;
  margin-bottom: 0;
}

.btn-del,
.btn-detail,
.btn-warning {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 70px;
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.action-btn-group .btn-del,
.action-btn-group .btn-detail,
.action-btn-group .btn-warning {
  width: 100%;
  margin: 0 !important;
}

.btn-del {
  background: #e74c3c;
  color: #fff;
}

.btn-del:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.btn-warning {
  background: #f39c12;
  color: #fff;
}

.btn-warning:hover {
  background: #d35400;
  transform: translateY(-1px);
}

.btn-detail {
  background: var(--primary-color);
  color: #fff;
}

.btn-detail:hover {
  background: #3a33bc;
  transform: translateY(-1px);
}

.marketplace-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

html.dark-mode .marketplace-box {
  background: var(--bg-card);
  border-color: var(--input-border);
  color: var(--text-main);
}

html.dark-mode .marketplace-box input {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
}

html.dark-mode .marketplace-box small {
  color: #a09eb7;
  font-weight: 500;
}

.password-box {
  background: var(--bg-card);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px dashed var(--input-border);
  color: var(--text-main);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

html.dark-mode .password-box {
  background: var(--bg-card);
  border-color: var(--input-border);
  color: var(--text-main);
}

html.dark-mode .password-box small {
  color: #bdc3c7 !important;
}

.notification-badge {
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: -8px;
  right: -8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) popIn;
  min-width: 18px;
  text-align: center;
  z-index: 100;
}

.sidebar-badge {
  background-color: #e74c3c;
  color: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  float: right;
  display: none;
  margin-left: 10px;
}

@keyframes popIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.category-title-header {
  color: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
  margin-bottom: 20px;
  font-weight: 700;
}

html.dark-mode .category-title-header {
  color: #f1f0f5;
}

#detail-category-title {
  color: var(--secondary-color);
}

html.dark-mode #detail-category-title {
  color: #f1f0f5;
}

.user-body {
  background-color: var(--bg-body);
}

.navbar {
  background-color: var(--bg-card);
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 900;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

html.dark-mode .navbar {
  border-bottom: 1px solid #333;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

html.dark-mode .logo {
  color: #f1f0f5;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: #000;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-block;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  text-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 700;
  transform: translateY(0);
}

html.dark-mode .nav-links a {
  color: #f1f0f5;
}

html.dark-mode .nav-links a.active,
html.dark-mode .nav-links a:hover {
  color: #4d43e5;
}

.btn-login {
  background: var(--primary-color);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

#navLogoutBtn a {
  background: #e74c3c !important;
  transition: 0.3s;
}

#navLogoutBtn a:hover {
  background: #c0392b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-theme {
  background: 0 0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: #a09eb7;
  flex-shrink: 0;
}

html.dark-mode .btn-theme {
  color: #f1c40f;
}

.btn-theme:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(15deg);
}

html.dark-mode .btn-theme:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero {
  background: #0d112b;
  padding: 150px 30px;
  margin-bottom: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.35);
  width: 100%;
  height: 100%;
  background-image: url("/icon/ditjenpas-logo.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  width: 100%;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 auto 15px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: #e2e8f0 !important;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hero:hover .slider-nav {
  opacity: 1;
}

.slider-nav:focus {
  opacity: 1;
  outline: white solid 2px;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

@media (max-width: 768px) {
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    opacity: 1;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }
}

.hero-logo-icon {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  margin-top: 30px !important;
  position: relative;
  z-index: 1;
}

.page-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}

.page-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--secondary-color);
}

html.dark-mode .page-header h1 {
  color: #f1f0f5;
}

.section-wrapper {
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  font-weight: 600;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary-color);
}

html.dark-mode .section-title {
  color: #f1f0f5;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

html.dark-mode hr {
  border-top-color: #2a2938;
}

.btn-see-more {
  background: 0 0;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 30px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.3s,
    background 0.3s;
  font-weight: 600;
}

.btn-see-more:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-see-more:active {
  transform: scale(0.97);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.gallery-card,
.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: visible !important;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  will-change: transform;
  backface-visibility: hidden;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  position: relative;
}

.gallery-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

html.dark-mode .product-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.product-card .img-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: -webkit-radial-gradient(white, black);
}

.product-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #f0f0f0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  border-radius: 0;
  aspect-ratio: 1/1;
}

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

html.dark-mode #pdMainImg,
html.dark-mode .modal-img-wrapper,
html.dark-mode .modal-img-wrapper img,
html.dark-mode .news-thumb,
html.dark-mode .pd-main-img-wrapper,
html.dark-mode .product-img {
  background-color: transparent !important;
}

.gallery-info,
.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-info h3,
.product-info h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.product-price {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

html.dark-mode .product-price {
  color: var(--accent-color);
}

.gallery-desc-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item {
  display: flex;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    background-color 0.3s;
}

.news-item:hover {
  transform: translateX(5px);
}

html.dark-mode .news-item h3 {
  color: #f1f0f5;
}

.news-thumb {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.btn-back {
  background: 0 0;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-block;
  transition: 0.3s;
  color: #a09eb7;
  font-weight: 500;
}

html.dark-mode .btn-back {
  border-color: #2a2938;
  color: #ddd;
}

html.dark-mode .btn-back:hover {
  background: #2a2938;
}

.admin-comment-item {
  background: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

html.dark-mode .admin-comment-item {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-main);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

html.dark-mode .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--input-border);
}

.modal-overlay.active .modal-content {
  opacity: 1;
  transform: scale(1);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease-out;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1e1b4b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark-mode .close-btn {
  background-color: rgba(44, 62, 80, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
  background-color: var(--danger-color);
  color: #fff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

#profileModal .modal-content {
  background: var(--bg-card);
  transition: background 0.3s;
}

#profileModal .password-box {
  background: 0 0;
  border: 1px solid var(--input-border);
}

#previewProfileImg {
  border: 2px solid #ddd;
  object-fit: cover;
}

#accountModal .profile-password-field,
#profileModal .profile-password-field {
  position: relative;
}

#accountModal .profile-password-field input,
#profileModal .profile-password-field input {
  padding-right: 44px;
}

#accountModal .profile-password-toggle,
#profileModal .profile-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: 0 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

#accountModal .profile-password-toggle i,
#profileModal .profile-password-toggle i {
  line-height: 1;
  font-size: 1rem;
}

#accountModal .profile-password-toggle:hover,
#profileModal .profile-password-toggle:hover {
  background-color: rgba(52, 152, 219, 0.16);
  color: #3498db;
}

#accountModal .profile-password-toggle:focus-visible,
#profileModal .profile-password-toggle:focus-visible {
  outline: #3498db solid 2px;
  outline-offset: 2px;
}

html.dark-mode #profileModal .modal-content {
  background: #1d1c26;
  border: 1px solid #2a2938;
}

html.dark-mode #previewProfileImg {
  border-color: #353445 !important;
}

html.dark-mode #accountModal .profile-password-toggle:hover,
html.dark-mode #profileModal .profile-password-toggle:hover {
  background-color: rgba(52, 152, 219, 0.22);
  color: #ecf0f1;
}

#galleryModal .modal-body {
  align-items: center !important;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #000;
  width: 100%;
  transition: transform 0.3s;
  transform: translateZ(0);
}

#galleryModal .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#galleryModal .modal-info {
  flex: 1 !important;
  padding-left: 10px;
}

@media (max-width: 768px) {
  #galleryModal .modal-img-wrapper {
    flex: none !important;
    width: 100% !important;
  }
}

.modal-body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.modal-img-wrapper {
  flex: 1;
  position: relative;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 1/1;
  max-width: 400px;
  margin: 0 auto;
}

html.dark-mode .modal-img-wrapper {
  background: 0 0;
}

#carouselSlides {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}

.carousel-slide-item {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: 0.5s fadeEffect;
}

.carousel-slide-item.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

.carousel-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s;
  border-radius: 3px;
  user-select: none;
  border: none;
  z-index: 10;
}

.carousel-btn.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-btn.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #a09eb7;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: #717171;
}

.modal-info {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

#modalTitle {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
  line-height: 1.2;
  font-weight: 700;
}

html.dark-mode #modalTitle {
  color: #f1f0f5;
}

#modalPrice {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-desc {
  font-size: 0.95rem;
  color: #a09eb7;
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

html.dark-mode .modal-desc {
  color: #bdc3c7;
}

.btn-shop {
  display: inline-block;
  background: var(--danger-color);
  color: #fff;
  text-align: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    background 0.3s,
    transform 0.2s;
  text-decoration: none;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.btn-shop:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-shop:active {
  transform: scale(0.97);
}

.marketplace-container {
  display: flex;
  gap: 15px;
  margin-top: auto;
  flex-wrap: wrap;
  align-items: center;
}

.mp-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  background: #fff;
  padding: 8px;
  overflow: hidden;
  text-decoration: none;
}

html.dark-mode .mp-btn {
  background: #252430;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2938;
}

.mp-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.mp-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.filter-container {
  max-width: 800px;
  margin: 0 auto 40px;
  width: 100%;
}

.filter-top-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.btn-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e1b4b;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}

html.dark-mode .btn-filter-toggle {
  background: #1d1c26;
  border-color: #2a2938;
  color: #f1f0f5;
}

html.dark-mode .btn-filter-toggle svg {
  stroke: #f1f0f5;
}

.btn-filter-toggle:hover {
  background: #f8f9fa;
  border-color: #353445;
}

.btn-filter-toggle.active {
  background: #e3f2fd;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-filter-toggle.active svg {
  stroke: var(--primary-color);
}

.search-wrapper {
  flex: 1;
}

#searchGalleryInput,
#searchNewsInput,
#searchProductInput {
  padding-left: 15px;
  background-color: #fff;
  border: 1px solid #cbd5e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #1e1b4b;
  font-weight: 500;
}

#searchGalleryInput:hover,
#searchNewsInput:hover,
#searchProductInput:hover {
  border-color: #a0aec0;
  background-color: #fff;
}

#searchGalleryInput:focus,
#searchNewsInput:focus,
#searchProductInput:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
  background-color: #fff;
}

html.dark-mode #searchGalleryInput,
html.dark-mode #searchNewsInput,
html.dark-mode #searchProductInput {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
  box-shadow: none;
}

.category-drawer {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 15px;
  background: var(--bg-card);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  animation: 0.3s ease-out forwards slideDownFilter;
}

html.dark-mode .category-drawer {
  background: var(--bg-card);
  border-color: var(--input-border);
}

@keyframes slideDownFilter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-section {
  flex: 1;
}

.filter-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.border-left-desktop {
  border-left: 1px solid #eee;
  padding-left: 30px;
}

.form-group-filter {
  margin-bottom: 15px;
}

.form-group-filter label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
  display: block;
}

.form-control-filter {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  font-family: Poppins, sans-serif;
  color: #1e1b4b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.form-control-filter:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-filter:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

.searchable-dropdown {
  position: relative;
  width: 100%;
}

.searchable-dropdown input.form-control-filter {
  padding-right: 30px;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: #888;
  pointer-events: none;
}

.dropdown-options-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 6px 6px;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -2px;
}

.dropdown-options-list.show {
  display: block;
}

.dropdown-option-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  font-size: 0.9rem;
  color: #1e1b4b;
  transition: background 0.2s;
}

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

.dropdown-option-item:hover {
  background-color: #f0f8ff;
  color: var(--primary-color);
}

.searchable-dropdown.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 15px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: #a09eb7;
  transition: color 0.2s;
  user-select: none;
}

html.dark-mode .filter-checkbox-item {
  color: #a09eb7;
}

.filter-checkbox-item:hover {
  color: #1e1b4b;
}

.filter-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  display: grid;
  place-content: center;
  transition: 0.2s;
  flex-shrink: 0;
  background-color: #fff;
}

html.dark-mode .filter-checkbox-item input[type="checkbox"] {
  border-color: #a09eb7;
  background: #252430;
}

.filter-checkbox-item input[type="checkbox"]:checked {
  border-color: #28a745;
  background-color: #28a745;
}

.filter-checkbox-item input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
  box-shadow: inset 1em 1em #fff;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-checkbox-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.filter-checkbox-item input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--secondary-color);
}

html.dark-mode .filter-checkbox-item input[type="checkbox"]:checked + span {
  color: #fff;
}

html.dark-mode .filter-heading {
  border-bottom-color: #2a2938;
}

html.dark-mode .border-left-desktop {
  border-left-color: #2a2938;
}

html.dark-mode .form-group-filter label {
  color: #a09eb7;
}

html.dark-mode .form-control-filter {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--input-text);
}

html.dark-mode .form-control-filter:disabled {
  background-color: var(--bg-body);
  color: var(--text-muted);
}

html.dark-mode .dropdown-options-list {
  background-color: var(--bg-card);
  border-color: var(--input-border);
}

html.dark-mode .dropdown-option-item {
  color: var(--text-main);
  border-bottom-color: var(--input-border);
}

html.dark-mode .dropdown-option-item:hover {
  background-color: var(--input-bg);
  color: var(--primary-color);
}

html.dark-mode .dropdown-arrow {
  color: #a09eb7;
}

@media (max-width: 768px) {
  .category-drawer {
    grid-template-columns: 1fr !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .border-left-desktop {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }

  html.dark-mode .border-left-desktop {
    border-top-color: #2a2938;
  }
}

#activeCategoryLabel {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #f1f2f6;
  border-radius: 6px;
  color: #1e1b4b;
  font-size: 0.95rem;
  display: none;
  border-left: 4px solid var(--primary-color);
}

html.dark-mode #activeCategoryLabel {
  background-color: var(--bg-card);
  color: var(--text-main) !important;
  border-left: 4px solid #2ecc71;
}

#activeCatText {
  font-weight: 700;
  color: var(--secondary-color);
}

html.dark-mode #activeCatText {
  color: #2ecc71 !important;
}

.category-section-wrapper {
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

html.dark-mode .category-section-wrapper {
  border-bottom-color: #2a2938;
}

.category-section-wrapper:last-child {
  border-bottom: none;
}

.see-more-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-category-more {
  background: 0 0;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-category-more:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
}

html.dark-mode .btn-category-more {
  border-color: #60a5fa;
  color: #60a5fa;
}

html.dark-mode .btn-category-more:hover {
  background: #60a5fa;
  color: #0f172a;
}

.pd-layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 30px;
  align-items: start;
}

.pd-main-img-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  margin-bottom: 10px;
  position: relative;
  background: #fff;
}

#pdMainImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#pdMainImg.fade-out {
  opacity: 0;
}

.pd-nav-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  transition: 0.3s;
  z-index: 5;
  display: none;
}

.pd-nav-btn.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.pd-nav-btn.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.pd-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.pd-thumb-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.pd-thumb {
  width: 60px;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
  opacity: 0.6;
  transition: 0.3s;
}

html.dark-mode .pd-thumb {
  border-color: #a09eb7;
}

.pd-thumb.active,
.pd-thumb:hover {
  opacity: 1;
  border-color: var(--primary-color);
  border-width: 2px;
}

.pd-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.3;
}

html.dark-mode .pd-title {
  color: #f1f0f5;
}

.pd-section-label {
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.pd-desc {
  white-space: pre-line;
  color: #a09eb7;
  line-height: 1.8;
  text-align: justify;
}

html.dark-mode .pd-desc {
  color: #bdc3c7;
}

.pd-sidebar-section {
  position: sticky;
  top: 90px;
}

.pd-card {
  background: var(--bg-card);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html.dark-mode .pd-card {
  background: var(--bg-card);
  border-color: var(--input-border);
}

.pd-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

html.dark-mode .pd-card-title {
  color: #f1f0f5;
}

.pd-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

html.dark-mode .pd-price {
  color: #f1f0f5;
}

.pd-marketplace-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-marketplace-grid .mp-btn {
  width: 60px;
  height: 60px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
}

.pd-marketplace-grid .mp-btn:hover {
  border-color: #28a745;
  background: #f0fff4;
}

.kept-news-img,
.kept-prod-img {
  transition: opacity 0.3s;
}

.kept-news-img:hover,
.kept-prod-img:hover {
  opacity: 0.8;
}

.hamburger {
  font-size: 1.5rem;
}

.admin-mobile-toggle {
  display: none;
  background: #1e1b4b;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 4px;
}

.tp-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.tp-overlay.active {
  display: flex;
  opacity: 1;
}

.tp-modal-box {
  background: var(--bg-card);
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: 0.3s zoomInBox;
}

html.dark-mode .tp-modal-box {
  background: var(--bg-card);
}

@keyframes zoomInBox {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tp-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}

html.dark-mode .tp-header {
  background: var(--bg-card);
  border-bottom-color: var(--input-border);
}

.tp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

html.dark-mode .tp-title {
  color: #f1f0f5;
}

.tp-close {
  font-size: 28px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}

html.dark-mode .tp-close {
  color: #aaa;
}

.tp-close:hover {
  color: var(--text-main);
}

.tp-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.tp-main-section {
  flex: 2.5;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

html.dark-mode .tp-main-section {
  background: var(--bg-card);
}

.tp-main-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#lightboxImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tp-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: #a09eb7;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 10;
}

html.dark-mode .tp-nav-btn {
  background: #2a2938;
  border-color: #a09eb7;
  color: #fff;
}

.tp-nav-btn:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

html.dark-mode .tp-nav-btn:hover {
  background: #353445;
}

.tp-nav-btn.prev {
  left: 10px;
}

.tp-nav-btn.next {
  right: 10px;
}

.tp-sidebar-section {
  flex: 1;
  border-left: 1px solid #eee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  overflow-y: auto;
}

html.dark-mode .tp-sidebar-section {
  background: var(--bg-card);
  border-left-color: var(--input-border);
}

.tp-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

html.dark-mode .tp-sidebar-title {
  color: #f1f0f5;
}

.tp-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tp-thumb-item {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.tp-thumb-item:hover {
  border-color: #ddd;
}

.tp-thumb-item.active {
  border-color: #28a745;
  opacity: 0.7;
}

html.dark-mode .tp-thumb-item:hover {
  border-color: #a09eb7;
}

.tp-counter {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

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

  .pd-sidebar-section {
    grid-column: 1/-1;
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    z-index: 900;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--bg-card);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    animation: 0.3s forwards slideDown;
    z-index: 99;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-utils {
    justify-content: center !important;
    align-items: center !important;
    gap: 15px;
    margin: 15px 0;
    width: 100%;
  }

  .nav-utils .lang-select {
    margin: 0 !important;
  }

  .lang-select {
    display: block;
    max-width: 100px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 200px;
  }

  .modal-body {
    flex-direction: column;
    gap: 20px;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .btn-shop {
    width: 100%;
  }

  .filter-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-layout {
    display: flex;
    flex-direction: column;
  }

  .pd-main-img-wrapper {
    height: 350px;
  }

  .pd-card {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .pd-card hr,
  .pd-card p,
  .pd-card-title {
    display: none;
  }

  .pd-sidebar-section {
    margin-top: 0;
  }

  .pd-price {
    font-size: 1.2rem;
    margin: 0;
  }

  .pd-marketplace-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .pd-marketplace-grid .mp-btn {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
  }

  #view-product-detail {
    padding-bottom: 100px;
  }

  .tp-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .tp-modal-box {
    height: 100vh;
    width: 100%;
    border-radius: 0;
  }

  .tp-main-section {
    flex: none;
    height: 50vh;
  }

  .tp-sidebar-section {
    flex: none;
    border-left: none;
    border-top: 1px solid #eee;
  }

  .tp-thumb-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  flex-direction: column;
  gap: 20px;
}

html.dark-mode body .loader-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: #a09eb7;
  margin: 0;
  letter-spacing: 0.5px;
  animation: 2s ease-in-out infinite breathing;
}

html.dark-mode .loading-text {
  color: #f1f0f5;
}

@keyframes breathing {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.98);
  }
}

.loading-dots::after {
  content: "";
  animation: 1.5s steps(4) infinite dotsAnimation;
  display: inline-block;
  width: 20px;
  text-align: left;
}

@keyframes dotsAnimation {
  0%,
  100% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }
}

html.dark-mode .loader {
  border-color: #a09eb7 #a09eb7 #4d43e5;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #ddd;
  border-bottom-color: #4d43e5;
  border-radius: 50%;
  animation: 1s linear infinite rotation;
}

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

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

#toast-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 450px;
  max-width: 90vw;
  background: #fff;
  padding: 20px 30px;
  margin-bottom: 15px;
  border-left: 8px solid;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  animation:
    0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) popInToast,
    0.5s 2.7s forwards fadeOut;
  overflow: hidden;
}

.toast.success {
  border-color: #2ecc71;
}

.toast.success i {
  color: #2ecc71;
}

.toast.error {
  border-color: #e74c3c;
}

.toast.error i {
  color: #e74c3c;
}

@keyframes popInToast {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

html.dark-mode .toast {
  background: #252430;
  color: #fff;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.toast i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.lang-select {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  outline: 0;
  transition: 0.3s;
  margin-left: 10px;
  font-weight: 500;
  color: #1e1b4b;
}

.lang-select:hover {
  background: #eee;
}

html.dark-mode .lang-select {
  background: #1d1c26;
  color: #fff;
  border-color: #a09eb7;
}

html.dark-mode .lang-select:hover {
  background: #2a2938;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  z-index: -9999 !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.goog-te-banner-frame {
  display: none !important;
}

font {
  background-color: transparent !important;
  box-shadow: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

.notranslate {
  -webkit-font-smoothing: antialiased;
}

.read-more-link {
  color: #03ac0e;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 0;
  transition: color 0.2s;
  text-align: left;
}

.read-more-link:hover {
  color: #028a0b;
}

html.dark-mode .read-more-link {
  color: #2ecc71;
}

html.dark-mode .read-more-link:hover {
  color: #27ae60;
}

html.dark-mode .modal-img-wrapper,
html.dark-mode .pd-main-img-wrapper,
html.dark-mode .tp-main-img-wrapper,
html.dark-mode .tp-main-section {
  background-color: transparent !important;
  border-color: transparent !important;
}

html.dark-mode #pdMainImg,
html.dark-mode img {
  background-color: transparent !important;
}

.logout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.logout-overlay.show {
  display: flex;
  opacity: 1;
}

.logout-box {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logout-overlay.show .logout-box {
  transform: scale(1);
}

.logout-icon {
  font-size: 3rem;
  display: block;
}

.logout-box h3 {
  margin: 0 0 10px;
  color: #1e1b4b;
  font-size: 1.5rem;
}

.logout-box p {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.logout-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-modal {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  font-size: 0.9rem;
}

.btn-modal-cancel {
  background: #f1f2f6;
  color: #a09eb7;
}

.btn-modal-cancel:hover {
  background: #e2e6ea;
}

.btn-modal-confirm {
  background: #e74c3c;
  color: #fff;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.btn-modal-confirm:hover {
  background: #c0392b;
}

html.dark-mode .logout-box {
  background: #1d1c26;
  border: 1px solid #2a2938;
}

html.dark-mode .logout-box h3 {
  color: #f1f0f5;
}

html.dark-mode .logout-box p {
  color: #bdc3c7;
}

html.dark-mode .btn-modal-cancel {
  background: #2a2938;
  color: #ddd;
}

html.dark-mode .btn-modal-cancel:hover {
  background: #353445;
}

.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.delete-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.delete-modal-box {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delete-modal-overlay.active .delete-modal-box {
  transform: scale(1);
}

.delete-icon-wrapper {
  background: #fceceb;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.delete-modal-box h3 {
  margin: 0 0 10px;
  color: #1e1b4b;
  font-size: 1.4rem;
  font-weight: 700;
}

.delete-modal-box p {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.delete-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-cancel-delete {
  padding: 12px 24px;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #a09eb7;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(160, 158, 183, 0.2);
  transition: 0.2s;
}

.btn-cancel-delete:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.btn-confirm-delete {
  padding: 12px 24px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
  transition: 0.2s;
}

.btn-confirm-delete:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

html.dark-mode .delete-modal-box {
  background: #1d1c26;
  border: 1px solid #2a2938;
}

html.dark-mode .delete-modal-box h3 {
  color: #f1f0f5;
}

html.dark-mode .delete-modal-box p {
  color: #bdc3c7;
}

html.dark-mode .delete-icon-wrapper {
  background: rgba(231, 76, 60, 0.2);
}

html.dark-mode .btn-cancel-delete {
  background: #2a2938;
  border-color: #a09eb7;
  color: #a09eb7;
}

html.dark-mode .btn-cancel-delete:hover {
  background: #353445;
  transform: translateY(-2px);
}

.view-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(2px);
  z-index: 2;
  pointer-events: none;
}

.top-view-section {
  background: linear-gradient(to right, #fff, #f9f9f9);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

html.dark-mode .top-view-section {
  background: linear-gradient(to right, #1d1c26, #1d1c26);
  border-color: #2a2938;
}

.top-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #e67e22;
}

.top-view-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #e67e22 !important;
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

html.dark-mode .success-overlay {
  background-color: rgba(26, 26, 26, 0.98);
}

.success-overlay.active {
  opacity: 1;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #2ecc71;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0 0 0 #2ecc71;
  animation:
    0.4s ease-in-out 0.4s forwards fill,
    0.3s ease-in-out 0.9s both scale;
}

.checkmark-circle circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #2ecc71;
  fill: none;
  animation: 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards stroke;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards stroke;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0 0 0 30px transparent;
  }
}

.success-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2ecc71;
  margin-top: -20px;
  animation: 0.5s 1s forwards fadeInUp;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#galleryModal #modalGalDesc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: 6.4em;
  white-space: normal !important;
  margin-bottom: 10px !important;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

#catalog-top-products,
#full-products,
#home-products,
#home-top-products,
.category-section-wrapper .grid-container {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
  gap: 15px !important;
}

.product-card .product-info {
  padding: 12px !important;
}

.product-card h3 {
  font-size: 0.95rem !important;
}

.product-card .product-price {
  font-size: 1rem !important;
}

#home-top-view-section {
  background: linear-gradient(to right, #fff, #f9f9f9);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  display: block;
}

#home-top-view-section .top-view-header {
  margin-bottom: 20px;
  padding-left: 5px;
}

html.dark-mode #home-top-view-section {
  background: linear-gradient(to right, #1d1c26, #1d1c26);
  border-color: #2a2938;
}

@media (min-width: 1024px) {
  #full-gallery,
  #home-products {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }
}

#home-top-view-section hr {
  display: none !important;
}

.gallery-slide-item {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

html.dark-mode .gallery-slide-item {
  border-color: #2a2938;
}

.gallery-slide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  #catalog-top-products,
  #full-products,
  #home-products,
  #home-top-products,
  .category-section-wrapper .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .gallery-slide-item {
    min-width: 280px;
  }
}

#full-gallery {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 15px !important;
}

#full-gallery .gallery-card {
  min-height: 280px;
}

#full-gallery .gallery-info {
  padding: 10px 12px !important;
}

#full-gallery .gallery-info h3 {
  font-size: 0.9rem !important;
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#full-gallery .gallery-info small {
  font-size: 0.75rem !important;
  margin-bottom: 2px !important;
}

#full-gallery .gallery-desc-preview {
  font-size: 0.8rem !important;
  margin-top: 5px;
  line-height: 1.4;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2;
}

#full-gallery .gallery-info p:last-child {
  font-size: 0.8rem !important;
  margin-top: 8px !important;
}

@media (max-width: 768px) {
  #full-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

#galleryModal .modal-img-wrapper,
#galleryModal .video-wrapper {
  background-color: #000 !important;
  border: none !important;
  overflow: hidden;
  position: relative;
}

#modalVideo {
  background-color: #000 !important;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-card .video-wrapper img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.dashboard-table-container {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.limit-select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: var(--input-bg);
  color: var(--text-main);
  cursor: pointer;
  width: auto !important;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.custom-table td,
.custom-table th {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

html.dark-mode .custom-table td,
html.dark-mode .custom-table th {
  border-bottom: 1px solid #2a2938;
}

.custom-table th {
  background-color: #f8f9fa;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.custom-table tr:hover {
  background-color: #f1f2f6;
}

html.dark-mode .dashboard-table-container {
  border-color: #2a2938;
}

html.dark-mode .custom-table th {
  background-color: #252430;
  color: #f1f0f5;
  border-bottom-color: #2a2938;
}

html.dark-mode .custom-table td {
  border-bottom-color: #2a2938;
  color: #bdc3c7;
}

html.dark-mode .modal-desc-box {
  background-color: #1d1c26 !important;
  border-color: #2a2938 !important;
}

html.dark-mode .limit-select {
  background-color: #252430;
  border-color: #a09eb7;
  color: #fff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.menu-item-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
  font-weight: 600;
  color: #fff;
}

.menu-item-parent:hover {
  background-color: #2a2938;
}

.menu-item-parent.active-parent {
  background-color: rgba(77, 67, 229, 0.15);
  border-left: 4px solid var(--primary-color);
}

.menu-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.menu-item-parent.open .menu-arrow {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  padding: 0;
  background-color: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.submenu.show {
  max-height: 200px;
}

.submenu li {
  padding: 10px 15px !important;
  margin: 2px 15px 2px 35px;
  border-radius: 8px;
  font-size: 0.9rem;
  border-bottom: none !important;
  color: #a09eb7;
}

.submenu li:hover {
  color: #fff;
  background-color: rgba(77, 67, 229, 0.2);
  transition: 0.2s;
}

.submenu li.active {
  color: #fff;
  background-color: rgba(77, 67, 229, 0.25);
  font-weight: 600;
}

html.dark-mode .submenu {
  background-color: transparent;
}

.top-product-row {
  background-color: rgba(46, 204, 113, 0.1);
}

.admin-dashboard-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 0;
  padding-bottom: 10px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: 0 0;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

.admin-tab-btn.active {
  background-color: #4d43e5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

html.dark-mode .admin-tab-btn {
  color: #bdc3c7;
}

html.dark-mode .admin-tab-btn.active {
  color: #fff;
}

.admin-tab-btn:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

html.dark-mode .admin-tab-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .top-product-row {
  background-color: #1e3a29 !important;
  color: #f1f0f5;
}

html.dark-mode .custom-table tr:hover {
  background-color: #1e1b4b !important;
}

.btn-detail-blue {
  background-color: #4d43e5;
  color: #fff;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.btn-detail-blue:hover {
  background-color: #3a33bc;
}

html.dark-mode #currentDrillDownTitle {
  color: #f1f0f5 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html.dark-mode .filter-monitoring-bar h3 {
  color: #f1f0f5 !important;
}

html.dark-mode .dashboard-toolbar span,
html.dark-mode .limit-wrapper label {
  color: #bdc3c7 !important;
}

html.dark-mode #detailSatkerName {
  color: #f1f0f5 !important;
  border-bottom-color: #2a2938 !important;
}

html.dark-mode .feed-desc,
html.dark-mode .pagination-info,
html.dark-mode div[style*="color:#888"],
html.dark-mode td[style*="color: #777"],
html.dark-mode td[style*="color: #7f8c8d"],
html.dark-mode td[style*="color: #999"],
html.dark-mode td[style*="color:#7f8c8d"] {
  color: #bdc3c7 !important;
}

html.dark-mode .form-control-filter,
html.dark-mode .search-mon-input {
  background-color: #252430 !important;
  color: #fff !important;
  border-color: #353445 !important;
}

html.dark-mode .form-control-filter::placeholder,
html.dark-mode .search-mon-input::placeholder {
  color: #aaa !important;
}

html.dark-mode #pageTitle,
html.dark-mode .search-icon-mon {
  color: #f1f0f5 !important;
}

html.dark-mode header p {
  color: #bdc3c7 !important;
}

.action-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.btn-table-action {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition:
    background-color 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-table-action:hover {
  transform: translateY(-2px);
}

.btn-blue {
  background-color: var(--primary-color);
}

.btn-blue:hover {
  background-color: #3a33bc;
}

.btn-red {
  background-color: #e74c3c;
}

.btn-red:hover {
  background-color: #c0392b;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 10px;
}

.btn-pagination {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-pagination:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.btn-pagination:not(:disabled):hover {
  background-color: #3d35b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(77, 67, 229, 0.3);
}

.pagination-info {
  font-size: 0.95rem;
  color: #a09eb7;
  font-weight: 600;
}

html.dark-mode .pagination-info {
  color: #bdc3c7;
}

html.dark-mode .btn-pagination:disabled {
  background-color: #2a2938;
  color: #888;
}

.category-section-wrapper .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 15px !important;
}

@media (min-width: 1024px) {
  .category-section-wrapper .grid-container {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
  }
}

.admin-comment-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.comment-author {
  color: #1e1b4b;
  font-weight: 700;
}

.comment-date {
  color: #7f8c8d;
  font-size: 0.8rem;
}

.comment-body {
  margin-top: 5px;
  color: #a09eb7;
}

html.dark-mode .admin-comment-item {
  background-color: #252430 !important;
  border-color: #2a2938 !important;
}

html.dark-mode .comment-author {
  color: #f1f0f5 !important;
}

html.dark-mode .comment-date {
  color: #bdc3c7 !important;
}

html.dark-mode .comment-body {
  color: #f1f0f5 !important;
}

html.dark-mode .monitoring-modal-content {
  background-color: #1d1c26;
  color: #fff;
}

html.dark-mode .monitoring-modal-header h2 {
  color: #fff !important;
}

.acc-modal-input {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  transition: 0.3s;
}

html.dark-mode .acc-modal-input {
  background-color: #2a2938 !important;
  color: #fff !important;
  border-color: #353445 !important;
}

html.dark-mode .acc-modal-input:disabled,
html.dark-mode .acc-modal-input[readonly] {
  background-color: #2a2938 !important;
  color: #aaa !important;
}

html.dark-mode .acc-modal-input option {
  background-color: #2a2938;
  color: #fff;
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px 40px;
    margin-top: 15px !important;
  }

  .hero {
    padding: 60px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
  }

  .hero h1 {
    font-size: var(--fs-hero-title);
    margin-bottom: 10px;
  }

  .hero p {
    font-size: var(--fs-hero-subtitle);
  }

  .section-title {
    font-size: var(--fs-section-title);
    margin-bottom: 25px;
  }

  .grid-container,
  .list-container {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .gallery-card,
  .product-card {
    border-radius: 10px;
  }

  .gallery-info,
  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: var(--fs-card-title);
  }

  .btn-back,
  .btn-login,
  .btn-save,
  .btn-see-more {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .modal-content {
    width: 98% !important;
    max-height: 95vh;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    margin: auto 0 0;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .filter-container {
    padding: 10px;
  }

  .filter-top-bar {
    gap: 10px;
  }

  .btn-filter-toggle {
    width: 100%;
    justify-content: center;
  }

  .search-wrapper input {
    font-size: 16px;
  }

  .page-header {
    padding: 25px 15px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .news-item {
    border-radius: 10px;
  }

  .news-thumb {
    height: 180px;
  }

  .news-content {
    padding: 15px;
  }

  .pd-price,
  .pd-title {
    font-size: 1.4rem;
  }

  .pd-main-img-wrapper {
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .dashboard-table-container,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  .custom-table td,
  .custom-table th {
    padding: 10px 8px;
  }

  .filter-monitoring-bar {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .searchable-dropdown {
    width: 100%;
  }

  .pagination-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-pagination {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px 30px;
  }

  .footer-bottom {
    padding: 15px;
    font-size: 0.8rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .container {
    padding: 0 20px 50px;
  }

  .hero {
    padding: 80px 20px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  #full-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .modal-content {
    width: 95%;
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 30px 60px;
    max-width: 100%;
  }

  .hero {
    padding: 100px 40px;
    margin-bottom: 35px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 500px;
  }

  .navbar {
    padding: 12px 25px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }

  #full-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  .category-section-wrapper .grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .pd-layout {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .pd-sidebar-section {
    grid-column: 1/-1;
    position: static;
  }

  .pd-card {
    position: static;
    width: 100%;
    border-radius: 12px;
  }

  .modal-content {
    width: 85%;
    max-width: 700px;
    padding: 30px;
  }

  .tp-sidebar-section {
    display: none;
  }

  .tp-main-section {
    flex: 1;
  }

  .sidebar {
    left: -260px;
    z-index: 10002;
  }

  .sidebar.active {
    left: 0;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 25px;
  }

  .admin-mobile-toggle {
    display: inline-block;
  }

  .mobile-close-btn {
    display: block;
  }

  .filter-monitoring-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .searchable-dropdown {
    width: 220px;
  }

  .dashboard-table-container,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table {
    min-width: 700px;
  }

  .news-item {
    flex-direction: row;
  }

  .news-thumb {
    width: 200px;
    height: 150px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
    padding: 0 30px 60px;
  }

  .grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }

  #full-gallery,
  .category-section-wrapper .grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pd-layout {
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
  }

  .sidebar {
    left: 0;
    width: 220px;
  }

  .content {
    margin-left: 220px;
    width: calc(100% - 220px);
    padding: 25px;
  }

  .admin-mobile-toggle {
    display: none;
  }

  .tp-modal-box {
    max-width: 900px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-back,
  .btn-detail,
  .btn-filter-toggle,
  .btn-login,
  .btn-pagination,
  .btn-save,
  .btn-see-more,
  .btn-table-action,
  .nav-links a {
    min-height: 44px;
    min-width: 44px;
  }

  .gallery-card:hover,
  .product-card:hover {
    transform: none;
  }

  .gallery-card,
  .product-card {
    -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
  }

  .sidebar li {
    padding: 18px 15px;
  }

  .submenu li {
    padding: 15px 15px 15px 35px !important;
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-width: 22px;
    min-height: 22px;
  }

  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .pd-card {
    position: static;
    width: 100%;
  }
}

.hamburger {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media print {
  .btn-filter-toggle,
  .hamburger,
  .modal-overlay,
  .navbar,
  .pagination-container,
  .sidebar {
    display: none !important;
  }

  .content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 767px) {
  html body #catalog-top-products,
  html body #full-products,
  html body #home-products,
  html body #home-top-products,
  html body .category-section-wrapper .grid-container,
  html body .grid-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
  }

  html body .product-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .pd-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .pd-sidebar-section {
    width: 100%;
    position: static;
  }

  .pd-main-img-wrapper {
    height: auto;
    aspect-ratio: 1/1;
  }

  .logo {
    font-size: 1.5rem;
  }

  .navbar {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  body,
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  div,
  p,
  span {
    font-size: 0.95rem;
  }

  .container {
    padding: 10px !important;
    width: 100% !important;
  }

  .content {
    padding: 10px !important;
  }

  .section-wrapper {
    padding: 15px !important;
    margin-bottom: 15px !important;
    border-radius: 8px !important;
  }

  html body #catalog-top-products,
  html body #full-products,
  html body #home-products,
  html body #home-top-products,
  html body .category-section-wrapper .grid-container,
  html body .grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .card,
  .product-card {
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .card img,
  .product-card .img-container img {
    height: 120px !important;
  }

  .product-price {
    font-size: 0.95rem !important;
  }

  .hero {
    padding: 20px 15px !important;
    min-height: auto !important;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem !important;
    margin-bottom: 5px !important;
  }

  .hero p {
    font-size: 0.9rem !important;
  }

  .stat-card {
    padding: 15px !important;
    margin-bottom: 10px !important;
  }

  .stat-value {
    font-size: 1.5rem !important;
  }

  .stat-grid,
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .filter-container {
    padding: 10px !important;
  }

  .modal-content {
    width: 95% !important;
    padding: 15px !important;
  }

  .btn,
  .btn-primary,
  .btn-save,
  button {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
  }
}

.logout-icon {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.logout-icon svg {
  width: 64px;
  height: 64px;
  stroke: #e74c3c;
  display: block;
}

.btn-sidebar-back,
.mobile-close-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  transition: 0.2s;
  cursor: pointer;
}

.btn-sidebar-back:hover,
.mobile-close-btn:hover {
  background: #e74c3c;
  color: #fff;
  transform: scale(1.1);
}

.btn-sidebar-back:hover svg,
.mobile-close-btn:hover svg {
  stroke: white;
}

.btn-sidebar-back svg,
.mobile-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: #e74c3c;
  transition: stroke 0.2s;
}

.btn-sidebar-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sidebar-back svg {
  stroke: white;
}

.btn-sidebar-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: 20px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 43, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero.has-slider::before {
  display: none;
}
