/* ==========================================================================
   TYLO - Master Homepage Premium CSS (Header to Banner)
   Theme: Black + White + Mint Glossy Premium
   ========================================================================== */

:root {
  --bold-black: #020202;
  --soft-black: #1a1a1a;
  --charcoal: #2a2a2a;
  --white: #ffffff;
  --off-white: #f8f9fa;

  --mint-primary: #2ebf91;
  --mint-light: #a8ff78;
  --mint-gradient: linear-gradient(145deg, #a8ff78, #2ebf91);
  --mint-gloss-shadow: 0 4px 12px rgba(46, 191, 145, 0.25);

  --saffron-primary: #e67300;
  --saffron-gradient: linear-gradient(145deg, #ff9933, #e67300);

  --border-delicate: 1px solid rgba(0, 0, 0, 0.06);
  --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.04);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.theme-black-white-mint {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--off-white);
  color: var(--bold-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HEADER SECTION
   ========================================================================== */
.header-main {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  border-bottom: var(--border-delicate);
  position: sticky;
  top: 0;
  z-index: 3000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.header-main.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-main { background: var(--white); }
}

/* Premium Mint Glossy Top Strip Overlay */
.header-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--mint-gradient);
  box-shadow: var(--mint-gloss-shadow), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  z-index: 3001;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1536px;
  margin: 0 auto;
  padding: 14px 32px;
  gap: 24px;
}

/* Premium Mint Glossy Polished Blocks */
.user-actions {
  background: linear-gradient(145deg, rgba(168, 255, 120, 0.12), rgba(46, 191, 145, 0.04));
  border: 1px solid rgba(46, 191, 145, 0.25);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(46, 191, 145, 0.08);
  border-radius: 12px;
  padding: 8px 20px;
  transition: var(--transition-smooth);
}

.user-actions:hover {
  background: linear-gradient(145deg, rgba(168, 255, 120, 0.2), rgba(46, 191, 145, 0.08));
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(46, 191, 145, 0.12);
}

/* Brand & Logo */
.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.header-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1.brand-text {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.brand-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1.1;
  background: linear-gradient(145deg, #ffcc80 0%, #ff8800 35%, #e65c00 70%, #ffaa33 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 3px rgba(230, 92, 0, 0.4));
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  background: var(--mint-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--mint-primary);
  filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.15));
}

/* Location Block */
.location-block {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  cursor: pointer;
}

.location-details {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}

.location-city {
  font-weight: 700;
  color: var(--bold-black);
}

.location-pincode-wrapper {
  margin-top: 2px;
}

.location-pincode {
  font-size: 12px;
  font-weight: 800;
  background: var(--mint-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.location-date {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.location-city,
.location-pincode {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* Location Button (box-free) */
.location-block {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 4px 8px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.location-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Pulsing Live Location Dot */
.location-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5b5b5;
  flex: 0 0 8px;
}

.location-live-dot.is-locating {
  background: #d4af37;
  animation: tylo-pulse-gold 1.4s ease-out infinite;
}

.location-live-dot.is-live {
  background: var(--mint-primary);
  animation: tylo-pulse-mint 2s ease-out infinite;
}

@keyframes tylo-pulse-mint {
  0%   { box-shadow: 0 0 0 0 rgba(46, 191, 145, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 191, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 191, 145, 0); }
}

@keyframes tylo-pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Search & Action Area */
.search-action-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: 32px;
  padding-left: 32px;
}

/* Luxury Search Bar */
.search-container {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f4fdf8);
  border: 1px solid #2ebf91;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 3px 8px rgba(46, 191, 145, 0.15);
  border-radius: 8px;
  padding: 6px 16px;
  width: 100%;
  max-width: 480px;
  margin-right: 0;
  transition: var(--transition-smooth);
  position: relative;
}

.search-container:focus-within,
.search-container:hover {
  background: linear-gradient(145deg, #ffffff, #fff7f0);
  border: 1px solid var(--saffron-primary);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 5px 15px rgba(230, 115, 0, 0.25);
  outline: none;
}

.search-input {
  border: none;
  background: transparent;
  padding: 8px 0;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  color: var(--bold-black);
}

.search-input::placeholder {
  color: #999;
  font-weight: 400;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon-semantic {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s;
}

.search-icon-semantic::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 6px;
  background: var(--charcoal);
  bottom: -4px;
  right: -3px;
  transform: rotate(-45deg);
  transition: background 0.3s;
}

.search-container:focus-within .search-icon-semantic {
  border-color: var(--saffron-primary);
}

.search-container:focus-within .search-icon-semantic::after {
  background-color: var(--saffron-primary);
}

/* Search Suggestions Panel */
.search-suggestions-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border: 1px solid rgba(230, 115, 0, 0.2);
  z-index: 3000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-suggestions-panel:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestion-item {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.is-focused {
  background: linear-gradient(145deg, #fffaf5, #ffffff);
}

.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--bold-black);
}

.suggestion-title mark {
  background: transparent;
  color: var(--saffron-primary);
  font-weight: 800;
}

.suggestion-type {
  font-size: 11px;
  color: #1b8a5f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-no-result {
  padding: 30px 20px;
  text-align: center;
  color: #888;
  font-size: 13.5px;
  font-weight: 500;
}

.suggestion-no-result span {
  display: block;
  color: var(--bold-black);
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 16px;
}

/* User Actions & Dropdowns */
.user-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--bold-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  transition: color 0.3s;
}

.dropdown-trigger:hover {
  color: var(--mint-primary);
}

.indicator-triangle {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
}

.dropdown-wrapper.is-active .indicator-triangle {
  transform: rotate(180deg);
}

/* Dropdown Menu Stable Layout */
.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 8px; /* Safe visual spacing */
  left: 0;
  width: max-content;
  min-width: 200px;
  max-width: 90vw; /* Prevent viewport overflow */
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 5050;
}

.cart-dropdown .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px; /* Invisible bridge to prevent mouse falling into gap */
  left: 0;
  width: 100%;
  height: 15px;
}

/* Unified hover and JS state system */
.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper.is-active .dropdown-menu,
.dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-wrapper:hover .indicator-triangle,
.dropdown-wrapper.is-active .indicator-triangle {
  transform: rotate(180deg);
}

.dropdown-list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 100%;
}

.dropdown-list li {
  display: block;
}

.dropdown-item {
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
  text-decoration: none;
  width: 100%;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  color: var(--white);
  background: var(--saffron-gradient);
  padding-left: 28px;
}

.dropdown-item:hover::before {
  content: none;
}

.highlight-signup {
  background: var(--mint-gradient);
  color: var(--bold-black);
  font-weight: 800;
  margin: 8px 16px;
  padding: 12px;
  border-radius: 8px;
  justify-content: center;
  box-shadow: var(--mint-gloss-shadow);
}

.highlight-signup:hover {
  padding-left: 12px;
  background: linear-gradient(145deg, #bdf0d5, #2ebf91);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 6px 15px rgba(46, 191, 145, 0.35);
  transform: translateY(-1px);
  color: var(--bold-black);
}

.highlight-signup:hover::before {
  display: none;
}

/* ==========================================================================
   2. CATEGORY STRIP (Clean Horizontal Navigation)
   ========================================================================== */
.category-strip {
  background: var(--white);
  border-bottom: var(--border-delicate);
  position: relative;
  z-index: 1500;
  overflow: visible;
}

.category-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 40px;
  overflow-x: visible; /* fixed practical issue */
  overflow-y: visible; /* fixed practical issue */
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 16px 0;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.category-link {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: linear-gradient(145deg, #147a51, #0a4d33);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0a4d33;
  text-shadow: 0 1px 1px rgba(27, 138, 95, 0.1);
}

.category-item:hover .category-link,
.category-item .category-link.active-category {
  background: linear-gradient(145deg, #d96600, #994d00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #d96600;
  text-shadow: 0 1px 2px rgba(230, 115, 0, 0.2);
}

.category-item::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(145deg, #2ebf91, #1b8a5f);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-item:hover::before {
  width: 100%;
  background: linear-gradient(145deg, #d96600, #994d00);
  box-shadow: 0 -1px 4px rgba(230, 115, 0, 0.4);
}

.category-dropdown-indicator {
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #1b8a5f;
  transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.category-dropdown-indicator.is-open {
  transform: rotate(180deg);
  border-top-color: #e67300;
}

.three-dots-indicator-placeholder {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  color: #0d5c3d;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  order: -1;
  text-shadow: 0 1px 1px rgba(27, 138, 95, 0.15);
}

.three-dots-indicator-placeholder::before {
  content: '✦';
}

.category-item:hover .three-dots-indicator-placeholder,
.category-link.active-category + .three-dots-indicator-placeholder {
  color: #e67300;
  text-shadow: 0 1px 2px rgba(230, 115, 0, 0.3);
  transform: scale(1.1);
}

/* ==========================================================================
   2A. CATEGORY PANELS
   ========================================================================== */
.category-dropdown-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: max-content;
  min-width: 260px;
  max-width: 90vw;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2000;
}

.category-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.category-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.category-dropdown-panel.align-right {
  left: auto;
  right: 0;
  transform: translateY(-8px);
}

.category-dropdown-panel.align-right.is-open {
  transform: translateY(0);
}

.panel-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel-item {
  position: relative;
  width: 100%;
}

.panel-link {
  display: block;
  text-align: left;
  padding: 12px 24px;
  background: var(--white);
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.panel-link:hover,
.panel-link.active-item {
  color: var(--white) !important;
  background: var(--saffron-gradient) !important;
  box-shadow: 0 4px 12px rgba(230, 115, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  border-color: transparent !important;
  text-shadow: none !important;
  transform: translateY(-2px);
}

/* Accessibility & State classes */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.dropdown-item:focus-visible {
  outline-offset: -2px;
}

.panel-link:focus-visible {
  outline-offset: -2px;
  background: rgba(46, 191, 145, 0.08);
}

/* ==========================================================================
   3. MASTER BANNER SECTION (Full-Width Crossfade)
   ========================================================================== */
.master-banner-section {
  width: 100%;
  max-width: none;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
}

.banner-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  height: clamp(260px, 34vw, 480px);
  overflow: hidden;
  background: #111111;
}

.banner-track {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.banner-slide.is-active {
  visibility: visible;
  z-index: 2;
}

.banner-slide.is-leaving {
  visibility: visible;
  z-index: 1;
}

.banner-slide.no-transition {
  transition: none !important;
}

.banner-slide.enter-from-left  { transform: translate3d(-100%, 0, 0); }
.banner-slide.enter-from-top   { transform: translate3d(0, -100%, 0); }
.banner-slide.leave-to-right   { transform: translate3d(100%, 0, 0); }
.banner-slide.leave-to-bottom  { transform: translate3d(0, 100%, 0); }

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.02);
  transition: transform 0.6s ease-out, opacity 0.6s ease;
}

.banner-carousel:hover .banner-slide.is-active .banner-img {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.05);
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.banner-content {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 6vw, 96px);
  bottom: clamp(28px, 5vw, 64px);
  max-width: 560px;
  color: var(--white);
}

.banner-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(145deg, #f7e7ce, #d4af37);
}

.banner-badge[hidden] {
  display: none;
}

.banner-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 10px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.banner-subtitle {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  opacity: 0.92;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.banner-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.banner-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--white);
}

/* Champagne-Gold Shimmer Loader */
.media-loading {
  background: linear-gradient(110deg, #1a1a1a 8%, rgba(212, 175, 55, 0.28) 18%, #1a1a1a 33%);
  background-size: 200% 100%;
  animation: tylo-shimmer 1.6s linear infinite;
}

.media-loading .banner-img {
  opacity: 0;
}

@keyframes tylo-shimmer {
  to { background-position-x: -200%; }
}

/* ==========================================================================
   3A. PINCODE DIALOG & TOAST
   ========================================================================== */
.pincode-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pincode-modal[hidden] {
  display: none;
}

.pincode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pincode-modal-card {
  position: relative;
  width: min(92vw, 400px);
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.pincode-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
}

.pincode-modal-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 16px;
}

.pincode-use-gps {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--mint-primary);
  background: rgba(46, 191, 145, 0.06);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
}

.pincode-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pincode-label {
  font-size: 13px;
  color: var(--charcoal);
}

.pincode-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 16px;
  letter-spacing: 2px;
}

.pincode-input:focus {
  outline: 2px solid var(--mint-primary);
  outline-offset: 1px;
}

.pincode-error {
  color: #c0392b;
  font-size: 13px;
  margin: 0;
}

.pincode-error[hidden] {
  display: none;
}

.pincode-submit {
  padding: 12px;
  border-radius: 10px;
  border: 0;
  background: var(--saffron-gradient);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.tylo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 6500;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.tylo-toast[hidden] {
  display: none;
}

/* ==========================================================================
   4. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .header-container {
    padding: 14px 20px;
  }

  .location-block {
    padding: 0 16px;
  }

  .search-action-area {
    gap: 16px;
  }

  .category-dropdown-panel {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-section {
    align-self: flex-start;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .search-action-area {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .user-actions {
    position: static;
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
  }

  .location-block {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .category-list {
    padding: 0 16px;
    gap: 24px;
    justify-content: flex-start;
  }

  .banner-carousel { height: 240px; }

  .banner-content { left: 16px; right: 16px; bottom: 36px; }

  .category-dropdown-panel {
    width: 220px;
  }
}

/* ==========================================================================
   5. PREMIUM CATEGORY SHOWCASE STACK (Isolated Component)
   ========================================================================== */
.premium-showcase-stack {
  width: 100%;
  max-width: none; /* Full width, flush with the master banner */
  margin: 0 0 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* Strict requirement: No gaps between sections */
}

.showcase-block {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  background-color: var(--charcoal);
  margin: 0;
  border: none;
  cursor: pointer;
}

.showcase-block:focus-visible {
  outline: 2px solid var(--mint-primary);
  outline-offset: -4px;
}

.showcase-block:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.showcase-block:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.showcase-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.showcase-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.02);
  transition: opacity 2s ease-in-out, transform 0.6s ease-out; /* Smooth premium fade */
}

.showcase-bg-slide.is-active {
  opacity: 1;
}

.showcase-block:hover .showcase-bg-slide.is-active {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 3;
  padding: 40px 48px;
  width: 100%;
}

.showcase-line1 {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--mint-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.showcase-line2 {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Showcase Stack Responsive Setup */
@media (max-width: 1024px) {
  .premium-showcase-stack {
    padding: 0;
  }
  .showcase-block {
    height: 380px;
  }
  .showcase-content {
    padding: 32px 36px;
  }
  .showcase-line2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .premium-showcase-stack {
    padding: 0;
    margin-bottom: 32px;
  }
  .showcase-block {
    height: 340px;
  }
  .showcase-block:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .showcase-block:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .showcase-content {
    padding: 24px;
  }
  .showcase-line1 {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 4px;
  }
  .showcase-line2 {
    font-size: 28px;
  }
}

/* ==========================================================================
   6. MASTER FOOTER SECTION
   ========================================================================== */
.tylo-master-footer {
  background: linear-gradient(145deg, #111111, #020202);
  color: var(--white);
  position: relative;
  margin-top: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

.footer-accent-strip {
  width: 100%;
  height: 4px;
  background: var(--mint-gradient);
  box-shadow: var(--mint-gloss-shadow), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 60px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-heading {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 28px;
  height: 2px;
  background: var(--mint-gradient);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(46, 191, 145, 0.4);
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: #a0a0a0;
  margin-bottom: 12px;
}

.footer-text strong {
  color: var(--white);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links li a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links li a:hover {
  color: var(--mint-light);
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(168, 255, 120, 0.3);
}

.email-icon {
  font-size: 16px;
  color: var(--mint-primary);
  filter: drop-shadow(0 2px 4px rgba(46, 191, 145, 0.3));
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 32px;
  text-align: center;
  background: #000000;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  letter-spacing: 1.5px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 20px 40px 20px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    padding: 48px 16px 32px 16px;
    gap: 32px;
  }
  .footer-heading {
    margin-bottom: 16px;
  }
  .footer-bottom {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   7. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .banner-slide,
  .showcase-bg-slide,
  .banner-img {
    transition: none !important;
  }
  .media-loading,
  .location-live-dot {
    animation: none !important;
  }
  .banner-img,
  .showcase-bg-slide {
    transform: none !important;
  }
}