/* ==========================================================================
   NoorGhor BD — Othoba-style marketplace layer (v1.6)
   Loads last. Blue header, cream page, circular category icons,
   white product cards with red starburst discount badges.
   Colors stay editable: Customize → NoorGhor BD Settings → Brand Colors.
   ========================================================================== */

:root {
	--ng-red: #E4252B;
	--ng-rate: #3F9B35;
	--ng-head-1: var(--ng-green-deep);
	--ng-head-2: var(--ng-green-2);
	--ng-circle-1: #A6E6F0;
	--ng-circle-2: #EAFBFD;
	--ng-card: #fff;
	--ng-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--ng-display: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--ng-radius: 10px;
	--ng-radius-sm: 6px;
	--ng-shadow: 0 1px 4px rgba(17, 24, 39, .08);
	--ng-shadow-hover: 0 8px 22px rgba(17, 24, 39, .12);
	--ng-wrap: 1440px;
}

body { font-family: var(--ng-font); font-size: 15px; line-height: 1.55; color: var(--ng-ink); background: var(--ng-cream); }
h1, h2, h3, h4 { font-family: var(--ng-display); color: var(--ng-ink); font-weight: 700; letter-spacing: -.005em; }
a { color: var(--ng-green); }
.ng-container { max-width: var(--ng-wrap); padding-left: max(16px, 3vw); padding-right: max(16px, 3vw); }

/* Buttons ------------------------------------------------------------------ */
.ng-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt { border-radius: 6px; font-weight: 500; letter-spacing: .01em; }
.ng-btn--primary, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce #respond input#submit, .woocommerce .checkout-button { background: var(--ng-green); border-color: var(--ng-green); color: #fff; }
.ng-btn--primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ng-green-deep); border-color: var(--ng-green-deep); color: #fff; }
.ng-btn--gold { background: var(--ng-gold); border-color: var(--ng-gold); color: #fff; }
.ng-btn--gold:hover { background: #E07B00; border-color: #E07B00; color: #fff; }
.ng-btn--ghost { background: #fff; color: var(--ng-green); border: 1px solid var(--ng-green); }

/* Top strip ---------------------------------------------------------------- */
.ng-topbar { background: #FFF8E1; color: var(--ng-green); border-bottom: 1px solid #F1E7C4; font-size: 11.5px; }
.ng-topbar__inner { min-height: 30px; }
.ng-topbar .ng-topbar__text, .ng-topbar a { color: var(--ng-green); }
.ng-topbar__links a { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.ng-topbar__links a:hover { color: var(--ng-green-deep); text-decoration: underline; }

/* Header ------------------------------------------------------------------- */
.ng-header-dark .ng-header { background: linear-gradient(90deg, var(--ng-head-1), var(--ng-head-2)); border-bottom: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); backdrop-filter: none; }
.ng-header__bar { padding-top: 10px; padding-bottom: 10px; }
.ng-header .ng-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.ng-header .ng-logo__img { height: 38px; width: auto; }
.ng-header-dark .ng-header .ng-icon-btn, .ng-header-dark .ng-header__menu { color: #fff; }
.ng-search { background: #fff; border-radius: 3px; border: 1px solid #fff; box-shadow: none; }
.ng-search__input { background: #fff; border: 0; border-radius: 3px; height: 42px; font-size: 14px; color: var(--ng-ink); }
.ng-search__input::placeholder { color: #9AA0A6; }
.ng-search__btn { background: transparent; color: var(--ng-green); border-radius: 0 3px 3px 0; }
.ng-search__btn:hover { background: #F1F6FB; color: var(--ng-green-deep); }
.ng-header__actions { gap: 4px; }
.ng-header-dark .ng-action { color: #fff; flex-direction: column; gap: 2px; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; line-height: 1.1; text-decoration: none; position: relative; }
.ng-header-dark .ng-action:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.ng-header-dark .ng-action .ng-icon { width: 24px; height: 24px; color: #fff; }
.ng-header-dark .ng-action__label { color: #fff; font-weight: 500; }
.ng-cart-count, .ng-wish-count { background: #fff; color: var(--ng-green); font-weight: 700; border: 1.5px solid var(--ng-green); }
@media (min-width: 900px) {
	.ng-header__bar { grid-template-columns: auto minmax(320px, 620px) auto; justify-content: space-between; gap: 32px; padding-top: 16px; padding-bottom: 16px; }
	.ng-header .ng-logo__img { height: 46px; }
	.ng-search__input { height: 40px; }
	.ng-header-dark .ng-action { display: inline-flex; align-items: center; }
}
@media (max-width: 899px) {
	.ng-header-dark .ng-action__label { display: none; }
	.ng-header .ng-logo { padding: 3px 10px; }
	.ng-header .ng-logo__img { height: 30px; }
}

/* Category bar ("Browse Categories") ------------------------------------- */
.ng-nav { background: #fff; border-bottom: 1px solid var(--ng-line); }
.ng-catnav > li > a { color: var(--ng-ink); font-size: 13.5px; font-weight: 500; }
.ng-catnav > li > a:hover, .ng-catnav > li > a.is-current { color: var(--ng-green); background: transparent; box-shadow: inset 0 -2px 0 var(--ng-green); border-radius: 0; }
.ng-catnav__all-btn { background: #fff; color: var(--ng-ink); border: 0; border-left: 1px solid var(--ng-line); border-right: 1px solid var(--ng-line); border-radius: 0; text-transform: uppercase; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; min-width: 220px; }
.ng-catnav__all-btn:hover { background: #F7F9FC; color: var(--ng-green); }
.ng-catnav__all-btn .ng-icon { color: var(--ng-ink); }
.ng-mega, .ng-catnav__drop { border-radius: 0 0 6px 6px; border: 1px solid var(--ng-line); box-shadow: 0 10px 24px rgba(17, 24, 39, .12); }
.ng-mega__head:hover, .ng-catnav__drop a:hover, .ng-mega ul a:hover { color: var(--ng-green); background: #F3F8FD; }

/* Section heads ------------------------------------------------------------ */
.ng-section { padding-top: clamp(24px, 3.5vw, 40px); padding-bottom: clamp(24px, 3.5vw, 40px); }
.ng-sec-head { border-bottom: 1px solid var(--ng-line); padding-bottom: 10px; margin-bottom: 18px; }
.ng-sec-title { font-size: clamp(18px, 2vw, 22px); color: var(--ng-ink); font-weight: 700; }
.ng-sec-title::after { display: none; }
.ng-sec-sub { color: var(--ng-muted); }
.ng-sec-link { border: 1px solid var(--ng-green); color: var(--ng-green); border-radius: 4px; font-size: 13px; padding: 5px 12px; }
.ng-sec-link:hover { background: var(--ng-green); color: #fff; }

/* Hero → banner ---------------------------------------------------------- */
.ng-hero { background: transparent; padding: 18px 0 6px; }
.ng-hero .ng-hero__grid { background: linear-gradient(115deg, #E6F4FD 0%, #CDE8FA 55%, #B8DEF7 100%); border-radius: 12px; padding: clamp(22px, 4vw, 48px); overflow: hidden; position: relative; }
.ng-hero__title { color: var(--ng-green-deep); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; }
.ng-hero__sub { color: #34495E; font-size: clamp(15px, 1.4vw, 18px); }
.ng-hero__points li { color: #34495E; }
.ng-hero__points .ng-icon { color: var(--ng-rate); }
.ng-hero__sun, .ng-arch--hero::before, .ng-arch--hero::after { display: none; }
.ng-arch--hero, .ng-arch--hero img { border-radius: 12px; }
.ng-collage::before { display: none; }
.ng-collage__item { border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .08); }

/* Marketplace hero (slider + side banners) */
.ng-mhero { padding-top: 14px; }
.ng-slider, .ng-sbanner { border-radius: 10px; }
.ng-policy { background: transparent; }

/* Circular category icons (Othoba style) --------------------------------- */
.ng-circles { padding-top: 18px; padding-bottom: 10px; }
.ng-circles__list { gap: clamp(14px, 2vw, 30px); }
.ng-circle { width: clamp(96px, 11vw, 160px); gap: 10px; }
.ng-circle__img { width: clamp(88px, 10.5vw, 152px); height: auto; aspect-ratio: 1; padding: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, var(--ng-circle-2) 0%, var(--ng-circle-1) 100%); box-shadow: inset 0 0 0 1px rgba(43, 108, 168, .08); }
.ng-circle__img img { width: 80%; height: 80%; object-fit: contain; border-radius: 50%; mix-blend-mode: multiply; }
.ng-circle__name { font-size: 13.5px; font-weight: 700; line-height: 1.25; margin-top: 8px; color: var(--ng-ink); }
.ng-circle:hover .ng-circle__img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(43, 108, 168, .22); }
.ng-circle.is-current .ng-circle__img, .ng-circle[aria-current] .ng-circle__img { box-shadow: 0 0 0 3px var(--ng-green); }
.ng-circles__nav { background: #fff; color: var(--ng-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
@media (min-width: 900px) {
	.ng-circle { width: 150px; }
	.ng-circle__img { width: 142px; }
}

/* Shop / category page ------------------------------------------------------ */
.ng-breadcrumb { font-size: 12.5px; color: var(--ng-muted); padding-top: 14px; }
.ng-breadcrumb a { color: var(--ng-muted); text-decoration: none; }
.ng-breadcrumb a:hover { color: var(--ng-green); }
.ng-shop-head { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ng-line); }
.ng-shop-head .ng-page-title { font-size: clamp(20px, 2.2vw, 26px); color: var(--ng-ink); margin-bottom: 16px; }
.ng-chips { display: none; }

@media (min-width: 900px) {
	.ng-shop { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
}
.ng-shop__side .ng-filters, .ng-filters { background: transparent; border: 0; box-shadow: none; padding: 0; }
.ng-filter { border: 0; border-radius: 0; background: transparent; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--ng-line); }
.ng-filters summary { font-size: 15px; font-weight: 700; color: var(--ng-ink); padding: 4px 0 10px; border-bottom: 2px solid var(--ng-ink); display: inline-block; margin-bottom: 10px; }
.ng-filters a { color: var(--ng-ink); font-size: 13.5px; text-decoration: none; }
.ng-filters a:hover, .ng-filters a.is-active { color: var(--ng-green); }
.ng-filters ul { max-height: 290px; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.ng-check { font-size: 13.5px; }
.ng-check input { accent-color: var(--ng-green); }
.ng-filters__title { font-size: 16px; }

.ng-toolbar { background: transparent; border: 0; padding: 0 0 14px; }
.ng-toolbar select.orderby, .woocommerce-ordering select { background-color: #fff; border: 1px solid #D7DBE2; border-radius: 4px; font-size: 13px; height: 34px; }
.woocommerce-result-count { font-size: 13px; color: var(--ng-muted); }

/* Product grid + card --------------------------------------------------------- */
.ng-products { gap: 16px; }
@media (min-width: 1200px) { .ng-products.columns-4, .ng-shop .ng-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ng-card { background: var(--ng-card); border: 0; border-radius: 4px; box-shadow: var(--ng-shadow); padding: 14px 14px 16px; transition: box-shadow .2s var(--ng-ease), transform .2s var(--ng-ease); }
.ng-card:hover { box-shadow: var(--ng-shadow-hover); transform: translateY(-2px); }
.ng-card__media { position: relative; background: #fff; border-radius: 0; aspect-ratio: 1; overflow: visible; }
.ng-card__img { display: block; height: 100%; }
.ng-card__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.ng-card:hover .ng-card__img img { transform: scale(1.03); }
.ng-card__badges { top: 0; left: 0; }
.ng-badge { border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
.ng-badge--new { background: var(--ng-green); color: #fff; }
.ng-badge--out { background: #6B7280; color: #fff; }
.ng-card__body { padding: 12px 0 0; gap: 6px; }

/* Starburst discount badge */
.ng-burst { position: absolute; top: -6px; right: -6px; z-index: 3; width: 52px; height: 52px; background: var(--ng-red); color: #fff; display: grid; place-items: center; clip-path: polygon(50% 0%, 59% 12%, 73% 5%, 75% 20%, 90% 18%, 85% 32%, 99% 38%, 88% 50%, 99% 62%, 85% 68%, 90% 82%, 75% 80%, 73% 95%, 59% 88%, 50% 100%, 41% 88%, 27% 95%, 25% 80%, 10% 82%, 15% 68%, 1% 62%, 12% 50%, 1% 38%, 15% 32%, 10% 18%, 25% 20%, 27% 5%, 41% 12%); }
.ng-burst > span { transform: rotate(-35deg); font-size: 9.5px; font-weight: 700; line-height: 1.02; text-align: center; letter-spacing: .02em; text-transform: uppercase; }

.ng-ocard__head { display: flex; align-items: flex-start; gap: 8px; }
.ng-ocard__head .ng-card__title { flex: 1; margin: 0; }
.ng-card__title { font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--ng-ink); font-family: var(--ng-font); min-height: 2.8em; }
.ng-card__title a { color: var(--ng-ink); text-decoration: none; }
.ng-card__title a:hover { color: var(--ng-green); }
.ng-ocard__head .ng-wish { position: static; width: 28px; height: 28px; flex: none; background: transparent; box-shadow: none; color: #9AA0A6; padding: 0; }
.ng-ocard__head .ng-wish .ng-icon { width: 20px; height: 20px; }
.ng-ocard__head .ng-wish.is-active, .ng-ocard__head .ng-wish:hover { color: var(--ng-red); }

.ng-ocard__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ng-muted); flex-wrap: wrap; }
.ng-rate { background: var(--ng-rate); color: #fff; font-weight: 700; font-size: 11.5px; border-radius: 3px; padding: 1px 6px; line-height: 1.6; }
.ng-ocard__sold { font-style: italic; border-left: 1px solid #C9CDD3; padding-left: 7px; }

.ng-card__price { font-size: 15px; font-weight: 700; color: var(--ng-ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ng-card__price ins { text-decoration: none; color: var(--ng-ink); order: 1; }
.ng-card__price del { color: #9AA0A6; font-weight: 400; font-size: 13px; order: 2; }
.ng-card__off { display: none; }
.ng-card__actions { margin-top: 6px; }
.ng-card__actions .button, .ng-card__actions .ng-btn, .woocommerce .ng-card__actions .button { background: #fff; color: var(--ng-green); border: 1px solid var(--ng-green); border-radius: 4px; font-size: 13px; font-weight: 500; min-height: 36px; }
.ng-card__actions .button:hover, .woocommerce .ng-card__actions .button:hover { background: var(--ng-green); color: #fff; }
.ng-card__actions .ng-card__buy { background: var(--ng-gold); color: #fff; border-color: var(--ng-gold); }
.ng-card__cat { display: none; }

/* List view keeps working */
.is-list .ng-card { padding: 12px; }

/* Single product -------------------------------------------------------------- */
.single-product .product_title { font-size: clamp(20px, 2.4vw, 28px); color: var(--ng-ink); }
.single-product .price { color: var(--ng-ink); font-weight: 700; }
.single-product .price del { color: #9AA0A6; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ng-green); border-color: var(--ng-green); }

/* Footer -------------------------------------------------------------------- */
.ng-footer { background: #1D3B5C; color: #D7E2EE; }
.ng-footer a { color: #D7E2EE; }
.ng-footer a:hover { color: #fff; }
.ng-footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.ng-footer__logo .ng-logo { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px 16px; }
.ng-footer__bottom { background: #152C46; border-top: 0; color: #AFC3D8; }
.ng-footer .ng-social a { background: rgba(255, 255, 255, .1); color: #fff; }
.ng-footer__pay { color: #AFC3D8; }

/* Mobile bottom nav ----------------------------------------------------------- */
.ng-bottom-nav { background: #fff; border-top: 1px solid var(--ng-line); }
.ng-bottom-nav a, .ng-bottom-nav button { color: #4B5563; }
.ng-bottom-nav .is-active, .ng-bottom-nav a:hover { color: var(--ng-green); }

/* Misc ------------------------------------------------------------------------- */
.ng-why__icon, .ng-trust .ng-icon { color: var(--ng-green); }
.ng-news__box { border-radius: 10px; border: 0; background: linear-gradient(90deg, var(--ng-head-1), var(--ng-head-2)); color: #fff; }
.ng-news__box .ng-sec-title, .ng-news__box p { color: #fff; }
.ng-news__form input[type="email"] { border-radius: 4px; background: #fff; border: 0; }
.ng-news__form .ng-btn { border-radius: 4px; }
.ng-wa-float { background: #25D366; }
:focus-visible { outline-color: var(--ng-gold); }

/* Specificity fixes */
.ng-nav .ng-catnav .ng-catnav__all-btn { background: #fff; color: var(--ng-ink) !important; font-weight: 700 !important; margin: 0; }
.ng-nav .ng-catnav .ng-catnav__all-btn:hover { color: var(--ng-green) !important; background: #F7F9FC !important; }
.ng-filter ul { list-style: none; padding-left: 0; margin: 0; }
.ng-filter li { padding: 3px 0; }
