/* Responsive helpers */
.desktop-only { display: none; }
.mobile-only { display: none !important; }

/* Remove mobile tap highlight on interactive elements for a cleaner touch UX */
button, a, input, textarea, select, .btn, .lr-btn, .res-portal-nav-btn, .res-portal-cart-btn, .res-portal-add-cart-btn, .res-portal-profile-btn, .res-portal-category-btn, .price-apply {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1100px) {
  .desktop-only { display: block !important; }

  }

@media (max-width: 1100px) {
  .res-portal-main-mobile > .res-portal-search,
  .res-portal-main-mobile > .res-portal-banner,
  .res-portal-main-mobile > .res-portal-nav,
  .res-portal-main-mobile > .res-portal-categories {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }
  .res-portal-main-mobile {
    margin: 0 15px !important;
    box-sizing: border-box;
    width: auto;
    position: relative; /* establish containing block for absolute children */
  }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .res-portal-navbar {
    padding: 6px 4px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
  }
  /* Reserve space for fixed navbar without adding extra page height */
  /* Use padding-top + min-height that together equal 100vh to avoid empty vertical scroll */
  .res-portal-main-mobile {
    /* reserve space for navbar + sticky search (navbar 44px + search ~56px) */
    padding-top: calc(44px + 56px);
    min-height: calc(100vh - 44px);
  }
  .res-portal-logo {
    height: 32px;
  }
  .res-portal-navbar .res-portal-cart-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    background-color: transparent;
  }
  /* Make profile icon slightly smaller on mobile so it fits the compact navbar */
  .res-portal-navbar .res-portal-profile-btn,
  .res-portal-profile-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  /* Scale the inner icon to match the resized profile button */
  .res-portal-profile-btn i,
  .res-portal-navbar .res-portal-profile-btn i {
    font-size: 10px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  .res-portal-navbar .fa-shopping-cart {
    font-size: 1rem;
  }
  .res-portal-search.mobile-only {
    /* Collapsible search bar controlled by --collapse (0 = expanded, 1 = icon-only) */
    --collapse: 0;
    height: 30px;
    min-height: 30px;
    width: calc(((100vw - 30px) * (1 - var(--collapse))) + (30px * var(--collapse)));
    margin: 0 0 10px 0;
    padding: 0 6px;
    background: rgba(255,255,255,0.95);
    border-radius: 9999px;
    box-shadow: 0 8px 20px -12px rgba(2, 6, 23, 0.651);
    align-items: center;
    gap: 6px;
    /* Fixed so it stays visible while scrolling */
    position: fixed;
    left: 15px; /* match container horizontal inset */
    top: 54px; /* 44px navbar height + 10px margin */
    z-index: 950; /* below navbar (1000) but above content */
    backdrop-filter: blur(5px);
    transition: width .28s ease, padding .2s ease, box-shadow .25s ease, background .2s ease;
  }
  .res-portal-search.mobile-only input {
    font-size: 0.95rem;
    flex: 1 1 auto;
    max-width: calc(100% * (1 - var(--collapse)));
    opacity: calc(1 - var(--collapse));
    padding: 8px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--primary);
    transition: max-width .28s ease, opacity .25s ease;
  }
  .res-portal-search.mobile-only i {
    color: var(--gray-500);
    font-size: 1rem;
    margin-right: calc(10px * (1 - var(--collapse)));
    transition: margin-right .25s ease, color .2s ease, transform .2s ease;
  }

  /* Hover affordance when collapsed */
  .res-portal-search.mobile-only[style*="--collapse: 1"] {
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.363);
  }
  .res-portal-banner {
    width: 100% !important;
    margin: 15px 0 15px 0 !important;
    height: 70px;
    border-radius: 0;
  }
  .res-portal-banner img {
    border-radius: 0;
    height: 100%;
  }
  .res-portal-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    background: linear-gradient(90deg, #020d27 0%, #092c80 100%) !important;
    padding: 10px !important;
    margin: 6px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 4px rgba(50,81,154,0.08) !important;
    border-radius: 8px !important;
    min-height: 55px !important;
    height: auto !important;
    position: relative !important;
    gap: 14px !important;
  }
  .res-portal-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 40px !important;
    padding: 4px !important;
    min-width: 42px !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    flex: 1 !important;
    min-width: 0 !important;
    transition: transform 0.2s ease !important;
  }
  
  .res-portal-nav-btn.active {
    background: linear-gradient(90deg, #021c58 0%, #0a3bad 100%) !important;
    transform: translateY(0) !important;
  }
  
  .res-portal-nav-btn.active .nav-icon {
    transform: scale(1.1) !important;
  }
  
  .res-portal-nav-btn.active .nav-label {
    color: white !important;
    font-weight: 500 !important;
  }
  .res-portal-nav-btn::after {
    display: none !important;
  }
  .res-portal-nav-btn:last-child::after {
    display: none !important;
  }
  .res-portal-nav-btn .nav-icon {
    font-size: 14px !important;
    background: white !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  .res-portal-nav-btn .nav-label {
    font-size: 7px !important;
    line-height: 1.2 !important;
    font-weight: normal !important;
    color: white !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
  }
  .res-portal-nav-btn .fa {
    font-size: 0.9rem !important;
  }
  .res-portal-filter-bar { display:flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 10px !important; padding: 0 !important; position: relative !important; width: 100% !important; box-sizing: border-box !important; overflow-x: hidden; margin: 12px 0 !important; }
  /* Mobile categories: equal-sized chips, multi-row grid, edge-to-edge */
  .res-portal-categories {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .res-portal-categories::-webkit-scrollbar { display: none; height: 0; }
  .res-portal-price-filter { width: 100% !important; max-width: 100% !important; }
  /* Compact mobile filter: toggle button + slide-out price panel */
    .res-portal-price-filter { width: 100% !important; max-width: 100% !important; }
    .res-portal-price-compact { display:block !important; position: static !important; right: auto !important; top: auto !important; transform: none !important; width: 100% !important; white-space: normal !important; }
  .price-toggle-btn { display:flex; align-items:center; gap:6px; background: linear-gradient(135deg,#112c70,#2a6aff); color:#fff; border:none; border-radius: 10px; padding: 0 10px; font-size:.8rem; font-weight:600; box-shadow:0 4px 12px rgba(17,44,112,.22); height: var(--filter-height); }
  .price-toggle-btn.mobile-only { display:none !important; }
  .price-toggle-btn i { color:#fff; }
  /* Slide-out panel anchored within filter bar; JS sets left/top to align to last category chip */
  .res-portal-price-filter { position:absolute; left: 0; top: 0; transform: translateX(12px); transition: transform .25s ease, opacity .2s ease; opacity: 0; pointer-events: none; width: min(420px, 92vw) !important; max-width: 92vw !important; z-index: 1200; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:6px 8px; box-shadow:0 8px 22px rgba(0,0,0,0.18); height:auto !important; }
    .res-portal-price-filter { position: static !important; left: auto !important; top: auto !important; transform: none !important; transition: none !important; opacity: 1 !important; pointer-events: auto !important; width: 100% !important; max-width: 100% !important; z-index: auto !important; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:6px 8px; box-shadow:0 2px 8px rgba(0,0,0,0.04); height:auto !important; }
  /* Compact price range with right-corner funnel on mobile */
  .res-portal-price-filter { display:flex !important; align-items:center !important; gap: 8px !important; padding: 2px 2px 2px 2px !important; border-radius: 14px !important; height: 30px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; }
  .res-portal-price-filter i { font-size: .95rem; }
  .res-portal-price-filter .price-input { width: 86px !important; height: 24px !important; padding: 0 6px !important; font-size: .85rem !important; text-align: center !important; }
  .res-portal-price-filter .dash { color: #9aa3af !important; margin: 0 6px !important; }
  .res-portal-price-filter .price-apply { margin-left: auto !important; width: 36px !important; height: 28px !important; padding: 0 !important; border-radius: 10px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  /* Equal width category chips */
  .res-portal-category-btn { width: 100% !important; min-width: 0 !important; height: 36px !important; padding: 0 8px !important; text-align: center !important; border-radius: 12px !important; white-space: nowrap !important; }
  .res-portal-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 0 8px 12px 8px;
  }
  .res-portal-product-card {
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 280px !important;
    justify-content: space-between !important;
  }
  .res-portal-product-img {
    height: 100px !important;
    margin-bottom: 8px !important;
  }
  /* Edge-to-edge image/button with card corners on mobile (card padding is 8px) */
  .res-portal-product-card .card-image-top {
    width: calc(100% + 16px) !important;
    height: 130px !important;
    margin: -8px -8px 8px -8px !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .res-portal-add-cart-btn {
    width: calc(100% + 16px) !important;
    margin: 8px -8px -8px -8px !important;
    height: 36px !important;
    border-radius: 0 0 16px 16px !important;
    padding: 0 !important;
  }
  .res-portal-product-title {
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 2px !important;
  }
  .res-portal-product-brand {
    font-size: 0.6rem !important;
    margin-bottom: 4px !important;
  }
  .res-portal-product-price {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
  }
  .res-portal-product-stock {
    font-size: 0.6rem !important;
    margin-bottom: 8px !important;
  }
  .res-portal-add-cart-btn {
    font-size: 0.65rem !important;
    /* keep edge-to-edge sizing from earlier rule */
    margin-top: auto !important;
  }
}
/* Shopee-style Reservation Portal - Modern, Responsive, POS Theme */
:root {
  --primary: #2d3748;
  --primary-dark: #1a202c;
  --primary-light: #4a5568;
  --accent: #2a6aff;
  --white: #fff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --radius-lg: 1rem;
  --radius-md: 0.5rem;
  --shadow-md: 0 4px 12px rgba(30,58,138,0.10);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Roboto Slab', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --filter-height: 36px;
}

html {
  font-size: 14px;
}
body {
  font-family: var(--font-primary);
  background: var(--gray-50);
  color: var(--primary);
  margin: 0;
  font-size: 0.93rem;
  min-height: 100vh;
}
/* Prevent stray horizontal scrollbars globally */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior: none; }

/* Filter bar (categories + price range) - single-line compact */
.res-portal-filter-bar { --filter-height: 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding: 0; box-sizing:border-box; margin:24px 100px 10px 100px; position: relative; width: calc(100% - 200px); }
.res-portal-filter-bar .res-portal-categories { min-width:0; display:flex; align-items:center; gap:18px; overflow-x:auto; white-space: nowrap; margin: 12px 0; padding: 0; width: 100%; max-width: 100%; flex: 1 1 auto; justify-content:flex-start; }
.res-portal-price-compact { display:flex; align-items:center; gap:12px; position: static; white-space: nowrap; }
.res-portal-price-filter { display:flex; align-items:center; gap:6px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:0 8px 0 6px; box-shadow:0 2px 8px rgba(0,0,0,0.04); height: var(--filter-height); }
.res-portal-price-filter i { color:#1d4ed8; }
.res-portal-price-filter .price-input { width:92px; height: calc(var(--filter-height) - 12px); border:none; outline:none; background:transparent; padding:0 8px; border-radius:8px; font-size:0.9rem; color:#111827; appearance: textfield; }
.res-portal-price-filter .price-input::-webkit-outer-spin-button, .res-portal-price-filter .price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.res-portal-price-filter .dash { color:#6b7280; }
.res-portal-price-filter .price-apply { background:linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%); color:#fff; border:none; border-radius:10px; padding:6px 10px; cursor:pointer; box-shadow:0 4px 12px rgba(37,99,235,0.25); display:flex; align-items:center; justify-content:center; height: calc(var(--filter-height) - 8px); }
.res-portal-price-filter .price-apply i { color:#fff; }
.res-portal-price-filter .price-apply:hover { filter:brightness(1.05); }

/* Navbar: fully responsive */
.res-portal-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #020d27 0%, #092c80 100%);
  padding: 1.2vw 3vw;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Desktop floating glassy navbar (leave mobile untouched) */
@media (min-width: 1100px) {
  .res-portal-navbar {
    width: calc(100% - 40px);
    margin: 12px 20px 0 20px;
    left: 0;
    right: 0;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px -10px rgba(12, 60, 156, 0.733), 0 6px 18px -6px rgba(10, 1, 66, 0.616);
    border-radius: 26px;
    padding: 14px 34px;
  }
  .res-portal-navbar .res-portal-search {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: none;
  }
  .res-portal-navbar .res-portal-search input { color: #fff; }
  .res-portal-navbar .res-portal-search input::placeholder { color: rgba(255,255,255,0.70); }
  .res-portal-navbar .res-portal-search i { color: #d1d9e6; }
  .res-portal-cart-btn {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  }
  .res-portal-cart-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.35);
  }
  .res-portal-nav-btn {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .5px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
  }
  .res-portal-nav-btn:hover { background: rgba(255,255,255,0.24); transform: translateY(-1px); box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
  .res-portal-nav-btn:active { transform: translateY(0); }
  .res-portal-nav-btn .nav-icon { font-size: 1rem; display: grid; place-items: center; }
  .res-portal-nav-btn .nav-label { font-size: .72rem; text-transform: uppercase; }
}

/* Add padding to body to prevent content from going under navbar */
.res-portal-logo {
  height: min(48px, 8vw);
  max-width: 100%;
}
.res-portal-search {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 2vw;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0 1vw;
  max-width: 100%;
  box-sizing: border-box;
}
.res-portal-search input {
  border: none;
  outline: none;
  font-size: 0.93rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.8em 0;
  background: transparent;
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
}
.res-portal-search i {
  color: var(--gray-400);
  font-size: 1.2rem;
  margin-right: 8px;
}
.res-portal-cart-btn {
  background: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  position: relative; /* anchor for badge */
}
.res-portal-cart-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
             0 0 20px rgba(255, 255, 255, 0.6),
             0 0 30px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.res-portal-banner {
  width: 90%;
  margin: 8vw auto 3vw auto;
  background: #05070d;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: var(--radius-lg);
  position: relative;
  box-sizing: border-box;
  color: #fff;
  isolation: isolate;
  padding: clamp(10px,1.2vw,22px) clamp(16px,2vw,32px);
  min-height: 110px; /* shorter banner */
  overflow: hidden;
  line-height: 1.1;
}
.res-portal-banner .banner-image-layer { display: none; }
.res-portal-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px,1.8vw,26px) clamp(18px,2.4vw,38px);
  gap: 0.55rem;
  position: relative;
  z-index: 2;
}
.banner-title {
  font-size: clamp(1rem,0.8rem + 0.8vw,1.55rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  text-shadow: 0 2px 10px rgba(255,255,255,0.15),0 1px 4px rgba(0,0,0,0.55);
}
.badge-new {
  background: linear-gradient(135deg,#ff5f6d,#ffc371);
  color: #1d1d1d;
  font-size: .65em;
  font-weight: 800;
  padding: 4px 9px 3px;
  border-radius: 999px;
  letter-spacing: .5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.badge-new::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,#ffc37133,#ff5f6d33);
  filter: blur(6px);
  opacity: 0.25;
  animation: badgePulse 3.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { opacity: 0.15; transform: scale(.85); }
  50% { opacity: .75; transform: scale(1.15); }
}
.banner-tagline {
  font-size: clamp(.58rem,.5rem + .45vw,.8rem);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.2;
  opacity: .85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  margin-top: 2px;
}
.banner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.banner-cta-btn {
  --btn-grad: linear-gradient(135deg,#43e97b,#2a6aff);
  background: var(--btn-grad);
  color: #fff;
  text-decoration: none;
  font-size: clamp(.55rem,.5rem + .3vw,.7rem);
  font-weight: 600;
  padding: 6px 14px 6px;
  border-radius: 999px;
  letter-spacing: .45px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  transition: background .35s, transform .25s, box-shadow .35s;
  box-shadow: 0 3px 10px -2px rgba(42,106,255,0.45);
}
.banner-cta-btn.primary::before, .banner-cta-btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.35) 45%,rgba(255,255,255,0) 100%);
  mix-blend-mode: overlay;
  animation: sheen 5s linear infinite;
}
@keyframes sheen {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(150%); }
  100% { transform: translateX(150%); }
}
.banner-cta-btn.ghost {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.4);
}
.banner-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -2px rgba(42,106,255,.55); }
.banner-cta-btn.ghost:hover { background: rgba(255,255,255,.18); }
.banner-cta-btn:active { transform: translateY(0); }

/* Pulsing ambient lights */
.pulse-light {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: .14;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pulseFade 7s ease-in-out infinite;
  z-index: 1;
}
.pulse-light.pl-1 { background: #1d5bff; top: -45%; left: -20%; animation-delay: 0s; }
.pulse-light.pl-2 { background: #4aa3ff; bottom: -55%; left: 50%; margin-left: -150px; animation-delay: 1.8s; }
.pulse-light.pl-3 { background: #6fb8ff; top: -35%; right: -25%; animation-delay: 3.6s; }
@keyframes pulseFade {
  0%,100% { opacity: .05; transform: scale(.65); }
  45% { opacity: .35; transform: scale(1); }
  70% { opacity: .15; transform: scale(.85); }
}

@media (max-width: 900px) {
  .res-portal-banner { width: 90%; padding: 10px 18px; min-height: 105px; }
}
@media (max-width: 1100px) {
  .res-portal-banner { width: 100%; margin: 12px 0 16px; padding: 14px 16px 18px; border-radius: 14px; min-height: 120px; }
  .banner-title { font-size: 1.15rem; letter-spacing: .25px; }
  .banner-tagline { font-size: .68rem; line-height: 1.28; margin-top: 4px; margin-bottom: 6px; max-width: 95%; }
  .banner-cta { gap: 8px; }
  .banner-cta-btn { padding: 6px 14px 6px; font-size: .62rem; }
  .pulse-light { width: 210px; height: 210px; filter: blur(70px); }
  .pulse-light.pl-1 { top: -60%; left: -30%; }
  .pulse-light.pl-2 { bottom: -55%; left: 50%; margin-left: -105px; }
  .pulse-light.pl-3 { top: -50%; right: -38%; }
}

/* Extra small devices refinement */
@media (max-width: 480px) {
  .res-portal-banner { padding: 16px 14px 20px; min-height: 138px; }
  .banner-title { font-size: 1.05rem; }
  .banner-tagline { font-size: .64rem; line-height: 1.25; }
  .banner-cta { flex-wrap: nowrap; gap: 6px; }
  .banner-cta-btn { flex: 1 1 auto; text-align: center; justify-content: center; padding: 7px 10px 7px; font-size: .58rem; }
  .pulse-light { width: 190px; height: 190px; filter: blur(65px); }
  .pulse-light.pl-2 { margin-left: -95px; }
}

.res-portal-nav {
  display: flex;
  justify-content: center;
  gap: 4vw;
  margin-bottom: 2vw;
  margin-top: 2vw;
  padding: 0.5vw 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
.res-portal-nav-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  font-size: .9rem;
  font-weight: 600;
  height: 46px;
  width: 52px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width .28s cubic-bezier(.21,.8,.32,1), background .25s ease, box-shadow .25s ease, transform .25s ease;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 14px;
}
.res-portal-nav-btn.active, .res-portal-nav-btn:hover {
  background: rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.45);
  width: 128px;
  transform: translateY(-2px);
}
.res-portal-nav-btn .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  width: auto;
  margin-left: 6px;
  min-width: 20px;
  pointer-events: none;
  transition: transform .25s ease;
}
.res-portal-nav-btn .nav-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
  letter-spacing: .5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  width: 0;
  white-space: nowrap;
  transition: opacity .25s ease .05s, width .28s cubic-bezier(.21,.8,.32,1);
}
.res-portal-nav-btn:hover .nav-label { opacity:1; width: auto; }


.res-portal-categories {
  display: flex;
  justify-content: center;
  gap: 1.2vw;
  margin: 1.8vw 0 2.4vw 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
  align-items: center;
}

@media (max-width: 1100px) {
  .res-portal-categories {
    display: flex !important;
    gap: 8px !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    align-items: center !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .res-portal-categories::-webkit-scrollbar {
    display: none !important;
  }
  /* Make category chips adapt: shrinkable, ellipsized text, responsive sizing */
  .res-portal-category-btn {
    flex: 0 1 auto !important; /* allow shrinking */
    min-width: auto !important; /* no hard minimum */
    max-width: 44vw !important; /* prevent any single chip from dominating */
    padding: 0 10px !important; /* slightly tighter padding on small screens */
    font-size: clamp(.62rem, 3.2vw, .8rem) !important; /* scale text with viewport */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* show ellipsis if very narrow */
  }
  @media (max-width: 380px) {
    .res-portal-category-btn { max-width: 50vw !important; padding: 0 8px !important; }
  }
}
.res-portal-category-btn {
  background: var(--gray-200);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  height: var(--filter-height);
  min-width: 96px;
  text-align: center;
  box-sizing: border-box;
}
.res-portal-category-btn.active, .res-portal-category-btn:hover {
  background: linear-gradient(90deg, #2a6aff 0%, #112c70 100%);
  color: var(--white);
}

.res-portal-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 24px 24px 24px;
  width: calc(100% - 200px);
  margin: 6px 100px 24px 100px;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .res-portal-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: calc(100% - 100px);
    margin: 0 50px;
  }
}
@media (max-width: 800px) {
  .res-portal-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: calc(100% - 60px);
    margin: 0 30px;
  }
  .res-portal-product-card .card-image-top { height: 160px; }
  .res-portal-add-cart-btn { height: 36px; }
}
@media (max-width: 600px) {
  .res-portal-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px 20px 10px;
    width: 100%;
    margin: 0;
  }
  .res-portal-product-img {
    height: 120px;
  }
}
/* Inventory-style product card for reservation portal */
.res-portal-product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(67,56,202,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.res-portal-product-card:hover {
  box-shadow: 0 10px 24px rgba(17,24,39,0.12);
  transform: translateY(-4px);
}
.res-portal-product-card .card-image-top {
  width: calc(100% + 36px);
  height: 180px;
  background: #e2e8f0;
  margin: -18px -18px 10px -18px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.res-portal-product-card .card-image-top img { display:block; }
.res-portal-product-card .card-image-top::after { content: none !important; }
.res-portal-product-card .card-image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.res-portal-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.res-portal-product-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  text-align: left;
}
.res-portal-product-brand {
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
  text-align: left;
}
.res-portal-product-color {
  font-size: 0.8rem;
  color: #374151;
}
.res-portal-product-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  margin-top: 6px;
}
.res-portal-product-stock {
  font-size: 0.78rem;
  color: #2a6aff;
  font-weight: 600;
  margin-top: -18px;
  align-self: flex-end;
}
.res-portal-product-sizes {
  font-size: 0.78rem;
  color: #374151;
  margin-top: 6px;
  margin-bottom: 10px;
}
.res-portal-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 36px);
  height: 32px;
  border-radius: 0 0 16px 16px;
  font-size: 0.85rem;
  margin: 8px -18px -18px -18px;
  padding: 0;
  border: none;
  color: #fff;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  /* push button to bottom of the flex column card */
  margin-top: auto;
}
.res-portal-add-cart-btn:hover { background: linear-gradient(90deg,#3b82f6 0%,#1d4ed8 100%); transform: translateY(-1px); box-shadow:0 8px 18px rgba(37,99,235,0.45); }
.res-portal-add-cart-btn:active { transform: translateY(0); box-shadow:0 3px 8px rgba(0,0,0,0.2); }

/* Accessibility contrast adjustments */
.res-portal-product-card:focus-within, .res-portal-product-card:focus { outline:2px solid #3b82f6; outline-offset:2px; }

/* Preserve modal styling by scoping only cards (modal uses .product-modal-card) */
.product-modal-card { background: var(--white, #ffffff); }

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.product-modal-card {
    background: var(--white, #ffffff);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 540px;
    width: 95%;
    margin: auto;
    padding: 24px 20px 20px 20px;
    position: relative;
    z-index: 1001;
    animation: fadeIn 0.4s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--gray-600, #666);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--gray-800, #333);
}

.product-modal-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-modal-image {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 16px;
}

.product-placeholder i {
    font-size: 3rem;
    color: #999;
    opacity: 0.5;
}

.product-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-modal-info h2 {
    font-family: var(--font-secondary, 'Montserrat');
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--primary, #222);
}

.product-modal-info p {
    font-size: 0.86rem;
    color: var(--gray-700, #444);
    margin-bottom: 2px;
}

.product-modal-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success, #48bb78);
    margin-bottom: 6px;
}

.product-modal-sizes {
    margin-top: 8px;
    margin-bottom: 8px;
}

.product-modal-sizes label {
    font-family: var(--font-secondary, 'Montserrat');
    font-size: 0.86rem;
    color: var(--gray-600, #666);
    margin-bottom: 4px;
    display: block;
}

.modal-size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.size-option-label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100, #f7f7f7);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--gray-700, #444);
    border: 1px solid var(--gray-200, #eee);
    transition: all 0.2s;
}

.size-option-label input[type="radio"] {
    accent-color: var(--primary, #2a6aff);
}

.size-option-label:hover,
.size-option-label.selected {
    background: linear-gradient(to top right, #112c70 0%, #2a6aff 100%);
    color: var(--white, #fff);
    border-color: var(--primary, #2a6aff);
}

.size-option {
    font-weight: 600;
    font-size: 0.86rem;
}

.product-modal-colors {
    margin-top: 16px;
}

.product-modal-colors label {
    font-family: var(--font-secondary, 'Montserrat');
    font-size: 0.86rem;
    color: var(--gray-600, #666);
    margin-bottom: 4px;
    display: block;
}

.modal-color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.color-option-label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100, #f7f7f7);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--gray-700, #444);
    border: 1px solid var(--gray-200, #eee);
    transition: all 0.2s;
}

.color-option-label input[type="radio"] {
    display: none;
}

.color-option-label:hover,
.color-option-label.selected {
    background: linear-gradient(to top right, #112c70 0%, #2a6aff 100%);
    color: var(--white, #fff);
    border-color: var(--primary, #2a6aff);
}

.color-option {
    font-weight: 600;
    font-size: 0.86rem;
}

.product-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-action-btn {
    padding: 8px 18px;
    border-radius: 12px;
    font-family: var(--font-primary, 'Roboto');
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    height: 48px;
    justify-content: center;
}

.modal-cancel {
    background: var(--gray-100, #f7f7f7);
    color: var(--gray-700, #444);
}

.modal-cancel:hover {
    background: var(--gray-200, #eee);
}

.modal-add-to-cart {
    background: linear-gradient(to top right, #112c70 0%, #2a6aff 100%);
    color: var(--white, #fff);
}

.modal-add-to-cart:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 106, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive modal styles */
@media (max-width: 700px) {
    .product-modal-card {
        margin: 20px;
        padding: 0;
        width: calc(100% - 40px);
        max-height: 85vh;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }

    .product-modal-content {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 80px; /* Space for sticky buttons */
    }

    .product-modal-image {
        flex: none;
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }

    .product-modal-info {
        width: 100%;
    }

    .product-modal-sizes,
    .product-modal-colors {
        margin-top: 20px;
        width: 100%;
    }

    .modal-size-options,
    .modal-color-options {
        justify-content: flex-start;
    }

    .product-modal-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin: 0;
        flex-direction: row;
        gap: 12px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .modal-action-btn {
        flex: 1;
        min-width: auto;
    }

    .modal-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 1003;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
    }
}

/* Mobile Cart Modal */
@media (max-width:700px){
  .cart-dropdown { display:none !important; }
  .cart-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(3px); z-index:1800; display:flex; align-items:center; justify-content:center; padding:18px; animation: cartFadeSlide .25s ease; }
  .cart-modal-window { background:#fff; width:100%; max-width:420px; max-height:85vh; border-radius:20px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 16px 40px -10px rgba(0,0,0,0.35),0 6px 18px rgba(0,0,0,0.15); }
  .cart-modal-header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:linear-gradient(135deg,#112c70,#2a6aff); color:#fff; }
  .cart-modal-header .cart-header-title { display:flex; align-items:center; gap:10px; font-weight:700; font-family:var(--font-secondary,'Montserrat'); }
  .cart-modal-header .cart-header-title .cart-header-icon { background:transparent; color:#fff; }
  .cart-modal-header h3 { font-size:1rem; font-weight:600; margin:0; font-family:var(--font-secondary,'Montserrat'); }
  .cart-modal-close { background:transparent; border:none; color:#fff; font-size:1.2rem; cursor:pointer; }
  .cart-modal-body { flex:1; overflow-y:auto; padding:14px 18px 4px 18px; }
  .cart-modal-items .cart-item { padding:10px 0; }
  .cart-modal-footer { padding:14px 18px 18px 18px; border-top:1px solid #e3e6ef; background:#fafbfe; display:flex; flex-direction:column; gap:12px; }
  .cart-modal-footer .cart-total-row { margin-bottom:4px; }
  .cart-modal-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .cart-modal-actions .cart-modal-clear { display:inline-flex; align-items:center; gap:8px; background:transparent; color:#ef4444; border:1px solid rgba(239,68,68,0.35); padding:8px 12px; border-radius:8px; }
  .cart-modal-actions .cart-modal-clear:disabled { opacity:.5; }
  .cart-modal-actions .cart-modal-checkout { flex:0 0 auto; width:auto; }
  .cart-modal-checkout { width:100%; }
  body.cart-modal-open { overflow:hidden; }
}
@media (max-width:700px){
  /* refine cart modal scroll area */
  .cart-modal-window { max-width:460px; }
  .cart-modal-body { max-height:390px; }
  /* graceful overscroll effect */
  .cart-modal-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* Larger screens (tablet portrait up) if modal ever used beyond mobile */
@media (min-width:701px){
  .cart-modal-window { max-width:520px; }
  .cart-modal-body { max-height:420px; overflow-y:auto; }
}
/* Cart Dropdown */
/* Keep navbar fixed/sticky across breakpoints; still serves as positioned ancestor for dropdown */
.res-portal-navbar { position: fixed !important; top: 0 !important; left: 0 !important; }
.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 8px;
  width: 320px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1500;
  border: 1px solid rgba(0,0,0,0.06);
  animation: cartFadeSlide .25s ease;
}
.cart-dropdown.open { display: flex; }
.cart-dropdown.sticky { position: absolute !important; top: 100% !important; right: 8px !important; }
.cart-dropdown-header { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; font-weight:600; font-family: var(--font-secondary, 'Montserrat'); background: linear-gradient(135deg,#112c70,#2a6aff); color:#fff; }
.cart-close-btn { background:transparent; border:none; color:#fff; font-size:1.1rem; cursor:pointer; }
.cart-header-title { display:flex; align-items:center; gap:8px; }
.cart-header-icon { font-size: 1rem; background:transparent; color:#fff; border-radius:6px; padding:0; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; }
.cart-clear-btn { background: rgba(255,255,255,0.14); color:#fff; border:1px solid rgba(255,255,255,0.25); padding:6px 10px; border-radius:10px; font-size:.75rem; cursor:pointer; transition:.2s; }
.cart-clear-btn:hover { background: rgba(255,255,255,0.22); }
.cart-dropdown-body { padding:12px 16px; overflow-y:auto; flex:1; max-height: 300px !important; }
/* Empty state styling */
.cart-empty { text-align:center; padding:28px 8px; color: var(--gray-600,#667); }
.cart-empty-icon { font-size: 2rem; opacity: .7; margin-bottom: 8px; }
.cart-empty-title { font-weight: 700; color: #4a5568; margin-bottom: 4px; }
.cart-empty-subtitle { font-size: .9rem; color: #718096; }
@media (max-width:700px){
  .cart-dropdown { right:6px; width: calc(100% - 32px); max-height:65vh; }
  .cart-dropdown.sticky { top:52px; right:6px; }
  .cart-dropdown-body { max-height: 280px !important; }
}
.cart-empty { font-size:.85rem; color: var(--gray-600,#666); text-align:center; padding:24px 0; }
.cart-item { display:flex; gap:10px; padding:12px 0; border-bottom:1px solid #eee; }
.cart-item.trendy { align-items:center; gap:12px; }
.cart-item-left { flex:0 0 auto; }
.cart-item:last-child { border-bottom:none; }
.cart-item-img { width:54px; height:54px; border-radius:12px; background: #f5f7fb; display:flex; align-items:center; justify-content:center; font-size:1rem; color:#546; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,0.06); }
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-center { flex:1; display:flex; flex-direction:column; gap:6px; min-width:0; }
.cart-item-info { flex:1; display:flex; flex-direction:column; gap:2px; font-size:.70rem; }
.cart-item-title { font-weight:600; font-size:.75rem; line-height:1.1; }
.cart-item-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:.66rem; color:#556; }
.cart-item-info-line { display:flex; gap:6px; flex-wrap:wrap; min-width:0; }
.cart-item-actions { display:flex; align-items:center; gap:8px; }
.cart-item-price { font-weight:600; color:#1e3a8a; font-size:.72rem; }
.cart-item-footer { display:none; }
.cart-item-right { display:none; }
.cart-item-qty { display:flex; align-items:center; justify-content:center; gap:6px; padding:2px 4px; background:#f8fafc; border-radius:10px; transform: translateY(-2px); }
.cart-item-qty .qty-val { min-width: 18px; text-align:center; font-weight:600; color:#243b6b; }
.qty-btn { background: linear-gradient(135deg,#112c70,#2a6aff); color:#fff; border:none; width:22px; height:22px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; line-height:1; cursor:pointer; box-shadow:0 2px 8px rgba(17,44,112,0.25); transition: transform .15s ease, filter .15s ease; }
.qty-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.qty-btn.disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
.cart-remove-btn { background:transparent; border:none; color:#888; cursor:pointer; font-size:.9rem; padding:6px; align-self:center; border-radius:8px; transition:.2s; }
.cart-remove-btn:hover { color:#c0392b; background:#f7f2f2; }
.cart-remove-btn:hover { color:#c0392b; }
.cart-dropdown-footer { padding:12px 16px 16px 16px; border-top:1px solid #eee; background:#fafbfd; }
.cart-total-row { display:flex; justify-content:space-between; font-weight:600; font-size:.85rem; margin-bottom:10px; }
.cart-checkout-btn { width:100%; background: linear-gradient(to top right,#112c70,#2a6aff); color:#fff; border:none; padding:12px 16px; font-weight:600; font-family: var(--font-secondary,'Montserrat'); border-radius:10px; cursor:pointer; font-size:.8rem; box-shadow:0 4px 12px rgba(17,44,112,0.25); transition:.2s; }
.cart-checkout-btn:disabled { opacity:.5; cursor: not-allowed; box-shadow:none; }
.cart-checkout-btn:not(:disabled):hover { filter:brightness(1.1); transform:translateY(-2px); }

@keyframes cartFadeSlide { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }
/* Floating Shoe Conversion Button */
.floating-conversion-btn { position:fixed; bottom:22px; right:22px; z-index:1700; background:linear-gradient(135deg,#112c70,#2a6aff); color:#fff; width:54px; height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:50%; text-decoration:none; font-size:1.2rem; box-shadow:0 8px 20px -6px rgba(0,0,0,0.35),0 4px 10px rgba(0,0,0,0.18); transition:box-shadow .25s, transform .25s; overflow:hidden; }
.floating-conversion-btn:hover { transform:translateY(-4px); box-shadow:0 14px 28px -8px rgba(0,0,0,0.45),0 6px 14px rgba(0,0,0,0.22); }
.floating-conversion-btn:active { transform:translateY(-1px) scale(.96); }
.floating-conversion-btn .floating-conversion-label { position:absolute; right:60px; white-space:nowrap; background:#112c70; padding:6px 12px; border-radius:30px; font-size:.7rem; letter-spacing:.5px; opacity:0; transform:translateX(10px); pointer-events:none; transition:.25s; box-shadow:0 4px 12px rgba(0,0,0,0.25); }
.floating-conversion-btn:hover .floating-conversion-label { opacity:1; transform:translateX(0); }
@media (max-width:700px){ .floating-conversion-btn { position:fixed; width:54px; height:54px; bottom:14px; right:14px; font-size:1.15rem; box-shadow:0 10px 24px -6px rgba(0,0,0,0.4),0 4px 10px rgba(0,0,0,0.22); } .floating-conversion-btn:active { transform:scale(.94); } /* If cart modal open, raise above */ body.cart-modal-open .floating-conversion-btn { z-index:1850; } }
/* Mobile fine-tune: smaller & lower floating conversion button */
@media (max-width:700px){
  .floating-conversion-btn {
    width:46px; height:46px; bottom:10px; right:10px; font-size:1rem;
  }
}

/* Laravel-powered enhancements */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  grid-column: 1 / -1;
  position: relative;
}

.loading-spinner::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid rgba(42, 106, 255, 0.1);
  border-top: 4px solid #2a6aff;
  border-right: 4px solid #2a6aff;
  border-radius: 50%;
  animation: spin-trendy 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  box-shadow: 0 4px 12px rgba(42, 106, 255, 0.15);
}

.loading-spinner::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top: 3px solid rgba(42, 106, 255, 0.3);
  border-radius: 50%;
  animation: spin-reverse 1.2s linear infinite;
}

@keyframes spin-trendy {
  0% { 
    transform: rotate(0deg) scale(1);
  }
  50% { 
    transform: rotate(180deg) scale(1.05);
  }
  100% { 
    transform: rotate(360deg) scale(1);
  }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-size: 0.9rem;
  color: #dc3545;
  text-align: center;
}

/* Logged-in user profile dropdown (modern) */
.sv-user { position: relative; }
.sv-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
}
.sv-user-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.sv-user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: #e0e7ff; color: #3730a3;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
}
.sv-user-name { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-user-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px; background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  padding: 8px;
  display: none;
  z-index: 1000;
}
.sv-user-menu.open { display: block; animation: sv-fade-in-up .16s ease; }
.sv-user-meta { padding: 10px; border-bottom: 1px solid rgba(0,0,0,.06); }
.sv-user-email { font-size: 0.85rem; color: #6b7280; word-break: break-all; }
.sv-user-item {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  border: 0; background: transparent; color: #0f172a;
  cursor: pointer; font-weight: 800;
}
.sv-user-item:hover { background: #f8fafc; }
.sv-user-item.danger { color: #dc2626; }

@keyframes sv-fade-in-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile-friendly compact profile */
@media (max-width: 700px) {
  .sv-user-btn {
    padding: 0;
    width: 24px;
    height: 24px;
    justify-content: center;
    gap: 0;
  }
  .sv-user-name,
  .sv-user-btn i {
    display: none;
  }
  .sv-user-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
  }
  .sv-user-menu {
    min-width: 200px;
  }
  /* On mobile, render the user menu as a fixed overlay outside the navbar
     so it doesn't get clipped by the fixed navbar or parent stacking context. */
  .sv-user-menu {
    position: fixed !important;
    top: 54px !important; /* push below navbar (navbar ~44px + small gap) */
    right: 12px !important;
    left: auto !important;
    width: calc(100% - 24px) !important;
    max-width: 250px !important;
    min-width: 100px !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18) !important;
    background: #fff !important;
    display: none !important; /* keep default hidden; `.open` will show */
    z-index: 2000 !important;
    padding: 8px !important;
  }
  .sv-user-menu.open { display: block !important; }
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc3545;
  color: #fff;
  border-radius: 999px;
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 16px;
  z-index: 2;
  pointer-events: none;
}

.qty-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.size-option-label.out-of-stock {
  opacity: 0.5;
}

.size-option-label.out-of-stock .size-option {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.no-sizes {
  text-align: center;
  color: var(--gray-600, #666);
  font-style: italic;
  padding: 20px;
}
/* Sorting filter (chips) */
.res-portal-sorting-filter { margin-top: 0px; background:#f7faff; border-radius:12px; display:flex; justify-content: center; gap:10px; }
.sorting-label { font-weight:700; color:#2343ce; font-size:1rem; display:flex; align-items:center; gap:6px; letter-spacing:.2px; }
.sorting-label i { color:#2343ce; }
.sorting-options { display:flex; gap:8px; flex-wrap:wrap; }
.sort-chip { background:#f3f6fd; color:#2343ce; border:none; border-radius:999px; padding:6px 18px; font-size:.88rem; font-weight:600; cursor:pointer; transition: background .18s, color .18s, box-shadow .18s; box-shadow:0 2px 8px rgba(35,67,206,0.07); text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.sort-chip i { font-size:0.75rem; opacity:0.7; transition: opacity .18s; }
.sort-chip.active, .sort-chip:hover, .sort-chip:focus { background: linear-gradient(90deg,#2343ce 0%, #2a6aff 100%); color:#fff; box-shadow:0 4px 16px rgba(35,67,206,0.13); }
.sort-chip.active i, .sort-chip:hover i, .sort-chip:focus i { opacity:1; }
@media (max-width: 700px){ .res-portal-sorting-filter { padding:0; } }
@media (max-width: 420px){ .res-portal-sorting-filter { flex-wrap: wrap; } }

@media (max-width:1100px){
  .res-portal-nav-btn { width:46px !important; flex-direction:column !important; padding:4px !important; overflow:visible !important; }
  .res-portal-nav-btn:hover, .res-portal-nav-btn.active { width:46px !important; background: rgba(255,255,255,0.22) !important; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35) !important; transform:none !important; }
  .res-portal-nav-btn .nav-label { opacity:1 !important; width:100% !important; }
  .res-portal-nav-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  border-radius: 1.2em;
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  width: min(100px, 16vw);
  height: min(100px, 16vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(50,81,154,0.08);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, color 0.2s;
  /* margin removed for desktop; now only on mobile */

}
.res-portal-nav-btn .nav-label {
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
  color: white;
}
}
/* ===================== Popular Sidebars (Desktop) ===================== */
@media (min-width: 1600px) {
  .popular-sidebar { position: fixed; top: 120px; bottom: 50px; width: 250px; padding: 18px 16px 34px; margin: 0 24px; box-sizing: border-box; overflow-y: auto; background: linear-gradient(135deg, rgba(2,13,39,0.95) 0%, rgba(9,44,128,0.92) 55%, rgba(25,78,210,0.85) 100%); color:#fff; z-index: 900; display:flex; flex-direction:column; gap:18px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 18px 42px -12px rgba(8,32,96,0.55), 0 6px 18px -6px rgba(5,20,60,0.45); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
  /* Shimmer overlay + subtle particle sparks */
  .popular-sidebar { overflow:hidden; }
  .popular-sidebar:after { content:''; position:absolute; inset:0; background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0) 65%); transform: translateX(-120%); animation: sidebarSheen 5.5s cubic-bezier(.25,.8,.35,1) infinite; pointer-events:none; }
  .popular-sidebar:before { content:''; position:absolute; top:-20px; left:-20px; width:80px; height:80px; background: radial-gradient(circle at center, rgba(255,184,71,0.55), rgba(255,184,71,0)); filter: blur(24px); opacity:.35; animation: flameAura 7s ease-in-out infinite; pointer-events:none; }
  .popular-sidebar.right { right:10px; left:auto; }
  .popular-sidebar.left { left:10px; right:auto; }
  .popular-sidebar-title { font-size: 0.95rem; font-weight:800; letter-spacing:.5px; display:flex; align-items:center; gap:6px; margin:0 0 4px 2px; }
  .popular-sidebar-title i { color:#ffb347; animation: flamePulse 2.8s ease-in-out infinite, flameFlicker .9s linear infinite alternate; }
  /* Sidebar product cards - compact, white cards for clarity */
  .popular-sidebar .popular-card {
    background: #ffffff; /* white card */
    color: var(--primary);
    border: 1px solid rgba(15,23,42,0.06);
    padding: 14px 14px 12px;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15,23,42,0.06);
    position: relative;
    overflow: hidden;
    transition: box-shadow .28s ease, transform .28s ease, background .28s ease;
  }
  /* remove bright radial overlay used for glassy look */
  .popular-sidebar .popular-card:before { display: none; content: none; }
  .popular-sidebar .popular-card:hover { box-shadow: 0 18px 44px rgba(15,23,42,0.10); transform: translateY(-4px); background: #ffffff; }
  .popular-sidebar .popular-card .card-image-top { height: 110px; margin: -14px -14px 10px -14px; border-radius: 14px 14px 10px 10px; background: #f7f7fb; }
  .popular-sidebar .popular-card .card-image-top img { transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .popular-sidebar .popular-card:hover .card-image-top img { transform: scale(1.04); }
  .popular-sidebar .popular-card .res-portal-product-title { font-size: 0.78rem; font-weight:700; letter-spacing:.2px; color: #111827; }
  .popular-sidebar .popular-card .res-portal-product-brand { font-size: 0.64rem; opacity:.8; letter-spacing:.4px; color: #6b7280; }
  .popular-sidebar .popular-card .res-portal-product-price { font-size: 0.78rem; margin-top: 6px; font-weight:800; color: var(--primary-dark); text-shadow: none; }
  .popular-sidebar .popular-card .res-portal-product-stock { font-size: 0.66rem; margin-top: 2px; font-weight:600; color:#2563eb; }
  .popular-sidebar .popular-card .res-portal-add-cart-btn { height: 32px; font-size: 0.72rem; margin: 8px -14px -12px -14px; border-radius: 0 0 14px 14px; background: linear-gradient(90deg,#2a6aff 0%, #123c8c 100%); box-shadow: 0 6px 16px rgba(18,60,120,0.12); color: #fff; }
  .popular-sidebar .popular-card .res-portal-add-cart-btn:hover { filter:brightness(1.05); }
  .popular-sidebar .popular-card .res-portal-add-cart-btn:active { transform:translateY(0); }
  .popular-sidebar::-webkit-scrollbar { width: 6px; }
  .popular-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
  .popular-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 10px; }
  /* Adjust main layout to accommodate sidebars */
  .res-portal-filter-bar { margin-left:360px; margin-right:360px; width: calc(100% - 720px); }
  .res-portal-products-grid { margin-left:360px; margin-right:360px; width: calc(100% - 720px); }
  .res-portal-banner { width: calc(100% - 720px); margin-left:360px; margin-right:360px; }
}
/* Keyframes for popular sidebar animations */
@keyframes sidebarSheen { 0% { transform: translateX(-120%); } 55% { transform: translateX(140%); } 100% { transform: translateX(140%); } }
@keyframes flameAura { 0%,100% { transform: scale(.85) translate(0,0); opacity:.28; } 50% { transform: scale(1.15) translate(12px,10px); opacity:.46; } }
@keyframes flamePulse { 0%,100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255,184,71,0)); } 50% { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 8px rgba(255,184,71,.55)); } }
@keyframes flameFlicker { 0% { filter: brightness(1) saturate(1); } 100% { filter: brightness(1.25) saturate(1.1); } }
@keyframes cardGlow { 0%,100% { box-shadow: 0 10px 26px rgba(15,23,42,0.06), 0 0 0 0 rgba(255,184,71,0); border-color: rgba(15,23,42,0.06); } 50% { box-shadow: 0 18px 44px rgba(15,23,42,0.12), 0 0 0 4px rgba(255,184,71,0.18); border-color: rgba(255,184,71,0.45); } }
/* Stagger glow across top 3 cards */
@media (min-width:1600px){
  .popular-sidebar .popular-card { animation: cardGlow 7s ease-in-out infinite; }
  .popular-sidebar .popular-card:nth-child(1){ animation-delay:.5s; }
  .popular-sidebar .popular-card:nth-child(2){ animation-delay:1.8s; }
  .popular-sidebar .popular-card:nth-child(3){ animation-delay:3.1s; }
}

/* Trending and Popular Badge Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.trending-badge, .popular-badge {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.trending-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Sidebar badge specific styles */
.sidebar-badge {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.55rem !important;
  padding: 2px 6px !important;
}

.sidebar-badge.trending-badge {
  animation: pulse 1.8s ease-in-out infinite;
}