/* Dabat Store - High-End Ecommerce Styles */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #d4af37;
  --light: #f5f5f7;
  --dark: #0f0f1a;
  --gray: #8a8a8a;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --border-radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.logo span {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.nav-categories {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-categories a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-categories a:hover,
.nav-categories a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 22px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-link {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 0;
  margin-bottom: 60px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.3), transparent);
  border-radius: 50%;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

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

.btn-primary:hover {
  background: #d63850;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-left: 16px;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Filters */
.filters-section {
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 50px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.search-box button {
  background: var(--dark);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f0f0f0;
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.product-price .currency {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
}

.product-actions {
  display: flex;
  gap: 12px;
}

.btn-add-cart {
  flex: 1;
  background: var(--dark);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--accent);
}

.btn-wishlist {
  width: 48px;
  background: var(--light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.btn-wishlist:hover {
  background: white;
  border-color: var(--accent);
  color: var(--accent);
}

/* Loading & Empty States */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--gray);
  font-size: 18px;
}

.empty-state {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: var(--border-radius);
  color: var(--gray);
}

/* Admin Panel Styles */
.admin-container {
  padding: 40px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.admin-title {
  font-size: 32px;
  font-weight: 700;
}

.btn-add {
  background: var(--success);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.admin-table-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--dark);
  color: white;
  padding: 16px;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-edit {
  background: var(--warning);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.btn-delete {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-save {
  flex: 1;
  background: var(--success);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel {
  flex: 1;
  background: var(--light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .nav-categories {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
}