/* global.css - Fresh Working Design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #C0392B;
  --dark: #1A1A2E;
  --gold: #F39C12;
  --gray: #F5F5F5;
  --white: #FFFFFF;
  --text: #333;
  --text-light: #666;
  --transition-slow: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --transition-medium: all 0.5s ease-out;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gray);
  color: var(--text);
  padding-top: 70px;
}

/* Navbar - WHITE BACKGROUND */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 70px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--dark);
  text-decoration: none;
}
.logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--red); }

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-wrap {
  display: flex;
  background: var(--gray);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.search-wrap input {
  padding: 8px 15px;
  border: none;
  background: transparent;
  color: var(--dark);
  outline: none;
}
.search-wrap input::placeholder { color: #999; }
.search-wrap button {
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--dark);
  cursor: pointer;
}

.auth-icon {
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 2000;
  padding: 80px 20px;
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 5% 1rem;
  margin-top: 3rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h3, .footer-col h4 {
  color: white;
  margin-bottom: 1rem;
}
.footer-col h3 span { color: var(--gold); }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Floating Cart */
#float-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
#float-cart button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
}
#cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Support Modal */
.support-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
}
.support-modal.open { display: flex; }
.support-modal .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}
.support-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 15px;
}

/* Product Cards - With Hover Image Change */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 5%;
}
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  opacity: 0;
  transform: translateY(30px);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-body {
  padding: 1rem;
}
.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-price {
  color: var(--red);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.product-actions {
  display: flex;
  gap: 0.5rem;
}
.product-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.btn-view {
  background: var(--dark);
  color: white;
}
.btn-cart {
  background: var(--gold);
  color: var(--dark);
}

/* Skeletons */
.skeleton-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-img { height: 220px; }
.skeleton-body { padding: 1rem; }
.skeleton-line { height: 15px; margin-bottom: 10px; border-radius: 5px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary:hover { background: #a93226; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-wrap { display: none; }
}