:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --text: #1c2430;
  --text-muted: #5f6b7a;
  --steel: #e8edf2;
  --steel-mid: #c5ced8;
  --accent: #e85d04;
  --accent-hover: #d45203;
  --accent-soft: rgba(232, 93, 4, 0.1);
  --accent-glow: rgba(232, 93, 4, 0.22);
  --border: #e2e8ef;
  --success: #1f9d55;
  --danger: #e53e3e;
  --footer-bg: #1c2430;
  --font-display: "Oswald", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --radius: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--accent);
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

h1, h2, h3, h4, .brand-name, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(28, 36, 48, 0.04);
}

.site-header .navbar {
  padding: 0.75rem 0;
}

.site-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.navbar-brand .site-logo {
  height: 48px;
  max-width: 200px;
}
.site-footer .site-logo {
  height: 52px;
  max-width: 220px;
  margin-bottom: 0.5rem;
}
.site-logo--admin {
  height: 40px;
  max-width: 160px;
}

.brand-name {
  font-size: 1.55rem;
  color: var(--text) !important;
  letter-spacing: 0.08em;
}

.brand-name span {
  color: var(--accent);
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text) !important;
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

.navbar-light .navbar-toggler {
  border-color: var(--border);
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--steel-mid);
  color: var(--text);
  border-radius: var(--radius);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -8px;
}

.lang-switch a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.lang-switch a.active {
  color: var(--accent);
}

/* Hero */
.hero-slider {
  position: relative;
  height: min(78vh, 640px);
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease;
}

.hero-slide.active .slide-bg {
  transform: scale(1);
}

.hero-slide .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(255, 255, 255, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 2rem 0;
}

.hero-content .eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(24px);
  color: var(--text);
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero-content .btn-accent {
  opacity: 0;
  transform: translateY(24px);
}

.hero-slide.active .eyebrow,
.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .btn-accent {
  animation: heroIn 0.8s ease forwards;
}

.hero-slide.active h1 { animation-delay: 0.15s; }
.hero-slide.active p { animation-delay: 0.3s; }
.hero-slide.active .btn-accent { animation-delay: 0.45s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(28, 36, 48, 0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.hero-arrows button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-arrows .prev { left: 1rem; }
.hero-arrows .next { right: 1rem; }

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-title {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.title-accent {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1rem;
}

/* Why us */
.why-grid .why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 4px 16px rgba(28, 36, 48, 0.04);
}

.why-grid .why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.why-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.why-visual {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category tiles with images */
.cat-tile {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  color: #fff !important;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-tile .cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.15) 0%, rgba(28, 36, 48, 0.78) 100%);
}

.cat-tile .cat-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 36, 48, 0.14);
}

.cat-tile:hover .cat-bg {
  transform: scale(1.06);
}

.cat-tile h3 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.cat-tile p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Showcase strip */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.6s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(28, 36, 48, 0.04);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: var(--shadow);
}

.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.06);
}

.product-card .body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

.product-card h3 a {
  color: var(--text);
}

.product-card .price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.product-card .price .old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-family: var(--font-body);
}

.brand-carousel-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: brandScroll 35s linear infinite;
}

.brand-track:hover {
  animation-play-state: paused;
}

@keyframes brandScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-item {
  width: 180px;
  height: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-shrink: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.brand-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.brand-item img {
  max-width: 100%;
  max-height: 60px;
}

.brand-item .brand-fallback {
  font-family: var(--font-display);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.form-control,
.custom-select {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius);
}

.form-control:focus {
  box-shadow: 0 0 0 0.15rem var(--accent-glow) !important;
  border-color: var(--accent) !important;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(28, 36, 48, 0.04);
}

.table-darkish {
  color: var(--text);
}

.table-darkish thead th {
  border-top: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-darkish td {
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.site-footer {
  background: var(--footer-bg);
  border-top: none;
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .brand-name {
  color: #fff !important;
}

.site-footer h5 {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #fff;
}

.site-footer a,
.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.site-footer a:hover {
  color: var(--accent) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.page-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.admin-body {
  background: #f5f7fa;
}

.admin-sidebar {
  min-height: 100vh;
  background: #1c2430;
  border-right: none;
  padding: 1.5rem 0;
}

.admin-sidebar a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #fff;
  background: rgba(232, 93, 4, 0.18);
  border-left: 3px solid var(--accent);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(28, 36, 48, 0.04);
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

.search-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  display: flex;
  align-items: center;
}

.search-box input {
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  width: 160px;
}

.breadcrumb {
  background: transparent !important;
}

.breadcrumb-item a {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
  }
  .hero-arrows {
    display: none;
  }
  .showcase-strip {
    grid-template-columns: 1fr;
  }
}
