/* ============================================================
   ShopEase — Main Stylesheet
   Primary: #2563EB  |  Dark: #1E293B
   ============================================================ */

/* ── Google Fonts via @import ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #DBEAFE;
  --primary-xlight: #EFF6FF;
  --dark:           #1E293B;
  --dark-soft:      #334155;
  --text:           #0F172A;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --bg:             #F8FAFC;
  --bg-alt:         #F1F5F9;
  --border:         #E2E8F0;
  --white:          #FFFFFF;
  --success:        #10B981;
  --danger:         #EF4444;
  --warning:        #F59E0B;
  --info:           #0EA5E9;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 1px 3px rgba(0,0,0,.1),  0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:      0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius-sm:      6px;
  --radius:         8px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --transition:     .2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Page Transitions ────────────────────────────────────── */
html.js-page-loading body { opacity: 0; }
html.js-page-loaded  body { opacity: 1; transition: opacity .28s ease; }
/* Exit: skeleton overlay handles visuals — don't fade body white */
html.js-page-exit    body { pointer-events: none; }

/* ── Skeleton Transition Overlay ─────────────────────────── */
#pts-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f1f5f9;
}
#pts-overlay.pts-show {
  opacity: 1;
  visibility: visible;
}

/* Top progress bar */
.pts-bar {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 0 3px 3px 0;
  animation: pts-progress .9s cubic-bezier(.4,0,.2,1) forwards;
  z-index: 1;
}
@keyframes pts-progress {
  0%   { width: 0%; }
  55%  { width: 70%; }
  100% { width: 86%; }
}

/* Shimmer effect */
.pts-s {
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 400% 100%;
  animation: pts-shimmer 1.3s ease infinite;
  border-radius: 6px;
}
@keyframes pts-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Customer skeleton layout ──────────────────────────────── */
.pts-nav {
  height: 62px;
  background: #1e293b;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}
.pts-catbar {
  height: 42px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  flex-shrink: 0;
}
.pts-body {
  flex: 1;
  padding: 24px;
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.pts-hero {
  height: 220px;
  border-radius: 16px;
  margin-bottom: 28px;
}
.pts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.pts-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pts-card-img  { height: 170px; }
.pts-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

/* ── Admin skeleton layout ─────────────────────────────────── */
.pts-admin-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.pts-sidebar {
  width: 240px;
  background: #0f172a;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.pts-sidebar-logo {
  height: 36px;
  width: 150px;
  border-radius: 8px;
  margin-bottom: 18px;
  background-image: linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.06) 75%);
  background-size: 400% 100%;
  animation: pts-shimmer 1.3s ease infinite;
}
.pts-sidebar-item {
  height: 36px;
  border-radius: 8px;
  background-image: linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.04) 75%);
  background-size: 400% 100%;
  animation: pts-shimmer 1.3s ease infinite;
}
.pts-main {
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pts-topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}
.pts-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pts-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pts-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: 90px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pts-table-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 768px) {
  .pts-sidebar { display: none; }
  .pts-grid { grid-template-columns: repeat(2, 1fr); }
  .pts-stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Scroll-reveal animations ────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }

small { font-size: .8rem; }

.text-muted    { color: var(--text-muted) !important; }
.text-primary  { color: var(--primary) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-warning  { color: var(--warning) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }

/* ── Containers ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm { max-width: 760px; }
.container-md { max-width: 1024px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.97) !important; }
/* Loading spinner state */
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--dark-soft); border-color: var(--dark-soft); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #DC2626; color:#fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm  { padding: 7px 14px; font-size: .8rem; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.error { border-color: var(--danger); }

select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.field-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.alert-info    { background: #E0F2FE; color: #0C4A6E; border-color: #BAE6FD; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 22px; }
.card-footer { padding: 16px 22px; border-top: 1px solid var(--border); background: var(--bg-alt); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }
.badge-success   { background: #D1FAE5; color: #065F46; }
.badge-danger    { background: #FEE2E2; color: #991B1B; }
.badge-warning   { background: #FEF3C7; color: #92400E; }
.badge-info      { background: #E0F2FE; color: #0C4A6E; }
.badge-secondary { background: var(--bg-alt); color: var(--text-muted); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg-alt);
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 8px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Utility classes ─────────────────────────────────────── */
.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap       { flex-wrap: wrap; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.mb-32   { margin-bottom: 32px; }
.py-8    { padding-top: 8px;  padding-bottom: 8px; }
.py-16   { padding-top: 16px; padding-bottom: 16px; }
.py-32   { padding-top: 32px; padding-bottom: 32px; }
.px-16   { padding-left: 16px; padding-right: 16px; }
.w-100   { width: 100%; }
.hidden  { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   CUSTOMER LAYOUT
   ═══════════════════════════════════════════════════════════ */

/* ── Top Navbar ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand span { color: var(--primary); }
.navbar-brand:hover { color: var(--white); }

.navbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  padding: 9px 42px 9px 16px;
  border-radius: 24px;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: background var(--transition);
}
.navbar-search input::placeholder { color: rgba(255,255,255,.5); }
.navbar-search input:focus { background: rgba(255,255,255,.2); }
.navbar-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 4px;
  font-size: .95rem;
}
.navbar-search button:hover { color: var(--white); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.nav-user-btn:hover { background: rgba(255,255,255,.18); color: var(--white); }

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 2000;
  display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: .86rem;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.dropdown-divider { border-top: 1px solid var(--border); }

/* ── Category Navbar ─────────────────────────────────────── */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 2px;
}

.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.cat-nav-link:hover,
.cat-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Hero Banner ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a6b 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(37,99,235,.4) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { color: var(--white); font-size: 2.8rem; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero Carousel ───────────────────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.hc-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hc-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #fff;
}
/* Decorative blurred blobs */
.hc-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hc-deco--1 {
  width: 480px; height: 480px;
  background: rgba(37,99,235,.15);
  top: -120px; right: -80px;
  filter: blur(60px);
}
.hc-deco--2 {
  width: 320px; height: 320px;
  background: rgba(99,102,241,.12);
  bottom: -80px; left: -60px;
  filter: blur(50px);
}
/* Two-column inner layout */
.hc-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
/* Left — text content */
.hc-content { max-width: 560px; }
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.hc-title {
  font-size: 2.9rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -.02em;
}
.hc-title em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hc-desc {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 480px;
}
.hc-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hc-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.25);
  text-decoration: none;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.hc-ghost-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; }
/* Right — visual icon block */
.hc-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
}
.hc-visual-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hc-pulse 3s ease-in-out infinite;
}
@keyframes hc-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.08); }
  50%       { transform: scale(1.04); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}
.hc-visual-icon {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.hc-visual-stat {
  position: absolute;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-align: center;
}
.hc-visual-stat span { display: block; font-size: .65rem; font-weight: 500; opacity: .75; margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.hc-stat--tl { top: 24px; left: 0; }
.hc-stat--br { bottom: 24px; right: 0; }
/* Arrows */
.hc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hc-nav:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.08); }
.hc-nav--prev { left: 18px; }
.hc-nav--next { right: 18px; }
/* Dots */
.hc-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hc-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background .25s, width .3s;
  padding: 0;
}
.hc-dot.active { background: #fff; width: 24px; }
/* Entrance animation for active slide content */
.hc-slide--active .hc-badge,
.hc-slide--active .hc-title,
.hc-slide--active .hc-desc,
.hc-slide--active .hc-btns,
.hc-slide--active .hc-visual {
  animation: hc-fadein .5s ease both;
}
.hc-slide--active .hc-title  { animation-delay: .05s; }
.hc-slide--active .hc-desc   { animation-delay: .1s; }
.hc-slide--active .hc-btns   { animation-delay: .15s; }
.hc-slide--active .hc-visual { animation-delay: .08s; }
@keyframes hc-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ── Section headings ────────────────────────────────────── */
.section { padding: 56px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}
.section-title span { color: var(--primary); }

/* ── Product Grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-badge.featured { background: var(--primary); }

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.product-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.product-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-info { padding: 14px; }

.product-category {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

.price-current { font-size: 1rem; font-weight: 700; color: var(--primary); }
.price-original {
  font-size: .82rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-card .btn { width: 100%; justify-content: center; font-size: .82rem; padding: 8px; }

/* ── Product Detail ──────────────────────────────────────── */
.product-detail { padding: 40px 0 60px; }
.btn-back-product {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-back-product:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-back-product i { font-size: .8rem; transition: transform .2s; }
.btn-back-product:hover i { transform: translateX(-2px); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.product-detail-info .product-category { margin-bottom: 8px; }
.product-detail-info h1 { font-size: 1.9rem; margin-bottom: 12px; }

.detail-price { margin: 16px 0 24px; }
.detail-price .price-current { font-size: 2rem; }
.detail-price .price-original { font-size: 1rem; }

.qty-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-group button {
  width: 38px;
  height: 38px;
  background: var(--bg-alt);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--dark);
}
.qty-group button:hover { background: var(--border); }
.qty-group input {
  width: 56px;
  height: 38px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  outline: none;
}

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; min-width: 150px; justify-content: center; }

.product-meta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-meta span { display: flex; gap: 8px; font-size: .85rem; margin-bottom: 8px; }
.product-meta strong { color: var(--dark); min-width: 70px; }

/* ── Reviews ─────────────────────────────────────────────── */
.rv-section { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--border); }

.rv-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.rv-title {
  font-size: 1.35rem; font-weight: 800; color: var(--dark);
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.rv-count-badge {
  background: var(--primary); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px;
}
.rv-sort-select {
  padding: 8px 36px 8px 12px; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: inherit; font-size: .83rem;
  color: var(--dark); background: #fff; cursor: pointer;
  appearance: none; outline: none; transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.rv-sort-select:focus { border-color: var(--primary); }

/* Layout: summary + form */
.rv-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-bottom: 36px;
  align-items: start;
}

/* Rating summary panel */
.rv-summary {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px 20px; text-align: center;
  position: sticky; top: 80px;
}
.rv-avg-big {
  font-size: 3.2rem; font-weight: 900; color: var(--dark);
  line-height: 1; margin-bottom: 8px;
}
.rv-avg-stars {
  color: #f59e0b; font-size: 1.05rem;
  display: flex; justify-content: center; gap: 3px; margin-bottom: 5px;
}
.rv-avg-label { font-size: .75rem; color: var(--text-muted); margin-bottom: 18px; }
.rv-bars { display: flex; flex-direction: column; gap: 8px; }
.rv-bar-row { display: flex; align-items: center; gap: 7px; font-size: .73rem; }
.rv-bar-label {
  min-width: 30px; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
}
.rv-bar-label i { color: #f59e0b; font-size: .6rem; }
.rv-bar-track {
  flex: 1; height: 7px; background: var(--bg-alt);
  border-radius: 99px; overflow: hidden;
}
.rv-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 99px; transition: width .7s ease;
}
.rv-bar-count { min-width: 16px; text-align: right; color: var(--text-muted); }

/* Write review panel */
.rv-write-wrap {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 28px 26px;
}
.rv-write-head {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.rv-write-head i { color: var(--primary); }

/* Star picker */
.rv-star-pick { margin-bottom: 18px; }
.rv-star-label {
  font-size: .8rem; font-weight: 600; color: #334155;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.rv-star-hint { font-weight: 500; color: var(--text-muted); font-size: .75rem; transition: color .2s; }
.rv-stars-input { display: flex; gap: 4px; }
.rv-star-btn {
  background: none; border: none; font-size: 1.7rem;
  color: #d1d5db; cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  padding: 0 3px; line-height: 1;
}
.rv-star-btn.hovered,
.rv-star-btn.active   { color: #f59e0b; }
.rv-star-btn:hover    { transform: scale(1.18); }
@keyframes rv-shake {
  0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)}
  40%{transform:translateX(7px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)}
}
.rv-stars-input.rv-shake { animation: rv-shake .4s ease both; }

/* Textarea */
.rv-textarea-wrap { position: relative; margin-bottom: 16px; }
.rv-textarea {
  width: 100%; padding: 12px 14px 28px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .88rem; color: var(--dark);
  resize: vertical; min-height: 110px; outline: none;
  transition: border-color .2s, box-shadow .2s; background: #fafbfc;
  box-sizing: border-box;
}
.rv-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}
.rv-char-count {
  position: absolute; bottom: 9px; right: 12px;
  font-size: .7rem; color: var(--text-muted); pointer-events: none;
}

/* Footer row */
.rv-write-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.rv-edit-note {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.rv-edit-note i { color: var(--primary); }
.rv-submit-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff; border: none; border-radius: 10px;
  font-family: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 3px 10px rgba(37,99,235,.25);
}
.rv-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(37,99,235,.38); }
.rv-submit-btn:active { transform: none; }

/* Login prompt */
.rv-login-prompt {
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border: 1.5px solid #bfdbfe; border-radius: 16px;
  padding: 44px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rv-login-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.3rem; margin-bottom: 4px;
}
.rv-login-prompt h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0; }
.rv-login-prompt p  { font-size: .83rem; color: var(--text-muted); margin: 0; }
.rv-login-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s; margin-top: 4px;
}
.rv-login-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

/* Review cards */
.rv-list { display: flex; flex-direction: column; gap: 14px; }

@keyframes rv-card-in {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.rv-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
  transition: box-shadow .2s, border-color .2s;
  animation: rv-card-in .3s ease both;
}
.rv-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); border-color: #c7d2fe; }
.rv-card--mine { border-color: #bfdbfe; background: #f8fbff; }
.rv-card--hidden { display: none; }

.rv-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 12px;
  gap: 12px; flex-wrap: wrap;
}
.rv-card-user { display: flex; align-items: center; gap: 12px; }
.rv-avatar-img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.rv-avatar-init {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.rv-user-name {
  font-size: .9rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 6px;
}
.rv-you-badge {
  font-size: .62rem; background: var(--primary); color: #fff;
  padding: 1px 8px; border-radius: 20px; font-weight: 700;
}
.rv-user-date { font-size: .73rem; color: var(--text-muted); margin-top: 2px; }

.rv-card-stars {
  display: flex; align-items: center; gap: 2px;
  color: #f59e0b; font-size: .82rem; flex-shrink: 0;
}
.rv-card-stars .far { color: #d1d5db; }
.rv-card-rating-num {
  font-size: .78rem; font-weight: 700; color: var(--dark); margin-left: 6px;
}
.rv-card-comment {
  font-size: .88rem; color: #334155; line-height: 1.75; margin: 0;
}
.rv-no-comment {
  color: var(--text-muted) !important; font-style: italic;
  display: flex; align-items: center; gap: 5px; font-size: .82rem !important;
}

/* Load more */
.rv-load-more { text-align: center; margin-top: 20px; }
.rv-load-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .85rem; font-weight: 600;
  color: var(--dark); cursor: pointer; transition: all .2s;
}
.rv-load-btn:hover {
  border-color: var(--primary); color: var(--primary); background: #f0f7ff;
}
.rv-load-btn i { transition: transform .2s; }
.rv-load-btn:hover i { transform: translateY(2px); }

/* Empty state */
.rv-empty { text-align: center; padding: 52px 20px; }
.rv-empty-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; color: #f59e0b;
  margin: 0 auto 16px;
}
.rv-empty h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.rv-empty p  { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .rv-body { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
}
@media (max-width: 480px) {
  .rv-write-wrap { padding: 20px 16px; }
  .rv-card { padding: 16px; }
  .rv-star-btn { font-size: 1.5rem; }
}

/* ── Cart ────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 60px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .9rem; color: var(--dark); margin-bottom: 4px; }
.cart-item-price { font-size: .82rem; color: var(--text-muted); }

.cart-item-qty { display: flex; align-items: center; gap: 0; }
.cart-item-qty input { width: 40px; text-align: center; border: 1px solid var(--border); padding: 5px 0; font-family: inherit; font-size: .85rem; }
.cart-item-qty button { width: 28px; height: 30px; background: var(--bg-alt); border: 1px solid var(--border); cursor: pointer; font-size: .85rem; transition: background var(--transition); color: var(--dark); }
.cart-item-qty button:hover { background: var(--border); }

.cart-item-total { font-weight: 700; color: var(--primary); min-width: 70px; text-align: right; }
.cart-remove { color: var(--text-light); cursor: pointer; background: none; border: none; font-size: .95rem; transition: color var(--transition); padding: 4px; }
.cart-remove:hover { color: var(--danger); }

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.order-summary .summary-row:last-of-type { border-bottom: none; }
.order-summary .summary-total { font-weight: 700; font-size: 1rem; color: var(--dark); }

/* ── Checkout ────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 60px;
}

/* ── Order success ───────────────────────────────────────── */
.success-box {
  text-align: center;
  padding: 60px 40px;
  max-width: 500px;
  margin: 60px auto;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--success);
  margin: 0 auto 24px;
}

/* ── Stars ───────────────────────────────────────────────── */
.stars { color: var(--warning); font-size: .9rem; }
.stars .far { color: var(--text-light); }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
  margin-bottom: 36px;
}
.page-header h1 { color: var(--white); font-size: 1.6rem; margin-bottom: 4px; }
.page-header p  { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }
.footer p { font-size: .85rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }

.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a6b 100%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.auth-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s;
  z-index: 10;
}
.auth-close-btn:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

.auth-header {
  background: var(--dark);
  padding: 32px;
  text-align: center;
  color: var(--white);
}
.auth-header .logo { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.auth-header .logo span { color: var(--primary); }
.auth-header p { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0; }

.auth-body { padding: 32px; }

.auth-footer-link {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-footer-link a { font-weight: 600; }

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Filters sidebar ─────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 32px 0 60px;
}

.filters-panel { position: sticky; top: 80px; }
.filter-section { margin-bottom: 24px; }
.filter-title { font-weight: 700; font-size: .85rem; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .85rem; cursor: pointer; color: var(--text-muted); }
.filter-option input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.filter-option:hover { color: var(--primary); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-light);
  margin: 0 auto 20px;
}
.empty-state h3 { margin-bottom: 8px; }

/* ── Overlay / Toast ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--dark);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 340px;
  opacity: 0;
  transform: translateX(32px) scale(.96);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.toast-visible { opacity: 1; transform: translateX(0) scale(1); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--primary); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ── Review form ─────────────────────────────────────────── */
.star-input { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }

/* ══════════════════════════════════════════════════════════
   GLOBAL UI ENHANCEMENTS — Animations & Micro-interactions
   ══════════════════════════════════════════════════════════ */

/* Navbar link hover underline slide */
.category-nav a {
  position: relative;
}
.category-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left .25s ease, right .25s ease;
  border-radius: 2px;
}
.category-nav a:hover::after,
.category-nav a.active::after { left: 0; right: 0; }

/* Navbar search focus glow */
.navbar-search input:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

/* Sidebar link active indicator pill */
.sidebar-link {
  position: relative;
  overflow: hidden;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height .2s ease;
}
.sidebar-link:hover::before,
.sidebar-link.active::before { height: 60%; }

/* Product card: smoother hover + image zoom */
.product-card {
  transition: box-shadow .3s ease, transform .3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.product-img-wrap img {
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Action buttons on product card slide in smoother */
.product-actions {
  transition: opacity .3s ease, transform .3s ease;
}

/* Stat card hover lift */
.stat-card {
  transition: box-shadow .25s ease, transform .25s ease;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Table row hover */
.admin-table tbody tr {
  transition: background .15s ease;
}
.admin-table tbody tr:hover { background: var(--bg); }

/* Badge pulse for important counts */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
.badge-danger { animation: badge-pulse 2.5s ease-in-out infinite; }

/* Skeleton loader — universal */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #e8edf3 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-img   { aspect-ratio: 1; width: 100%; }
.skeleton-card  { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }

/* Smooth modal animation */
.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2000;
  pointer-events: none;
  transition: background .25s ease;
}
.modal-overlay.show {
  background: rgba(0,0,0,.55);
  pointer-events: all;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .3s ease, transform .3s ease;
}
.modal-overlay.show .modal { opacity: 1; transform: translateY(0) scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Input focus: smooth border glow */
.form-control {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus {
  background: var(--white);
}

/* Dropdown animation */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Notification dropdown entrance */
.notif-dropdown {
  transform-origin: top right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Alert entrance */
.alert {
  animation: alertSlide .3s ease both;
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Smooth focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Admin card hover */
.admin-card {
  transition: box-shadow .25s ease;
}
.admin-card:hover { box-shadow: var(--shadow-md); }

/* Page loading bar */
.page-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  z-index: 9999;
  width: 0;
  transition: width .25s ease;
  border-radius: 0 3px 3px 0;
}

/* Scrollbar styling (WebKit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Selection color */
::selection { background: rgba(37,99,235,.18); color: var(--dark); }

/* Smooth scroll (global) */
html { scroll-behavior: smooth; }
.star-input input { display: none; }
.star-input label { font-size: 1.5rem; color: var(--text-light); cursor: pointer; transition: color var(--transition); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--warning); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .mobile-menu-btn { display: flex; }
  .navbar-search { display: none; }
  .navbar-search.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); padding: 12px 20px; z-index: 999; max-width: 100%; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 36px 0; }
  .page-header { padding: 20px 0; }
  /* Carousel tablet */
  .hc-inner { grid-template-columns: 1fr; gap: 24px; }
  .hc-visual { display: none; }
  .hc-title { font-size: 2.1rem; }
  .hc-slide { padding: 56px 0 64px; }
  .hc-nav { width: 36px; height: 36px; font-size: .8rem; }
  .hc-nav--prev { left: 10px; }
  .hc-nav--next { right: 10px; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.6rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .auth-body { padding: 24px 20px; }
  .auth-header { padding: 24px 20px; }
  .card-body { padding: 16px; }
  .container { padding: 0 14px; }
  /* Carousel mobile */
  .hc-title { font-size: 1.75rem; }
  .hc-desc { font-size: .88rem; }
  .hc-slide { padding: 44px 0 60px; }
  .hc-btns { gap: 10px; }
  .hc-btns .btn-lg { padding: 11px 18px; font-size: .88rem; }
  .hc-ghost-btn { padding: 10px 16px; font-size: .85rem; }
  .hc-nav { display: none; }
}

/* ── Avatar / Profile Picture ────────────────────────────── */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
}

.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  cursor: pointer;
  border: 2px solid #fff;
  transition: background .2s;
}
.avatar-edit-btn:hover { background: var(--primary-dark); }

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.2);
}

/* ── Chat ────────────────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - 260px);
  min-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-admin-layout {
  height: calc(100vh - 160px);
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.chat-conv-list {
  overflow-y: auto;
  flex: 1;
}

.chat-conv-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}
.chat-conv-item:hover { background: var(--primary-xlight); }
.chat-conv-item.active { background: var(--primary-light); border-left: 3px solid var(--primary); }

.chat-conv-subject {
  font-size: .83rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-conv-preview {
  font-size: .76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0;
}
.chat-conv-time {
  font-size: .7rem;
  color: var(--text-light);
}

.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
  padding: 40px;
}
.chat-empty i { font-size: 3rem; color: var(--primary-light); }
.chat-empty h3 { margin: 0; font-size: 1.1rem; color: var(--text); }
.chat-empty p { margin: 0; font-size: .88rem; }

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-subject { font-weight: 700; font-size: .95rem; }
.chat-header-meta { font-size: .75rem; color: var(--text-muted); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
}
.chat-msg-me { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-other { align-self: flex-start; }

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-msg-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.chat-msg-me .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.chat-msg-name {
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: 2px;
  opacity: .7;
}
.chat-msg-text {
  font-size: .88rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-time {
  font-size: .65rem;
  margin-top: 4px;
  opacity: .6;
  text-align: right;
}

.chat-reply-box {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

#chat-reply-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-reply-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
}
.chat-reply-input:focus { border-color: var(--primary); }

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  transition: background .2s;
}
.chat-send-btn:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { height: 200px; }
  .chat-main { height: 400px; }
}

/* ── Notification Bell & Dropdown ────────────────────────── */
.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.notif-bell-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Admin topbar bell – dark bg context */
.topbar .notif-bell-btn { color: var(--text-muted); }
.topbar .notif-bell-btn:hover { background: var(--bg-alt); color: var(--primary); }

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid transparent;
  pointer-events: none;
  line-height: 1;
}
.navbar .notif-badge { border-color: var(--dark); }
.topbar .notif-badge { border-color: var(--white); }

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlideIn .15s ease;
}
.notif-dropdown.open { display: flex; }

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.notif-dropdown-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}
.notif-mark-all {
  font-size: .75rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 600;
  padding: 0;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
  overflow-y: auto;
  max-height: 380px;
  flex: 1;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item--unread { background: var(--primary-xlight); }
.notif-item--unread:hover { background: var(--primary-light); }

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}
.notif-msg {
  font-size: .76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-time {
  font-size: .7rem;
  color: var(--text-light);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  align-self: center;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}
.notif-empty i { font-size: 2rem; margin-bottom: 10px; display: block; color: var(--text-light); }
.notif-empty p { font-size: .85rem; margin: 0; }

.notif-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.notif-dropdown-footer a {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.notif-dropdown-footer a:hover { text-decoration: underline; }

/* Notification skeleton loader */
.notif-skeleton {
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notif-skeleton-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  animation: pulse .8s ease infinite alternate;
}
.notif-skeleton-lines { flex: 1; }
.notif-skeleton-lines span {
  display: block; height: 10px; border-radius: 4px;
  background: var(--border); margin-bottom: 6px;
  animation: pulse .8s ease infinite alternate;
}
.notif-skeleton-lines span:last-child { width: 60%; }
@keyframes pulse { from { opacity: 1; } to { opacity: .4; } }

@media (max-width: 480px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -12px; }
}
