/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 15px;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(246, 204, 0, 0.15);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.required:after {
  content: "*";
  color: var(--danger-color);
  margin-left: 3px;
}

.form-row {
  display: flex;
  gap: 15px;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--danger-color);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--gray-50);
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-details {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  margin-top: auto;
}

.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 14px;
  gap: 5px;
  margin-bottom: 0;
  transition: background-color 0.3s;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover .btn-view {
  background-color: var(--primary-dark);
}

.product-card:hover .btn-view svg {
  transform: translateX(3px);
}

.btn-view svg {
  transition: transform 0.3s;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.category-image {
  height: 200px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.category-count {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  padding: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: var(--transition);
  margin-top: auto;
}

.category-card:hover .category-button {
  background-color: var(--primary-dark);
}

.category-card:hover .category-button svg {
  transform: translateX(3px);
}

.category-button svg {
  transition: transform 0.3s;
}

/* Tabs Component */
.tabs-nav {
  display: flex;
  background-color: #f5f5f5;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 15px;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-size: 14px;
}

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

.tab-btn.active {
  background-color: var(--white);
  border-bottom-color: var(--primary-color);
  color: var(--secondary-color);
}

.tab-content {
  display: none;
  padding: 20px;
  line-height: 1.6;
}

.tab-content.active {
  display: block;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal.active {
  display: block;
}

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 15px;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  width: 100%;
  max-width: 500px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.trust-badge {
  background-color: var(--gray-50);
  padding: 15px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.trust-badge svg {
  color: var(--primary-color);
}

.trust-badge span {
  font-size: 14px;
  font-weight: 500;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  width: fit-content;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background-color: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.quantity-controls input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 16px;
}

/* Recommended Products Scroller */
.recommended-products-container {
  position: relative;
  display: flex;
  align-items: center;
}

.recommended-products-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.recommended-products-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0;
}

.recommended-products-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--secondary-color);
}

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

.scroll-hint.active {
  opacity: 1;
}

.scroll-hint.left {
  left: 5px;
}

.scroll-hint.right {
  right: 5px;
}

/* Stars Rating */
.stars {
  display: flex;
  color: #ddd;
}

.star {
  font-size: 16px;
}

.star.filled {
  color: var(--primary-color);
}