/*
Theme Name: Nibasa - নিবাসা
Theme URI: https://www.facebook.com/share/1HyUYFoQgF/
Author: Nibasa Team
Author URI: https://www.facebook.com/share/1HyUYFoQgF/
Description: নিবাসা — বইয়ের আপন ঠিকানা। একটি পেশাদার বাংলা বই ই-কমার্স ওয়ার্ডপ্রেস থিম। WooCommerce সাপোর্টসহ সম্পূর্ণ রেসপন্সিভ।
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nibasa
Tags: e-commerce, woocommerce, books, bengali, responsive, green
*/

/* =============================================
   NIBASA THEME — MAIN STYLES
   Green & White Professional Book Store
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Lato:wght@300;400;700&display=swap');

:root {
  --green-dark:  #1a4d2e;
  --green-mid:   #2d7a4f;
  --green-light: #4caf7d;
  --green-pale:  #e8f5ed;
  --green-ultra: #f0faf4;
  --white:       #ffffff;
  --text-dark:   #1c2b22;
  --text-mid:    #3d5c47;
  --text-soft:   #6b8c74;
  --cart-color:  #ff6b35;
  --buy-color:   #e8b800;
  --buy-dark:    #c99a00;
  --shadow-soft: 0 4px 24px rgba(26,77,46,0.10);
  --shadow-card: 0 8px 32px rgba(26,77,46,0.13);
  --radius:      14px;
  --radius-sm:   8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', 'Lato', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ===== TOPBAR ===== */
.nibasa-topbar {
  background: var(--green-dark);
  color: #c8e6d0;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.nibasa-topbar a { color: #a8d5b5; margin: 0 12px; }
.nibasa-topbar a:hover { color: white; }
.nibasa-topbar i { margin-right: 5px; }

/* ===== NAVBAR ===== */
.nibasa-nav {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 18px rgba(26,77,46,0.10);
  padding: 0 24px;
}
.nibasa-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.nibasa-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.nibasa-logo-bn {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
}
.nibasa-logo-en {
  font-size: 11px;
  color: var(--green-mid);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nibasa-nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nibasa-nav-links a {
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nibasa-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-light);
  transition: width 0.25s;
}
.nibasa-nav-links a:hover { color: var(--green-dark); }
.nibasa-nav-links a:hover::after { width: 100%; }

.nibasa-nav-actions { display: flex; gap: 12px; align-items: center; }

.nibasa-search-wrap {
  display: flex;
  align-items: center;
  background: var(--green-ultra);
  border: 1.5px solid #c5e0cf;
  border-radius: 40px;
  padding: 7px 16px;
  gap: 8px;
  transition: border-color 0.2s;
}
.nibasa-search-wrap:focus-within { border-color: var(--green-mid); }
.nibasa-search-wrap input {
  border: none; background: transparent; outline: none;
  font-size: 14px; width: 160px; font-family: inherit;
  color: var(--text-dark);
}
.nibasa-search-wrap i { color: var(--green-mid); font-size: 14px; }

/* WooCommerce Cart Icon */
.nibasa-cart-wrap a {
  position: relative;
  background: var(--cart-color);
  color: white !important;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: transform 0.18s, box-shadow 0.18s;
  animation: cartPulse 2.5s infinite;
  box-shadow: 0 3px 14px rgba(255,107,53,0.35);
}
.nibasa-cart-wrap a:hover {
  transform: scale(1.12);
  background: #e05520;
  animation: none;
}
.nibasa-cart-wrap .count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--green-dark);
  color: white;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}
@keyframes cartPulse {
  0%,100% { box-shadow: 0 3px 14px rgba(255,107,53,0.35); }
  50%      { box-shadow: 0 3px 22px rgba(255,107,53,0.6); transform: scale(1.05); }
}

.nibasa-hamburger {
  display: none;
  background: none; border: none;
  font-size: 22px; color: var(--green-dark);
}

/* ===== MOBILE MENU ===== */
.nibasa-mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}
.nibasa-mobile-menu.open { display: block; }
.nibasa-mobile-inner {
  background: white;
  width: 280px; height: 100%;
  padding: 24px; overflow-y: auto;
  animation: slideMenuIn 0.25s ease;
}
@keyframes slideMenuIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.nibasa-menu-close {
  display: block; text-align: right;
  font-size: 22px; cursor: pointer;
  color: var(--text-soft);
  background: none; border: none;
  margin-bottom: 20px;
}
.nibasa-mobile-links a {
  display: block;
  padding: 13px 16px;
  color: var(--text-dark);
  font-size: 16px; font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.nibasa-mobile-links a:hover { background: var(--green-pale); color: var(--green-dark); }

/* ===== HERO ===== */
.nibasa-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 55%, #3d9b68 100%);
  min-height: 520px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 60px 24px;
}
.nibasa-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-float-icon {
  position: absolute; font-size: 40px;
  opacity: 0.07; color: white;
  animation: floatBook 6s ease-in-out infinite;
}
.hero-float-icon:nth-child(1) { top:15%; left:8%;   animation-delay:0s;   font-size:50px; }
.hero-float-icon:nth-child(2) { top:60%; left:5%;   animation-delay:1.5s; font-size:30px; }
.hero-float-icon:nth-child(3) { top:20%; right:6%;  animation-delay:3s;   font-size:35px; }
.hero-float-icon:nth-child(4) { top:70%; right:8%;  animation-delay:0.8s; font-size:45px; }
@keyframes floatBook {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-18px) rotate(5deg); }
}

.nibasa-hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.nibasa-hero-text { color: white; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #c8f0d8; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 40px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
}
.nibasa-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.nibasa-hero-title span { color: #a8efc8; font-style: italic; }
.nibasa-hero-sub {
  font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.nibasa-hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}
.nibasa-hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-stat-num {
  font-size: 26px; font-weight: 700;
  color: #a8efc8;
  font-family: 'Playfair Display', serif;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }

.nibasa-hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp 0.9s ease 0.2s both;
}
.book-stack-hero { position: relative; width: 280px; height: 320px; }
.book-hero-card {
  position: absolute; width: 160px;
  background: white; border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.book-hero-card:nth-child(1) { left:0;   top:30px; transform:rotate(-8deg); z-index:1; }
.book-hero-card:nth-child(2) { left:60px; top:0;   z-index:3; transform:rotate(3deg); width:170px; }
.book-hero-card:nth-child(3) { right:0;  top:40px; transform:rotate(8deg); z-index:2; }
.book-hero-cover {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.book-hero-card:nth-child(1) .book-hero-cover { background: linear-gradient(135deg,#667eea,#764ba2); }
.book-hero-card:nth-child(2) .book-hero-cover { background: linear-gradient(135deg,#f093fb,#f5576c); }
.book-hero-card:nth-child(3) .book-hero-cover { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.book-hero-info { padding: 10px 12px; }
.book-hero-info h4 { font-size: 12px; font-weight: 700; color: #1c2b22; margin-bottom: 3px; }
.book-hero-info p  { font-size: 10px; color: #888; }

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

/* ===== BUTTONS ===== */
.nibasa-btn-primary {
  background: var(--buy-color);
  color: var(--green-dark);
  font-weight: 700; padding: 14px 32px;
  border-radius: 40px; border: none;
  font-size: 15px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
  box-shadow: 0 4px 18px rgba(232,184,0,0.4);
  animation: buyGlow 2.8s infinite;
  cursor: pointer;
}
.nibasa-btn-primary:hover {
  background: var(--buy-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(232,184,0,0.55);
  animation: none;
  color: var(--green-dark);
}
@keyframes buyGlow {
  0%,100% { box-shadow: 0 4px 18px rgba(232,184,0,0.4); }
  50%      { box-shadow: 0 4px 28px rgba(232,184,0,0.7); transform: translateY(-2px); }
}

.nibasa-btn-outline {
  background: transparent; color: white;
  font-weight: 600; padding: 14px 28px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  font-size: 15px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
  cursor: pointer;
}
.nibasa-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white; transform: translateY(-2px); color: white;
}

/* ===== CATEGORY BAR ===== */
.nibasa-cat-bar {
  background: var(--green-ultra);
  border-bottom: 1px solid #d4edd9;
  padding: 14px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.nibasa-cat-bar::-webkit-scrollbar { display: none; }
.nibasa-cat-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.nibasa-cat-pill {
  background: white;
  border: 1.5px solid #c5e0cf;
  color: var(--green-mid);
  padding: 7px 18px; border-radius: 40px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.nibasa-cat-pill:hover,
.nibasa-cat-pill.active,
.nibasa-cat-pill.current-cat {
  background: var(--green-dark); color: white;
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(26,77,46,0.2);
}

/* ===== SECTION COMMON ===== */
.nibasa-section { padding: 64px 24px; }
.nibasa-section-alt { padding: 64px 24px; background: var(--green-ultra); }
.nibasa-container { max-width: 1200px; margin: 0 auto; }
.nibasa-section-header { text-align: center; margin-bottom: 42px; }
.nibasa-section-tag {
  display: inline-block;
  background: var(--green-pale); color: var(--green-mid);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 40px; margin-bottom: 12px;
}
.nibasa-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900; color: var(--green-dark); margin-bottom: 10px;
}
.nibasa-section-sub {
  font-size: 15px; color: var(--text-soft);
  max-width: 480px; margin: 0 auto; line-height: 1.65;
}

/* ===== PRODUCTS GRID ===== */
.nibasa-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

/* WooCommerce product loop override */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #e8f2ec;
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s;
  display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(26,77,46,0.18);
}
.woocommerce ul.products li.product a img {
  width: 100%; height: 210px;
  object-fit: cover; display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-dark); padding: 14px 16px 4px;
  line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  display: block; padding: 0 16px 10px;
  font-size: 18px; font-weight: 800; color: var(--green-dark);
}
.woocommerce ul.products li.product .price del { color: #aaa; font-size: 13px; }
.woocommerce ul.products li.product .price ins {
  text-decoration: none; color: var(--green-dark);
}
.woocommerce ul.products li.product .star-rating {
  padding: 4px 16px; font-size: 13px; color: #f5a623;
}
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block !important;
  background: var(--cart-color) !important;
  color: white !important;
  border: none !important;
  padding: 12px 0 !important;
  text-align: center !important;
  font-size: 14px !important; font-weight: 700 !important;
  font-family: inherit !important;
  margin: auto 16px 16px !important;
  border-radius: var(--radius-sm) !important;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s !important;
  box-shadow: 0 3px 12px rgba(255,107,53,0.3) !important;
  cursor: pointer !important;
  animation: cartBtnPulse 2s infinite !important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #e05520 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 18px rgba(255,107,53,0.5) !important;
  animation: none !important;
}
@keyframes cartBtnPulse {
  0%,100% { box-shadow: 0 3px 12px rgba(255,107,53,0.3); }
  50%      { box-shadow: 0 3px 20px rgba(255,107,53,0.55); }
}
.woocommerce ul.products li.product .button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  position: relative; overflow: hidden;
}

/* Buy Now / Single Product */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt {
  background: var(--buy-color) !important;
  color: var(--green-dark) !important;
  font-weight: 800 !important; font-size: 16px !important;
  padding: 16px 38px !important; border-radius: 40px !important;
  border: none !important;
  box-shadow: 0 5px 20px rgba(232,184,0,0.4) !important;
  animation: buyGlow 2.5s infinite !important;
  transition: transform 0.2s, background 0.2s !important;
  cursor: pointer !important;
  font-family: inherit !important;
}
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
  background: var(--buy-dark) !important;
  transform: translateY(-3px) !important;
  animation: none !important;
  color: var(--green-dark) !important;
}

/* ===== ONSALE BADGE ===== */
.woocommerce span.onsale {
  background: #e74c3c !important;
  color: white !important;
  border-radius: 40px !important;
  font-size: 11px !important; font-weight: 700 !important;
  padding: 4px 10px !important;
  min-width: unset !important; min-height: unset !important;
  line-height: normal !important;
}

/* ===== FEATURED SECTION ===== */
.nibasa-featured-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.nibasa-featured-visual { display: flex; justify-content: center; position: relative; }
.nibasa-featured-cover {
  width: 220px; height: 300px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 90px;
  background: linear-gradient(135deg,#1a4d2e,#4caf7d);
  box-shadow: 0 20px 56px rgba(26,77,46,0.3);
  animation: featuredFloat 4s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes featuredFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.nibasa-featured-badge {
  position: absolute; bottom: -16px; right: 20px;
  background: var(--buy-color); color: var(--green-dark);
  padding: 10px 18px; border-radius: 10px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 4px 16px rgba(232,184,0,0.4);
  z-index: 3;
}
.nibasa-featured-content { padding: 16px 0; }
.nibasa-featured-tag {
  display: inline-block;
  background: var(--green-pale); color: var(--green-mid);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 40px; margin-bottom: 16px;
}
.nibasa-featured-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900; color: var(--green-dark);
  margin-bottom: 12px; line-height: 1.2;
}
.nibasa-featured-desc {
  color: var(--text-soft); font-size: 15px;
  line-height: 1.7; margin-bottom: 24px;
}
.nibasa-featured-price-row {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 28px;
}
.nibasa-featured-price     { font-size: 32px; font-weight: 800; color: var(--green-dark); }
.nibasa-featured-price-old { font-size: 16px; text-decoration: line-through; color: #aaa; }
.nibasa-featured-save {
  font-size: 13px; background: #e8fff0; color: var(--green-mid);
  font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.nibasa-featured-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.nibasa-btn-buy-lg {
  background: var(--buy-color); color: var(--green-dark);
  border: none; padding: 16px 38px; border-radius: 40px;
  font-size: 16px; font-weight: 800; font-family: inherit;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 5px 20px rgba(232,184,0,0.4);
  animation: buyGlow 2.5s infinite; cursor: pointer;
  text-decoration: none;
}
.nibasa-btn-buy-lg:hover {
  background: var(--buy-dark); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232,184,0,0.55);
  animation: none; color: var(--green-dark);
}
.nibasa-btn-buy-lg i { animation: buyIconSpin 3s linear infinite; font-size: 18px; }
@keyframes buyIconSpin {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1); }
}

.nibasa-btn-cart-lg {
  background: var(--cart-color); color: white;
  border: none; padding: 16px 28px; border-radius: 40px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 5px 18px rgba(255,107,53,0.35); cursor: pointer;
  text-decoration: none;
}
.nibasa-btn-cart-lg:hover {
  background: #e05520; transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,107,53,0.5); color: white;
}
.nibasa-btn-cart-lg i { animation: cartIconBounce 1.8s ease-in-out infinite; font-size: 18px; }
@keyframes cartIconBounce {
  0%,100% { transform: rotate(0deg); }
  25%      { transform: rotate(-12deg); }
  75%      { transform: rotate(12deg); }
}

/* ===== PROMO BANNER ===== */
.nibasa-promo {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white; padding: 48px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.nibasa-promo::before { content:'📚'; position:absolute; font-size:120px; opacity:0.05; top:50%; left:5%; transform:translateY(-50%); }
.nibasa-promo::after  { content:'📖'; position:absolute; font-size:120px; opacity:0.05; top:50%; right:5%; transform:translateY(-50%); }
.nibasa-promo-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.nibasa-promo h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px,4vw,40px); font-weight: 900; margin-bottom: 12px;
}
.nibasa-promo p { font-size: 16px; opacity: 0.85; margin-bottom: 28px; }
.nibasa-promo-code {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.5);
  color: #a8efc8; padding: 12px 32px;
  border-radius: 10px; font-size: 22px;
  font-weight: 800; letter-spacing: 4px; margin-bottom: 24px;
}

/* ===== WHY US ===== */
.nibasa-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.nibasa-why-card {
  background: white; border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  border: 1px solid #e3f0e8;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s, box-shadow 0.22s;
}
.nibasa-why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(26,77,46,0.13);
}
.nibasa-why-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px;
  transition: background 0.2s, transform 0.2s;
}
.nibasa-why-card:hover .nibasa-why-icon {
  background: var(--green-dark); color: white;
  transform: scale(1.12) rotate(-5deg);
}
.nibasa-why-card h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.nibasa-why-card p  { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.nibasa-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.nibasa-testi-card {
  background: white; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft);
  border: 1px solid #e3f0e8; transition: transform 0.22s;
}
.nibasa-testi-card:hover { transform: translateY(-4px); }
.nibasa-testi-stars { color: #f5a623; font-size: 15px; margin-bottom: 12px; }
.nibasa-testi-text {
  font-size: 14.5px; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 18px; font-style: italic;
}
.nibasa-testi-author { display: flex; align-items: center; gap: 12px; }
.nibasa-testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.nibasa-testi-name { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.nibasa-testi-loc  { font-size: 12px; color: var(--text-soft); }

/* ===== NEWSLETTER ===== */
.nibasa-newsletter {
  background: var(--green-dark); color: white;
  text-align: center; padding: 56px 24px;
}
.nibasa-newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px,3.5vw,36px); margin-bottom: 10px;
}
.nibasa-newsletter p { font-size: 15px; opacity: 0.78; margin-bottom: 28px; }
.nibasa-nl-form {
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.nibasa-nl-form input {
  flex: 1; min-width: 220px;
  padding: 14px 22px; border-radius: 40px; border: none;
  font-size: 15px; font-family: inherit; outline: none;
  background: rgba(255,255,255,0.12); color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.nibasa-nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nibasa-nl-form button {
  padding: 14px 30px; border-radius: 40px;
  background: var(--buy-color); color: var(--green-dark);
  border: none; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.nibasa-nl-form button:hover { background: var(--buy-dark); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.nibasa-footer {
  background: #0f2d1a; color: #8fbf9a;
  padding: 56px 24px 32px;
}
.nibasa-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px; margin-bottom: 40px;
}
.nibasa-footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 14px; margin-bottom: 20px; }
.nibasa-social-links { display: flex; gap: 10px; }
.nibasa-social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #8fbf9a; font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  text-decoration: none;
}
.nibasa-social-link:hover { background: var(--green-mid); color: white; transform: translateY(-3px); }
.nibasa-footer-col h4 {
  color: white; font-size: 15px; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 10px;
  position: relative;
}
.nibasa-footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--green-mid);
}
.nibasa-footer-col ul li { margin-bottom: 10px; }
.nibasa-footer-col ul li a {
  color: #8fbf9a; font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.nibasa-footer-col ul li a:hover { color: white; padding-left: 5px; }
.nibasa-contact-item {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 14px; font-size: 14px;
}
.nibasa-contact-item i { color: var(--green-light); margin-top: 2px; }
.nibasa-contact-item a { color: #8fbf9a; }
.nibasa-contact-item a:hover { color: white; }
.nibasa-footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
  gap: 12px; font-size: 13px;
}
.nibasa-pay-icons { display: flex; gap: 8px; }
.nibasa-pay-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 6px; padding: 5px 11px;
  font-size: 12px; font-weight: 600; color: #8fbf9a;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== SCROLL TOP ===== */
.nibasa-scroll-top {
  position: fixed; bottom: 28px; right: 24px;
  background: var(--green-dark); color: white;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,77,46,0.35); border: none;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.25s, transform 0.25s; z-index: 999;
}
.nibasa-scroll-top.show { opacity: 1; transform: translateY(0); }
.nibasa-scroll-top:hover { background: var(--green-mid); }

/* ===== WooCommerce Single Product ===== */
.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px,4vw,40px); font-weight: 900;
  color: var(--green-dark); margin-bottom: 12px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 28px; font-weight: 800; color: var(--green-dark);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--green-dark); border-bottom-color: var(--green-dark);
}
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button {
  background: var(--green-mid) !important;
  color: white !important; border-radius: var(--radius-sm) !important;
  font-family: inherit !important; font-weight: 600 !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--green-dark) !important;
}

/* ===== BREADCRUMB ===== */
.woocommerce .woocommerce-breadcrumb {
  max-width: 1200px; margin: 16px auto; padding: 0 24px;
  font-size: 13px; color: var(--text-soft);
}
.woocommerce .woocommerce-breadcrumb a { color: var(--green-mid); }

/* ===== CART / CHECKOUT ===== */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  background: var(--buy-color) !important;
  color: var(--green-dark) !important;
  font-weight: 800 !important; font-size: 18px !important;
  padding: 16px 40px !important; border-radius: 40px !important;
  box-shadow: 0 5px 20px rgba(232,184,0,0.4) !important;
  animation: buyGlow 2.5s infinite !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nibasa-nav-links, .nibasa-search-wrap { display: none; }
  .nibasa-hamburger { display: block; }
  .nibasa-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .nibasa-hero-btns  { justify-content: center; }
  .nibasa-hero-stats { justify-content: center; }
  .nibasa-hero-visual { display: none; }
  .nibasa-featured-inner { grid-template-columns: 1fr; text-align: center; }
  .nibasa-featured-visual { margin-bottom: 40px; }
  .nibasa-featured-btns { justify-content: center; }
  .nibasa-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nibasa-section, .nibasa-section-alt { padding: 44px 16px; }
  .nibasa-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)) !important; gap: 16px !important; }
  .nibasa-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nibasa-hero-stats { gap: 16px; }
  .nibasa-featured-btns { flex-direction: column; align-items: center; }
}
