/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0c7ec2;
  --primary-light: #e8f4fc;
  --primary-dark: #0a6299;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

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

/* ===== HEADER / NAV ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.nav-links a:hover,
.nav-links a.active { color: var(--dark); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.nav-links a { position: relative; }

.cart-icon {
  position: relative;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #dc2626;
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.slides { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-content {
  max-width: 640px;
  padding: 0 24px;
}

.slide-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.slide-content p {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.2);
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
}

.slide-arrow:hover { background: rgba(0,0,0,0.35); }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.dot.active { background: var(--white); }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
}

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

.btn-primary:hover { background: #0f172a; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-outline-dark:hover { background: var(--bg); }

.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION ===== */
.section {
  padding: 64px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.section-title p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.about-card .icon {
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.about-card p { color: var(--gray); font-size: 0.9rem; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card:hover { border-color: var(--gray-light); }

.product-card-img {
  width: 100%;
  height: 160px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.product-card-img::after {
  content: 'EVERESTGIFT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 1;
}

.product-card-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-card-body {
  padding: 12px;
}

.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-body h3 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.product-card-body p {
  font-size: 0.775rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

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

.product-price {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.8rem;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.725rem;
  border-radius: var(--radius);
}

/* ===== PRODUCTS LAYOUT ===== */
.products-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.category-sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.category-sidebar ul li { margin-bottom: 1px; }

.sidebar-filter {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: none;
  background: none;
  color: var(--gray);
  font-size: 0.825rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  line-height: 1.4;
}

.sidebar-filter:hover {
  background: var(--bg);
  color: var(--dark);
}

.sidebar-filter.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.products-main { min-width: 0; }

.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.825rem;
  color: var(--gray);
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  background: var(--white);
  flex: 1;
  max-width: 280px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
  background: transparent;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  font-size: 0.825rem;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
}

.page-btn:hover { border-color: var(--gray-light); color: var(--dark); }

.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.page-dots {
  padding: 6px 4px;
  color: var(--gray-light);
  font-size: 0.825rem;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.product-detail-img {
  width: 100%;
  height: 420px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  overflow: hidden;
  position: relative;
}

.product-detail-img::after {
  content: 'EVERESTGIFT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 1;
}

.product-detail-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ===== IMAGE GALLERY ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 3px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb:hover { border-color: var(--gray-light); }

.thumb.active { border-color: var(--primary); border-width: 2px; padding: 2px; }

.product-detail-info h1 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-detail-info .category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

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

.product-detail-info .price small {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
}

.product-detail-info .description {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.product-detail-info .specs {
  margin-bottom: 20px;
}

.product-detail-info .specs h3 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-detail-info .specs ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
}

.product-detail-info .specs ul li strong { color: var(--dark); }

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 600;
  font-size: 0.875rem;
}

.quantity-selector input {
  width: 72px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.quantity-selector input:focus {
  outline: none;
  border-color: var(--primary);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  border-left: 1px solid var(--border);
  transition: right 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 { font-size: 1rem; color: var(--dark); font-weight: 600; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--gray);
  cursor: pointer;
}

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

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--gray);
}

.cart-empty .icon { margin-bottom: 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.cart-item-details { flex: 1; }

.cart-item-details h4 { font-size: 0.85rem; margin-bottom: 2px; }

.cart-item-details .cart-item-price {
  font-size: 0.8rem;
  color: var(--gray);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty button:hover { background: var(--bg); }

.cart-item-qty span {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.75rem;
  cursor: pointer;
  align-self: flex-start;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-footer .btn { width: 100%; text-align: center; margin-bottom: 6px; }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover { background: #1ebe5a; }

.btn-download {
  background: var(--dark);
  color: var(--white);
}

.btn-download:hover { background: #0f172a; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-info-card {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-card .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.875rem; margin-bottom: 2px; }
.contact-info-card p { font-size: 0.85rem; color: var(--gray); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
}

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

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

/* ===== FOOTER ===== */
.footer {
  background: #1e293b;
  color: var(--white);
  padding: 48px 24px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 32px;
}

.footer-brand .logo { margin-bottom: 10px; color: var(--white); }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; }

.footer h4 {
  font-size: 0.8rem;
  margin-bottom: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul li { margin-bottom: 6px; }
.footer ul li a { color: #94a3b8; font-size: 0.85rem; }
.footer ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #334155;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 999;
  text-decoration: none;
}

.whatsapp-float:hover { background: #1ebe5a; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 44px 24px;
  text-align: center;
}

.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; }
.page-header p { opacity: 0.85; font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 64px 24px 24px;
    gap: 20px;
    border-right: 1px solid var(--border);
    transition: left 0.2s ease;
    z-index: 1500;
  }

  .nav-links.open { left: 0; }

  .hero-slider { height: 300px; }
  .slide-content h1 { font-size: 1.5rem; }
  .slide-content p { font-size: 0.9rem; }

  .about-grid { grid-template-columns: 1fr; }

  .products-layout { grid-template-columns: 1fr; gap: 16px; }

  .category-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .category-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .category-sidebar ul li { margin-bottom: 0; }

  .sidebar-filter {
    padding: 4px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .product-card-img { height: 120px; }
  .product-card-body { padding: 8px; }
  .product-card-body h3 { font-size: 0.75rem; }
  .product-card-body p { font-size: 0.7rem; margin-bottom: 6px; }
  .product-card-category { font-size: 0.6rem; }
  .product-price { font-size: 0.7rem; }
  .btn-sm { padding: 4px 8px; font-size: 0.65rem; }

  .products-topbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }

  .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .product-detail-img { height: 280px; }

  .product-thumbs { gap: 6px; }
  .thumb { width: 44px; height: 44px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 32px 16px; }

  .container { padding: 0 16px; }

  .nav { padding: 10px 16px; }

  .btn-primary.btn-sm { font-size: 0.7rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .hero-slider { height: 240px; }
  .slide-content h1 { font-size: 1.2rem; }
  .slide-content p { font-size: 0.8rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-img { height: 130px; }

  .footer-grid { grid-template-columns: 1fr; }

  .about-grid { gap: 12px; }
  .about-card { padding: 20px 16px; }
  .about-card .icon svg { width: 28px; height: 28px; }
  .about-card h3 { font-size: 0.9rem; }
  .about-card p { font-size: 0.8rem; }
}
