:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #0f4c81;
  --brand-2: #0ea5e9;
  --accent: #e4000f;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --container: 1200px;
  --header-height: 124px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  width: 100%;
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.muted {
  color: var(--muted);
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.flex-auto {
  flex: 1 1 100%;
}

.surface-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-0 {
  padding: 0;
}

.mr-5 {
  margin-right: 1.25rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.is-hidden {
  display: none;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.border-left-2 {
  border-left: 2px solid transparent;
}

.text-900 {
  color: var(--text);
}

.text-600 {
  color: var(--muted);
}

.font-medium {
  font-weight: 500;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.35;
}

.text-4xl {
  font-size: 2.25rem;
}

.line-height-3 {
  line-height: 1.5;
}

.greenColor {
  color: #16a34a;
}

.lightBlueColor {
  color: #0ea5e9;
}

.pinkColor {
  color: #ec4899;
}

.blueColor {
  color: #3b82f6;
}

.greenBorderColor {
  border-color: #16a34a;
}

.lightBlueBorderColor {
  border-color: #0ea5e9;
}

.pinkBorderColor {
  border-color: #ec4899;
}

.blueBorderColor {
  border-color: #3b82f6;
}


.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-dark {
  background: var(--text);
  color: #ffffff;
  border-color: transparent;
}

.btn-brand {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
}

.badge {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.stock-status.stock-status--in::before {
     background: #16a34a;
}

.stock-status.stock-status--out::before {
     background: #dc2626;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 200;
  background: var(--surface);
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
  width: min(420px, 100%);
  border-radius: 999px;
  overflow: visible;
}

.topbar-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 7px 12px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.topbar-search input::placeholder {
  color: var(--muted);
}

.topbar-search button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
}

.topbar-search button:hover {
  background: #f3f4f6;
}

.topbar .topbar-search {
  grid-column: 2;
  justify-self: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar .topbar-search input {
  color: #ffffff;
}

.topbar .topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.topbar .topbar-search button {
  color: #ffffff;
}

.topbar .topbar-search button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topbar-search-results {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  z-index: 450;
}

.topbar-search-results[hidden] {
  display: none;
}

.topbar-search-group-title {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px 6px;
  font-weight: 700;
}

.topbar-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  color: var(--text);
}

.topbar-search-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.topbar-search-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.topbar-search-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-search-item:hover {
  background: #f8fafc;
}

.topbar-search-meta {
  color: var(--muted);
  font-size: 12px;
}

.topbar-search-price {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-search-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-auth {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar a {
  color: #ffffff;
  font-weight: 600;
}

.cookie-options {
  gap: 16px;
  flex-wrap: wrap;
}

.topbar .btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 13px;
  box-shadow: none;
  transform: none;
}

.topbar .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transform: none;
}

.topbar .muted {
  color: #e5e7eb;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  min-height: 80px;
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.logo {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
}

.nav-parent .nav-link i {
  font-size: 14px;
}

.nav-parent .nav-link .pi-angle-down {
  font-size: 12px;
}

.nav-label {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  cursor: pointer;
}

.nav-toggle .nav-icon-close {
  display: none;
}

body.nav-open .nav-toggle .nav-icon-open {
  display: none;
}

body.nav-open .nav-toggle .nav-icon-close {
  display: inline-block;
}

.nav-link:hover {
  color: var(--text);
  background: #f3f4f6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  min-width: 260px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  display: none;
  list-style: none;
  margin: 1px 0 0;
}

.dropdown-group {
  display: block;
  position: relative;
  list-style: none;
}

.dropdown-link,
.dropdown-child {
  display: block;
  border-radius: 10px;
}

.dropdown-link {
  padding: 10px 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dropdown-link i {
  font-size: 12px;
}

.dropdown-child {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
}

.dropdown-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  min-width: 260px;
  max-height: 360px;
  overflow: auto;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  display: none;
  list-style: none;
  margin: 0;
}

.dropdown-group.has-children:hover .dropdown-submenu {
  display: block;
}

.dropdown-link:hover,
.dropdown-child:hover {
  background: #f3f4f6;
  color: var(--text);
}

.dropdown-group.has-children:hover > .dropdown-link,
.dropdown-group.has-children:focus-within > .dropdown-link {
  background: #f3f4f6;
}

.dropdown-menu {
  max-height: 380px;
  overflow: auto;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-actions .topbar-search {
  min-width: 220px;
  width: min(320px, 100%);
  border: 1px solid var(--border);
  background: #ffffff;
}

.mobile-nav-search {
  display: none;
}

.nav-overlay {
  display: none;
}

.nav-drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nav-drawer-close {
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-drawer-close:hover,
.filter-panel-close:hover {
  background: #f3f4f6;
}

.navbar .btn {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.navbar .btn:hover {
  background: #f3f4f6;
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.cart-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.mega-menu {
  min-width: 720px;
  display: none;
  grid-template-columns: 240px 1fr;
  gap: 12px;
}

.nav-item:hover .mega-menu {
  display: grid;
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--border);
}

.mega-main-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}

.mega-item .pi-angle-right {
  font-size: 12px;
}

.mega-link {
  font-weight: 600;
}

.mega-item.is-active,
.mega-item:hover {
  background: #f3f4f6;
  color: var(--text);
}

.mega-panel {
  padding: 4px 8px;
}

.mega-sub-scroll {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.mega-back {
  display: none;
}

.mega-panel-item {
  display: none;
}

.mega-panel-item.is-active {
  display: block;
}

.mega-panel-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.mega-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px 16px;
}

.mega-child {
  padding: 6px 8px;
  border-radius: 8px;
}

.mega-child:hover {
  background: #f3f4f6;
}

.mega-empty {
  color: var(--muted);
  font-size: 14px;
}

.category-body {
  width: 100%;
}

.cart-pill {
  background: var(--brand);
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.mobile-cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 360;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cart-fab .pi {
  font-size: 16px;
}

.mobile-cart-fab-label {
  font-size: 13px;
  font-weight: 700;
}

.mobile-cart-fab .cart-pill {
  background: #ffffff;
  color: var(--brand);
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.mobile-cart-fab-total {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb .container a {
  color: var(--muted);
}

.breadcrumb .container a:hover {
  color: var(--text);
}

.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb-separator {
  font-size: 11px;
  color: #9ca3af;
}

.breadcrumb-current {
  color: #374151;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.btn-sort {
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  gap: 6px;
}

.sort-control {
  position: relative;
  margin-left: auto;
}

.sort-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  z-index: 30;
  padding: 6px;
}

.sort-menu.is-open {
  display: block;
}

.sort-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.sort-menu-item:hover {
  background: #f3f4f6;
}

.category-count {
  text-align: center;
  margin: 0;
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
}

.category-toolbar .category-count {
  text-align: left;
}

.btn-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.subcategory-grid.is-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.subcategory-grid.is-slider::-webkit-scrollbar {
  display: none;
}

.subcategory-grid.is-slider .subcategory-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
}

.subcategory-carousel {
  position: relative;
}

.subcategory-carousel.is-active {
  padding: 0 44px 24px;
}

.subcategory-arrow {
  display: none;
  position: absolute;
  top: calc((100% - 24px) / 2);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.subcategory-arrow:hover {
  background: #f3f4f6;
}

.subcategory-arrow-prev {
  left: 0;
}

.subcategory-arrow-next {
  right: 0;
}

.subcategory-carousel.is-active .subcategory-arrow {
  display: inline-flex;
}

.subcategory-carousel.is-active:not(.is-scrollable) .subcategory-arrow,
.subcategory-carousel.is-active:not(.is-scrollable) .subcategory-indicators {
  display: none;
}

.subcategory-carousel.is-active:not(.is-scrollable) .subcategory-grid.is-slider {
  justify-content: center;
  overflow-x: hidden;
  scroll-snap-type: none;
}

.subcategory-indicators {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  gap: 6px;
}

.subcategory-carousel.is-active .subcategory-indicators {
  display: inline-flex;
}

.subcategory-indicator {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.subcategory-indicator.is-active {
  color: var(--text);
}

.subcategory-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.subcategory-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.subcategory-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.subcategory-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero {
  padding: 24px 0 10px;
}

.slider {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.category-grid,
.product-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-layout .product-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 48px 28px;
}

.product-carousel-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.product-carousel-grid::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

.carousel-arrow:hover {
  background: #f3f4f6;
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
}

.carousel-indicator {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.carousel-indicator.is-active {
  color: var(--text);
}

.product-carousel-grid > .product-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 36px) / 3);
}

.filter-panel .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-panel .form-grid input {
  padding: 8px 10px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .md\:col-6 {
    flex: 1 1 50%;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .xl\:col-3 {
    flex: 1 1 25%;
  }

  .xl\:border-left-none {
    border-left: none;
  }

  .xl\:border-top-2 {
    border-top: 2px solid transparent;
  }
}

@media (max-width: 768px) {
  .product-carousel {
    padding: 0 42px 28px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    top: calc(50% - 14px);
  }

  .carousel-arrow-prev {
    left: 2px;
  }

  .carousel-arrow-next {
    right: 2px;
  }

  .product-carousel-grid {
    gap: 14px;
    padding: 0 6px 6px;
  }

  .product-carousel-grid > .product-card {
    flex-basis: 100%;
  }
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card,
.product-card,
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card.is-clickable {
  cursor: pointer;
}

.product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}

.product-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.product-desc {
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
}

.category-card img {
    border-radius: 14px;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.category-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.product-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  margin-top: auto;
}

.product-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.product-actions .btn-brand {
  width: 100%;
  justify-content: center;
}

.product-action-btn {
  min-height: 42px;
  width: 100%;
  justify-content: center;
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.feature-icon {
  font-size: 30px;
}

.site-footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 8px 0;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111827;
  color: #ffffff;
  padding: 16px 0;
  z-index: 300;
}

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  pointer-events: none;
}

.toast-message {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox input {
  accent-color: var(--brand);
}

.page {
  min-height: 60vh;
  padding: 40px 0 60px;
}

.notfound-page {
  display: flex;
  align-items: center;
}

.notfound-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 38px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 45%),
    radial-gradient(circle at bottom left, rgba(15, 76, 129, 0.08), transparent 40%),
    #fff;
}

.notfound-code {
  margin: 0 0 10px;
  font-size: clamp(54px, 9vw, 92px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.notfound-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.notfound-card .muted {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .notfound-card {
    padding: 28px 18px;
  }

  .notfound-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.checkout-form {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.checkout-block h2,
.checkout-summary h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.checkout-field {
  grid-column: 1 / -1;
}

.checkout-field.is-half {
  grid-column: span 6;
}

.checkout-float {
  display: block;
  position: relative;
}

.checkout-float input,
.checkout-float textarea {
  width: 100%;
  padding: 16px 12px 10px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.checkout-float textarea {
  min-height: 90px;
  resize: vertical;
}

.checkout-float label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  background: #fff;
  padding: 0 4px;
}

.checkout-float textarea + label {
  top: 18px;
  transform: none;
}

.checkout-float input:focus,
.checkout-float textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
  outline: none;
}

.checkout-float input:focus + label,
.checkout-float input:not(:placeholder-shown) + label,
.checkout-float textarea:focus + label,
.checkout-float textarea:not(:placeholder-shown) + label {
  top: -8px;
  transform: none;
  font-size: 11px;
  color: #2563eb;
}

.checkout-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.checkout-inline-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #374151;
}

.checkout-inline-option input {
  accent-color: #2563eb;
}

.checkout-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.checkout-form-actions .btn {
  min-width: 170px;
  justify-content: center;
}

.checkout-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
}

.checkout-loading-overlay.is-hidden {
  display: none;
}

.checkout-loading-box {
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.checkout-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  animation: checkout-spin 0.8s linear infinite;
}

.checkout-loading-text {
  font-weight: 600;
  color: #1f2937;
}

.submit-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  display: none;
  animation: checkout-spin 0.8s linear infinite;
}

.js-submit-order.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.js-submit-order.is-loading .submit-btn-label {
  opacity: 0.9;
}

.js-submit-order.is-loading .submit-btn-spinner {
  display: inline-block;
}

.js-submit-order.is-validation-disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  color: #f8fafc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.js-submit-order.is-validation-disabled:hover {
  background: #94a3b8;
  border-color: #94a3b8;
  box-shadow: none;
  transform: none;
}

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

.checkout-summary {
  position: sticky;
  top: 108px;
  background: #f8fafc;
  border-color: #dbe4ef;
  padding: 20px;
}

.checkout-items {
  display: grid;
  gap: 8px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e3e8ef;
  padding: 10px 0;
}

.checkout-item-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}

.checkout-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.checkout-item-main strong {
  font-size: 14px;
}

.checkout-item-price {
  color: var(--muted);
  font-size: 13px;
}

.checkout-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.checkout-item-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.checkout-item-qty-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.checkout-item-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.checkout-item-total {
  font-size: 13px;
  margin-left: auto;
}

.checkout-item-remove {
  border: 0;
  background: transparent;
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
}

.checkout-item-remove:hover {
  background: #fee2e2;
}

.checkout-totals {
  margin-top: 14px;
  border-top: 1px solid #dbe4ef;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-total-row.is-grand {
  padding-top: 8px;
  border-top: 1px solid #dbe4ef;
  font-size: 17px;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-card i {
  font-size: 20px;
  color: var(--brand);
}

.category-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.filter-panel-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.filter-panel-close {
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.filter-drawer-overlay {
  display: none;
}

.filter-group {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-group h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-group h4::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-left: 10px;
}

.filter-group.is-collapsed h4 {
  margin-bottom: 0;
}

.filter-group.is-collapsed h4::after {
  transform: rotate(-45deg);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.filter-group-body {
  overflow: visible;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.28s ease, opacity 0.24s ease, transform 0.24s ease;
}

.filter-group.is-collapsed .filter-group-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.filter-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  margin-bottom:2px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
}

.pagination a,
.pagination span,
.pagination button {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.pagination a,
.pagination button {
  cursor: pointer;
}

.pagination a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.pagination .pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.pagination .is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
  gap: 24px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: start;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.thumbnail-list img {
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumbnail-list img.active {
  border-color: var(--brand);
}

/*.product-main-preview {
    min-height: 0;
    padding: 14px;
}

    .product-main-preview .js-product-main {
        width: 100%;
        max-height: none;
    }*/

.product-main-preview {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.product-main-preview .js-product-main {
  width: 100%;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 10px;
}

.product-tabs {
  margin-top: 24px;
}

.tab-buttons {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tab-buttons button {
  border: none;
  background: transparent;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  color: var(--muted);
}

.tab-buttons button.active {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-control button {
  border: none;
  background: #f8fafc;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
}

.quantity-control input {
  width: 44px;
  text-align: center;
  border: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.contact-info-item {
  margin-bottom: 10px;
}

.contact-form-float {
  gap: 12px;
}

.contact-form-float .checkout-float label {
  margin: 0;
  font-weight: 500;
}

.contact-form-float .checkout-float input,
.contact-form-float .checkout-float textarea {
  border-radius: 6px;
}

.contact-form-float .btn {
  padding: 7px 12px;
  font-size: 13px;
  width: auto;
  justify-self: start;
}

.contact-hero {
  border-radius: var(--radius);
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.4)), url("../images/contact/location.png") center/cover no-repeat;
  min-height: 320px;
}

.contact-hero .chip {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: transparent;
}

.auth-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.auth-card h1 {
  margin: 0 0 6px;
}

.auth-card p {
  margin-top: 0;
}

.validation-summary-error {
  color: #b91c1c;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.float-field {
  position: relative;
}

.float-field input,
.float-field textarea,
.float-field select {
  padding: 16px 12px 10px;
}

.float-field > label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  background: #fff;
  padding: 0 4px;
  margin: 0;
  font-weight: 500;
}

.float-field textarea + label {
  top: 18px;
  transform: none;
}

.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label,
.float-field textarea:focus + label,
.float-field textarea:not(:placeholder-shown) + label,
.float-field select:focus + label,
.float-field select:not([value=""]) + label {
  top: -8px;
  transform: none;
  font-size: 11px;
  color: #2563eb;
}

.float-field.is-password input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f1f5f9;
}

.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.profile-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.profile-nav button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}

.profile-nav button.active {
  background: var(--brand);
  color: #ffffff;
}

.profile-nav a {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}

.profile-nav a.active {
  background: var(--brand);
  color: #ffffff;
}

.profile-section + .profile-section {
  margin-top: 8px;
}

.profile-section h2,
.profile-security h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fafcff;
}

.address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.address-head strong {
  font-size: 14px;
}

.profile-security {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.profile-btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  width: auto;
  justify-self: start;
}

.btn.btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.btn.btn-danger:hover {
  background: #fee2e2;
  box-shadow: none;
  transform: none;
}

.order-history-list {
  display: grid;
  gap: 10px;
}

.order-history-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafcff;
  padding: 12px;
}

.order-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.order-history-meta {
  font-size: 13px;
  color: var(--muted);
}

.order-history-toggle {
  margin-top: 8px;
  padding: 6px 11px;
  font-size: 12px;
}

.about-us-image {
  border-radius: 14px;
}

.info-grid {
  margin-top: 20px;
}

.cart-summary {
  margin-top: 20px;
}

.product-meta-chips {
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.product-order-form {
  margin-top: 16px;
}

.footer-social {
  gap: 10px;
  margin-top: 16px;
}

.footer-contact-phone {
  margin-top: 12px;
}

.order-history-items {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
  border-top: 1px dashed var(--border);
  padding-top: 0;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease, padding-top 0.2s ease;
}

.order-history-items.is-open {
  margin-top: 10px;
  padding-top: 10px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.order-history-product {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 60px 120px 140px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 140px;
  }

  .navbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 6px;
    font-size: 22px;
    position: relative;
    z-index: 450;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 300;
    padding: 20px 18px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    overflow-y: auto;
  }

  .nav-drawer-head {
    display: flex;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-toggle .nav-icon {
    line-height: 1;
  }

  body.nav-open .nav-drawer {
    transform: translateX(0);
  }

  body.nav-open .nav-toggle {
    display: none;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 250;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-drawer .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
  }

  .nav-drawer .nav-actions .topbar-search {
    display: none;
  }

  .nav-drawer .nav-item,
  .nav-drawer .mega-item {
    width: 100%;
  }

  .nav-drawer .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .nav-parent > .nav-link .pi-bars,
  .nav-parent > .nav-link .pi-angle-down {
    display: none;
  }

  .nav-drawer .cart-info {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-drawer .cart-info .js-cart-total {
    margin-left: auto;
  }

  .navbar .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 0;
    min-width: 0;
    display: none;
    max-height: none;
    overflow: visible;
    margin: 0;
  }

  .navbar .mega-menu {
    display: none;
    grid-template-columns: 1fr;
    padding: 0;
  }

  body.nav-open .navbar .dropdown-menu {
    display: none;
  }

  body.nav-open .navbar .nav-parent.is-open .dropdown-menu {
    display: block;
  }

  body.nav-open .navbar .nav-parent.is-open .mega-menu {
    display: block;
  }

  .navbar .dropdown-submenu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 6px 0 0 14px;
    min-width: 0;
    display: none;
    max-height: none;
    overflow: visible;
  }

  #proizvodi-menu {
    min-width: 0;
  }

  .mega-list {
    border-right: none;
  }

  .mega-main-scroll,
  .mega-sub-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .mega-panel {
    padding: 0;
  }

  .mega-menu .mega-panel {
    display: none;
  }

  .mega-menu.has-active .mega-list {
    display: none;
  }

  .mega-menu.has-active .mega-panel {
    display: block;
  }

  .mega-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
  }

  .mega-subgrid {
    grid-template-columns: 1fr;
  }

  .navbar .dropdown-group.is-open .dropdown-submenu {
    display: block;
  }

  body.nav-open .navbar .dropdown-menu {
    display: block;
  }

  .nav-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .mobile-nav-search {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: 1px solid var(--border);
    background: #ffffff;
  }

  .nav-toggle {
    margin-left: 0;
  }

  .cookie-consent .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }

  .slide img {
    height: 280px;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .subcategory-carousel.is-active {
    padding: 0 34px 24px;
  }

  .subcategory-arrow {
    width: 30px;
    height: 30px;
  }

  .category-toolbar {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
  }

  .category-toolbar .category-count {
    flex: 1 1 100%;
    text-align: left;
  }

  .category-layout .product-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .btn-filter-toggle {
    display: inline-flex;
    order: 1;
  }

  .category-toolbar > form {
    order: 2;
    margin-left: auto;
  }

  .sort-control {
    order: 2;
    margin-left: 0;
  }

  .filter-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 250;
    border: 0;
    padding: 0;
  }

  .filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 88vw);
    border-radius: 0;
    border-right: 0;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 16px 14px 24px;
  }

  .filter-panel-head {
    display: flex;
  }

  .filter-drawer-open .filter-panel {
    transform: translateX(0);
  }

  .filter-drawer-open .filter-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-drawer-open {
    overflow: hidden;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .thumbnail-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-list img {
    width: 68px;
    min-width: 68px;
    height: 68px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-columns {
    grid-template-columns: 1fr;
  }

  .profile-section-head {
    flex-wrap: wrap;
  }

  .order-history-product {
    grid-template-columns: 1fr 60px 1fr;
  }

  .mobile-cart-fab {
    display: inline-flex;
  }

  .cookie-banner-visible .mobile-cart-fab {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
}

.site-header {
  z-index: 400;
}

.nav-overlay {
  z-index: 300;
}

.nav-drawer {
  z-index: 320;
}

@media (max-width: 768px) {
  :root {
    --header-height: 150px;
  }

  .container {
    padding: 0 16px;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    height: 34px;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    row-gap: 8px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .section {
    padding: 32px 0;
  }

  .category-header {
    flex-direction: column;
    gap: 10px;
  }

  .btn-sort {
    position: static;
  }

  /* .section-title {
    font-size: 26px;
  } */

  .slide img {
    height: 700px;
  }

  .slider,
  .slide picture,
  .slide img {
    border-radius: 0;
    box-shadow: none;
  }

  .feature-card {
    align-items: flex-start;
  }

  .cookie-consent .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .table {
    display: block;
    overflow-x: auto;
  }

  .site-footer .footer-grid {
    text-align: center;
  }

  .site-footer .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer .logo {
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .topbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar .topbar-search {
    width: 100%;
    min-width: 0;
    order: 2;
  }

  .topbar-auth {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    order: 1;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 9px 14px;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .category-layout .product-grid {
    grid-template-columns: 1fr;
  }

  .checkout-field.is-half {
    grid-column: 1 / -1;
  }

  .checkout-inline-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .checkout-form-actions {
    justify-content: stretch;
  }

  .checkout-form-actions .btn {
    width: 100%;
  }

  .subcategory-grid {
    grid-template-columns: 1fr;
  }

  .subcategory-grid.is-slider .subcategory-card {
    flex-basis: 170px;
  }

  .subcategory-carousel.is-active {
    padding: 0 28px 24px;
  }

  .thumbnail-list {
    justify-content: center;
  }

  .mobile-cart-fab-total {
    display: none;
  }
}
