/* ==========================================================================
   NPK International - Main Stylesheet
   Theme: Black + Orange  |  Built with Bootstrap 5
   ========================================================================== */

:root {
  --orange: #ff6a00;
  --orange-2: #ff8c33;
  --orange-soft: #fff2e8;
  --dark: #14161a;
  --dark-2: #1e2127;
  --dark-3: #2a2e35;
  --text: #23262b;
  --muted: #6b7280;
  --border: #e8eaee;
  --bg-soft: #f6f7f9;
  --shadow: 0 6px 24px rgba(20, 22, 26, .08);
  --shadow-lg: 0 14px 40px rgba(20, 22, 26, .14);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  margin: 0;
}

a { text-decoration: none; }

.text-orange { color: var(--orange) !important; }
.bg-dark-npk { background: var(--dark) !important; }

/* ---------- Buttons ---------- */
.btn-orange {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: .18s ease;
}
.btn-orange:hover { background: var(--orange-2); border-color: var(--orange-2); color: #fff; }

.btn-outline-orange {
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 600;
  border-radius: 10px;
  background: #fff;
  transition: .18s ease;
}
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

.btn-dark-npk {
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--dark);
}
.btn-dark-npk:hover { background: var(--dark-2); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: #cfd3da;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar a { color: #cfd3da; }
.topbar a:hover { color: var(--orange-2); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.brand-logo {
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: .5px;
  color: var(--dark);
  line-height: 1;
}
.brand-logo span { color: var(--orange); }
.brand-sub { font-size: .62rem; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }

.search-box .form-control { border-right: 0; border-color: var(--border); }
.search-box .form-control:focus { box-shadow: none; border-color: var(--orange); }
.search-box .btn { border-radius: 0 8px 8px 0; }

.header-action { color: var(--dark); font-size: .8rem; }
.header-action i { font-size: 1.35rem; }
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--orange);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Navbar ---------- */
.main-nav { background: var(--dark); }
.main-nav .nav-link {
  color: #e7e9ee !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .8rem 1rem !important;
  border-bottom: 3px solid transparent;
  transition: .15s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--orange-2) !important;
  border-bottom-color: var(--orange);
}
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero carousel ---------- */
.hero .carousel-item {
  min-height: 380px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-slide-1 { background: linear-gradient(120deg, #14161a 0%, #2a2e35 55%, #3a2410 100%); }
.hero-slide-2 { background: linear-gradient(120deg, #3d1b00 0%, #ff6a00 130%); }
.hero-slide-3 { background: linear-gradient(120deg, #101317 0%, #202a3a 100%); }
.hero-content { color: #fff; padding: 2.5rem; max-width: 560px; }
.hero-content h2 { font-weight: 800; font-size: 2.4rem; line-height: 1.12; }
.hero-content .badge-offer {
  background: var(--orange); color:#fff; font-weight:600;
  padding: .4rem .9rem; border-radius: 30px; font-size:.78rem;
  display:inline-block; margin-bottom: 1rem;
}
.hero-content p { color: #c9cdd5; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }

/* ---------- Section headings ---------- */
.section-title {
  font-weight: 700;
  font-size: 1.4rem;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 5px; border-radius: 4px; background: var(--orange);
}

/* ---------- Category cards ---------- */
.cat-card {
  border-radius: var(--radius);
  padding: 1.6rem;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 150px;
  overflow: hidden;
  position: relative;
  transition: .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-android { background: linear-gradient(120deg, #14161a, #2a2e35); }
.cat-button { background: linear-gradient(120deg, #3d1b00, #ff6a00); }
.cat-card h3 { font-weight: 700; }
.cat-card i { font-size: 3.2rem; opacity: .85; }

/* ---------- Product cards ---------- */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: .18s ease;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-thumb {
  background: var(--bg-soft);
  padding: 14px;
  text-align: center;
}
.product-thumb img { height: 190px; width: 100%; object-fit: contain; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; z-index: 2;
}
.product-badge.discount { background: var(--dark); }
.product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-name {
  font-weight: 600; font-size: .95rem; color: var(--text);
  margin: 3px 0 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.product-name:hover { color: var(--orange); }
.color-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.price-row { margin-top: auto; }
.price-now { font-weight: 700; font-size: 1.12rem; color: var(--dark); }
.price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-actions .btn { flex: 1; font-size: .82rem; padding: .45rem; }

/* ---------- Brand strip ---------- */
.brand-strip {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.brand-pill {
  background: #fff; border: 1px solid var(--border);
  border-radius: 30px; padding: .5rem 1.3rem;
  font-weight: 600; color: var(--dark); font-size: .9rem;
  display: inline-block;
}

/* ---------- Feature row ---------- */
.feature-item { display: flex; gap: 12px; align-items: center; }
.feature-item i { font-size: 1.9rem; color: var(--orange); }
.feature-item h6 { margin: 0; font-weight: 700; font-size: .92rem; }
.feature-item small { color: var(--muted); }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(120deg, #14161a, #2a2e35);
  color: #fff; padding: 2.4rem 0;
}
.page-banner h1 { font-weight: 800; }
.page-banner .breadcrumb a { color: var(--orange-2); }
.page-banner .breadcrumb-item.active { color: #cfd3da; }

/* ---------- Filters ---------- */
.filter-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: sticky; top: 16px;
}
.filter-box h6 { font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }

/* ---------- Product details ---------- */
.pd-gallery {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.pd-gallery img { max-height: 380px; width: auto; max-width: 100%; object-fit: contain; }
.pd-title { font-weight: 700; font-size: 1.7rem; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--orange); }
.color-select { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 5px 10px 5px 6px;
  display: flex; align-items: center; gap: 7px;
  font-size: .85rem; background: #fff;
}
.color-opt .swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
.color-opt.active { border-color: var(--orange); background: var(--orange-soft); }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; background: var(--bg-soft); }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; width: fit-content; }
.qty-box button { border: 0; background: none; width: 38px; height: 40px; font-size: 1.1rem; color: var(--dark); }
.qty-box input { border: 0; width: 46px; text-align: center; font-weight: 600; }
.qty-box input:focus { outline: none; }

/* ---------- Cart ---------- */
.cart-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; gap: 14px; align-items: center;
}
.cart-item img { width: 80px; height: 80px; object-fit: contain; background: var(--bg-soft); border-radius: 10px; }
.cart-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: sticky; top: 16px;
}
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 4rem; color: var(--border); }

/* ---------- Contact / About ---------- */
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: .18s;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card i { font-size: 2rem; color: var(--orange); }
.about-stat { text-align: center; }
.about-stat h2 { font-weight: 800; color: var(--orange); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9bec8; padding: 3rem 0 0; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #b9bec8; display: inline-block; padding: 3px 0; font-size: .9rem; }
.site-footer a:hover { color: var(--orange-2); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark-3); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 6px; font-size: 1rem;
}
.footer-social a:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid var(--dark-3); margin-top: 2rem; padding: 1rem 0; font-size: .84rem; }

/* ---------- Toast ---------- */
.npk-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 1080;
  background: var(--dark); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(120%); opacity: 0;
  transition: .3s ease;
}
.npk-toast.show { transform: translateY(0); opacity: 1; }
.npk-toast i { color: var(--orange-2); font-size: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-content h2 { font-size: 1.6rem; }
  .hero .carousel-item { min-height: 300px; }
  .brand-logo { font-size: 1.25rem; }
}
