/*
Theme Name: NIBONUA
Theme URI: https://example.com/nibonua
Author: Codex
Description: Custom WooCommerce theme converted from the NIBONUA Bolt.new React storefront. Includes editable homepage sections, product layouts, customer-facing WooCommerce styling, and admin integration guidance for Razorpay and Shiprocket.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: nibonua
Domain Path: /languages
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

body {
  margin: 0;
}

.nibonua-site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.nib-container {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

.nib-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: color-mix(in srgb, var(--glass) 92%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nib-header__inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nib-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.nib-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nib-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nib-nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nib-nav a,
.nib-header-action {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
}

.nib-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.nib-mobile-toggle {
  display: none;
}

.nib-main {
  padding-top: 76px;
}

.nib-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.nib-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,55,.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,107,53,.12), transparent 50%),
    var(--bg);
}

.nib-hero__bg.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: .25;
}

.nib-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.nib-hero h1 {
  max-width: 980px;
  margin: 1.4rem auto;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 1.05;
  font-weight: 900;
}

.nib-hero p {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-muted);
}

.nib-floating {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 28px 70px rgba(15,23,42,.18);
}

.nib-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nib-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1rem 0;
}

.nib-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.nib-marquee span {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-inline: 1.5rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.nib-dot {
  width: .38rem;
  height: .38rem;
  border-radius: 999px;
  background: var(--secondary);
}

.nib-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.nib-section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.nib-section h2 {
  margin: .8rem 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
}

.nib-grid {
  display: grid;
  gap: 1.25rem;
}

.nib-grid--categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nib-grid--products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nib-category-card,
.nib-product-card,
.nib-info-card {
  position: relative;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.nib-category-card {
  min-height: 360px;
}

.nib-category-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.nib-category-card__content {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(11,17,32,.72);
  color: #fff;
  backdrop-filter: blur(14px);
}

.nib-product-card__image {
  height: 260px;
  overflow: hidden;
}

.nib-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nib-product-card__body {
  padding: 1.25rem;
}

.nib-product-card h3 {
  margin: .35rem 0;
  font-size: 1.1rem;
}

.nib-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1rem;
}

.nib-price strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

.nib-price del {
  color: var(--text-muted);
  font-size: .85rem;
}

.nib-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.25);
  color: var(--secondary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nib-stack {
  display: grid;
  gap: 1rem;
}

.nib-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.nib-copy {
  color: var(--text-muted);
  line-height: 1.8;
}

.nib-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.nib-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.nib-footer ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .65rem;
}

.nib-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), #b8941f);
  color: #0F172A;
  font-weight: 700;
  border: 0;
  padding: .9rem 1.4rem;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -8px var(--shadow);
  padding-bottom: 1rem;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .nib-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nib-grid--categories,
  .nib-footer__grid,
  .nib-two-col {
    grid-template-columns: 1fr;
  }
  .nib-floating {
    display: none;
  }
}

@media (max-width: 760px) {
  .nib-mobile-toggle {
    display: inline-flex;
  }
  .nib-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .nib-nav.is-open {
    display: flex;
  }
  .nib-nav ul {
    display: grid;
  }
  .nib-grid--products {
    grid-template-columns: 1fr;
  }
  .nib-section-head {
    display: block;
  }
}
