/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  font-family: var(--font-inter);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
  border: none;
}

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

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

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 1px solid var(--color-outline-variant);
}

.btn-secondary:hover {
  background-color: var(--color-surface-dim);
}

/* Bento Cards */
.bento-card {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-surface-container-high);
  border-radius: var(--radius-default);
  padding: 24px;
  transition: all 0.3s ease;
}

.bento-card.pure-white {
  background-color: var(--color-surface-white);
}

.bento-card:hover {
  background-color: var(--color-surface-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-surface-container-high);
}

.nav-link {
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary-container);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-container);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Inputs */
.minimal-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-outline-variant);
  background: transparent;
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--color-text-dark);
  transition: border-color 0.2s;
  border-radius: 0; /* Override iOS Safari */
}

.minimal-input:focus {
  outline: none;
  border-bottom-color: var(--color-primary-container);
}

.minimal-input::placeholder {
  color: var(--color-text-muted);
}

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

/* Chips */
.chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: transparent;
}

/* Accordions */
.accordion-item {
  border-bottom: 1px solid var(--color-outline-variant);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-dark);
  cursor: pointer;
  text-align: left;
}

.accordion-icon {
  color: var(--color-primary-container);
  font-size: 24px;
  transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding-bottom: 16px;
  color: var(--color-text-muted);
  display: none;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  display: block;
}

/* Product Cards */
.product-card {
  border: 1px solid #DEE0E3;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: #ffffff;
  height: 100%;
}

.product-card-img-wrapper {
  width: 100%;
  position: relative;
}

.product-card-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.product-stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 100px;
  padding: 4px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #000000;
}

[dir="rtl"] .product-stock-badge {
  right: auto;
  left: 16px;
}

.product-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background-color: transparent;
}

.product-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
  padding-bottom: 8px;
  margin: 0;
}

.product-card-cta {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #000000;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.product-card-cta:hover {
  color: var(--color-primary-container);
}

@media (max-width: 767px) {
  .product-card-title {
    font-size: 20px;
  }
  .product-card-cta {
    margin-top: 20px;
  }
}
