/* === GAP AI Shopping Assistant — Styles === */

@font-face {
  font-family: 'Gap Sans v1';
  src: url('/fonts/GapSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gap-navy: #031ba1;
  --gap-black: #111111;
  --gap-white: #ffffff;
  --gap-offwhite: #f8f8f8;
  --gap-grey: #767676;
  --gap-light-grey: #e5e5e5;
  --gap-blue: #003876;
  --gap-red: #e51937;
  --font-primary: 'Gap Sans v1', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Gap Sans v1', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--font-primary);
  color: var(--gap-black);
  background: var(--gap-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === BRAND BAR === */
.brand-bar-container {
  background: var(--gap-black);
justify-content: center;
}

.brand-bar {
  background: var(--gap-black);
  /* border-bottom: 1px solid var(--gap-light-grey); */
  display: flex;
  justify-content: normal;
  margin-left: 20%;
  gap: 32px;
  padding: 8px 40px;
}

.brand-link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: color var(--transition);
}

.brand-link:hover {
  color: var(--gap-white);
}

.brand-link.active {
  color: var(--gap-white);
  font-weight: 400;
  /*border-bottom: 2px solid var(--gap-white);*/
}

/* === PROMO BAR === */
.promo-bar {
  background: #0015FF;
  color: var(--gap-white);
  text-align: center;
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 400;
  border: 0 solid #e5e7eb;
  letter-spacing: normal;
  min-height: 45px;
}

/* === NAVIGATION === */
.nav-bar {
  background: var(--gap-white);
  color: var(--gap-black);
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* border-bottom: 1px solid var(--gap-light-grey); */
}

.nav-right {
  margin-left: auto;
}

.nav-logo {
  margin-left: 6%;
  margin-right: 10em;
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gap-black);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
  padding-inline-start: 4.5em;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  cursor: pointer;
  font-size: 20px;
  color: var(--gap-black);
  transition: opacity var(--transition);
}

.nav-icon:hover {
  opacity: 0.7;
}

.bag-count {
  background: var(--gap-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -8px;
  left: -8px;
}

.sitewide-lbcopk {
  margin-left: 2em;
}
.amp-cms--f-1 {
  font-size: 32px;
  font-weight: 400;
}

.amp-cms--f-2 {
  font-size: 64px;
  font-weight: 400;
}

/* === HERO === */
.hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white;
}

.hero-overlay h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-overlay p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  background: var(--gap-white);
  color: var(--gap-black);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-btn:hover {
  background: var(--gap-offwhite);
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.active {
  background: var(--gap-white);
}

/* === CATEGORY GRID === */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
}

.category-card {
  position: relative;
  height: auto;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.03);
}

.category-label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.category-label h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-label .shop-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
}

/* === PRODUCT ROW (Top Picks) === */
.section-header {
  padding: 48px 40px 24px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.product-row {
  display: flex;
  gap: 20px;
  padding: 0 40px 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-row::-webkit-scrollbar {
  height: 4px;
}

.product-row::-webkit-scrollbar-thumb {
  background: var(--gap-light-grey);
  border-radius: 2px;
}

.product-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-img {
  width: 240px;
  height: 300px;
  background: var(--gap-offwhite);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-card-price {
  font-size: 14px;
  font-weight: 700;
}

/* === PROMO BANNER === */
.promo-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.promo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.promo-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-content p {
  font-size: 18px;
  margin-bottom: 24px;
}

/* === CHAT WIDGET === */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gap-navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform var(--transition), background var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.05);
  background: var(--gap-navy);
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 400px;
  height: 600px;
  background: var(--gap-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--gap-navy);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-left h3 {
  font-size: 16px;
  font-weight: 600;
}

.chat-header-left span {
  font-size: 12px;
  opacity: 0.7;
}

.chat-header-actions {
  display: flex;
  gap: 12px;
}

.chat-header-actions button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.8;
  transition: opacity var(--transition);
  padding: 4px;
}

.chat-header-actions button:hover {
  opacity: 1;
}

/* Persona selector */
.persona-selector {
  padding: 12px 16px;
  background: var(--gap-offwhite);
  border-bottom: 1px solid var(--gap-light-grey);
}

.persona-selector p {
  font-size: 12px;
  color: var(--gap-grey);
  margin-bottom: 8px;
}

.persona-list {
  display: flex;
  gap: 8px;
}

.persona-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gap-light-grey);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.persona-chip:hover {
  border-color: var(--gap-navy);
  background: #f0f0ff;
}

.persona-chip.selected {
  border-color: var(--gap-navy);
  background: var(--gap-navy);
  color: white;
}

.persona-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: var(--gap-navy);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 1.4;
  width: 200px;
  margin-top: 8px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.persona-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 16px;
  transform: none;
  border: 6px solid transparent;
  border-bottom-color: var(--gap-navy);
}

.persona-chip:hover .persona-tooltip {
  display: block;
}

/* Chat messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message.assistant {
  background: var(--gap-offwhite);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--gap-navy);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message a {
  color: var(--gap-blue);
  text-decoration: underline;
  font-weight: 500;
}

.chat-message.user a {
  color: #a0c4ff;
}

/* Typing indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  padding: 12px 16px;
  background: var(--gap-offwhite);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-indicator.show {
  display: flex;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--gap-grey);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 12px;
}

.quick-reply-btn {
  padding: 8px 16px;
  border: 1px solid var(--gap-navy);
  border-radius: 20px;
  background: white;
  color: var(--gap-navy);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.quick-reply-btn:hover {
  background: var(--gap-navy);
  color: white;
}

/* Chat input */
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--gap-light-grey);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gap-light-grey);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--gap-navy);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gap-navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.chat-send-btn:hover {
  background: #1a1a3e;
}

/* === STORE CARDS (in chat) === */
.store-card {
  background: white;
  border: 1px solid var(--gap-light-grey);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 8px 0;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.store-card:hover {
  border-color: var(--gap-navy);
  box-shadow: var(--shadow-sm);
}

.store-card.selected {
  border-color: var(--gap-navy);
  background: #f0f0ff;
}

.store-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.store-card-address {
  font-size: 12px;
  color: var(--gap-grey);
  margin-bottom: 2px;
}

.store-card-distance {
  font-size: 12px;
  color: var(--gap-blue);
  font-weight: 500;
}

/* Time slot picker */
.time-slots-container {
  margin: 8px 0;
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.day-tab {
  padding: 6px 14px;
  border: 1px solid var(--gap-light-grey);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.day-tab.active {
  background: var(--gap-navy);
  color: white;
  border-color: var(--gap-navy);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.time-slot {
  padding: 8px;
  border: 1px solid var(--gap-light-grey);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.time-slot:hover {
  border-color: var(--gap-navy);
}

.time-slot.selected {
  background: var(--gap-navy);
  color: white;
  border-color: var(--gap-navy);
}

/* Appointment confirmation */
.appointment-card {
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border: 1px solid #c2d9f2;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 8px 0;
}

.appointment-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gap-navy);
}

.appointment-card p {
  font-size: 13px;
  margin-bottom: 4px;
}

.appointment-id {
  font-size: 11px;
  color: var(--gap-grey);
  margin-top: 8px;
  font-family: monospace;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-detail-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gap-offwhite);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--gap-grey);
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-options label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-options select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gap-light-grey);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' fill='none'/%3E%3C/svg%3E") right 16px center no-repeat;
}

.add-to-bag-btn {
  width: 100%;
  padding: 16px;
  background: var(--gap-navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.add-to-bag-btn:hover {
  background: #1a1a3e;
}

/* === SHOPPING BAG === */
.bag-overlay {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 10000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bag-overlay.open {
  right: 0;
}

.bag-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gap-light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bag-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.bag-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.bag-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.bag-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gap-light-grey);
}

.bag-item-img {
  width: 80px;
  height: 100px;
  background: var(--gap-offwhite);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bag-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bag-item-info {
  flex: 1;
}

.bag-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bag-item-details {
  font-size: 12px;
  color: var(--gap-grey);
  margin-bottom: 8px;
}

.bag-item-price {
  font-size: 14px;
  font-weight: 700;
}

.bag-item-remove {
  background: none;
  border: none;
  color: var(--gap-grey);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}

.bag-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gap-light-grey);
}

.bag-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--gap-navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.bag-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gap-grey);
}

/* === FOOTER === */
.site-footer {
  background: var(--gap-offwhite);
  padding: 48px 40px;
  margin-top: 60px;
  border-top: 1px solid var(--gap-light-grey);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gap-grey);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gap-black);
}

.footer-bottom {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gap-light-grey);
  font-size: 12px;
  color: var(--gap-grey);
}

/* === POP-OUT CHAT PAGE === */
.chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-page .chat-header {
  border-radius: 0;
}

.chat-page .chat-messages {
  flex: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-bar {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 300px;
  }

  .product-row {
    padding: 0 16px 32px;
  }

  .chat-panel {
    width: calc(100% - 16px);
    height: calc(100% - 120px);
    right: 8px;
    bottom: 80px;
    border-radius: var(--radius-md);
  }

  .product-detail {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }

  .section-header {
    padding: 32px 16px 16px;
  }

  .hero-overlay h1 {
    font-size: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}
