/* ============================================
   CROSSWINDS FARM - ARTISAN SOAP & SKINCARE
   Design System: Turquoise & Yellow Theme
   ============================================ */

/* CSS VARIABLES */
:root {
  /* Colors */
  --color-primary: #40E0D0;
  --color-primary-dark: #2C9A91;
  --color-secondary: #F4C430;
  --color-secondary-light: #FFF4E0;
  --color-accent: #A8B89F;
  --color-text: #2C3E50;
  --color-text-light: #6C757D;
  --color-background: #FAF7F2;
  --color-background-alt: #FFFFFF;
  --color-brown: #8B7355;
  --color-border: #E8E8E8;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1400px;
  --gap: 24px;
  --card-padding: 32px;

  /* Effects */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 15px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 28px; line-height: 1.3; }
h4 { font-size: 22px; line-height: 1.3; }
h5 { font-size: 18px; line-height: 1.4; }
h6 { font-size: 16px; line-height: 1.4; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

/* CONTAINER */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  background: var(--color-background-alt);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-primary);
}

.header__container {
  max-width: var(--container-width);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.header__logo span {
  color: var(--color-secondary);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3rem;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Cart Icon */
.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.header__cart:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-secondary);
  color: var(--color-text);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: var(--transition);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: #E0B020;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

.btn--large {
  padding: 16px 48px;
  font-size: 18px;
}

.btn--block {
  display: block;
  width: 100%;
}

/* SECTIONS */
.section {
  padding: var(--section-padding) 24px;
}

.section--alt {
  background: var(--color-background-alt);
}

.section--yellow {
  background: var(--color-secondary-light);
}

.section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.section__title {
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: 18px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 154, 145, 0.85) 0%, rgba(64, 224, 208, 0.75) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}

.hero__title {
  font-size: 56px;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 22px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* TRUST BADGES */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 24px;
}

.trust-badge {
  text-align: center;
  max-width: 200px;
}

.trust-badge__icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.trust-badge__title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.trust-badge__text {
  font-size: 14px;
  color: var(--color-text-light);
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.product-card {
  background: var(--color-background-alt);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-card__description {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-card__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__price--old {
  font-size: 18px;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-card__button {
  padding: 10px 20px;
  font-size: 14px;
}

/* CATEGORIES GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 154, 145, 0.7) 0%, rgba(64, 224, 208, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(135deg, rgba(44, 154, 145, 0.8) 0%, rgba(64, 224, 208, 0.7) 100%);
}

.category-card__title {
  font-size: 28px;
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--color-background-alt);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-card__stars {
  color: var(--color-secondary);
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: 600;
  margin-bottom: 4px;
}

.testimonial-card__title {
  font-size: 14px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* NEWSLETTER */
.newsletter {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 60px 24px;
  text-align: center;
  color: white;
}

.newsletter__title {
  color: white;
  margin-bottom: 16px;
}

.newsletter__text {
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

.newsletter__form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
}

.newsletter__button {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter__button:hover {
  background: #E0B020;
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: var(--color-text);
  color: white;
  padding: 60px 24px 24px;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer__section h4 {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.footer__section p,
.footer__section a {
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

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

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

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

.footer__social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

/* FORMS */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-error {
  color: #E74C3C;
  font-size: 14px;
  margin-top: 4px;
}

/* CART */
.cart-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

.cart-item__image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.cart-item__details {
  flex: 1;
}

.cart-item__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.cart-item__price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border);
  background: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.qty-input {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
}

.cart-item__remove {
  color: #E74C3C;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
}

.cart-item__remove:hover {
  text-decoration: underline;
}

.cart-summary {
  background: var(--color-background-alt);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.cart-summary__row:last-child {
  border-bottom: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
