/* Custom styles for PC Parts Shop */
:root {
  --primary-dark: #212529;
  --secondary-dark: #343a40;
  --accent-color: #0d6efd;
  --text-light: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
}

/* Main layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Navigation */
.navbar-brand {
  font-weight: bold;
}

.nav-link.active {
  font-weight: bold;
}

/* Product cards */
.product-card {
  height: 100%;
  transition: transform 0.2s;
}

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

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.product-price {
  font-weight: bold;
  font-size: 1.1rem;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Category boxes */
.category-box {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 150px;
  transition: transform 0.2s;
}

.category-box:hover {
  transform: scale(1.03);
}

.category-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-name {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
  padding: 0.5rem;
}

/* Hero section */
.hero-section {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Cart */
.cart-badge {
  position: relative;
  top: -8px;
  right: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.cart-item {
  border-bottom: 1px solid var(--secondary-dark);
  padding: 1rem 0;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.cart-quantity-input {
  width: 60px;
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-color);
}

/* Admin dashboard */
.admin-stat-card {
  text-align: center;
  padding: 1.5rem;
}

.admin-stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.admin-stat-number {
  font-size: 2rem;
  font-weight: bold;
}

.admin-stat-label {
  font-size: 1rem;
  color: var(--secondary-dark);
}

/* PC Builder */
.builder-component-box {
  border: 2px dashed #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  height: 100%;
}

.builder-component-box.selected {
  border: 2px solid var(--accent-color);
}

.component-dropdown {
  max-height: 300px;
  overflow-y: auto;
}

/* Product details */
.product-gallery-img {
  height: 400px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.specs-table {
  margin-top: 1rem;
}

/* Checkout */
.checkout-summary {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.payment-method-card {
  cursor: pointer;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.payment-method-card:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.payment-method-card.selected {
  background-color: rgba(13, 110, 253, 0.2);
  border-color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .product-card .card-img-top {
    height: 150px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .admin-stat-card {
    margin-bottom: 1rem;
  }
}
