/* HASDEY — Component Styles */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--hasdey-red);
  color: var(--white);
  border-color: var(--hasdey-red);
}
.btn--primary:hover {
  background: var(--hasdey-red-dark);
  border-color: var(--hasdey-red-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--hasdey-red);
  border-color: var(--hasdey-red);
}
.btn--secondary:hover {
  background: var(--hasdey-red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--hasdey-red);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn svg, .btn img { width: 18px; height: 18px; flex-shrink: 0; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  transition: all var(--transition-smooth);
}

.nav--transparent { background: transparent; }
.nav--solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  transition: color var(--transition-base);
}

.nav--solid .nav__logo { color: var(--hasdey-red); }

.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--hasdey-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav--solid .nav__link { color: var(--text-secondary); }
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav--solid .nav__link:hover { color: var(--hasdey-red); background: var(--hasdey-red-50); }
.nav__link--active { color: var(--white) !important; font-weight: 600; }
.nav--solid .nav__link--active { color: var(--hasdey-red) !important; }

.nav__cta {
  margin-left: 0.75rem;
}

.nav__cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
}

.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: var(--radius-sm);
}

.nav--solid .nav__mobile-toggle { color: var(--charcoal); }

.nav__hamburger {
  width: 22px;
  height: 16px;
  position: relative;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all var(--transition-base);
}

.nav__hamburger span:nth-child(1) { top: 0; }
.nav__hamburger span:nth-child(2) { top: 7px; }
.nav__hamburger span:nth-child(3) { top: 14px; }

.nav__mobile-toggle.active .nav__hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}
.nav__mobile-toggle.active .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav__mobile-toggle.active .nav__hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: var(--z-nav);
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.nav__drawer.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.nav__drawer-link:hover { color: var(--hasdey-red); }

.nav__drawer-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  color: rgba(255,255,255,0.6);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.6);
}

.footer__social-link:hover {
  background: var(--hasdey-red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--white); }

.footer__marketplace {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer__marketplace-link {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.footer__marketplace-link:hover {
  background: var(--hasdey-red);
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a { color: rgba(255,255,255,0.4); }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card:hover .card__image img { transform: scale(1.05); }

.card__body { padding: 1.25rem; }

.card__category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hasdey-red);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Product card variant */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-light);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.product-card__image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.product-card__image img {
  max-height: 180px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card__image img { transform: scale(1.08) rotate(-2deg); }

.product-card__placeholder {
  width: 120px;
  height: 160px;
  background: var(--hasdey-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.2;
}

.product-card__body { padding: 1.25rem; }

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-card__footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--hasdey-red);
  box-shadow: 0 0 0 3px var(--hasdey-red-50);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select {
  appearance: none;
  background-image: 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='%238A8A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--hasdey-red);
  margin-top: 0.3rem;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--hasdey-red);
}

.form-group.error .form-error { display: block; }

.form-success {
  padding: 1.5rem;
  background: var(--success-bg);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-success__icon {
  width: 48px;
  height: 48px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-smooth);
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

.whatsapp-float__btn svg { width: 30px; height: 30px; }

.whatsapp-float__tooltip {
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: calc(var(--nav-height) + 1.5rem) 0 1rem;
  background: var(--cream);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs__sep { color: var(--border); }
.breadcrumbs__link { color: var(--text-secondary); }
.breadcrumbs__link:hover { color: var(--hasdey-red); }
.breadcrumbs__current { color: var(--text-primary); font-weight: 500; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%);
  color: var(--white);
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
}

/* === GRID LAYOUTS === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* === STATS === */
.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--hasdey-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__item:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 2rem); }
.timeline__item:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 2rem); }

.timeline__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--hasdey-red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline__content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hasdey-red);
  margin-bottom: 0.5rem;
}

/* === LOADING === */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--hasdey-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: var(--z-toast);
  opacity: 0;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === AI CHAT WIDGET === */
.ai-chat {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: calc(var(--z-whatsapp) - 1);
}

.ai-chat__toggle {
  width: 56px;
  height: 56px;
  background: var(--hasdey-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-red);
  transition: all var(--transition-smooth);
}

.ai-chat__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(196,30,58,0.4);
}

.ai-chat__toggle svg { width: 26px; height: 26px; }

.ai-chat__window {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.ai-chat__window.active { display: flex; }

.ai-chat__header {
  background: var(--hasdey-red);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-chat__header-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ai-chat__header-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.ai-chat__header-info p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
}

.ai-chat__msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.ai-chat__msg--bot {
  background: var(--cream);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-xs);
}

.ai-chat__msg--user {
  background: var(--hasdey-red);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-xs);
}

.ai-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.ai-chat__suggestion {
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--hasdey-red);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--hasdey-red);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-chat__suggestion:hover {
  background: var(--hasdey-red);
  color: var(--white);
}

.ai-chat__input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.5rem;
}

.ai-chat__input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.ai-chat__input:focus { border-color: var(--hasdey-red); }

.ai-chat__send {
  width: 38px;
  height: 38px;
  background: var(--hasdey-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.ai-chat__send:hover { background: var(--hasdey-red-dark); }
.ai-chat__send svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .ai-chat__window {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    max-height: 70vh;
  }
}
