/* ============================================
   AURA TECH SOLUTIONS - Store Styles
   ============================================ */

/* ── Store Hero ── */
.store-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a2f6a 100%);
  position: relative;
  overflow: hidden;
}

.store-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,119,34,0.1), transparent 70%);
  border-radius: 50%;
}

.store-hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.store-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.store-hero h1 span { color: var(--orange); }

.store-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Store Search Bar ── */
.store-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.store-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
}

.store-search-bar input::placeholder { color: var(--gray-400); }

.store-search-bar .search-icon {
  color: var(--gray-400);
  font-size: 1rem;
}

.store-search-bar .search-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-fast);
}

.store-search-bar .search-btn:hover { opacity: 0.9; }

/* ── Store Layout ── */
.store-layout {
  padding: 60px 0 90px;
  background: var(--off-white);
}

/* ── Category Pills ── */
.categories-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--text-body);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.cat-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.cat-pill.active .cat-count {
  background: var(--orange);
  color: white;
}

.cat-count {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

/* ── Products Grid ── */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.products-count {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-body);
  background: white;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.sort-select:focus { border-color: var(--orange); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── Product Card ── */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.product-card.hidden { display: none; }

.product-img-wrap {
  position: relative;
  background: var(--off-white);
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
}

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

.overlay-btn {
  background: var(--white);
  color: var(--navy);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.overlay-btn:hover { background: var(--orange); color: white; }

.overlay-btn.cart-btn { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: white; }
.overlay-btn.cart-btn:hover { opacity: 0.9; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}

.product-body {
  padding: 18px;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.product-old-price {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 4px;
  font-weight: 400;
}

.add-cart-btn {
  background: var(--navy);
  color: white;
  border: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.add-cart-btn:hover { background: var(--orange); transform: scale(1.1); }

/* ── Cart Sidebar ── */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-backdrop.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  height: 100vh;
  background: white;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: white;
}

.cart-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-badge-large {
  background: var(--orange);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.close-cart {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.close-cart:hover { background: rgba(255,255,255,0.2); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.cart-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cart-empty p { font-size: 0.875rem; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeInRight 0.3s ease;
}

.cart-item-img {
  width: 70px; height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--off-white);
  flex-shrink: 0;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 8px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--gray-100);
  border: none;
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--transition-fast);
}

.qty-btn:hover { background: var(--orange); color: white; }

.qty-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy);
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.remove-item {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: var(--transition-fast);
  align-self: flex-start;
}

.remove-item:hover { color: #ef4444; }

/* ── Cart Footer ── */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--off-white);
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text-body);
}

.cart-summary-row.total {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid var(--gray-200);
}

.cart-summary-row.total span { color: var(--orange); }

.cart-checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-checkout-btn:hover { opacity: 0.92; transform: translateY(-2px); }

.cart-whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-whatsapp-btn:hover { opacity: 0.9; }

/* ── Checkout Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal { transform: scale(1); }

.modal-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.modal-header p { font-size: 0.875rem; color: var(--gray-400); margin-top: 4px; }

.close-modal {
  background: var(--gray-100);
  border: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-body);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.close-modal:hover { background: var(--gray-200); }

.modal-body {
  padding: 24px 28px 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.submit-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
  margin-top: 8px;
}

.submit-order-btn:hover { opacity: 0.92; transform: translateY(-2px); }

/* ── Product Detail Modal ── */
.product-modal .modal { max-width: 700px; }

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.product-modal-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-img img { width: 100%; height: 100%; object-fit: cover; }

.product-modal-info { padding: 0 0 4px; }

.product-modal-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.product-modal-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.product-modal-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 14px;
}

.product-modal-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.product-specs {
  background: var(--off-white);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100);
}

.spec-item:last-child { border-bottom: none; }
.spec-label { color: var(--gray-400); }
.spec-value { font-weight: 600; color: var(--navy); }

.modal-add-cart {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-add-cart:hover { opacity: 0.9; }

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  width: 100%;
}

.no-results .nr-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.4; }
.no-results h3 { color: var(--navy); font-family: 'Outfit', sans-serif; margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .cart-sidebar { width: 100%; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
