/* ============================================
   COMPONENTS CSS - FerramentasMax
   Reusable component styles
   ============================================ */

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  background: transparent;
  padding: var(--spacing-md) 0;
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-sm) 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-fast);
}

.header.scrolled .logo {
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-fast);
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.header.scrolled .menu-toggle span {
  background: var(--text-dark);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Header Solid (for pages with white/light backgrounds) */
.header.header-solid {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.header.header-solid .logo,
.header.header-solid .nav-link,
.header.header-solid .menu-toggle span {
  color: var(--text-dark);
  background: var(--text-dark);
}

.header.header-solid .menu-toggle span {
  background: var(--text-dark);
}

.header.header-solid .logo {
  color: var(--text-dark);
  background: transparent;
}

.header.header-solid .nav-link {
  color: var(--text-dark);
  background: transparent;
}

.header.header-solid .nav-link:hover,
.header.header-solid .nav-link.active {
  color: var(--yellow);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--text-dark);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: block;
}


/* ============================================
   CARDS - General
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
  padding: 14px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-text {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.btn-card-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
  text-decoration: none;
  border: none;
}

.btn-card-whatsapp:hover {
  background: var(--whatsapp-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-card-whatsapp i {
  font-size: 0.9rem;
}

.btn-card-quote {
  background: var(--white);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 2px solid var(--gray-dark);
}

.btn-card-quote:hover {
  border-color: var(--yellow);
  background: var(--yellow-light);
  transform: translateY(-2px);
}

.btn-card-quote i {
  font-size: 0.9rem;
}

.product-price-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
}


/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  transition: var(--transition-normal);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  color: var(--white);
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--yellow);
}

.category-card-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
  font-weight: 800;
}

.category-card p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 0;
}


/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition-normal);
}

.product-card:hover {
  border-color: var(--yellow);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}


/* ============================================
   SWIPER CAROUSEL
   ============================================ */

.swiper {
  width: 100%;
  padding-bottom: 50px !important;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 10px !important;
}

.swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.swiper-slide .card {
  width: 100%;
  max-width: 100%;
}

.swiper-pagination-bullet-active {
  background-color: var(--yellow) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--yellow-dark) !important;
  background: rgba(255, 255, 255, 0.9);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--yellow);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
  color: var(--gray-light);
  margin-bottom: var(--spacing-sm);
}

.footer-section a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--yellow-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-medium);
  font-size: 0.875rem;
}