/* Prevent layout shift when modals/drawers/dropdowns hide the scrollbar */
html {
  scrollbar-gutter: stable;
}

/* ── Design Tokens (CSS Variables) ───────────────────────────────
 * Non-prefixed HSL tokens (--primary, --border, etc.) are generated
 * by DesignTokensTab::buildInlineCss() and injected via a late-priority
 * stylesheet handle (quickcommerce-tokens) so they always win over
 * theme declarations.  Only --qcom-* bridge vars and radius tokens
 * are declared here.
 * ---------------------------------------------------------------- */

:root {
  --qcom-radius-sm: 4px;
  --qcom-radius-md: 6px;
  --qcom-radius-lg: 8px;
  --qcom-radius-xl: 12px;
  --qcom-radius-full: 9999px;

  /* Utility tokens — full color values, not HSL components.
     HSL design tokens (--qcom-primary etc.) are generated by PHP
     via the quickcommerce-tokens handle at priority 99. */
  --qcom-muted-bg: rgba(0, 0, 0, 0.04);
  --qcom-success-bg: #f0fdf4;
  --qcom-success-border: #86efac;
  --qcom-success-text: #14532d;
  --qcom-destructive-bg: rgba(239, 68, 68, 0.1);
  --qcom-warning-bg: #fffbeb;
  --qcom-warning-border: #fde68a;
  --qcom-warning-text: #92400e;
  --qcom-info: #0284c7;
  --qcom-info-bg: #eff6ff;
  --qcom-info-border: #7dd3fc;
  --qcom-info-text: #0c4a6e;
  --qcom-transition: 150ms ease;
}

/* ── Shared Keyframe Animations ─────────────────────────────────
 * Used by multiple blocks (loaders, skeletons, transitions).
 * ---------------------------------------------------------------- */
@keyframes qcom-spin {
  to { transform: rotate(360deg); }
}
@keyframes qcom-pulse {
  50% { opacity: 0.5; }
}
@keyframes qcom-fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Theme color bridge ──────────────────────────────────────────
 * Override Tailwind's hardcoded HSL --primary with the WordPress
 * theme's primary color so text-primary, hover:text-primary etc.
 * automatically follow whichever theme is active.
 * ---------------------------------------------------------------- */
.text-primary {
	color: var(--wp--preset--color--primary, hsl(var(--qcom-primary))) !important;
}
.hover\:text-primary:hover {
	color: var(--wp--preset--color--primary, hsl(var(--qcom-primary))) !important;
}
.hover\:text-primary\/80:hover {
	color: color-mix(in srgb, var(--wp--preset--color--primary, hsl(var(--qcom-primary))) 80%, transparent) !important;
}

/* Reset Radix scroll-lock side-effects so portaled popovers
   are not shifted off-screen by stale transform offsets. */
html body[data-scroll-locked] {
  padding-right: 0px !important;
  margin-right: 0px !important;
}

/* Scoped preflight subset for QC interactive blocks.
   These rules replace Tailwind preflight (disabled globally) only inside
   our block containers, portaled dialogs, and toast viewports.
   Wrapped in :where() so component BEM classes always win on specificity. */
:where(.checkout-page,
[class*="wp-block-quickcommerce"],
[role="dialog"]:not(.pswp),
.qcom-toast__viewport) {
  h1, h2, h3, h4, h5, h6, p { margin: 0; }

  input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
  }

  /* Restore theme button text color — the "color: inherit" above overrides
     the theme's `color: var(--wp--preset--color--base)` on WP buttons. */
  .wp-element-button,
  .wp-block-button__link {
    color: var(--wp--preset--color--base, #fff);
  }

  img, svg { display: block; vertical-align: middle; }
  img, video { width: 100%; max-width: 100%; height: auto; }

  /* No text-decoration on plugin links (CLAUDE.md rule) */
  a, a:hover, a:focus, a:visited {
    text-decoration: none;
  }
}

/* Remove focus outline on mouse click for all QC elements; keep for keyboard (focus-visible).
   Standalone rule (not scoped) so it reaches QC blocks rendered inside core containers (e.g. header). */
[class*="qcom-"]:focus:not(:focus-visible),
[class*="auth-menu"]:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ── .qcom-input  ─────────────────────────────────────────────────
 * Shared text-input base class (BEM block).
 * Applied automatically by the <Input> component (@ui/input).
 * Uses an inset box-shadow for the focus ring so it never causes
 * horizontal overflow inside scrollable / fixed-width containers.
 * ---------------------------------------------------------------- */
.qcom-input {
	box-sizing: border-box;
	max-width: 100%;
}

.qcom-input:focus,
.qcom-input:focus-visible {
	outline: none;
	border-color: hsl(var(--qcom-primary));
	box-shadow: inset 0 0 0 1px hsl(var(--qcom-primary));
}

/* ── Utility Classes ─────────────────────────────────────────────
 * Low-level utility classes for use in render.php and block markup.
 * Prefixed with qcom_ to avoid collisions with themes/plugins.
 * ---------------------------------------------------------------- */

/* — Display — */
.qcom_block          { display: block; }
.qcom_inline-block   { display: inline-block; }
.qcom_inline         { display: inline; }
.qcom_flex           { display: flex; }
.qcom_inline-flex    { display: inline-flex; }
.qcom_grid           { display: grid; }
.qcom_hidden         { display: none; }

/* — Flex utilities — */
.qcom_flex-row       { flex-direction: row; }
.qcom_flex-col       { flex-direction: column; }
.qcom_flex-wrap      { flex-wrap: wrap; }
.qcom_flex-nowrap    { flex-wrap: nowrap; }
.qcom_flex-1         { flex: 1 1 0%; }
.qcom_flex-auto      { flex: 1 1 auto; }
.qcom_flex-none      { flex: none; }
.qcom_grow           { flex-grow: 1; }
.qcom_grow-0         { flex-grow: 0; }
.qcom_shrink-0       { flex-shrink: 0; }

/* — Alignment — */
.qcom_items-start    { align-items: flex-start; }
.qcom_items-center   { align-items: center; }
.qcom_items-end      { align-items: flex-end; }
.qcom_items-stretch  { align-items: stretch; }
.qcom_items-baseline { align-items: baseline; }
.qcom_justify-start  { justify-content: flex-start; }
.qcom_justify-center { justify-content: center; }
.qcom_justify-end    { justify-content: flex-end; }
.qcom_justify-between { justify-content: space-between; }
.qcom_justify-around { justify-content: space-around; }
.qcom_self-start     { align-self: flex-start; }
.qcom_self-center    { align-self: center; }
.qcom_self-end       { align-self: flex-end; }
.qcom_self-stretch   { align-self: stretch; }

/* — Gap — */
.qcom_gap-0          { gap: 0; }
.qcom_gap-1          { gap: 0.25rem; }
.qcom_gap-2          { gap: 0.5rem; }
.qcom_gap-3          { gap: 0.75rem; }
.qcom_gap-4          { gap: 1rem; }
.qcom_gap-5          { gap: 1.25rem; }
.qcom_gap-6          { gap: 1.5rem; }
.qcom_gap-8          { gap: 2rem; }
.qcom_gap-10         { gap: 2.5rem; }
.qcom_gap-12         { gap: 3rem; }

/* — Position — */
.qcom_relative       { position: relative; }
.qcom_absolute       { position: absolute; }
.qcom_fixed          { position: fixed; }
.qcom_sticky         { position: sticky; }
.qcom_static         { position: static; }
.qcom_inset-0        { inset: 0; }
.qcom_top-0          { top: 0; }
.qcom_right-0        { right: 0; }
.qcom_bottom-0       { bottom: 0; }
.qcom_left-0         { left: 0; }

/* — Z-index — */
.qcom_z-0            { z-index: 0; }
.qcom_z-10           { z-index: 10; }
.qcom_z-20           { z-index: 20; }
.qcom_z-30           { z-index: 30; }
.qcom_z-40           { z-index: 40; }
.qcom_z-50           { z-index: 50; }

/* — Overflow — */
.qcom_overflow-hidden   { overflow: hidden; }
.qcom_overflow-auto     { overflow: auto; }
.qcom_overflow-scroll   { overflow: scroll; }
.qcom_overflow-x-auto   { overflow-x: auto; }
.qcom_overflow-y-auto   { overflow-y: auto; }
.qcom_overflow-x-hidden { overflow-x: hidden; }

/* — Width & Height — */
.qcom_w-full         { width: 100%; }
.qcom_w-auto         { width: auto; }
.qcom_w-fit          { width: fit-content; }
.qcom_min-w-0        { min-width: 0; }
.qcom_max-w-full     { max-width: 100%; }
.qcom_h-full         { height: 100%; }
.qcom_h-auto         { height: auto; }
.qcom_h-fit          { height: fit-content; }
.qcom_min-h-0        { min-height: 0; }

/* — Margin — */
.qcom_m-0            { margin: 0; }
.qcom_m-auto         { margin: auto; }
.qcom_mx-auto        { margin-inline: auto; }
.qcom_mt-0           { margin-top: 0; }
.qcom_mt-1           { margin-top: 0.25rem; }
.qcom_mt-2           { margin-top: 0.5rem; }
.qcom_mt-4           { margin-top: 1rem; }
.qcom_mt-6           { margin-top: 1.5rem; }
.qcom_mt-8           { margin-top: 2rem; }
.qcom_mb-0           { margin-bottom: 0; }
.qcom_mb-1           { margin-bottom: 0.25rem; }
.qcom_mb-2           { margin-bottom: 0.5rem; }
.qcom_mb-4           { margin-bottom: 1rem; }
.qcom_mb-6           { margin-bottom: 1.5rem; }
.qcom_mb-8           { margin-bottom: 2rem; }
.qcom_ml-auto        { margin-left: auto; }
.qcom_mr-auto        { margin-right: auto; }

/* — Padding — */
.qcom_p-0            { padding: 0; }
.qcom_p-1            { padding: 0.25rem; }
.qcom_p-2            { padding: 0.5rem; }
.qcom_p-3            { padding: 0.75rem; }
.qcom_p-4            { padding: 1rem; }
.qcom_p-6            { padding: 1.5rem; }
.qcom_p-8            { padding: 2rem; }
.qcom_px-0           { padding-inline: 0; }
.qcom_px-2           { padding-inline: 0.5rem; }
.qcom_px-4           { padding-inline: 1rem; }
.qcom_px-6           { padding-inline: 1.5rem; }
.qcom_px-8           { padding-inline: 2rem; }
.qcom_py-0           { padding-block: 0; }
.qcom_py-1           { padding-block: 0.25rem; }
.qcom_py-2           { padding-block: 0.5rem; }
.qcom_py-4           { padding-block: 1rem; }
.qcom_py-6           { padding-block: 1.5rem; }
.qcom_py-8           { padding-block: 2rem; }

/* — Typography — */
.qcom_text-xs        { font-size: 0.75rem; line-height: 1rem; }
.qcom_text-sm        { font-size: 0.875rem; line-height: 1.25rem; }
.qcom_text-base      { font-size: 1rem; line-height: 1.5rem; }
.qcom_text-lg        { font-size: 1.125rem; line-height: 1.75rem; }
.qcom_text-xl        { font-size: 1.25rem; line-height: 1.75rem; }
.qcom_text-2xl       { font-size: 1.5rem; line-height: 2rem; }
.qcom_text-3xl       { font-size: 1.875rem; line-height: 2.25rem; }
.qcom_font-normal    { font-weight: 400; }
.qcom_font-medium    { font-weight: 500; }
.qcom_font-semibold  { font-weight: 600; }
.qcom_font-bold      { font-weight: 700; }
.qcom_text-left      { text-align: left; }
.qcom_text-center    { text-align: center; }
.qcom_text-right     { text-align: right; }
.qcom_uppercase      { text-transform: uppercase; }
.qcom_lowercase      { text-transform: lowercase; }
.qcom_capitalize     { text-transform: capitalize; }
.qcom_truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcom_line-clamp-1   { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.qcom_line-clamp-2   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qcom_line-clamp-3   { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qcom_whitespace-nowrap { white-space: nowrap; }
.qcom_break-words    { overflow-wrap: break-word; }
.qcom_leading-tight  { line-height: 1.25; }
.qcom_leading-snug   { line-height: 1.375; }
.qcom_leading-normal { line-height: 1.5; }
.qcom_leading-relaxed { line-height: 1.625; }

/* — Color (uses design tokens) — */
.qcom_text-primary   { color: hsl(var(--primary)); }
.qcom_text-muted     { color: hsl(var(--muted-foreground)); }
.qcom_text-destructive { color: hsl(var(--destructive)); }
.qcom_text-inherit   { color: inherit; }
.qcom_bg-primary     { background-color: hsl(var(--primary)); }
.qcom_bg-muted       { background-color: hsl(var(--muted)); }
.qcom_bg-card        { background-color: hsl(var(--card)); }
.qcom_bg-transparent { background-color: transparent; }

/* — Border — */
.qcom_border         { border: 1px solid hsl(var(--border)); }
.qcom_border-0       { border: 0; }
.qcom_border-t       { border-top: 1px solid hsl(var(--border)); }
.qcom_border-b       { border-bottom: 1px solid hsl(var(--border)); }
.qcom_border-l       { border-left: 1px solid hsl(var(--border)); }
.qcom_border-r       { border-right: 1px solid hsl(var(--border)); }
.qcom_rounded-sm     { border-radius: var(--qcom-radius-sm); }
.qcom_rounded-md     { border-radius: var(--qcom-radius-md); }
.qcom_rounded-lg     { border-radius: var(--qcom-radius-lg); }
.qcom_rounded-xl     { border-radius: var(--qcom-radius-xl); }
.qcom_rounded-full   { border-radius: var(--qcom-radius-full); }
.qcom_rounded-none   { border-radius: 0; }

/* — Opacity — */
.qcom_opacity-0      { opacity: 0; }
.qcom_opacity-50     { opacity: 0.5; }
.qcom_opacity-75     { opacity: 0.75; }
.qcom_opacity-100    { opacity: 1; }

/* — Cursor & Pointer — */
.qcom_cursor-pointer { cursor: pointer; }
.qcom_cursor-default { cursor: default; }
.qcom_cursor-not-allowed { cursor: not-allowed; }
.qcom_pointer-events-none { pointer-events: none; }
.qcom_pointer-events-auto { pointer-events: auto; }
.qcom_select-none    { user-select: none; }

/* — Transition — */
.qcom_transition     { transition-property: color, background-color, border-color, opacity, box-shadow, transform; transition-timing-function: ease; transition-duration: var(--qcom-transition); }
.qcom_transition-none { transition: none; }

/* — Visibility — */
.qcom_invisible      { visibility: hidden; }
.qcom_visible        { visibility: visible; }

/* — Screen reader only — */
.qcom_sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* — Animation — */
.qcom_animate-spin   { animation: qcom-spin 1s linear infinite; }
.qcom_animate-pulse  { animation: qcom-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.qcom_animate-fade-in { animation: qcom-fade-in 0.3s ease-out; }

/* ── End Utility Classes ──────────────────────────────────────── */

/* Styles for facetWP model search */
.facetwp-facet-models_filter {
    display: flex;
    gap: 1em;
}

/* Add to Cart button - hidden for variant products */
.qcom-add-to-cart-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Prevent background on buttons wrapper; only the inner button should be styled */
.wp-block-buttons:has(.qcom-add-to-cart-btn) {
    background: transparent !important;
}

/*
 * Product Card Link - clickable card pattern.
 *
 * The card container is either:
 *   a) .qcom-product-card--linked  (the wrapper group, if present)
 *   b) the <li> inside .is-qcom-product-card-link  (flat layout)
 */
.qcom-product-card--linked,
.is-qcom-product-card-link > li {
    position: relative;
    cursor: pointer;
}

/*
* Styled product card
 */
.qcom-list-product-card .qcom-list-product-card-btn {
    visibility: hidden;
}

.qcom-list-product-card:hover {
    box-shadow: 0 0 0 20px #fff, 0 0 30px 20px rgba(0, 0, 0, 0.07);
    z-index: 30;
}

.qcom-list-product-card:hover .qcom-list-product-card-btn {
    visibility: visible;
}

/*
 * Template-part wrapper inside query-loop grid cells:
 * stretch to fill the cell and use flex column so the
 * add-to-cart button stays pinned to the bottom.
 */
.is-qcom-product-card-link > li > .wp-block-template-part {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.is-qcom-product-card-link > li > .wp-block-template-part > .wp-block-group:last-child {
    margin-top: auto;
}

/*
 * Prevent intermediate WordPress block containers from creating new
 * containing blocks (position, overflow, contain) that would stop
 * the stretched-link ::after from reaching the card boundary.
 */
.qcom-product-card--linked > .wp-block-group,
.is-qcom-product-card-link > li > .wp-block-group,
.is-qcom-product-card-link .qcom-stretched-link {
    position: static !important;
    overflow: visible !important;
    contain: none !important;
}

.qcom-product-card--linked .qcom-stretched-link a,
.is-qcom-product-card-link .qcom-stretched-link a {
    text-decoration: none;
    color: inherit;
}

.qcom-product-card--linked .qcom-stretched-link a::after,
.is-qcom-product-card-link .qcom-stretched-link a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Interactive elements sit above the stretched link overlay */
.qcom-product-card--linked .wp-block-quickcommerce-quantity-input,
.qcom-product-card--linked .wp-block-quickcommerce-add-to-cart-button,
.is-qcom-product-card-link .wp-block-quickcommerce-quantity-input,
.is-qcom-product-card-link .wp-block-quickcommerce-add-to-cart-button {
    position: relative;
    z-index: 2;
}

/* Styles for images */
.wp-post-image {
    background: #fcfcfc;
    mix-blend-mode: multiply;
}

/* =========================================================================
   HOMEPAGE — Modern eCommerce Layout (2025)
   ========================================================================= */

/* --- Announcement Bar --- */
.qcom-announcement-bar {
    overflow: hidden;
}
.qcom-announcement-bar .qcom-marquee {
    display: flex;
    gap: 3rem;
    animation: qcom-marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}
@keyframes qcom-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Scroll Reveal --- */
.qcom-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.qcom-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.qcom-reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.qcom-reveal-stagger.is-visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0s; }
.qcom-reveal-stagger.is-visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: .08s; }
.qcom-reveal-stagger.is-visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: .16s; }
.qcom-reveal-stagger.is-visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: .24s; }
.qcom-reveal-stagger.is-visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay: .32s; }

/* --- Bento Category Grid --- */
.qcom-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 320px 320px;
    gap: 1rem;
}
.qcom-bento-grid > *:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; } /* tall left */
.qcom-bento-grid > *:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.qcom-bento-grid > *:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.qcom-bento-grid > *:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; } /* wide bottom-right */

@media (max-width: 768px) {
    .qcom-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 200px 200px;
    }
    .qcom-bento-grid > *:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
    .qcom-bento-grid > *:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .qcom-bento-grid > *:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .qcom-bento-grid > *:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
}

/* --- Bento Card --- */
.qcom-bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}
.qcom-bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.qcom-bento-card:hover img {
    transform: scale(1.06);
}
.qcom-bento-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 1;
}
.qcom-bento-card__overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
.qcom-bento-card__overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0;
}
.qcom-bento-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* --- Product Card Hover Lift --- */
.qcom-card-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
}
.qcom-card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}

/* Product grid with card lift */
.is-qcom-product-card-link.qcom-card-lift-grid > li {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.is-qcom-product-card-link.qcom-card-lift-grid > li:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.10);
}

/* --- Section Heading Style --- */
.qcom-section-heading {
    position: relative;
    display: inline-block;
}
.qcom-section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #00a32a;
    border-radius: 2px;
    margin-top: 0.6rem;
}

/* --- Glassmorphism card --- */
.qcom-glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
}

/* --- Stat counter --- */
.qcom-stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    letter-spacing: -0.04em;
}

/* --- Testimonial Card --- */
.qcom-testimonial {
    border-radius: 16px;
    padding: 2rem;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}
.qcom-testimonial:hover {
    box-shadow: 0 8px 30px -8px rgba(0,0,0,0.08);
}
.qcom-testimonial__stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.qcom-testimonial__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.25rem;
}
.qcom-testimonial__author {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111;
}
.qcom-testimonial__role {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* --- Editorial full-bleed --- */
.qcom-editorial-overlay {
    position: relative;
}
.qcom-editorial-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.qcom-editorial-overlay > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}
