/* TIH Shop Frontend CSS */
:root {
  --c1: #24384A;
  --c2: #2A4561;
  --c3: #476F93;
  --c4: #3AB6AF;
  --c5: #020304;
  --bg: #f7f9fb;
  --white: #ffffff;
  --muted: #6b7280;
  --ok: #16a34a;
  --warn: #eab308;
  --err: #dc2626;
  --ring: rgba(58, 182, 175, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--c1); background: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

.hero { position: relative; background: linear-gradient(135deg, var(--c2), var(--c3)); color: #fff; min-height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100vw; margin-left: calc(-50vw + 50%); padding: 60px 20px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(58, 182, 175, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(71, 111, 147, 0.3) 0%, transparent 50%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero .badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); padding: 12px 24px; border-radius: 999px; font-size: 15px; margin-bottom: 24px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.tih-shop .hero h1 { color: #ffffff !important; }
.hero p { font-size: clamp(16px, 2.5vw, 22px); opacity: 0.95; max-width: 700px; margin: 0 auto 32px; text-shadow: 0 1px 2px rgba(0,0,0,0.2); line-height: 1.6; }
.impact-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--c4); display: block; }
.stat-label { font-size: 14px; opacity: 0.9; margin-top: 4px; }

.section-header { text-align: center; margin: 60px 0 40px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--c1); margin-bottom: 12px; }
.section-header p { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; margin-bottom: 80px; }
.product-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.product-badge { position: absolute; top: 16px; right: 16px; background: var(--c4); color: white; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.product-image { width: 100%; height: 280px; object-fit: cover; background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); position: relative; }
.product-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 13px; color: var(--c4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-title { font-size: 20px; font-weight: 700; color: var(--c1); margin-bottom: 12px; line-height: 1.3; }
.product-description { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.product-price { font-size: 28px; font-weight: 800; color: var(--c2); margin-bottom: 16px; }
.product-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.product-actions { display: flex; gap: 12px; }
.btn { padding: 14px 24px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--c2), var(--c3)); color: white; flex: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 69, 97, 0.3); }
.btn-whatsapp { background: #25D366; color: white; flex: 1; }
.btn-whatsapp:hover { background: #22c55e; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-secondary { background: rgba(42, 69, 97, 0.1); color: var(--c2); padding: 12px 20px; }
.btn-secondary:hover { background: rgba(42, 69, 97, 0.15); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 24px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: modalSlideIn 0.3s ease-out; }
@keyframes modalSlideIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.1); border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all 0.2s ease; }
.modal-close:hover { background: rgba(0,0,0,0.2); transform: scale(1.1); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; }
.modal-image { width: 100%; height: 100%; max-height: 500px; object-fit: cover; border-radius: 16px; background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); }
.modal-details { display: flex; flex-direction: column; }
.modal-category { font-size: 14px; color: var(--c4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.modal-title { font-size: 32px; font-weight: 800; color: var(--c1); margin-bottom: 16px; line-height: 1.2; }
.modal-description { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.modal-price { font-size: 40px; font-weight: 800; color: var(--c2); margin-bottom: 32px; }
.modal-actions { display: flex; flex-direction: column; gap: 16px; }
.impact-box { background: linear-gradient(135deg, rgba(58, 182, 175, 0.1), rgba(71, 111, 147, 0.1)); padding: 24px; border-radius: 16px; border: 2px solid rgba(58, 182, 175, 0.2); margin-top: 24px; }
.impact-box h3 { font-size: 18px; font-weight: 700; color: var(--c2); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.impact-box p { font-size: 15px; color: var(--muted); line-height: 1.7; }

.cart-float { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, var(--c2), var(--c3)); color: white; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 30px rgba(42, 69, 97, 0.4); transition: all 0.3s ease; z-index: 999; }
.cart-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(42, 69, 97, 0.5); }
.cart-count { position: absolute; top: -5px; right: -5px; background: var(--c4); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 3px solid white; }

.mission-section { background: linear-gradient(135deg, var(--c1), var(--c2)); color: white; padding: 80px 20px; margin: 80px 0; border-radius: 32px; text-align: center; position: relative; overflow: hidden; }
.mission-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(58, 182, 175, 0.2) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(71, 111, 147, 0.2) 0%, transparent 50%); }
.mission-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.mission-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 20px; }
.mission-section p { font-size: clamp(16px, 2vw, 20px); opacity: 0.95; line-height: 1.7; margin-bottom: 32px; }

@media (max-width: 768px) {
  .hero { min-height: 50vh; padding: 40px 16px; }
  .impact-stats { gap: 24px; }
  .stat-number { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
  .modal-body { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .cart-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .mission-section { padding: 60px 20px; margin: 60px 16px; }
}
@media (max-width: 480px) {
  .hero { padding: 30px 12px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .btn { width: 100%; }
  .cart-float { width: 52px; height: 52px; }
}

@keyframes slideInRight { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
