/* Tech Style Components CSS */

/* Language Switcher */
.tech-language-switcher {
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.language-toggle:hover {
    color: #ffffff;
}

.current-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.language-menu.show,
.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.language-option:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

.language-option.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

/* Breadcrumb Navigation */
.tech-breadcrumb {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: #000000;
    margin-left: 0.5rem;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

.breadcrumb-link {
    color: #000000;
    transition: color 0.3s ease;
}

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

/* Page Actions */
.page-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}





/* Pagination Styles */
.tech-pagination {
    margin: 3rem 0;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.pagination-info {
    color: #000000;
    text-align: center;
}

.pagination-info .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination-item.active .pagination-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-dots {
    color: #000000;
    padding: 0 0.5rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Product Grid Components */
.tech-product-grid {
  width: 100%;
  margin: 2rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new {
  background: #10b981;
  color: white;
}

.badge-featured {
  background: #f59e0b;
  color: white;
}

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

.product-info {
  padding: 1.5rem;
}

.product-category {
  margin-bottom: 0.5rem;
}

.category-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.category-link:hover {
  text-decoration: underline;
}

.product-title {
  margin: 0 0 1rem 0;
}

.product-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

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

.product-model {
  color: #000000;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-description {
  color: #000000;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.product-features {
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  color: #000000;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.feature-list li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-current {
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: 600;
}

.price-original {
  color: #666666;
  font-size: 0.875rem;
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.stars i {
  color: #d1d5db;
  font-size: 0.875rem;
}

.stars i.active {
  color: #fbbf24;
}

.rating-text {
  color: #000000;
  font-size: 0.8rem;
}

.product-actions-bottom {
  display: flex;
  gap: 0.75rem;
}

.product-actions-bottom .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #000000;
}

.empty-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.empty-title {
  color: #000000;
  margin-bottom: 1rem;
}

.empty-message {
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.btn-load-more {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.load-spinner {
  margin-left: 0.5rem;
}

/* Responsive Design for Product Grid */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-actions-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-image {
    height: 200px;
  }
}

/* Button Success State */
.btn-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: white !important;
}

.btn-success:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}
