/* Component Styles */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
  padding: 4rem 2rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  word-spacing: 0.1em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-figure {
  margin: 0;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: block;
  margin-bottom: 1rem;
}

.hero-figure figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--speed-normal) var(--ease-default);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(45, 80, 22, 0.2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

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

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

/* Features/Benefits Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
  margin: 4rem 0;
  padding: 3rem 0;
  background-color: var(--light-bg);
  border-radius: 12px;
}

.testimonials h2 {
  text-align: center;
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.testimonial-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.testimonial-quote {
  color: var(--text-dark);
  font-style: normal;
  line-height: 1.8;
  margin-bottom: auto;
  font-size: 1rem;
  padding: 1.5rem 2rem;
  text-align: left;
  flex-grow: 1;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
  padding: 0 2rem 0.5rem 2rem;
  margin-bottom: 0;
}

.testimonial-source {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: right;
  padding: 0 2rem 1.5rem 2rem;
  font-style: italic;
}

/* Products Grid */
.products-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.products-intro h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.search-box {
  max-width: 500px;
  margin: 2rem auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Product Section - Collapsible */
.products-section {
  margin: 3rem 0;
}

.products-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collapsible-header {
  cursor: pointer;
  user-select: none;
  transition: all var(--speed-normal) var(--ease-default);
  position: relative;
  padding-right: 3rem;
}

.collapsible-header:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.collapse-icon {
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  transition: transform var(--speed-normal) var(--ease-default);
  color: var(--accent-color);
}

.collapsible-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 5000px;
  overflow: hidden;
  transition: max-height var(--speed-medium) var(--ease-out), 
              opacity var(--speed-normal) var(--ease-out);
  opacity: 1;
}

.collapsible-section.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
  transition: max-height var(--speed-normal) var(--ease-in), 
              opacity var(--speed-fast) var(--ease-in);
}

.country-flag {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Product List Layout (without images) */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.product-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.product-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  border-left-color: var(--accent-color);
}

.product-item-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.product-item-content {
  flex: 1;
}

.product-item h3 {
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.product-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Product Grid Layout (with images) - Keep for backward compatibility */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.product-card-content {
  padding: 1.5rem;
}

.product-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Forms */
form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

form h2 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  min-height: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

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

button[type="submit"] {
  min-height: 48px;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.theme-switcher label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.theme-switcher select {
  padding: 0.5rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.theme-switcher select:hover {
  border-color: var(--primary-color);
}

.theme-switcher select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.theme-switcher-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.theme-switcher.hidden {
  display: none;
}
