/*
Theme Name: NovaMart
Theme URI: https://novamart.shop
Author: NovaMart
Author URI: https://novamart.shop
Description: Premium Bangladesh-focused WooCommerce theme for NovaMart. Smart Shopping. Better Living.
Version: 1.1.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: nawan
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, translation-ready, block-styles
*/

:root {
  --nawan: #4f46e5;
  --nawan-2: #0f766e;
  --ink: #1f2937;
  --night: #134e4a;
  --muted: #667085;
  --line: #dce7e2;
  --paper: #f3f7f4;
  --sale: #e11d48;
  --ok: #059669;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nawan-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", "Noto Sans Bengali", sans-serif;
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 28%),
    radial-gradient(circle at top right, #d1fae5 0, transparent 24%),
    var(--paper);
}

a { color: inherit; }

.nawan-container { width: min(1320px, calc(100% - 2rem)); margin-inline: auto; }
.nawan-announce { background: var(--night); color: #fff; text-align: center; padding: .55rem 1rem; font-size: 12px; }

.nawan-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nawan-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.nawan-logo,
.nawan-logo-wrap,
.nawan-logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.nawan-logo-wrap img,
.custom-logo {
  max-height: 40px;
  width: auto;
}

.nawan-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--night);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.nawan-logo-text {
  font-weight: 800;
  letter-spacing: -.04em;
  font-size: 1.35rem;
  line-height: 1;
}

.nawan-search { flex: 1; min-width: 0; }
.nawan-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  font: inherit;
}

.nawan-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nawan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-decoration: none !important;
  font: 600 14px/1 "Plus Jakarta Sans", sans-serif;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.nawan-action:hover { background: var(--paper); }
.nawan-action svg { flex-shrink: 0; }

.nawan-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--nawan);
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
}

.nawan-nav { border-top: 1px solid var(--line); }

.nawan-menu,
.nawan-nav ul,
.nawan-nav .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nawan-nav li,
.nawan-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nawan-nav a,
.nawan-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.nawan-nav a:hover,
.nawan-menu a:hover { background: var(--paper); }

.nawan-nav .sub-menu {
  display: none;
  position: absolute;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px !important;
  box-shadow: 0 16px 40px rgba(23,26,43,.12);
  flex-direction: column;
  z-index: 20;
}

.nawan-nav li { position: relative; }
.nawan-nav li:hover > .sub-menu { display: flex; }

.nawan-hero {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  margin: 1rem auto;
}
.nawan-hero-inner { max-width: 560px; padding: 3rem 2rem; }
.nawan-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: .4rem 0; }
.nawan-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 1.2rem; border-radius: 16px; background: var(--nawan); color: #fff; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; }
.nawan-btn.dark { background: var(--night); }
.nawan-grid { display: grid; gap: 1rem; }
.nawan-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 900px) { .nawan-products { grid-template-columns: repeat(4, 1fr); } }
.nawan-loop-card,
ul.products li.product.nawan-loop-card {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.nawan-loop-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f4f5f8;
}
.nawan-loop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nawan-loop-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  z-index: 1;
}
.nawan-loop-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nawan-loop-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
  min-height: 2.7em;
}
.nawan-loop-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nawan-loop-price strong { font-size: 18px; color: var(--ink); }
.nawan-loop-price del { color: #8b90a3; font-size: 13px; }
.nawan-loop-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nawan-loop-btn,
.nawan-loop-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 0 8px;
}
.nawan-loop-btn {
  background: var(--nawan);
  color: #fff !important;
}
.nawan-loop-buy {
  background: var(--night);
  color: #fff !important;
}
.nawan-drawer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(17, 20, 32, .48);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.nawan-drawer.open { display: flex; }
.nawan-drawer-panel {
  width: 100%;
  max-height: min(92vh, 740px);
  background: #fff;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -18px 50px rgba(23,26,43,.2);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.nawan-sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #d9dce6;
  margin: 6px auto 10px;
}
.nawan-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
}
.nawan-sheet-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nawan);
}
.nawan-drawer-head h2 { margin: 2px 0 0; font-size: 22px; }
.nawan-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.nawan-sheet-scroll {
  overflow: auto;
  flex: 1;
  min-height: 120px;
  padding: 4px 0 12px;
}
.nawan-mini-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.nawan-mini-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfe;
}
.nawan-mini-thumb,
.nawan-mini-thumb img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px;
  object-fit: cover;
  background: #eef0f5;
  display: block;
}
.nawan-mini-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  color: var(--ink);
}
.nawan-mini-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.nawan-mini-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.nawan-mini-remove {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none !important;
  color: var(--muted);
  font-size: 12px;
}
.nawan-sheet-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.nawan-sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}
.nawan-sheet-total strong { font-size: 22px; }
.nawan-sheet-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none !important;
}
.nawan-sheet-btn-primary { background: var(--nawan) !important; color: #fff !important; }
.nawan-sheet-btn-ghost { background: #f1f2f7 !important; color: var(--night) !important; }
.nawan-sheet-empty { text-align: center; padding: 36px 8px 16px; }
.nawan-sheet-bag { font-size: 40px; margin-bottom: 8px; }

@media (min-width: 768px) {
  .nawan-drawer { justify-content: flex-end; align-items: stretch; }
  .nawan-drawer-panel {
    width: 420px;
    max-height: none;
    height: 100%;
    border-radius: 0;
    padding: 18px 18px 20px;
  }
  .nawan-sheet-handle { display: none; }
}
ul.products,
ul.products.columns-3,
ul.products.columns-4,
.woocommerce ul.products,
.nawan-home-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)) !important;
  gap: 14px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  width: 100% !important;
  float: none !important;
}
@media (min-width: 900px) {
  ul.products,
  ul.products.columns-4,
  .woocommerce ul.products,
  .nawan-home-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
}
.woocommerce ul.products li.product,
.nawan-home-grid > li,
ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}
.nawan-home-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  margin: 16px auto;
  box-shadow: 0 10px 30px rgba(15, 118, 110, .06);
}
.nawan-sec-head h2 { margin: 0 0 4px; }
.nawan-sec-head p { margin: 0 0 14px; color: var(--muted); }
.nawan-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px auto;
}
@media (min-width: 900px) {
  .nawan-trust { grid-template-columns: repeat(4, 1fr); }
}
.nawan-trust div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  gap: 4px;
}
.nawan-trust small { color: var(--muted); }
.nawan-flash {
  background: linear-gradient(135deg, #fff7ed, #ecfdf5);
  border: 1px solid #fdba74;
  border-radius: 28px;
  padding: 18px;
  margin: 16px auto;
}
.nawan-flash-head p { margin: 0; color: #c2410c; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.nawan-flash-head h2 { margin: 4px 0; }
.nawan-empty-note { color: var(--muted); }

.nawan-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.nawan-card img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.nawan-card-body { padding: 1rem; }
.nawan-price { font-weight: 800; }
.nawan-price del { color: var(--muted); font-weight: 500; margin-left: .4rem; }
.nawan-sale { position: absolute; top: .7rem; left: .7rem; background: var(--sale); color: #fff; border-radius: 99px; font-size: 11px; padding: .2rem .5rem; }

.nawan-footer { background: var(--night); color: #fff; margin-top: 2rem; padding: 3rem 0 1rem; }
.nawan-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.nawan-footer ul,
.nawan-footer .menu {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nawan-mobnav { position: fixed; inset: auto 0 0 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
.nawan-mobnav a, .nawan-mobnav button { background: none; border: 0; padding: .55rem 0 .4rem; font-size: 11px; color: var(--ink); }



@media (max-width: 900px) {
  .nawan-action span { display: none; }
  .nawan-action { width: 44px; padding: 0; }
  .nawan-actions .nawan-action:not(.nawan-action-cart) { display: none; }
  .nawan-nav { display: none; }
  .nawan-wa { bottom: 78px; right: 10px; transform: scale(.92); }
}

@media (min-width: 900px) {
  .nawan-mobnav { display: none; }
  .nawan-mobile-search { display: none; }
}

@media (max-width: 700px) {
  .nawan-search { display: none; }
}

.nawan-sticky-atc { position: fixed; left: 0; right: 0; bottom: 58px; background: #fff; padding: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; z-index: 40; }
@media (min-width: 900px) { .nawan-sticky-atc { display: none; } }
.nawan-social { display: grid; gap: 8px; margin-top: 12px; }
.nawan-wa {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
}
.nawan-auth {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .nawan-auth { grid-template-columns: 1fr 1fr; }
}
.nawan-auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.nawan-auth-card h2 { margin-top: 0; }
.nawan-auth-card .input-text {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
}
@keyframes nawanPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91,53,245,.45); }
  70% { transform: scale(1.015); box-shadow: 0 0 0 10px rgba(91,53,245,0); }
}
.nawan-cta-cart,
button[name="nawan_buy_now"],
.nawan-loop-buy {
  animation: nawanPulse 1.8s ease-in-out infinite;
}
.nawan-cta-cart:active,
button[name="nawan_buy_now"]:active,
.nawan-loop-buy:active {
  transform: scale(.96);
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .nawan-cta-cart,
  button[name="nawan_buy_now"],
  .nawan-loop-buy { animation: none; }
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
