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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
  background-color: #f5f5f5;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* LOGO */
.logo {
  flex-shrink: 0;
  cursor: pointer;
}

.logo-img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* SEARCH */
.search-bar {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: #1a1a2e;
  background: #fff;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  background: transparent;
  color: #1a1a1a;
}

.search-bar input::placeholder {
  color: #aaa;
}

.search-btn {
  background: none;
  border: none;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.search-btn:hover {
  color: #1a1a2e;
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-link {
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.header-link:hover {
  background: #f0f0f0;
  color: #1a1a2e;
}

.header-link--whatsapp {
  color: #16a34a;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.header-link--whatsapp:hover {
  background: #dcfce7;
  color: #15803d;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: #f0f0f0;
  color: #1a1a2e;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e63946;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-login {
  background: #1a1a2e;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-login:hover {
  background: #2d2d44;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #1a1a2e;
  border-bottom: 2px solid #e63946;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: background 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.08);
}

.nav-btn.active {
  border-bottom-color: #e63946;
  font-weight: 600;
}

/* ===== FEATURED BANNER ===== */
.featured-banner {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 0.5rem;
}

.featured-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.featured-banner-inner img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
}

/* ===== PRODUCTS AREA ===== */
.products-area {
  width: 100%;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  animation: cardIn 0.3s ease both;
}

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

.product-img-wrap {
  position: relative;
  background: #f8f8f8;
  height: 150px;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s;
}

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

.product-wish {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
  z-index: 2;
}

.product-wish:hover,
.product-wish.active {
  color: #e63946;
  border-color: #e63946;
  transform: scale(1.1);
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e63946;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 0.6rem 0.75rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #222;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.product-actions {
  padding: 0 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-notify {
  background: #f5c800;
  color: #1a1a1a;
  border: none;
  border-radius: 7px;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-notify:hover {
  background: #e6b800;
  transform: scale(1.01);
}

.btn-add-cart {
  background: #1a9e4e;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-add-cart:hover {
  background: #168040;
  transform: scale(1.01);
}

.btn-add-cart:active {
  transform: scale(0.98);
}

/* ===== BANNER SECTION ===== */
.banner-section {
  background: #1a1a2e;
  overflow: hidden;
  margin-top: 1rem;
}

.banner-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1f2937;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  font-size: 0.83rem;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 240px;
}

.footer-addr {
  font-size: 0.78rem !important;
  color: #6b7280 !important;
  line-height: 1.55 !important;
  margin-top: 0.1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: #f5c800; }

.footer-bottom {
  max-width: 1400px;
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: #6b7280;
}

.footer-legal-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-links a:hover { color: #9ca3af; }

/* ===== CART DRAWER ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.cart-drawer-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0.3rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.cart-close:hover {
  background: #f0f0f0;
  color: #333;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #bbb;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

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

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
}

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

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #444;
  transition: border-color 0.15s, background 0.15s;
}

.qty-btn:hover {
  border-color: #1a1a2e;
  background: #f0f0f0;
}

.qty-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 0.2rem;
  transition: color 0.15s;
}

.cart-item-remove:hover {
  color: #e63946;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.btn-checkout {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-checkout:hover {
  background: #c1121f;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-link {
    display: none;
  }

  .navbar-inner {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .featured-banner-inner img {
    max-height: 160px;
  }

  .banner-img {
    max-height: 220px;
  }
}

@media (max-width: 600px) {
  /* Header */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .logo-img {
    height: 52px;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.15rem;
  }

  /* Navbar: hide text, show icons scrollable */
  .navbar-inner {
    padding: 0 0.5rem;
    gap: 0;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    white-space: nowrap;
  }

  /* Page layout */
  .page-layout {
    padding: 0.75rem 0.6rem 1.5rem;
  }

  /* Banners */
  .featured-banner-inner {
    border-radius: 8px;
    overflow: hidden;
  }

  .featured-banner-inner img {
    max-height: 110px;
    width: 100%;
    object-fit: cover;
  }

  .banner-img {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Section heading */
  .section-title {
    font-size: 1rem;
  }

  /* Products grid: 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  /* Product cards */
  .product-card {
    border-radius: 8px;
  }

  .product-img-wrap {
    height: 120px;
  }

  .product-img {
    padding: 6px;
  }

  .product-info {
    padding: 0.6rem 0.6rem 0.7rem;
  }

  .product-name {
    font-size: 0.68rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 0.88rem;
    margin-top: 0.3rem;
  }

  .product-price-original {
    font-size: 0.7rem;
  }

  .product-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .btn-add-cart {
    font-size: 0.68rem;
    padding: 0.45rem 0.5rem;
    gap: 4px;
    border-radius: 0 0 8px 8px;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .footer-legal-links {
    justify-content: center;
  }

  /* Cart drawer: right panel, top half only */
  .cart-drawer {
    width: 82vw;
    max-width: 320px;
    height: 80vh;
    top: 0;
    right: -82vw;
    border-radius: 0 0 0 16px;
    box-shadow: -4px 4px 24px rgba(0,0,0,0.18);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  }

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

  .cart-drawer-inner {
    padding: 1rem 0.85rem;
  }

  .cart-drawer-title {
    font-size: 1rem;
  }
}
