/* ============================================
   MASKET — Global Styles
   Fonts: Syne (display) + Plus Jakarta Sans (body)
   Colors: White + Creative Blue (#1755F4) + Dark
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #1755F4;
  --blue-light: #4478FF;
  --blue-dark: #0E3EC0;
  --blue-muted: rgba(23, 85, 244, 0.12);
  --white: #FFFFFF;
  --off-white: #F6F8FF;
  --gray-100: #F0F2FA;
  --gray-200: #E2E6F0;
  --gray-300: #C8CFDF;
  --gray-400: #8A93A8;
  --gray-600: #4A5270;
  --gray-800: #1E2340;
  --text: #0F1326;
  --text-muted: #5A6080;
  --surface: #FFFFFF;
  --surface-2: #F6F8FF;
  --border: #E2E6F0;
  --shadow-sm: 0 1px 4px rgba(15,19,38,0.08);
  --shadow-md: 0 4px 20px rgba(15,19,38,0.10);
  --shadow-lg: 0 8px 40px rgba(15,19,38,0.13);
  --shadow-blue: 0 4px 24px rgba(23,85,244,0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --nav-h: 68px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --white: #0A0D1A;
  --off-white: #111525;
  --gray-100: #161B2E;
  --gray-200: #1E2540;
  --gray-300: #2C3454;
  --gray-400: #5A6590;
  --gray-600: #8A95B8;
  --gray-800: #C5CCE4;
  --text: #EEF0FA;
  --text-muted: #8A95B8;
  --surface: #111525;
  --surface-2: #161B2E;
  --border: #1E2540;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-5{ display: grid; grid-template-columns: repeat( 1fr);gap: 10px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--blue); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background:rgb(231, 192, 19);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background:white;
  transform: translateY(-1px);
  box-shadow: 0 6px 30px black;
  color:rgba(56, 13, 13, 0.63);
}
.btn-outline {
  background: transparent;
  color:white;
  border: 2px solid white;
}
.btn-outline:hover {
  background:orange;
  transform: translateY(-1px);
  box-shadow: 0 6px 30px black;
  color:black;
}
.btn-ghost {
  background:white;
  color:black;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background:orange; color:white; }
.btn-danger {
  background: #c50909;
  color: #fff;
}
.btn-danger:hover { background: black; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}
.btn-icon:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-icon.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-muted);
}
.form-control::placeholder { color: var(--gray-300); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== CARD ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-blue { background: var(--blue-muted); color: var(--blue); }
.badge-green { background: rgba(34,197,94,0.12); color: #16a34a; }
.badge-orange { background: rgba(249,115,22,0.12); color: #ea580c; }
.badge-red { background: rgba(239,68,68,0.12); color: #dc2626; }
.badge-gray { background: var(--gray-100); color: var(--gray-400); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.navbar-logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-logo span { color: var(--text); }
.navbar-logo .dot { color: var(--blue); font-size: 28px; line-height: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav-links a, .nav-links button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.nav-links a:hover, .nav-links button:hover,
.nav-links a.active, .nav-links button.active {
  color: var(--blue);
  background: var(--blue-muted);
}
.nav-cart-badge {
  position: relative;
  display: flex;
}
.nav-cart-count {
  position: absolute;
  top: -6px; right: -6px;
  width: 17px; height: 17px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Dark mode toggle */
.dark-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  color: var(--text-muted);
}
.dark-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* Category dropdown */
.category-dropdown {
  position: relative;
}
.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.category-dropdown:hover .category-dropdown-menu,
.category-dropdown.open .category-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cat-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}
.cat-menu-item:hover { background: var(--blue-muted); color: var(--blue); }
.cat-menu-item i { width: 20px; text-align: center; font-size: 16px; }

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 0 8px;
}
.bottom-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
.bnav-item i { font-size: 20px; }
.bnav-item.active, .bnav-item:hover { color: var(--blue); }
.bnav-cart { position: relative; }
.bnav-cart-count {
  position: absolute;
  top: 2px; right: 10px;
  width: 16px; height: 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  margin-top: -68px;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:green;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(23,85,244,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(68,120,255,0.18) 0%, transparent 40%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,85,244,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,85,244,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background:greenyellow;
  border: 2px solid whitesmoke;
  color: black;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  color:white;
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  color:orange;
  border-bottom: 2px solid white;
}
.hero p {
  backdrop-filter: blur (100px);
  font-size: 17px;
  color:white;
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap;}
.hero-image-container {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 45%;
  max-width: 520px;
  z-index: 0;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}
.hero-stat-label {
  font-size: 12px;
  color:var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SECTION ===== */
.section { padding: 64px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--text);
}
.section-title span { color: var(--blue); }
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction:row;

}
.product-card:hover {
  border-color:red;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-100);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
}
.product-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-info { padding: 14px 16px; flex: 1; display: flex; flex-direction:column; }
.product-category {
  font-size: 11px;
  font-weight: 600;
  color:orange;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-short-desc {
  font-size: 16px;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-family:normal;
  font-size: 16px;
  font-weight: 700;
  color: red;
}
.product-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.add-to-cart-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background:orangered;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}
.add-to-cart-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

/* ===== CATEGORY TABS ===== */
.condition-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}
.cond-tab {
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}
.cond-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-header h1 { font-size: clamp(28px, 3vw, 42px); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-muted); }

/* ===== CART ===== */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; font-family: 'Syne', sans-serif; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: fit-content;
}
.qty-ctrl button {
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  border-radius: 4px;
}
.qty-ctrl button:hover { background: var(--gray-100); color: var(--blue); }
.qty-ctrl span { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; white-space: nowrap; margin-right: 60px; }
.cart-item-remove {
  width: 28px; height: 28px;
  border: none;
  background: none;
  color:red;
  margin-right: 90px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-item-remove:hover { background: rgba(239,68,68,0.1); color: #dc2626; }
.cart-summary-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-total {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

/* ===== CHECKOUT ===== */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 16px;
}
.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border);
}
.step.active .step-num { background: var(--blue); color: #fff; border-color: var(--blue); }
.step.done .step-num { background: #22c55e; color: #fff; border-color: #22c55e; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.step.active .step-label { color: var(--blue); }

/* Payment method selector */
.payment-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.pay-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.pay-opt:hover { border-color: var(--blue); }
.pay-opt.selected { border-color: var(--blue); background: var(--blue-muted); }
.pay-opt i { font-size: 28px; color: var(--text-muted); display: block; margin-bottom: 8px; }
.pay-opt.selected i { color: var(--blue); }
.pay-opt-name { font-weight: 700; font-size: 14px; }
.pay-opt-num { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pay-instructions {
  background: var(--blue-muted);
  border: 1px solid rgba(23,85,244,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.pay-instructions h4 { color: var(--blue); margin-bottom: 12px; font-size: 15px; }
.pay-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 14px;
}
.pay-step-num {
  width: 24px; height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== PROFILE ===== */
.profile-header {
  background:green;
  padding: 40px 0;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: whitesmoke;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color:black;
  margin-bottom: 14px;
  border: 3px solid rgba(255,255,255,0.2);
}
.profile-name { font-size: 26px; color: #f3ff49; }
.profile-email { font-size: 14px; color:white; margin-top: 4px; }
.profile-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.profile-meta-item { font-size: 13px; color:var(--white); display: flex; align-items: center; gap: 6px; }

/* Order status colors */
.status-pending { color: #f59e0b; }
.status-confirmed { color: var(--blue); }
.status-processing { color: #8b5cf6; }
.status-shipped { color: #06b6d4; }
.status-delivered { color: #22c55e; }
.status-cancelled { color: #ef4444; }

.order-card {
  border: 3px solid var(--border);
  border-radius: var(--radius);
  margin-top:30px;
  overflow-x: hidden;
  max-width: 400px;
  background: var(--surface);
}
.order-header {
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; }
.order-items { padding: 16px 18px; }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.order-item-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}

/* ===== ADMIN PANEL ===== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-nav-section {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 16px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  border-radius: 0;
  text-decoration: none;
}
.admin-nav-item:hover { color: var(--blue); background: var(--blue-muted); }
.admin-nav-item.active { color: var(--blue); background: var(--blue-muted); font-weight: 600; border-right: 3px solid var(--blue); }
.admin-nav-item i { font-size: 18px; width: 22px; text-align: center; }
.admin-content { padding: 32px; overflow-y: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.blue { background: var(--blue-muted); color: var(--blue); }
.stat-icon.green { background: rgba(34,197,94,0.12); color: #22c55e; }
.stat-icon.purple { background: rgba(139,92,246,0.12); color: #7c3aed; }
.stat-icon.orange { background: rgba(249,115,22,0.12); color: #ea580c; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Admin table */
.admin-table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead tr { background: var(--surface-2); }
th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:hover td { background: var(--surface-2); }
.table-img {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
}
.table-actions { display: flex; gap: 6px; align-items: center; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 80px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  pointer-events: all;
  max-width: 320px;
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }
.toast.info { border-color: var(--blue); }
.toast i { font-size: 18px; }
.toast.success i { color: #22c55e; }
.toast.error i { color: #ef4444; }
.toast.info i { color: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 18px; }
.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,0.1); color: #dc2626; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel-left {
  background: linear-gradient(135deg, #0A0D1A, #0E1A3A);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 70%, rgba(23,85,244,0.3) 0%, transparent 50%);
}
.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}
.auth-brand .logo {
  font-family: 'Syne', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
}
.auth-brand .logo span { color: var(--blue-light); }
.auth-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 320px;
}
.auth-panel-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: var(--off-white);
  overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-title { font-size: 28px; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
.contact-info-card {
  background:rgb(16, 71, 16);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
}
.contact-info-card h3 { color: #fff; margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 28px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail i {
  width: 36px; height: 36px;
  background: rgba(23,85,244,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: #7BA7FF;
  flex-shrink: 0;
}
.contact-detail-info .label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-detail-info .value { color: #fff; margin-top: 2px; font-weight: 500; }
.working-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 64px;
  color: var(--gray-300);
  margin-bottom: 16px;
}
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; max-width: 300px; margin: 0 auto 24px; }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== IMAGE UPLOAD PREVIEW ===== */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.img-upload-area:hover { border-color: var(--blue); background: var(--blue-muted); }
.img-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-upload-area i { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.img-upload-area p { font-size: 14px; color: var(--text-muted); }
.img-preview { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 12px; display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
  .navbar { display: none; }
  .bottom-nav { display: flex; }
  .page-wrapper { padding-bottom: 60px; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 40px 24px; }
  .hero { min-height: 70vh; }
  .hero-image-container { display: none; }
  .cart-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .page-header { padding: 24px 0 20px; }
  .payment-opts { grid-template-columns: 1fr; }
  .category-dropdown-menu { position: fixed; top: auto; bottom: 60px; left: 8px; right: 8px; width: auto; min-width: unset; }
  .profile-meta { gap: 10px; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 16px; }
  .checkout-steps { gap: 0; }
  .step-label { font-size: 10px; }
}