/*
Theme Name: QueenB Signature Glow
Theme URI: https://queenbsignatures.com/
Author: Vertical
Description: A polished, responsive WooCommerce theme for QueenB Signatures.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: queenb-glow
*/

:root {
  --qb-bg: #0b0709;
  --qb-bg-rgb: 11, 7, 9;
  --qb-surface: #150f12;
  --qb-surface-rgb: 21, 15, 18;
  --qb-surface-light: #20171b;
  --qb-ink: #f7eff3;
  --qb-muted: #a6989f;
  --qb-line: rgba(247, 239, 243, 0.1);
  --qb-line-glow: rgba(212, 165, 116, 0.25);
  
  /* Brand colors */
  --qb-blush: #f2c6d2;
  --qb-rose: #d47a96;
  --qb-plum: #732a48;
  --qb-gold: #d4a574;
  --qb-gold-gradient: linear-gradient(135deg, #e6c594 0%, #d4a574 50%, #b88655 100%);
  --qb-rose-gradient: linear-gradient(135deg, #f2c6d2 0%, #d47a96 100%);
  --qb-dark-gradient: linear-gradient(180deg, #150f12 0%, #0b0709 100%);
  --qb-glass-gradient: linear-gradient(135deg, rgba(32, 23, 27, 0.6) 0%, rgba(15, 10, 12, 0.8) 100%);
  
  --qb-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --qb-glow-shadow: 0 0 30px rgba(212, 165, 116, 0.15);
  --qb-radius: 12px;
  --qb-radius-lg: 24px;
  --qb-radius-round: 50px;
}

/* Elegant Light Mode */
body.light-mode {
  --qb-bg: #fdfafb;
  --qb-bg-rgb: 253, 250, 251;
  --qb-surface: #f7eff1;
  --qb-surface-rgb: 247, 239, 241;
  --qb-surface-light: #eee1e5;
  --qb-ink: #1f1317;
  --qb-muted: #736066;
  --qb-line: rgba(31, 19, 23, 0.08);
  --qb-line-glow: rgba(115, 42, 72, 0.15);
  
  --qb-dark-gradient: linear-gradient(180deg, #f7eff1 0%, #fdfafb 100%);
  --qb-glass-gradient: linear-gradient(135deg, rgba(247, 239, 241, 0.7) 0%, rgba(253, 250, 251, 0.9) 100%);
  
  --qb-shadow: 0 15px 35px rgba(67, 35, 51, 0.06);
  --qb-glow-shadow: 0 0 25px rgba(115, 42, 72, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--qb-bg);
  color: var(--qb-ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qb-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* Sticky Header & Glassmorphic Navigation */
.qb-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(var(--qb-bg-rgb), 0.75);
  border-bottom: 1px solid var(--qb-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.qb-header--scrolled {
  background: rgba(var(--qb-bg-rgb), 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--qb-line-glow);
}

body.light-mode .qb-header--scrolled {
  box-shadow: var(--qb-shadow);
}

.qb-header__inner {
  min-height: 72px; /* Slightly more compact header height */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.qb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.qb-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--qb-gold-gradient);
  color: #0b0709;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: var(--qb-glow-shadow);
}

.qb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qb-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px; /* Very compact gap */
  flex-wrap: nowrap; /* Prevent wrapping to second row */
}

/* Compact, responsive, and not uppercase menu */
.qb-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 8px; /* Compact padding to fit long menus */
  border-radius: var(--qb-radius);
  color: var(--qb-muted);
  font-weight: 600;
  font-size: 0.82rem; /* Shrunk font size slightly to fit 10 categories */
  letter-spacing: -0.01em;
  text-transform: none; /* Make menu not uppercase */
  white-space: nowrap; /* Prevent individual links from wrapping */
}

/* Hide any menu wrapper headers/titles injected by default WordPress templates */
.qb-nav .menu-header,
.qb-nav h2,
.qb-nav h3,
.qb-nav .menu-title {
  display: none !important;
}

.qb-nav a:hover,
.qb-nav .current-menu-item > a {
  color: var(--qb-gold);
  background: rgba(212, 165, 116, 0.08);
}

body.light-mode .qb-nav a:hover,
body.light-mode .qb-nav .current-menu-item > a {
  color: var(--qb-plum);
  background: rgba(115, 42, 72, 0.06);
}

/* --- Dropdown Sub-Menus --- */

.qb-nav li {
  position: relative; /* Anchor for absolute positioned sub-menu */
}

/* Sub-menu container defaults */
.qb-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--qb-surface);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-lg);
  padding: 8px;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Show Dropdown on Hover (Desktop) */
@media (min-width: 1201px) {
  .qb-nav li:hover > .sub-menu,
  .qb-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

/* Nested sub-menu item resetting */
.qb-nav .sub-menu li {
  display: block;
  width: 100%;
}

.qb-nav .sub-menu a {
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 550 !important;
  color: var(--qb-muted) !important;
  background: transparent !important;
  border-radius: var(--qb-radius-sm) !important;
  text-align: left;
  text-transform: none !important;
  white-space: normal !important; /* Allow item name wrapping if extremely long */
  transition: all 0.2s ease;
}

.qb-nav .sub-menu a:hover {
  color: var(--qb-gold) !important;
  background: rgba(212, 165, 116, 0.08) !important;
}

body.light-mode .qb-nav .sub-menu {
  background: var(--qb-surface);
  border-color: var(--qb-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .qb-nav .sub-menu a:hover {
  color: var(--qb-plum) !important;
  background: rgba(115, 42, 72, 0.06) !important;
}

/* Chevron indicator for items that have child elements */
.qb-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -3px;
  transition: transform 0.2s ease;
}

@media (min-width: 1201px) {
  .qb-nav .menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
  }
}

/* Mobile Sub-menu Accordion styling overrides */
@media (max-width: 1200px) {
  .qb-nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none; /* Managed by click events in theme.js */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    max-width: 100%;
  }

  .qb-nav .sub-menu.is-visible {
    display: flex;
  }

  .qb-nav .menu-item-has-children > a.sub-menu-active::after {
    transform: rotate(225deg);
  }
}

/* Actions Menu */
.qb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qb-icon-button,
.qb-menu-toggle,
.button,
button,
input[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--qb-radius);
  background: var(--qb-gold-gradient);
  color: #0b0709;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qb-icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--qb-ink);
  border: 1px solid var(--qb-line);
  border-radius: 50%;
  box-shadow: none;
  position: relative;
}

body.light-mode .qb-icon-button {
  background: rgba(0, 0, 0, 0.03);
}

.qb-icon-button:hover {
  background: rgba(212, 165, 116, 0.15);
  color: var(--qb-gold);
  border-color: var(--qb-gold);
  transform: translateY(-2px);
  box-shadow: var(--qb-glow-shadow);
}

body.light-mode .qb-icon-button:hover {
  background: rgba(115, 42, 72, 0.08);
  color: var(--qb-plum);
  border-color: var(--qb-rose);
}

.qb-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.qb-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--qb-rose-gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 2px solid var(--qb-bg);
}

/* Secondary Button style */
.qb-button--secondary {
  background: transparent !important;
  color: var(--qb-ink) !important;
  border: 1px solid var(--qb-line) !important;
  box-shadow: none !important;
}

.qb-button--secondary:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--qb-ink) !important;
}

body.light-mode .qb-button--secondary:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(212, 165, 116, 0.35);
}

body.light-mode .button:hover,
body.light-mode button:hover,
body.light-mode .woocommerce a.button:hover {
  box-shadow: 0 8px 22px rgba(115, 42, 72, 0.2);
}

.qb-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  color: var(--qb-ink);
  border: 1px solid var(--qb-line);
}

.qb-menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Cinematic Hero */
.qb-hero {
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 80% 20%, rgba(115, 42, 72, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
    var(--qb-bg);
  border-bottom: 1px solid var(--qb-line);
  padding: 80px 0 120px;
}

body.light-mode .qb-hero {
  background: 
    radial-gradient(circle at 80% 20%, rgba(242, 198, 210, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
    var(--qb-bg);
}

.qb-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.qb-hero__content {
  position: relative;
  z-index: 2;
}

.qb-kicker {
  color: var(--qb-rose);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.light-mode .qb-kicker {
  color: var(--qb-plum);
}

.qb-hero h1 {
  margin: 16px 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qb-hero h1 span {
  display: block;
  background: var(--qb-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .qb-hero h1 span {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qb-hero p {
  max-width: 560px;
  margin: 0 0 35px;
  color: var(--qb-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.qb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 50px;
}

.qb-hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--qb-line);
  padding-top: 25px;
  max-width: 600px;
}

.qb-stat-item h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  color: var(--qb-gold);
}

body.light-mode .qb-stat-item h3 {
  color: var(--qb-plum);
}

.qb-stat-item p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--qb-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qb-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qb-hero__circle-bg {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(115, 42, 72, 0.15) 0%, rgba(212, 165, 116, 0.1) 100%);
  border: 1px dashed rgba(212, 165, 116, 0.2);
  animation: rotate 60s linear infinite;
  z-index: 0;
}

.qb-hero__image-wrapper {
  position: relative;
  z-index: 1;
  border-radius: var(--qb-radius-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.qb-hero__image {
  border-radius: calc(var(--qb-radius-lg) - 8px);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--qb-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qb-hero__badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  z-index: 2;
  background: var(--qb-glass-gradient);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius);
  padding: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--qb-shadow), var(--qb-glow-shadow);
  width: min(220px, 60%);
  animation: float 6s ease-in-out infinite;
}

.qb-hero__badge strong {
  color: var(--qb-gold);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

body.light-mode .qb-hero__badge strong {
  color: var(--qb-plum);
}

.qb-hero__badge span {
  font-size: 0.78rem;
  color: var(--qb-muted);
  line-height: 1.4;
}

/* Sections Base */
.qb-section {
  padding: clamp(50px, 8vw, 100px) 0;
  position: relative;
}

.qb-section--soft {
  background: var(--qb-surface);
}

.qb-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.qb-section__head h2 {
  margin: 8px 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.qb-section__head p {
  margin: 10px 0 0;
  color: var(--qb-muted);
  max-width: 560px;
  font-size: 1rem;
}

.qb-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--qb-gold);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

body.light-mode .qb-view-all {
  color: var(--qb-plum);
}

.qb-view-all:hover {
  border-bottom-color: currentColor;
  gap: 12px;
}

/* Inline Search Filters */
.qb-products-filter {
  margin-bottom: 35px;
  display: grid;
  gap: 16px;
}

.qb-filter-inline {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-round);
  padding: 4px 4px 4px 20px;
  max-width: 540px;
  transition: all 0.3s ease;
}

body.light-mode .qb-filter-inline {
  background: rgba(0, 0, 0, 0.02);
}

.qb-filter-inline:focus-within {
  border-color: var(--qb-gold);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body.light-mode .qb-filter-inline:focus-within {
  border-color: var(--qb-plum);
  background: rgba(0, 0, 0, 0.04);
}

.qb-filter-inline svg {
  width: 18px;
  height: 18px;
  fill: var(--qb-muted);
  flex-shrink: 0;
}

.qb-filter-inline input {
  background: transparent;
  border: none;
  color: var(--qb-ink);
  font-size: 0.92rem;
  padding: 8px;
  width: 100%;
  font-family: inherit;
}

.qb-filter-inline input:focus {
  outline: none;
}

.qb-filter-inline button {
  background: var(--qb-gold-gradient);
  border-radius: var(--qb-radius-round);
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.88rem;
}

body.light-mode .qb-filter-inline button {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%);
  color: #fff;
}

.qb-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.qb-pill {
  padding: 6px 16px;
  border-radius: var(--qb-radius-round);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qb-line);
  color: var(--qb-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light-mode .qb-pill {
  background: rgba(0, 0, 0, 0.02);
}

.qb-pill:hover,
.qb-pill--active {
  background: var(--qb-gold-gradient);
  color: #0b0709;
  border-color: transparent;
}

body.light-mode .qb-pill:hover,
body.light-mode .qb-pill--active {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%);
  color: #ffffff;
}

/* Glassmorphic Product Cards */
.qb-products ul.products,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Fix for WooCommerce grid pseudo-elements taking up empty space in CSS Grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.qb-products ul.products::before,
.qb-products ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product,
.qb-products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--qb-glass-gradient);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius);
  overflow: hidden;
  box-shadow: var(--qb-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 165, 116, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--qb-glow-shadow);
}

body.light-mode .woocommerce ul.products li.product:hover {
  border-color: rgba(115, 42, 72, 0.3);
  box-shadow: var(--qb-shadow), var(--qb-glow-shadow);
}

.woocommerce ul.products li.product a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  margin: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

.qb-product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--qb-line);
}

.woocommerce span.onsale,
.qb-onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  margin: 0 !important;
  background: var(--qb-rose-gradient) !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  min-height: auto !important;
  min-width: auto !important;
  box-shadow: 0 4px 10px rgba(212, 122, 150, 0.3);
  z-index: 2;
}

.qb-product-content {
  padding: 16px;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.qb-product-title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--qb-ink) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product .price,
.qb-product-price {
  margin-top: auto !important;
  margin-bottom: 12px !important;
  color: var(--qb-gold) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.light-mode .woocommerce ul.products li.product .price,
body.light-mode .qb-product-price {
  color: var(--qb-plum) !important;
}

.woocommerce ul.products li.product .price del,
.qb-product-price del {
  color: var(--qb-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

.woocommerce ul.products li.product .button,
.qb-add-to-cart-btn {
  width: 100% !important;
  margin: 0 !important;
  background: var(--qb-surface-light) !important;
  color: var(--qb-ink) !important;
  border: 1px solid var(--qb-line) !important;
  box-shadow: none !important;
  min-height: 40px !important;
}

.woocommerce ul.products li.product .button:hover,
.qb-add-to-cart-btn:hover {
  background: var(--qb-gold-gradient) !important;
  color: #0b0709 !important;
  border-color: transparent !important;
  box-shadow: 0 6px 15px rgba(212, 165, 116, 0.3) !important;
}

body.light-mode .woocommerce ul.products li.product .button:hover,
body.light-mode .qb-add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(115, 42, 72, 0.2) !important;
}

/* ShopEngine Quick-Action Overlay Buttons (Heart, Eye, Compare) */
.woocommerce ul.products li.product .se-btn,
.qb-products li.product .se-btn {
  position: absolute !important;
  right: 12px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(11, 7, 9, 0.7) !important;
  border: 1px solid var(--qb-line) !important;
  color: var(--qb-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  opacity: 0 !important;
  transform: translateX(10px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-mode .woocommerce ul.products li.product .se-btn,
body.light-mode .qb-products li.product .se-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--qb-plum) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Stack the icons in the top-right corner of the card */
.woocommerce ul.products li.product .shopengine-wishlist,
.qb-products li.product .shopengine-wishlist {
  top: 12px !important;
}

.woocommerce ul.products li.product .shopengine-quickview-trigger,
.qb-products li.product .shopengine-quickview-trigger {
  top: 54px !important;
}

.woocommerce ul.products li.product .shopengine-comparison,
.qb-products li.product .shopengine-comparison {
  top: 96px !important;
}

/* Hover reveal on product cards */
.woocommerce ul.products li.product:hover .se-btn,
.qb-products li.product:hover .se-btn {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Hover state on the action buttons themselves */
.woocommerce ul.products li.product .se-btn:hover,
.qb-products li.product .se-btn:hover {
  background: var(--qb-gold-gradient) !important;
  color: #0b0709 !important;
  border-color: transparent !important;
  transform: scale(1.1) !important;
  box-shadow: var(--qb-glow-shadow) !important;
}

body.light-mode .woocommerce ul.products li.product .se-btn:hover,
body.light-mode .qb-products li.product .se-btn:hover {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%) !important;
  color: #ffffff !important;
}

/* Mobile & Tablet support - show them by default since there's no mouse hover */
@media (max-width: 1200px) {
  .woocommerce ul.products li.product .se-btn,
  .qb-products li.product .se-btn {
    opacity: 1 !important;
    transform: none !important;
    background: rgba(11, 7, 9, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  body.light-mode .woocommerce ul.products li.product .se-btn,
  body.light-mode .qb-products li.product .se-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }
}

/* Category Carousel & Scroll Section */
.qb-category-slider-wrapper {
  position: relative;
}

.qb-category-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.qb-category-grid::-webkit-scrollbar {
  display: none;
}

.qb-category-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 250px;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: var(--qb-radius-lg);
  border: 1px solid var(--qb-line);
  box-shadow: var(--qb-shadow);
}

.qb-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.7);
}

.qb-category-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

.qb-category-card__body {
  position: relative;
  z-index: 2;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 16px;
  border-radius: var(--qb-radius);
  background: rgba(var(--qb-bg-rgb), 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

body.light-mode .qb-category-card__body {
  background: rgba(var(--qb-bg-rgb), 0.7);
}

.qb-category-card:hover .qb-category-card__body {
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(var(--qb-bg-rgb), 0.75);
}

body.light-mode .qb-category-card:hover .qb-category-card__body {
  border-color: var(--qb-rose);
}

.qb-category-card h3 {
  margin: 0 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.qb-category-card span {
  color: var(--qb-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Horizontal Hottest Products Carousel */
.qb-hottest-carousel-wrapper {
  position: relative;
}

.qb-hottest-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 20px;
}

.qb-hottest-grid::-webkit-scrollbar {
  display: none;
}

.qb-hottest-grid li.product {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  scroll-snap-align: start;
}

/* Custom Navigation Arrows */
.qb-slider-nav {
  display: flex;
  gap: 8px;
}

.qb-slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--qb-line);
  background: var(--qb-surface);
  color: var(--qb-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qb-slider-arrow:hover {
  background: var(--qb-gold-gradient);
  color: #0b0709;
  border-color: transparent;
  transform: scale(1.05);
}

body.light-mode .qb-slider-arrow:hover {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%);
  color: #ffffff;
}

.qb-slider-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Premium Banners */
.qb-promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}

.qb-promo {
  position: relative;
  min-height: 360px;
  border-radius: var(--qb-radius-lg);
  border: 1px solid var(--qb-line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 35px;
  box-shadow: var(--qb-shadow);
  z-index: 1;
}

.qb-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(115, 42, 72, 0.65) 0%, rgba(21, 15, 18, 0.95) 100%);
  z-index: -1;
}

body.light-mode .qb-promo::before {
  background: linear-gradient(135deg, rgba(115, 42, 72, 0.75) 0%, rgba(31, 19, 23, 0.95) 100%);
}

.qb-promo:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.3) 0%, rgba(11, 7, 9, 0.95) 100%);
}

body.light-mode .qb-promo:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.4) 0%, rgba(31, 19, 23, 0.95) 100%);
}

.qb-promo__image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s ease;
}

.qb-promo:hover .qb-promo__image-bg {
  transform: scale(1.05);
}

.qb-promo h2 {
  margin: 8px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

body.light-mode .qb-promo h2 {
  color: #fff;
}

.qb-promo p {
  color: var(--qb-muted);
  max-width: 480px;
  margin: 0 0 25px;
  font-size: 1rem;
}

/* Trust Badges */
.qb-trust-badges {
  background: var(--qb-surface);
  border-top: 1px solid var(--qb-line);
  border-bottom: 1px solid var(--qb-line);
  padding: 35px 0;
}

.qb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.qb-trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qb-trust-card svg {
  width: 28px;
  height: 28px;
  fill: var(--qb-gold);
  flex-shrink: 0;
}

body.light-mode .qb-trust-card svg {
  fill: var(--qb-plum);
}

.qb-trust-card h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
}

.qb-trust-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--qb-muted);
}

/* Premium Footer */
.qb-footer {
  background: #070405;
  color: #f7eff3;
  padding: 70px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

body.light-mode .qb-footer {
  background: #140b0e;
  border-top-color: rgba(255, 255, 255, 0.05);
}

.qb-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--qb-gold-gradient);
  opacity: 0.4;
}

.qb-footer__newsletter {
  background: var(--qb-surface);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-lg);
  padding: 35px 50px;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  box-shadow: var(--qb-shadow);
}

.qb-footer__newsletter h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.qb-footer__newsletter p {
  margin: 0;
  color: var(--qb-muted);
}

.qb-newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-round);
  padding: 4px;
  width: 100%;
}

body.light-mode .qb-newsletter-form {
  background: rgba(0, 0, 0, 0.03);
}

.qb-newsletter-form input {
  background: transparent;
  border: none;
  color: inherit;
  padding: 8px 16px;
  font-size: 0.92rem;
  width: 100%;
}

.qb-newsletter-form input:focus {
  outline: none;
}

.qb-newsletter-form button {
  border-radius: var(--qb-radius-round);
  white-space: nowrap;
}

.qb-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr 1.1fr;
  gap: 35px;
  margin-bottom: 50px;
}

.qb-footer h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 16px;
  font-size: 1.45rem;
  color: #fff;
}

.qb-footer h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--qb-gold);
}

body.light-mode .qb-footer h3 {
  color: var(--qb-blush);
}

.qb-footer p {
  color: rgba(247, 239, 243, 0.7);
  line-height: 1.7;
}

.qb-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qb-footer li + li {
  margin-top: 10px;
}

.qb-footer a {
  color: rgba(247, 239, 243, 0.7);
}

.qb-footer a:hover {
  color: var(--qb-gold);
  padding-left: 4px;
}

.qb-social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.qb-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: rgba(247, 239, 243, 0.7);
  transition: all 0.3s ease;
}

.qb-social-links a:hover {
  border-color: var(--qb-gold);
  color: var(--qb-gold);
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-3px);
  padding-left: 0;
}

.qb-social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.qb-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(247, 239, 243, 0.5);
  font-size: 0.85rem;
}

.qb-payments {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qb-payments svg {
  height: 22px;
  fill: rgba(255, 255, 255, 0.3);
}

/* Fullscreen Live Search Overlay */
.qb-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 7, 9, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  padding: 50px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode .qb-search-overlay {
  background: rgba(253, 250, 251, 0.9);
}

.qb-search-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.qb-search-overlay__header {
  margin-bottom: 30px;
}

.qb-search-overlay__close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--qb-ink);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--qb-line);
  display: grid;
  place-items: center;
  box-shadow: none;
}

.qb-search-overlay__close:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(90deg);
  box-shadow: none;
}

body.light-mode .qb-search-overlay__close:hover {
  background: rgba(0, 0, 0, 0.03);
}

.qb-search-overlay__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.qb-search-overlay__box {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--qb-gold);
  padding: 8px 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

body.light-mode .qb-search-overlay__box {
  border-bottom-color: var(--qb-plum);
}

.qb-search-overlay__box input {
  background: transparent;
  border: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--qb-ink);
  width: 100%;
  padding: 8px 0;
}

.qb-search-overlay__box input:focus {
  outline: none;
}

.qb-search-overlay__box svg {
  width: 28px;
  height: 28px;
  fill: var(--qb-gold);
  margin-right: 15px;
}

body.light-mode .qb-search-overlay__box svg {
  fill: var(--qb-plum);
}

.qb-search-overlay__results-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 15px 0;
}

.qb-search-overlay__results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.qb-search-overlay__loading {
  display: none;
  text-align: center;
  color: var(--qb-gold);
  padding: 30px 0;
  font-weight: 600;
}

body.light-mode .qb-search-overlay__loading {
  color: var(--qb-plum);
}

.qb-search-overlay__loading.is-loading {
  display: block;
}

.qb-search-result-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--qb-line);
  padding: 12px;
  border-radius: var(--qb-radius);
  align-items: center;
  transition: all 0.3s ease;
}

body.light-mode .qb-search-result-item {
  background: rgba(0, 0, 0, 0.01);
}

.qb-search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--qb-gold);
  transform: translateY(-2px);
}

body.light-mode .qb-search-result-item:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--qb-plum);
}

.qb-search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--qb-radius);
  background: var(--qb-surface);
}

.qb-search-result-info {
  display: flex;
  flex-direction: column;
}

.qb-search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.qb-search-result-price {
  color: var(--qb-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

body.light-mode .qb-search-result-price {
  color: var(--qb-plum);
}

/* Scroll Animations */
.qb-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.qb-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Title Banner */
.qb-page-title {
  padding: 60px 0;
  background: var(--qb-surface);
  border-bottom: 1px solid var(--qb-line);
  text-align: center;
}

.qb-page-title h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
}

.qb-main {
  padding: 50px 0 80px;
}

/* Astra Theme compatibility layers */
.ast-container, #content, .site-content {
  background-color: var(--qb-bg) !important;
  color: var(--qb-ink) !important;
}

.woocommerce-breadcrumb {
  margin-bottom: 25px;
  color: var(--qb-muted);
  font-size: 0.85rem;
}

.woocommerce-breadcrumb a {
  color: var(--qb-muted);
}

.woocommerce-breadcrumb a:hover {
  color: var(--qb-gold);
}

/* Single Product Details Page Styling */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--qb-glass-gradient);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-lg);
  padding: 30px;
  box-shadow: var(--qb-shadow);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce div.product .product_title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--qb-gold) !important;
  font-size: 1.6rem !important;
  font-weight: 700;
  margin-bottom: 25px;
}

body.light-mode .woocommerce div.product p.price,
body.light-mode .woocommerce div.product span.price {
  color: var(--qb-plum) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--qb-muted);
  margin-bottom: 25px;
  font-size: 1rem;
}

.woocommerce div.product form.cart {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
}

.woocommerce div.product form.cart .quantity {
  float: none !important;
  margin: 0 !important;
}

.woocommerce div.product form.cart .quantity input {
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--qb-line);
  color: var(--qb-ink);
  border-radius: var(--qb-radius);
  width: 55px;
  text-align: center;
}

body.light-mode .woocommerce div.product form.cart .quantity input {
  background: rgba(0, 0, 0, 0.03);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--qb-gold-gradient);
  color: #0b0709;
}

body.light-mode .woocommerce div.product form.cart .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--qb-plum) 0%, var(--qb-rose) 100%);
  color: #fff;
}

.woocommerce div.product .product_meta {
  border-top: 1px solid var(--qb-line);
  padding-top: 16px;
  color: var(--qb-muted);
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

.woocommerce div.product .product_meta a {
  color: var(--qb-ink);
}

.woocommerce div.product .product_meta a:hover {
  color: var(--qb-gold);
}

.woocommerce-tabs {
  border-top: 1px solid var(--qb-line);
  margin-top: 50px;
  padding-top: 30px;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--qb-line);
}

.woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 20px;
  color: var(--qb-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--qb-gold);
  border-bottom-color: var(--qb-gold);
}

body.light-mode .woocommerce-tabs ul.tabs li.active a {
  color: var(--qb-plum);
  border-bottom-color: var(--qb-plum);
}

.woocommerce-Tabs-panel {
  color: var(--qb-muted);
}

/* Cart & Checkout Premium Styling overrides */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  background: var(--qb-glass-gradient);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-lg);
  padding: 30px;
  box-shadow: var(--qb-shadow);
}

/* Form controls styling */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea,
select,
.woocommerce-cart table.cart td.actions .coupon .input-text {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qb-line);
  color: var(--qb-ink);
  padding: 8px 14px;
  border-radius: var(--qb-radius);
  font-family: inherit;
  font-size: 0.92rem;
  width: 100%;
  transition: all 0.3s ease;
}

body.light-mode input[type="text"],
body.light-mode input[type="email"],
body.light-mode textarea,
body.light-mode select {
  background: rgba(0, 0, 0, 0.02);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--qb-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(212, 165, 116, 0.1);
}

body.light-mode input[type="text"]:focus,
body.light-mode input[type="email"]:focus,
body.light-mode textarea:focus {
  border-color: var(--qb-plum);
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 0 15px rgba(115, 42, 72, 0.08);
}

/* Responsiveness overrides */
@media (max-width: 1200px) {
  .qb-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .qb-menu-toggle {
    display: inline-flex;
  }

  .qb-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: rgba(var(--qb-bg-rgb), 0.98);
    border-bottom: 1px solid var(--qb-line);
    padding: 16px;
    z-index: 999;
  }

  .qb-nav.is-open {
    display: block;
  }

  .qb-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .qb-nav a {
    width: 100%;
  }

  .qb-actions {
    display: none;
  }

  .qb-hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .qb-hero__content {
    text-align: center;
  }

  .qb-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .qb-hero__actions {
    justify-content: center;
  }

  .qb-hero__stats {
    margin-left: auto;
    margin-right: auto;
  }

  .qb-products ul.products,
  .woocommerce ul.products,
  .qb-hottest-grid li.product {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .qb-hottest-grid li.product {
    flex: 0 0 calc(33.333% - 14px);
  }

  .qb-category-card {
    flex: 0 0 calc(33.333% - 14px);
  }

  .qb-promo-grid {
    grid-template-columns: 1fr;
  }

  .qb-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qb-footer__newsletter {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .qb-products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  
  .qb-hottest-grid li.product {
    flex: 0 0 calc(50% - 10px);
  }

  .qb-category-card {
    flex: 0 0 calc(50% - 10px);
  }

  .qb-trust-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 16px;
  }

  .qb-footer__grid {
    grid-template-columns: 1fr;
  }
  
  .qb-footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .qb-products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .qb-product-content h2 {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .woocommerce ul.products li.product .price,
  .qb-product-content .price {
    font-size: 0.8rem !important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .qb-hottest-grid li.product {
    flex: 0 0 78% !important;
    max-width: 260px;
  }

  .qb-category-card {
    flex: 0 0 70% !important;
    max-width: 200px;
  }

  .qb-brand__logo,
  .custom-logo,
  .custom-logo-link img,
  .qb-brand img {
    max-height: 38px !important;
  }

  .qb-hero {
    padding: 50px 0 60px !important;
  }

  .qb-hero__marquee-container {
    padding: 15px !important;
  }

  .qb-hero__marquee-wrapper {
    height: 280px !important;
  }
}

/* Testimonials Section */
.qb-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.qb-testimonial-card {
  background: var(--qb-glass-gradient);
  border: 1px solid var(--qb-line);
  border-radius: var(--qb-radius-lg);
  padding: 30px;
  box-shadow: var(--qb-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.qb-testimonial-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 7rem;
  color: var(--qb-gold);
  opacity: 0.08;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

body.light-mode .qb-testimonial-card::before {
  color: var(--qb-plum);
}

.qb-testimonial-content {
  position: relative;
  z-index: 1;
}

.qb-testimonial-stars {
  color: var(--qb-gold);
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

body.light-mode .qb-testimonial-stars {
  color: #ffb100;
}

.qb-testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 20px;
  font-style: italic;
}

.qb-testimonial-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--qb-line);
  padding-top: 16px;
}

.qb-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--qb-surface);
  color: var(--qb-gold);
  font-weight: 750;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  border: 1px solid var(--qb-line);
  text-transform: uppercase;
}

body.light-mode .qb-testimonial-avatar {
  color: var(--qb-plum);
}

.qb-testimonial-author {
  display: flex;
  flex-direction: column;
}

.qb-testimonial-name {
  font-weight: 650;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qb-testimonial-badge {
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qb-testimonial-location {
  font-size: 0.8rem;
  color: var(--qb-muted);
}

/* Bottom Bar Links Alignment & Socials styling */
.qb-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  width: 100%;
}

.qb-footer__bottom-links a {
  color: rgba(247, 239, 243, 0.8);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.qb-footer__bottom-links a:hover {
  color: var(--qb-gold);
}

body.light-mode .qb-footer__bottom-links a:hover {
  color: var(--qb-blush);
}

.qb-footer__connect-title {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  color: var(--qb-muted);
  width: 100%;
}

.qb-footer__connect-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

.qb-footer__connect-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(247, 239, 243, 0.75);
  transition: all 0.3s ease;
}

.qb-footer__connect-socials a:hover {
  border-color: var(--qb-gold);
  color: var(--qb-gold);
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-3px);
}

body.light-mode .qb-footer__connect-socials a:hover {
  border-color: var(--qb-plum);
  color: var(--qb-plum);
  background: rgba(115, 42, 72, 0.05);
}

.qb-footer__connect-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .qb-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom logo and slider styles */
.qb-brand__logo,
.custom-logo,
.custom-logo-link img,
.qb-brand img {
  height: auto;
  max-height: 48px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

/* In dark mode, invert the logo so that it stands out beautifully on dark background */
body:not(.light-mode) .qb-brand__logo,
body:not(.light-mode) .custom-logo,
body:not(.light-mode) .custom-logo-link img,
body:not(.light-mode) .qb-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(255,255,255,0.1));
}

/* Hero section position relative for slider */
.qb-hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.qb-hero__inner {
  position: relative;
  z-index: 10;
}

/* Background Slider styling */
.qb-hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.qb-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  animation: qb-ken-burns 30s infinite;
  transition: opacity 1.5s ease-in-out;
}

.qb-hero__slide:nth-child(1) { animation-delay: 0s; }
.qb-hero__slide:nth-child(2) { animation-delay: 6s; }
.qb-hero__slide:nth-child(3) { animation-delay: 12s; }
.qb-hero__slide:nth-child(4) { animation-delay: 18s; }
.qb-hero__slide:nth-child(5) { animation-delay: 24s; }

.qb-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 11, 13, 0.6) 0%, var(--qb-bg) 100%);
  pointer-events: none;
}

body.light-mode .qb-hero__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, var(--qb-bg) 100%);
}

@keyframes qb-ken-burns {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  5% {
    opacity: 0.22; /* subtle background visibility */
  }
  20% {
    opacity: 0.22;
  }
  25% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
  }
}

body.light-mode .qb-hero__slide {
  animation: qb-ken-burns-light 30s infinite;
}

@keyframes qb-ken-burns-light {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  5% {
    opacity: 0.12; /* lighter on white bg to ensure text readability */
  }
  20% {
    opacity: 0.12;
  }
  25% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
  }
}

/* Product Marquee in Hero */
.qb-hero__marquee-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  z-index: 5;
  background: rgba(15, 11, 13, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: var(--qb-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

body.light-mode .qb-hero__marquee-container {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.qb-hero__marquee-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qb-gold-gradient);
  color: #0b0709;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: var(--qb-glow-shadow);
}

.qb-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b0709;
  animation: qb-pulse 1.5s infinite;
}

@keyframes qb-pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.qb-hero__marquee-wrapper {
  position: relative;
  height: 330px; /* height of vertical scroll view */
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.qb-hero__marquee-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: qb-marquee-vertical 24s linear infinite;
}

.qb-hero__marquee-track:hover {
  animation-play-state: paused;
}

.qb-hero__marquee-item {
  width: 100%;
}

.qb-hero__marquee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--qb-radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .qb-hero__marquee-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.qb-hero__marquee-card:hover {
  transform: translateY(-2px);
  border-color: var(--qb-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--qb-shadow-lg);
}

body.light-mode .qb-hero__marquee-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--qb-plum);
}

.qb-hero__marquee-img {
  width: 50px;
  height: 50px;
  border-radius: var(--qb-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--qb-card-bg);
}

.qb-hero__marquee-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qb-hero__marquee-info {
  flex-grow: 1;
  min-width: 0;
}

.qb-hero__marquee-info h4 {
  font-family: var(--qb-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--qb-text);
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qb-hero__marquee-info .price {
  font-family: var(--qb-font-sans);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--qb-gold);
}

body.light-mode .qb-hero__marquee-info .price {
  color: var(--qb-plum);
}

@keyframes qb-marquee-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Adjust layout on smaller viewports */
@media (max-width: 991px) {
  .qb-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .qb-hero__marquee-container {
    max-width: 100%;
  }
}

