@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --primary: #0a1f44;
  --accent: #00d4ff;
  --bg: #f5f7fa;
  --text: #222222;
  --text-light: #666666;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 30px rgba(0, 212, 255, 0.15);
  --transition: all 0.3s ease;
  --container-max: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: #0d2c61;
  box-shadow: 0 4px 15px rgba(10, 31, 68, 0.3);
  transform: translateY(-2px);
}

.btn--accent {
  background-color: var(--accent);
  color: var(--primary);
}

.btn--accent:hover {
  background-color: #00bce6;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* Header & Nav */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-2) 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__brand span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav__link {
  font-weight: 500;
  color: var(--text-light);
}

.nav__link:hover, .nav__link--active {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__cart {
  position: relative;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
}

/* Base Sections */
.section {
  padding: var(--space-6) 0;
}

.section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-5);
  position: relative;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Components - Product Card */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.card__image-wrapper {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background-color: #f9f9f9;
  display: block;
}

.card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card__content {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.card__title a {
  color: var(--primary);
}

.card__title a:hover {
  color: var(--accent);
}

.card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.card__old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.card__rating {
  color: #ffb800;
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 2px;
}

.card__rating span {
  color: var(--text-light);
  margin-left: 8px;
}

.card__action {
  margin-top: auto;
  width: 100%;
}

/* Footer Section */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer__brand {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand span {
  color: var(--accent);
}

.footer__p {
  color: #a0aec0;
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: var(--space-2);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer__title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: #a0aec0;
  transition: var(--transition);
  display: inline-block;
}

.footer__link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  gap: 12px;
  color: #a0aec0;
  margin-bottom: var(--space-2);
}

.footer__contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.875rem;
}

/* Utilities & Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}
