/**
 * FASCO Pakistan - Base Styles, Reset, Typography, Buttons
 */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  font-family: var(--fasco-font-sans);
  color: var(--fasco-text-main);
  background-color: var(--fasco-bg-surface);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fasco-transition-fast);
}

ul, ol {
  list-style: none;
}

/* Container */
.fasco-container {
  width: 100%;
  max-width: var(--fasco-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--fasco-container-padding);
  padding-right: var(--fasco-container-padding);
}

/* Section Common Structure */
.fasco-section {
  padding: 80px 0;
  position: relative;
}

.fasco-section--light {
  background-color: var(--fasco-bg-light);
}

.fasco-section--charcoal {
  background-color: var(--fasco-charcoal);
  color: var(--fasco-text-inverse);
}

.fasco-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.fasco-section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.fasco-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fasco-red);
  background: var(--fasco-red-light);
  padding: 6px 14px;
  border-radius: var(--fasco-radius-pill);
  margin-bottom: 12px;
}

.fasco-section--charcoal .fasco-section-badge {
  background: rgba(227, 27, 35, 0.2);
  color: #FF5A60;
  border: 1px solid rgba(227, 27, 35, 0.35);
}

.fasco-section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--fasco-text-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.fasco-section--charcoal .fasco-section-title {
  color: #FFFFFF;
}

.fasco-text-red {
  color: var(--fasco-red);
}

.fasco-section-desc {
  font-size: 16px;
  color: var(--fasco-text-muted);
  line-height: 1.6;
}

.fasco-section--charcoal .fasco-section-desc {
  color: #94A3B8;
}

/* Buttons */
.fasco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: var(--fasco-radius-md);
  transition: all var(--fasco-transition-normal);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.fasco-btn--sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: var(--fasco-radius-sm);
}

.fasco-btn--lg {
  padding: 16px 36px;
  font-size: 15px;
}

.fasco-btn--primary {
  background-color: var(--fasco-red);
  color: var(--fasco-white);
  box-shadow: 0 4px 14px var(--fasco-red-glow);
}

.fasco-btn--primary:hover {
  background-color: var(--fasco-red-hover);
  box-shadow: 0 6px 20px rgba(227, 27, 35, 0.4);
  transform: translateY(-1px);
  color: var(--fasco-white);
}

.fasco-btn--primary:active {
  transform: translateY(0);
}

.fasco-btn--whatsapp {
  background-color: var(--fasco-whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--fasco-whatsapp-glow);
}

.fasco-btn--whatsapp:hover {
  background-color: var(--fasco-whatsapp-hover);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.fasco-btn--whatsapp:active {
  transform: translateY(0);
}

.fasco-btn--secondary {
  background-color: var(--fasco-charcoal);
  color: var(--fasco-white);
}

.fasco-btn--secondary:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

.fasco-btn--outline {
  background-color: transparent;
  color: var(--fasco-text-heading);
  border: 2px solid var(--fasco-border);
}

.fasco-btn--outline:hover {
  border-color: var(--fasco-red);
  color: var(--fasco-red);
  background-color: var(--fasco-red-light);
}

.fasco-btn--outline-white {
  background-color: transparent;
  color: var(--fasco-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.fasco-btn--outline-white:hover {
  border-color: var(--fasco-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--fasco-white);
}

.fasco-btn--white {
  background-color: var(--fasco-white);
  color: var(--fasco-charcoal);
  box-shadow: var(--fasco-shadow-md);
}

.fasco-btn--white:hover {
  background-color: #F8FAFC;
  transform: translateY(-1px);
}

/* Badges */
.fasco-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--fasco-radius-sm);
  letter-spacing: 0.04em;
}

.fasco-badge--sale {
  background: var(--fasco-red);
  color: var(--fasco-white);
}

.fasco-badge--bestseller {
  background: #F59E0B;
  color: #111111;
}

.fasco-badge--new {
  background: #10B981;
  color: #FFFFFF;
}

.fasco-badge--cert {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #334155;
}

/* Stock status */
.fasco-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.fasco-stock--in {
  color: #059669;
}

.fasco-stock--in::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.fasco-stock--out {
  color: #DC2626;
}

.fasco-stock--out::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
}

/* Rating Stars */
.fasco-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #F59E0B;
  font-size: 12px;
}

.fasco-rating__count {
  font-size: 12px;
  color: var(--fasco-text-muted);
  margin-left: 4px;
  font-weight: 500;
}
