/* Components */

/* Buttons */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(0,160,176,0.3);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,160,176,0.4);
}

.button--secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: slideUp 1s ease;
}

.hero-banner__badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: pulse 2s infinite;
}

.hero-banner__title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.hero-banner__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-banner__actions {
  margin-top: var(--spacing-lg);
}

/* Hero Banner - Image Only Mode */
.hero-banner--image-only {
  min-height: 600px;
}

.hero-banner--image-only .hero-banner__overlay {
  background: rgba(0,0,0,0.1);
}

/* Product Cards */
.product,
.product-card {
  background: transparent;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  list-style: none;
  width: 100% !important;
}

.product:hover,
.product-card:hover {
  transform: translateY(-5px);
}

.product-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  background-color: white !important;
  max-height: 600px;
}

.product-card:hover .product-card__inner {
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.product-card__image {
  position: relative;
  background: var(--color-background-light);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 10;
  letter-spacing: 0.5px;
}

.product-badge--sale {
  background: #ff4444;
  color: white;
}

.product-badge--featured {
  background: #c8ff00;
  color: #1a1a1a;
}

.product-badge--out-of-stock {
  background: #ff4444;
  color: white;
}

/* WooCommerce Default Sale Badge */
span.onsale,
.woocommerce-page span.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: white;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 10;
  letter-spacing: 0.5px;
  margin: 0;
  min-height: auto;
  min-width: auto;
  line-height: 1.2;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card__content {
  background: white;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: 10px;
  text-align: center;

}

.product-card__title-link {
  text-decoration: none;
  color: inherit;
}

.product-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.4;
}

.product-card__price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: var(--spacing-xs) 0;
  min-height: 0;
}

.product-card__price .price {
  color: var(--color-primary);
}

.product-card__price .price del {
  opacity: 0.6;
  font-size: 0.875em;
  margin-right: 0.5rem;
}

.product-card__price .price ins {
  text-decoration: none;
  font-weight: 700;
}

.product-card__actions {
  margin-top: auto;
}

.product-card__actions .button,
.product-card__actions .add_to_cart_button,
.product-card__actions .added_to_cart {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  text-decoration: none;
  cursor: pointer;
  margin-top: var(--spacing-xs);
}

.product-card__actions .button:hover,
.product-card__actions .add_to_cart_button:hover,
.product-card__actions .added_to_cart:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.product-card__actions .added_to_cart {
  background: var(--color-secondary);
}

.product-card__actions .added_to_cart:hover {
  background: var(--color-primary);
}

/* Legacy product styles */
.product {
  background: transparent;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  position: relative;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: bold;
  z-index: 10;
}

.product-badge--sale {
  background: var(--color-accent);
  color: white;
}

.product-badge--out-of-stock {
  background: #999;
  color: white;
}

.product-info {
  padding: var(--spacing-sm);
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.product-price del {
  color: #999;
  margin-right: 0.5rem;
}

.product .add_to_cart_button,
.product .button {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--spacing-sm);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  margin-top: var(--spacing-sm);
}

.product .add_to_cart_button:hover,
.product .button:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* Widgets */
.widget {
  margin-bottom: var(--spacing-md);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 0.5rem;
}

.widget a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.widget a:hover {
  color: white;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: white;
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.social-icon:hover svg {
  fill: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: var(--spacing-sm) 0;
  margin: 0;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #999;
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 400px;
  }
  
  .hero-banner__title {
    font-size: 2.5rem;
  }
  
  .hero-banner__subtitle {
    font-size: 1.125rem;
  }
  
  .hero-banner__badge {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}
