/* public/assets/css/style.css */

/*=== Color Palette ===
   Primary:    #667eea  (deep periwinkle)
   Secondary:  #764ba2  (rich purple)
   Accent:     #ffd700  (gold)
   Neutral:    #f8f9fa  (light gray)
   Text Base:  #333333
*/

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa;
  padding-top: 60px; /* for fixed header */
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}
header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

/* header container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* main navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Footer */
footer {
  background: #333333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Title */
.page-title {
  margin-bottom: 1.5rem;
  color: #333333;
}

/* === BUTTON BASE STYLES === */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

/* Size modifiers */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Primary outline */
.btn-outline-primary {
  border-color: #667eea;
  color: #667eea;
  background: transparent;
  padding: 0.5rem 1rem;
}
.btn-outline-primary:hover {
  background: #667eea;
  color: #fff;
}

/* Success (accent) */
.btn-success {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
  padding: 0.5rem 1rem;
}
.btn-success:hover {
  background: #764ba2;
  border-color: #764ba2;
}

/* Secondary */
.btn-secondary {
  background: #764ba2;
  border-color: #764ba2;
  color: #fff;
  padding: 0.5rem 1rem;
}
.btn-secondary:hover {
  background: #667eea;
  border-color: #667eea;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card */
.card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333333;
}
.card-text {
  flex: 1;
  color: #666666;
  margin-bottom: 1rem;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------Custom Customer's Dashboard styles ---------- */

/* Dashboard header area */
.dashboard-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.12);
}

/* Orders list */
.order-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.order-meta {
  font-size: 0.9rem;
  color: #666;
}

.order-badge {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
}

/* Item row */
.order-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.order-item:last-child {
  border-bottom: none;
}

.item-thumb {
  width: 64px;
  height: 64px;
  background: #f5f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-size: 12px;
  color: #999;
}

/* Summary box */
.order-summary {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

/* small responsive tweaks */
@media (max-width: 767px) {
  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-thumb {
    width: 100%;
    height: 160px;
  }
}
