/* ============================================
   Clawd Tackle - Modern Minimalist Design
   ============================================ */

:root {
  --ocean-deep: #0a3d62;
  --ocean-mid: #1e5f8a;
  --ocean-light: #2980b9;
  --sand-light: #faf3eb;
  --white: #ffffff;
  --dark: #2c3e50;
  --gray: #7f8c8d;
  --gray-light: #ecf0f1;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #c0392b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Header
   ============================================ */
header {
  background: var(--white);
  color: var(--dark);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ocean-deep);
}

.logo span {
  color: var(--ocean-light);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

nav a:hover, nav a.active {
  background: var(--ocean-deep);
  color: var(--white);
}

.cart-btn {
  background: var(--ocean-deep);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

/* ============================================
   Shop Layout with Sidebar
   ============================================ */
.shop-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  min-height: calc(100vh - 200px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
}

.sidebar-section {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-option:hover {
  background: var(--gray-light);
}

.filter-option input {
  accent-color: var(--ocean-deep);
}

.filter-option span {
  font-size: 0.95rem;
  color: var(--dark);
}

.shop-content {
  flex: 1;
  min-width: 0;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.shop-header h1 {
  color: var(--ocean-deep);
  font-size: 1.75rem;
}

#productCount {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-light);
}

.product-info {
  padding: 1.25rem;
}

.product-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ocean-light);
  font-weight: 600;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0.25rem 0 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

.add-to-cart {
  width: 100%;
  padding: 0.7rem;
  background: var(--ocean-deep);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background: var(--ocean-mid);
}

/* ============================================
   Cart Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  margin-bottom: 1.25rem;
  color: var(--ocean-deep);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  color: var(--dark);
}

.cart-item-info span {
  color: var(--gray);
  font-size: 0.85rem;
}

.cart-total {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: right;
  margin: 1rem 0;
  color: var(--ocean-deep);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  padding: 0.75rem;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--ocean-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  background: var(--ocean-mid);
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #dce4e6;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--gray-light);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
}

.btn-qty:hover {
  background: #dce4e6;
}

.btn-remove {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--danger);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--ocean-deep);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content p {
  opacity: 0.95;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
  grid-column: 1 / -1;
}

.empty-state h3 {
  color: var(--gray);
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
    padding: 1rem;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .sidebar-section {
    margin-bottom: 0.5rem;
  }
  
  .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-option {
    background: var(--gray-light);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-image {
    height: 120px;
  }
  
  .product-info {
    padding: 0.75rem;
  }
  
  .product-name {
    font-size: 0.85rem;
  }
  
  .product-desc {
    display: none;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .add-to-cart {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  nav {
    width: 100%;
    justify-content: center;
  }
}
