/* =========================================================
   RESET
========================================================= */

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

:root {
  --bg: #020b15;
  --header: #061525;
  --card: #071a2d;
  --input: #0a2038;
  --border: #123554;

  --blue: #078cff;
  --cyan: #08bfff;

  --text: #f5f8ff;
  --muted: #9eb6cf;

  --neon-cyan: #00f2fe;

  --gradient-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

  --btn-gradient: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);

  --glow-blue: rgba(0, 114, 255, 0.6);
}

body.light {
  --bg: #f4f7fb;
  --header: #ffffff;
  --card: #ffffff;
  --input: #f1f5f9;
  --border: #d9e2ec;
  --text: #172235;
  --muted: #66758a;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 76px;

  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1400px, calc(100% - 48px));
  height: 100%;

  margin-inline: auto;

  display: flex;
  align-items: center;

  gap: 28px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--text);

  font-size: 24px;
  font-weight: 800;

  white-space: nowrap;
}

.logo i {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  background: var(--blue);
  color: #fff;

  border-radius: 9px;
}

/* =========================================================
   DESKTOP MENU
========================================================= */

.menu {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 24px;

  white-space: nowrap;
}

.menu>a,
.nav-dropdown>a {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 76px;

  color: var(--muted);

  font-size: 14px;

  transition: color 0.25s ease;
}

.menu>a::after,
.nav-dropdown>a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 3px;

  background: var(--cyan);

  border-radius: 5px 5px 0 0;

  transition: width 0.25s ease;
}

.menu>a:hover,
.menu>a.active,
.nav-dropdown>a:hover {
  color: var(--cyan);
}

.menu>a:hover::after,
.menu>a.active::after,
.nav-dropdown>a:hover::after {
  width: 100%;
}

.menu i {
  font-size: 10px;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.right {
  min-width: 0;

  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 12px;
}

/* =========================================================
   SEARCH
========================================================= */

.search {
  width: clamp(180px, 20vw, 300px);
  height: 40px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 14px;

  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 24px;

  transition:
    width 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.search:focus-within {
  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(7, 140, 255, 0.1);
}

.search i {
  flex-shrink: 0;

  color: var(--muted);
  font-size: 14px;
}

.search input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--text);

  font-size: 13px;
}

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

/* =========================================================
   HEADER ICONS
========================================================= */

.icon,
.theme-btn,
.menu-btn {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;

  color: var(--text);

  cursor: pointer;

  font-size: 17px;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.icon:hover,
.theme-btn:hover,
.menu-btn:hover {
  color: var(--cyan);
}

.icon {
  position: relative;
}

/* =========================================================
   CART / WISHLIST BADGES
========================================================= */

.cart-number,
.wishlist-number {
  position: absolute;

  top: -3px;
  right: -4px;

  min-width: 17px;
  height: 17px;

  padding: 0 4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--blue);
  color: #fff;

  border-radius: 20px;

  font-size: 9px;
  font-weight: 700;

  line-height: 1;
}

.wishlist {
  position: relative;
}

/* =========================================================
   USER
========================================================= */

.user-box {
  position: relative;
  flex-shrink: 0;
}

.user-btn {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 3px;

  border: 0;
  background: transparent;

  color: var(--text);

  cursor: pointer;
}

.user-avatar {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--input);
  color: var(--blue);
}

.user-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 2px;
}

.user-info span {
  color: var(--muted);
  font-size: 10px;
}

.user-info strong {
  max-width: 110px;

  overflow: hidden;

  color: var(--text);

  font-size: 13px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-btn>i {
  color: var(--muted);
  font-size: 9px;
}

/* =========================================================
  USER DROPDOWN
========================================================= */

.user-menu {
  position: absolute;

  top: calc(100% + 12px);
  right: -60px;

  width: 270px;

  padding: 12px;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

  z-index: 9999;
}

.user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 8px;
}

.menu-avatar {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--input);
  color: var(--blue);
}

.user-menu-head>div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.user-menu-head strong {
  overflow: hidden;

  color: var(--text);
  font-size: 14px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-head span {
  overflow: hidden;

  color: var(--muted);
  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  margin: 8px 0;

  background: var(--border);
}

.logout-btn {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px;

  border: 0;
  border-radius: 9px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;

  font-size: 14px;
  text-align: left;

  transition: 0.25s ease;
}

.logout-btn:hover {
  background: var(--input);
  color: var(--blue);
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {
  display: none;
}

/* =========================================================
   CATEGORY DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;
}

.category-dropdown-menu {
  position: absolute;

  top: calc(100% - 1px);
  left: 50%;

  width: 220px;
  max-height: 350px;

  overflow-y: auto;

  padding: 8px;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, -8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;

  z-index: 9999;
}

.nav-dropdown:hover .category-dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}

.category-dropdown-menu a {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 40px;

  padding: 9px 12px;

  border-radius: 8px;

  color: var(--muted);

  font-size: 13px;

  transition: 0.2s ease;
}

.category-dropdown-menu a::after {
  display: none;
}

.category-dropdown-menu a i {
  width: 20px;

  color: var(--blue);

  text-align: center;
}

.category-dropdown-menu a:hover {
  background: var(--input);
  color: var(--text);
}

.category-dropdown-menu a:hover i {
  color: var(--cyan);
}

.no-header-categories {
  padding: 12px;

  color: var(--muted);

  font-size: 12px;

  text-align: center;
}

/* =========================================================
   HERO
========================================================= */

.hero-container {
  padding: 30px 0;
}

.hero-banner {
  position: relative;

  width: 100%;
  min-height: 580px;

  display: flex;
  align-items: center;

  padding: 50px 60px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;

  background-image: url("../imgs/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 114, 255, 0.15);
}

.banner-grid {
  position: relative;
  z-index: 2;

  width: 100%;

  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;

  gap: 30px;

  align-items: center;
}

/* =========================================================
   HERO LEFT
========================================================= */

.left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 22px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 18px;

  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 50px;

  background: rgba(0, 242, 254, 0.08);

  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);

  backdrop-filter: blur(8px);
}

.badge-pill i,
.badge-pill span {
  color: var(--neon-cyan);
  font-size: 14px;
}

.badge-pill span {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-heading {
  color: #fff;

  font-size: 52px;
  font-weight: 900;

  line-height: 1.1;
  letter-spacing: -1px;
}

.text-gradient {
  background: var(--gradient-cyan-blue);

  background-clip: text;
  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}

.sub-heading {
  max-width: 400px;

  color: #fff;

  font-size: 16px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 6px;

  padding: 16px 32px;

  border: 0;
  border-radius: 50px;

  background: var(--btn-gradient);
  color: #fff;

  cursor: pointer;

  font-size: 16px;
  font-weight: 700;

  box-shadow: 0 0 25px var(--glow-blue);

  transition: 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 0 35px rgba(0, 198, 255, 0.9);
}

.cta-btn i {
  transition: 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(4px);
}

.pagination-dots {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 14px;
}

.dot {
  width: 10px;
  height: 10px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.2);

  cursor: pointer;

  transition: 0.3s ease;
}

.dot.active {
  width: 32px;

  background: var(--neon-cyan);

  box-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================================
   HERO CENTER
========================================================= */

.center-space {
  height: 100%;
  min-height: 380px;
}

/* =========================================================
   HERO FEATURES
========================================================= */

.right-features {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 16px 20px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;

  background: rgba(15, 23, 42, 0.55);

  cursor: pointer;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: 0.3s ease;
}

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

  border-color: rgba(0, 242, 254, 0.3);

  background: rgba(15, 23, 42, 0.75);
}

.icon-circle {
  width: 54px;
  height: 54px;

  min-width: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid var(--neon-cyan);
  border-radius: 50%;

  background: rgba(0, 242, 254, 0.08);

  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);

  transition: 0.3s ease;
}

.feature-item:hover .icon-circle {
  background: rgba(0, 242, 254, 0.15);

  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.icon-circle i {
  color: var(--neon-cyan);
  font-size: 20px;
}

.feature-text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.feature-title {
  color: #fff;

  font-size: 16px;
  font-weight: 700;

  transition: 0.3s ease;
}

.feature-item:hover .feature-title {
  color: var(--neon-cyan);
}

.feature-desc {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.4;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories {
  padding: 70px 0;

  background: var(--bg);
}

.title {
  margin-bottom: 35px;

  text-align: center;
}

.title span {
  color: var(--cyan);

  font-size: 13px;
  font-weight: 700;
}

.title h1 {
  margin: 8px 0;

  color: var(--text);

  font-size: 30px;
}

.title p {
  color: var(--muted);

  font-size: 14px;
}

.category-list {
  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 15px;
}

.category {
  min-height: 120px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 12px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--card);
  color: var(--text);

  cursor: pointer;

  transition: 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);

  border-color: var(--blue);

  box-shadow: 0 10px 25px rgba(7, 140, 255, 0.1);
}

.category-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: rgba(7, 140, 255, 0.1);
  color: var(--cyan);

  font-size: 20px;

  transition: 0.3s ease;
}

.category:hover .category-icon {
  background: var(--blue);
  color: #fff;

  transform: scale(1.08) rotate(3deg);
}

.category span {
  font-size: 13px;
  font-weight: 600;

  text-align: center;
}

.category.active {
  border-color: var(--blue);

  background: rgba(7, 140, 255, 0.08);
}

.category.active .category-icon {
  background: var(--blue);
  color: #fff;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products {
  padding: 30px 0 70px;

  background: var(--bg);
}

.products-head {
  margin-bottom: 25px;
}

.products-head span {
  color: var(--cyan);

  font-size: 13px;
  font-weight: 700;
}

.products-head h2 {
  margin-top: 5px;

  color: var(--text);

  font-size: 28px;
}

.products-list {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.product {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--card);

  animation: productShow 0.4s ease;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-6px);

  border-color: var(--blue);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image {
  position: relative;

  height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;

  overflow: hidden;

  background: var(--input);
}

.product-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition: 0.4s ease;
}

.product:hover .product-image img {
  transform: scale(1.06);
}

.heart {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--card);
  color: var(--muted);

  cursor: pointer;

  transition: 0.2s ease;
}

.heart:hover {
  color: #ff4d6d;
  border-color: #ff4d6d;
}

/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
  padding: 18px;
}

.product-category {
  color: var(--cyan);

  font-size: 10px;
  font-weight: 700;

  text-transform: uppercase;
}

.product-info h3 {
  margin: 7px 0;

  color: var(--text);

  font-size: 17px;
}

.product-info p {
  min-height: 40px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.product-details {
  margin-top: 12px;

  color: var(--muted);

  font-size: 11px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 17px;
}

.product-bottom strong {
  color: var(--text);

  font-size: 18px;
}

.product-actions {
  display: flex;
  align-items: center;

  gap: 8px;
}

.add-btn,
.update-btn {
  height: 40px;

  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid transparent;
  border-radius: 8px;

  cursor: pointer;

  font-size: 14px;
  font-weight: 600;

  transition: 0.25s ease;
}

.add-btn {
  border-color: var(--blue);

  background: var(--blue);
  color: #fff;
}

.add-btn:hover {
  transform: translateY(-2px);

  background: var(--cyan);
  border-color: var(--cyan);

  box-shadow: 0 5px 15px rgba(7, 140, 255, 0.25);
}

.update-btn {
  border-color: var(--border);

  background: transparent;
  color: var(--text);
}

.update-btn i {
  color: var(--blue);
}

.update-btn:hover {
  transform: translateY(-2px);

  border-color: var(--blue);

  background: var(--blue);
  color: #fff;
}

.update-btn:hover i {
  color: #fff;
}

/* =========================================================
   EMPTY PRODUCTS
========================================================= */

.no-products {
  display: none;

  padding: 60px 20px;

  color: var(--muted);

  text-align: center;
}

.no-products i {
  margin-bottom: 15px;

  color: var(--blue);

  font-size: 40px;
}

.no-products h3 {
  margin-bottom: 7px;

  color: var(--text);
}

/* =========================================================
   PRODUCT ANIMATION
========================================================= */

@keyframes productShow {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

/* =========================================================
   SHOP MESSAGE
========================================================= */

.shop-message {
  position: fixed;

  top: 90px;
  right: 25px;

  width: 360px;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 16px 18px;

  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 14px;

  background: var(--card);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

  opacity: 0;

  transform: translateX(120%);

  transition: 0.35s ease;

  z-index: 99999;
}

.shop-message.show {
  opacity: 1;
  transform: translateX(0);
}

.shop-message-icon {
  width: 42px;
  height: 42px;

  min-width: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(7, 140, 255, 0.12);
  color: var(--blue);

  font-size: 18px;
}

.shop-message-content {
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shop-message-content strong {
  color: var(--text);

  font-size: 15px;
}

.shop-message-content span {
  color: var(--muted);

  font-size: 13px;
}

.shop-message-close {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: var(--muted);

  cursor: pointer;

  transition: 0.2s ease;
}

.shop-message-close:hover {
  background: var(--input);
  color: var(--text);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  position: relative;

  margin-top: 80px;

  background: var(--header);

  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;

  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;

  gap: 50px;

  padding: 65px 0 50px;
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  color: var(--text);

  font-size: 25px;
  font-weight: 800;
}

.footer-logo i {
  color: var(--blue);
  font-size: 26px;
}

.footer-brand>p {
  margin-bottom: 22px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--card);
  color: var(--muted);

  transition: 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-4px);

  border-color: var(--blue);

  background: var(--blue);
  color: #fff;

  box-shadow: 0 8px 20px rgba(7, 140, 255, 0.25);
}

.footer-column {
  display: flex;
  flex-direction: column;

  gap: 13px;
}

.footer-column h3 {
  margin-bottom: 10px;

  color: var(--text);

  font-size: 16px;
}

.footer-column>a {
  width: fit-content;

  color: var(--muted);

  font-size: 14px;

  transition: 0.25s ease;
}

.footer-column>a:hover {
  color: var(--blue);

  transform: translateX(4px);
}

/* =========================================================
   FOOTER CATEGORIES
========================================================= */

.footer-categories {
  display: flex;
  flex-direction: column;

  gap: 13px;
}

.footer-categories a {
  width: fit-content;

  color: var(--muted);

  font-size: 14px;

  transition: 0.25s ease;
}

.footer-categories a:hover {
  color: var(--blue);

  transform: translateX(4px);
}

.footer-loading,
.footer-empty {
  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   FOOTER CONTACT
========================================================= */

.footer-contact p {
  display: flex;
  align-items: center;

  gap: 10px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}

.footer-contact p i {
  width: 18px;

  flex-shrink: 0;

  color: var(--blue);

  text-align: center;
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
}

.footer-bottom strong {
  color: var(--text);
}

.footer-bottom-links {
  display: flex;

  gap: 25px;
}

.footer-bottom-links a {
  color: var(--muted);

  font-size: 13px;

  transition: 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--blue);
}

/* =========================================================
   SITE MESSAGE
========================================================= */

.site-message {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.25s ease;
}

.site-message.show {
  opacity: 1;
  visibility: visible;
}

.site-message-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(5px);
}

.site-message-box {
  position: relative;
  z-index: 2;

  width: min(420px, calc(100% - 30px));

  padding: 30px;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 18px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  transform: translateY(20px) scale(0.95);

  transition: 0.25s ease;
}

.site-message.show .site-message-box {
  transform: translateY(0) scale(1);
}

.site-message-icon {
  width: 65px;
  height: 65px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(7, 140, 255, 0.12);
  color: var(--blue);

  font-size: 28px;
}

.site-message-icon.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.site-message-icon.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.site-message-icon.warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.site-message-box h3 {
  margin-bottom: 10px;

  color: var(--text);

  font-size: 22px;
}

.site-message-box p {
  margin-bottom: 22px;

  color: var(--muted);

  line-height: 1.6;
}

.site-message-btn {
  min-width: 110px;

  padding: 11px 22px;

  border: 0;
  border-radius: 10px;

  background: linear-gradient(135deg, var(--blue), var(--cyan));

  color: #fff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.site-message-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(7, 140, 255, 0.25);
}

.confirm-buttons {
  display: flex;
  justify-content: center;

  gap: 12px;
}

.confirm-buttons button {
  min-width: 110px;

  padding: 11px 20px;

  border: 0;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.cancel-btn {
  background: var(--input);
  color: var(--text);

  border: 1px solid var(--border) !important;
}

.cancel-btn:hover {
  background: var(--border);
}

.confirm-btn {
  background: #ef4444;
  color: #fff;
}

.confirm-btn:hover {
  background: #dc2626;

  transform: translateY(-2px);
}

/* =========================================================
   HEADER RESPONSIVE
========================================================= */

/* =========================
   Large Tablet
========================= */
@media (max-width: 1180px) {

  .nav {
    gap: 18px;
  }

  .menu {
    gap: 16px;
  }

  .search {
    width: 190px;
  }

  .user-info strong {
    max-width: 85px;
  }
}


/* =========================
   Tablet
========================= */
@media (max-width: 1050px) {

  .nav {
    gap: 12px;
  }

  .menu {
    gap: 12px;
  }

  .menu>a,
  .nav-dropdown>a {
    font-size: 13px;
  }

  .search {
    width: 150px;
  }

  /* Hide only the text, NOT the avatar */
  .user-info {
    display: none;
  }

  .user-btn>i {
    display: none;
  }

  .user-btn {
    padding: 0;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }
}


/* =========================
   Tablet / Small Screens
========================= */
@media (max-width: 900px) {

  .header {
    height: 70px;
  }

  .nav {
    width: calc(100% - 28px);
    gap: 8px;
  }

  .logo {
    margin-right: auto;
    font-size: 21px;
  }

  .logo i {
    width: 38px;
    height: 38px;
  }


  /* =========================
     MOBILE MENU
  ========================= */

  .menu {
    position: absolute;

    top: 70px;
    left: 14px;
    right: 14px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    padding: 8px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.25);

    z-index: 9998;
  }

  .menu.show {
    display: flex;
  }

  .menu>a,
  .nav-dropdown>a {
    width: 100%;
    min-height: 46px;

    padding: 0 12px;

    justify-content: flex-start;

    border-radius: 8px;
  }

  .menu>a:hover,
  .menu>a.active,
  .nav-dropdown>a:hover {
    background: var(--input);
  }

  .menu>a::after,
  .nav-dropdown>a::after {
    display: none;
  }


  /* =========================
     CATEGORY DROPDOWN
  ========================= */

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown>a {
    justify-content: space-between;
  }

  .category-dropdown-menu {
    position: static;

    width: 100%;
    max-height: 240px;

    margin-top: 4px;

    display: none;

    transform: none;

    background: var(--input);

    border-radius: 10px;

    box-shadow: none;
  }

  .nav-dropdown:hover .category-dropdown-menu {
    display: block;

    opacity: 1;
    visibility: visible;

    transform: none;
  }


  /* =========================
     SEARCH
  ========================= */

  .search {
    width: 180px;
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--input);
  }

  .search i {
    flex-shrink: 0;

    margin-right: 8px;

    color: var(--muted);
    font-size: 14px;
  }

  .search input {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 13px;
  }

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

  .search:focus-within {
    border-color: var(--blue);

    box-shadow:
      0 0 0 3px rgba(7, 140, 255, 0.1);
  }


  /* =========================
     RIGHT SIDE ICONS
  ========================= */

  .right {
    gap: 7px;
  }

  .icon,
  .theme-btn,
  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .menu-btn {
    display: inline-flex;
  }


  /* =========================
     USER AVATAR
  ========================= */

  .user-box {
    display: block;
    flex-shrink: 0;
  }

  .user-btn {
    width: 36px;
    height: 36px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .user-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;
  }

  .user-info {
    display: none;
  }

  .user-btn>i {
    display: none;
  }
}


/* =========================
   Mobile
========================= */
@media (max-width: 600px) {

  .nav {
    width: calc(100% - 20px);
    gap: 5px;
  }

  .logo {
    font-size: 19px;
  }

  .logo i {
    width: 36px;
    height: 36px;
  }

  .logo span {
    white-space: nowrap;
  }


  /* =========================
     RIGHT SIDE
  ========================= */

  .right {
    gap: 4px;
  }


  /* =========================
     USER AVATAR
  ========================= */

  .user-box {
    display: block;
  }

  .user-btn {
    width: 34px;
    height: 34px;

    padding: 0;
  }

  .user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
  }


  /* =========================
     SEARCH
  ========================= */

  .search {
    width: 135px;
    height: 34px;

    padding: 0 9px;

    border-radius: 9px;
  }

  .search i {
    margin-right: 6px;
    font-size: 13px;
  }

  .search input {
    font-size: 12px;
  }


  /* =========================
     ICONS
  ========================= */

  .icon,
  .theme-btn,
  .menu-btn {
    width: 34px;
    height: 34px;
  }

  .search i,
  .icon,
  .theme-btn,
  .menu-btn {
    font-size: 16px;
  }


  /* =========================
     BADGES
  ========================= */

  .cart-number,
  .wishlist-number {
    top: -2px;
    right: -3px;

    min-width: 16px;
    height: 16px;

    font-size: 8px;
  }


  /* =========================
     MOBILE MENU
  ========================= */

  .menu {
    top: 70px;

    left: 10px;
    right: 10px;

    padding: 8px;

    border-radius: 14px;
  }
}


/* =========================
   Very Small Phones
========================= */
@media (max-width: 420px) {

  .nav {
    width: calc(100% - 14px);
    gap: 3px;
  }

  .logo {
    font-size: 17px;
  }

  .logo span {
    font-size: 17px;
  }

  .logo i {
    width: 33px;
    height: 33px;

    border-radius: 8px;
  }


  /* Smaller but still visible avatar */
  .user-btn {
    width: 32px;
    height: 32px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }


  .right {
    gap: 2px;
  }


  .search {
    width: 105px;
    height: 32px;

    padding: 0 7px;
  }

  .search i {
    margin-right: 4px;
    font-size: 11px;
  }

  .search input {
    font-size: 11px;
  }


  .icon,
  .theme-btn,
  .menu-btn {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   GENERAL RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .banner-grid {
    grid-template-columns: 1fr 1fr;

    gap: 30px;
  }

  .center-space {
    display: none;
  }

  .main-heading {
    font-size: 42px;
  }

  .products-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .category-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);

    gap: 40px;
  }

  .hero-banner {
    min-height: 540px;

    padding: 45px 35px;
  }

  .right-features {
    gap: 18px;
  }

  .feature-item {
    padding: 14px 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-container {
    padding: 20px 0;
  }

  .hero-banner {
    min-height: 0;

    padding: 45px 24px 30px;

    border-radius: 22px;

    background-size: auto 100%;
    background-position: center top;
  }

  .banner-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .left-content {
    align-items: center;

    text-align: center;
  }

  .main-heading {
    font-size: clamp(34px, 9vw, 44px);
  }

  .sub-heading {
    max-width: 100%;

    font-size: 14px;
  }

  .cta-btn {
    padding: 14px 26px;

    font-size: 14px;
  }

  .pagination-dots {
    justify-content: center;

    width: 100%;
  }

  .right-features {
    width: 100%;
  }

  .feature-item {
    width: 100%;
  }

  .products-list {
    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 15px;
  }
}

/* Small Mobile */
@media (max-width: 600px) {
  .categories {
    padding: 50px 0;
  }

  .products {
    padding: 25px 0 50px;
  }

  .title h1 {
    font-size: 26px;
  }

  .products-head h2 {
    font-size: 24px;
  }

  .footer {
    margin-top: 50px;
  }

  .footer-top {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 45px 0 35px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;

    padding: 20px 0;

    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;
  }
}

/* Small Phone */
@media (max-width: 500px) {
  .category-list {
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
  }

  .category {
    min-height: 105px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
  }

  .products-list {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 230px;
  }

  .product-bottom {
    align-items: stretch;

    flex-direction: column;
  }

  .product-actions {
    width: 100%;
  }

  .add-btn,
  .update-btn {
    flex: 1;
  }
}

/* ================================
   AUTH MESSAGE
================================ */

.auth-message {
  position: fixed;
  top: 90px;
  right: 24px;

  width: min(390px, calc(100vw - 32px));

  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 16px 18px;

  background: var(--card);
  border: 1px solid var(--border);

  border-radius: 14px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);

  z-index: 99999;

  opacity: 0;
  transform: translateX(120%);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.auth-message.show {
  opacity: 1;
  transform: translateX(0);
}

.auth-message-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 18px;
}

.auth-message-icon.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.auth-message-icon.warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.auth-message-icon.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.auth-message-content {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.auth-message-content strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.auth-message-content span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-message-close {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  border: 0;
  background: transparent;

  color: var(--muted);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.auth-message-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 600px) {
  .auth-message {
    top: 78px;
    right: 14px;

    width: calc(100vw - 28px);

    padding: 14px;
  }

  .auth-message-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .auth-message-content strong {
    font-size: 14px;
  }

  .auth-message-content span {
    font-size: 12px;
  }
}

/* MOBILE + TABLET SEARCH FIX */
@media (max-width: 900px) {
  .right {
    gap: 8px;
  }

  .search {
    width: 180px;
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--input);

    box-sizing: border-box;
  }

  .search i {
    flex-shrink: 0;
    margin-right: 8px;

    color: var(--muted);
    font-size: 14px;
  }

  .search input {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 13px;
  }

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

  .search:focus-within {
    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(7, 140, 255, 0.1);
  }
}

/* MOBILE SEARCH */
@media (max-width: 600px) {
  .right {
    gap: 5px;
  }

  .search {
    width: 145px;
    height: 34px;

    padding: 0 9px;

    border-radius: 9px;
  }

  .search i {
    margin-right: 6px;
    font-size: 13px;
  }

  .search input {
    font-size: 12px;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 420px) {
  .search {
    width: 120px;
    height: 32px;

    padding: 0 8px;
  }

  .search i {
    margin-right: 5px;
    font-size: 12px;
  }

  .search input {
    font-size: 11px;
  }
}

/* =========================================================
   MOBILE NAV - SEARCH SECOND ROW
========================================================= */

@media (max-width: 600px) {

  /* Make the header two rows */
  .header {
    height: 120px;
    position: sticky;
    top: 0;
  }

  /* First row */
  .nav {
    position: relative;

    width: calc(100% - 20px);
    height: 70px;

    margin: 0 auto;

    display: flex;
    align-items: center;
  }

  /* Keep logo on the first row */
  .logo {
    flex-shrink: 0;
  }

  /* Right icons stay on first row */
  .right {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
  }

  /*
    Search is moved visually
    to the second row
  */
  .search {
    position: absolute;

    top: 78px;
    left: 0;

    width: 100%;
    height: 36px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    gap: 8px;

    background: var(--input);

    border: 1px solid var(--border);
    border-radius: 11px;

    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.12);

    z-index: 20;
  }

  .search i {
    flex-shrink: 0;

    margin: 0;

    color: var(--cyan);

    font-size: 14px;
  }

  .search input {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 13px;
  }

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

  .search:focus-within {
    border-color: var(--cyan);

    box-shadow:
      0 0 0 3px rgba(0, 242, 254, 0.08),
      0 5px 16px rgba(0, 0, 0, 0.15);
  }


  /* =========================
     USER AVATAR
  ========================= */

  .user-box {
    display: block;
    flex-shrink: 0;
  }

  .user-btn {
    width: 34px;
    height: 34px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .user-avatar {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
  }


  /* =========================
     ICONS
  ========================= */

  .icon,
  .theme-btn,
  .menu-btn {
    width: 34px;
    height: 34px;

    flex-shrink: 0;
  }


  /* =========================
     MOBILE MENU
  ========================= */

  .menu {
    top: 120px;

    left: 10px;
    right: 10px;

    width: auto;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

  .header {
    height: 116px;
  }

  .nav {
    width: calc(100% - 14px);
  }

  .logo {
    font-size: 17px;
  }

  .logo span {
    font-size: 17px;
  }

  .logo i {
    width: 33px;
    height: 33px;

    border-radius: 8px;
  }

  .right {
    gap: 2px;
  }

  .user-btn,
  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .icon,
  .theme-btn,
  .menu-btn {
    width: 32px;
    height: 32px;
  }


  /* Search */
  .search {
    top: 76px;

    width: 100%;
    height: 34px;

    padding: 0 11px;

    border-radius: 10px;
  }

  .search i {
    font-size: 13px;
  }

  .search input {
    font-size: 12px;
  }


  /* Dropdown menu starts below the whole header */
  .menu {
    top: 116px;
  }
}