/* v-components.css — Reusable global UI blocks */

/* ==============================================
   GL-PAGINATION — WooCommerce / posts pagination
   ============================================== */

/* Page buttons — a/span.page-numbers (not the ul container) */
.gl-pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e5e5e7;
  color: #262626;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.gl-pagination a.page-numbers:hover {
  border-color: #262626;
}

.gl-pagination span.page-numbers.current {
  background-color: #5a8219;
  border-color: #5a8219;
  color: #ffffff;
}

.gl-pagination span.page-numbers.current:hover {
  background-color: #5a8219;
  border-color: #5a8219;
}

.gl-pagination span.page-numbers.dots {
  border: none;
  color: #999;
  pointer-events: none;
  cursor: default;
}

.gl-pagination span.page-numbers.dots:hover {
  border: none;
}

.gl-pagination a.prev.page-numbers,
.gl-pagination a.next.page-numbers {
  color: #999;
}

.gl-pagination a.prev.page-numbers:hover,
.gl-pagination a.next.page-numbers:hover {
  border-color: #262626;
  color: #262626;
}

/* WP the_posts_pagination — .nav-links flex row */
.gl-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* WP may merge .navigation.pagination onto same <nav> as .gl-pagination */
nav.navigation.pagination.gl-pagination,
.gl-pagination nav.navigation.pagination {
  border: none;
  padding: 0;
  text-align: center;
  clear: both;
}

nav.navigation.pagination .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* WC shop — woocommerce_pagination() */
.gl-pagination .woocommerce-pagination {
  text-align: center;
  border: none;
  padding: 0;
}

/* ul.page-numbers is flex container, not a button */
.gl-pagination ul.page-numbers,
.woocommerce .gl-pagination .woocommerce-pagination ul.page-numbers {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  float: none;
}

.gl-pagination ul.page-numbers::before,
.gl-pagination ul.page-numbers::after,
.woocommerce .gl-pagination .woocommerce-pagination ul.page-numbers::before,
.woocommerce .gl-pagination .woocommerce-pagination ul.page-numbers::after {
  display: none;
}

.gl-pagination ul.page-numbers li,
.woocommerce .gl-pagination .woocommerce-pagination ul.page-numbers li {
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .gl-pagination a.page-numbers,
  .gl-pagination span.page-numbers {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}


/* ==============================================
   GI-VIDEO-TOGGLE — PDP video accordion (<details>)
   ============================================== */

.gi-video-toggle {
  border: none;
  border-radius: 8px;
  padding: 0;
  background-color: transparent;
  overflow: hidden;
}

.gi-video-toggle summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #262626;
  background-color: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: all 0.2s ease;
}

.gi-video-toggle summary i {
  font-size: 22px;
  color: #5a8219;
  line-height: 1;
  flex-shrink: 0;
}

.gi-video-toggle summary span {
  flex: 1;
  min-width: 0;
}

.gi-video-toggle summary::-webkit-details-marker {
  display: none;
}

.gi-video-toggle summary::marker {
  display: none;
  content: "";
}

.gi-video-toggle summary::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.gi-video-toggle[open] summary::after {
  transform: rotate(180deg);
}

.gi-video-toggle summary:hover {
  color: #5a8219;
  background-color: #eef0eb;
}

.gi-video-toggle[open] summary {
  border-radius: 8px 8px 0 0;
}

.gi-video-body {
  padding: 16px;
  border: 1px solid #e5e5e7;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background-color: #fff;
}


/* ==============================================
   GI-PRO-RATING — shared star row (PDP, cards, reviews)
   Requires gicons.css. PDP/reviews use bare .gi-pro-starrating;
   list cards scope margin via .gi-product-inner below.
   ============================================== */

.gi-pro-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.gi-pro-starrating {
  position: relative;
  display: inline-block;
  width: 78px;
  height: 1em;
  line-height: 1;
  font-size: 14px;
  font-family: "gIcons";
  letter-spacing: 2px;
  margin: 0;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gi-pro-starrating::before {
  content: "\f005\f005\f005\f005\f005";
  background: linear-gradient(90deg,
      #f27d0c var(--star-pct, 100%),
      #d4d4d4 var(--star-pct, 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: inherit;
  white-space: nowrap;
}

.gi-pro-rating-score {
  font-size: 14px;
  color: var(--gl-text-primary, #262626);
  font-weight: 400;
  line-height: 1;
  order: -1;
}

.gi-pro-rating-count {
  font-size: 14px;
  color: #999999;
  line-height: 1;
}

.gi-pro-starrating a {
  color: #999999;
}

.gi-pro-starrating.gi-star-sm {
  font-size: 12px;
  width: 68px;
}

.gi-pro-starrating.gi-star-lg {
  font-size: 18px;
  width: 98px;
}


/* ==============================================
   GL-SUBSCRIBE — Unified Email Subscription Form
   ============================================== */

.gl-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.gl-subscribe .gl-subscribe-field {
  flex: 1;
  min-width: 200px;
}

.gl-subscribe .gl-subscribe-input,
.gl-subscribe input.wpcf7-form-control[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #d4d4d4;
  border-radius: var(--gl-radius-button);
  font-family: 'Inter', sans-serif;
  font-size: var(--gl-text-base);
  color: var(--gl-text-primary);
  background: #ffffff;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gl-subscribe .gl-subscribe-input::placeholder,
.gl-subscribe input.wpcf7-form-control::placeholder {
  color: var(--gl-text-muted);
}

.gl-subscribe .gl-subscribe-input:focus,
.gl-subscribe input.wpcf7-form-control:focus {
  border-color: var(--gl-color-accent);
  box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08);
}

.gl-subscribe input.wpcf7-not-valid,
.gl-subscribe input.wpcf7-form-control.wpcf7-not-valid,
.gl-subscribe input.wpcf7-not-valid[type="email"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06) !important;
}

.gl-subscribe .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: var(--gl-text-xs);
  color: #dc2626;
  line-height: var(--gl-leading-compact);
  text-align: left;
}

.gl-subscribe .wpcf7-not-valid-tip+.wpcf7-not-valid-tip {
  display: none;
}

.gl-subscribe .gl-subscribe-btn {
  height: 50px;
  padding: 0 28px;
  background: #5a8219;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: var(--gl-text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--gl-radius-button);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gl-subscribe .gl-subscribe-btn:hover {
  opacity: 0.7;
}

.gl-subscribe .gl-subscribe-submit {
  position: relative;
  flex-shrink: 0;
}

.gl-subscribe .wpcf7-submit {
  height: 50px;
  padding: 0 28px;
  background: #5a8219 !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: var(--gl-text-base);
  font-weight: 600;
  border: none !important;
  border-radius: var(--gl-radius-button) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-shadow: none !important;
  line-height: 50px;
  text-align: center;
}

.gl-subscribe .wpcf7-submit:hover {
  opacity: 0.7;
}

.gl-subscribe .wpcf7-submit:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.wpcf7 form.gl-subscribe.submitting .wpcf7-submit {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.wpcf7 form.gl-subscribe.sent .wpcf7-submit,
.wpcf7 form.gl-subscribe.failed .wpcf7-submit,
.wpcf7 form.gl-subscribe.invalid .wpcf7-submit,
.wpcf7 form.gl-subscribe.init .wpcf7-submit {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.gl-subscribe .wpcf7-spinner {
  display: none !important;
  background: none !important;
  background-color: transparent !important;
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.gl-subscribe .wpcf7-spinner::before {
  display: none !important;
  content: none !important;
}

.wpcf7 form.gl-subscribe.submitting .gl-subscribe-submit .wpcf7-spinner {
  display: block !important;
  visibility: visible;
  opacity: 1;
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: gi-cf7-spin 0.6s linear infinite;
  background: none !important;
  background-color: transparent !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.wpcf7 form.gl-subscribe.submitting .gl-subscribe-submit .wpcf7-spinner::before {
  display: none !important;
  content: none !important;
}

.wpcf7 form.gl-subscribe .wpcf7-response-output {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--gl-radius-button);
  font-size: var(--gl-text-sm);
  line-height: var(--gl-leading-normal);
  border: 1px solid transparent;
  box-sizing: border-box;
  text-align: left;
}

.wpcf7 form.gl-subscribe.sent .wpcf7-response-output {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #f0f9eb;
  color: var(--gl-color-accent);
  border-color: #d4e8c2;
}

.wpcf7 form.gl-subscribe.invalid .wpcf7-response-output,
.wpcf7 form.gl-subscribe.failed .wpcf7-response-output,
.wpcf7 form.gl-subscribe.spam .wpcf7-response-output {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff5f5;
  color: #dc2626;
  border-color: #f5c6c6;
}

.gl-subscribe-hint {
  margin-top: 12px;
  font-size: var(--gl-text-sm);
  color: var(--gl-text-muted);
  line-height: var(--gl-leading-normal);
}

.gl-subscribe-hint a {
  color: var(--gl-text-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.gl-subscribe-hint a:hover {
  color: var(--gl-color-accent);
}

.gl-subscribe--stack {
  flex-direction: column;
}

.gl-subscribe--stack .gl-subscribe-field {
  width: 100%;
  min-width: auto;
}

.gl-subscribe--stack .gl-subscribe-btn,
.gl-subscribe--stack .wpcf7-submit {
  width: 100%;
}

.gl-subscribe--stack .gl-subscribe-submit {
  width: 100%;
}

.gl-subscribe--sm .gl-subscribe-input,
.gl-subscribe--sm input.wpcf7-form-control[type="email"] {
  height: 44px;
}

.gl-subscribe--sm .gl-subscribe-btn,
.gl-subscribe--sm .wpcf7-submit {
  height: 44px;
  padding: 0 20px;
  line-height: 44px;
}

.gl-subscribe--dark {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 450px;
}

.gl-subscribe--dark .gl-subscribe-field {
  flex: 1;
  min-width: 0;
}

.gl-subscribe--dark .gl-subscribe-input,
.gl-subscribe--dark input.wpcf7-form-control[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-right: none;
  border-radius: var(--gl-radius-button) 0 0 var(--gl-radius-button);
  color: var(--gl-text-primary);
  font-size: var(--gl-text-base);
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.gl-subscribe--dark .gl-subscribe-input::placeholder,
.gl-subscribe--dark input.wpcf7-form-control::placeholder {
  color: #999999;
}

.gl-subscribe--dark .gl-subscribe-input:focus,
.gl-subscribe--dark input.wpcf7-form-control:focus {
  border-color: var(--gl-color-accent);
  box-shadow: none;
  outline: none;
}

.gl-subscribe--dark input.wpcf7-not-valid,
.gl-subscribe--dark input.wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc2626 !important;
  box-shadow: none !important;
}

.gl-subscribe--dark .gl-subscribe-submit {
  position: static;
  flex-shrink: 0;
}

.gl-subscribe--dark .gl-subscribe-submit::after {
  display: none;
}

.gl-subscribe--dark .gl-subscribe-btn,
.gl-subscribe--dark .wpcf7-submit {
  height: 44px !important;
  padding: 0 20px !important;
  background: #262626 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 var(--gl-radius-button) var(--gl-radius-button) 0 !important;
  font-size: var(--gl-text-base) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-indent: 0 !important;
  overflow: visible !important;
  line-height: 44px;
  text-align: center;
  width: auto !important;
}

.gl-subscribe--dark .gl-subscribe-btn:hover,
.gl-subscribe--dark .wpcf7-submit:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  opacity: 1 !important;
}

.gl-subscribe--dark .wpcf7-submit:focus {
  outline: none !important;
  box-shadow: none !important;
}

.gl-subscribe--dark .wpcf7-spinner {
  display: none !important;
}

.gl-subscribe--dark .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  top: 48px;
  color: #dc2626;
  font-size: var(--gl-text-xs);
  margin: 0;
  white-space: nowrap;
}

.wpcf7 form.gl-subscribe.gl-subscribe--dark .wpcf7-response-output,
.wpcf7 form.gl-subscribe.gl-subscribe--dark.invalid .wpcf7-response-output,
.wpcf7 form.gl-subscribe.gl-subscribe--dark.failed .wpcf7-response-output {
  display: none !important;
}

.wpcf7 form.gl-subscribe.gl-subscribe--dark.sent .wpcf7-response-output {
  display: block !important;
  position: absolute;
  left: 0;
  top: 48px;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  border: none;
  background: transparent;
  color: var(--gl-color-accent);
  font-size: var(--gl-text-xs);
}

@media (max-width: 767px) {
  .gl-subscribe--dark {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .gl-subscribe .gl-subscribe-field {
    width: 100%;
  }
}

@keyframes gi-cf7-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Newsletter section; section spacing via pt/pb utilities in HTML */
.gl-newsletter-section {
    background: none;
    border: none;
}

.gl-newsletter-section-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.gl-newsletter-section-panel {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .gl-newsletter-section-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 280px;
    }
}

.gl-newsletter-section-media {
    position: relative;
    min-height: 200px;
    background-color: #e5e5e7;
    background-image: url('../images/common/subscribe.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .gl-newsletter-section-media {
        min-height: 100%;
    }
}

.gl-newsletter-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 24px;
    padding-right: 24px;
    background-color: #f2f6ec;
}

/* Subscribe form — section-scoped overrides (overrides .gl-subscribe--dark in this layout) */
.gl-newsletter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    width: 100%;
    max-width: none;
}

.gl-newsletter-form .gl-subscribe-field {
    flex: 1 1 auto;
    min-width: 0;
}

.gl-newsletter-form .gl-subscribe-input,
.gl-newsletter-form input.wpcf7-form-control[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    color: var(--gl-text-primary);
    font-size: var(--gl-text-base);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.gl-newsletter-form .gl-subscribe-input::placeholder,
.gl-newsletter-form input.wpcf7-form-control::placeholder {
    color: var(--gl-text-muted);
}

.gl-newsletter-form .gl-subscribe-input:focus,
.gl-newsletter-form input.wpcf7-form-control:focus {
    border-color: var(--gl-color-accent);
    outline: none;
}

.gl-newsletter-form input.wpcf7-not-valid,
.gl-newsletter-form input.wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc2626;
}

.gl-newsletter-form .gl-subscribe-submit {
    flex: 0 0 auto;
}

.gl-newsletter-form .gl-subscribe-btn,
.gl-newsletter-form .wpcf7-submit {
    height: 44px;
    padding: 0 20px;
    background: #262626;
    color: var(--gl-text-inverse);
    border: none;
    border-radius: 0;
    font-size: var(--gl-text-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    appearance: none;
}

.gl-newsletter-form .gl-subscribe-btn:hover,
.gl-newsletter-form .wpcf7-submit:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Newsletter: split input + button (not footer fused bar) */
.gl-newsletter-form.gl-subscribe--dark .gl-subscribe-input,
.gl-newsletter-form.gl-subscribe--dark input.wpcf7-form-control[type="email"] {
    border-right: 1px solid #d4d4d4;
    border-radius: 0;
}

.gl-newsletter-form.gl-subscribe--dark .gl-subscribe-btn,
.gl-newsletter-form.gl-subscribe--dark .wpcf7-submit {
    border-radius: 0 !important;
}

@media (max-width: 575px) {
    .gl-newsletter-form {
        flex-wrap: wrap;
    }

    .gl-newsletter-form .gl-subscribe-field,
    .gl-newsletter-form .gl-subscribe-submit {
        flex: 1 1 100%;
        width: 100%;
    }

    .gl-newsletter-form .gl-subscribe-btn,
    .gl-newsletter-form .wpcf7-submit {
        width: 100% !important;
    }
}

.gl-newsletter-form .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 48px;
    color: #dc2626;
    font-size: var(--gl-text-xs);
    margin: 0;
    white-space: nowrap;
}

.gl-newsletter-section-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-newsletter-section-title {
    font-size: var(--gl-text-2xl);
    font-weight: 600;
    color: var(--gl-text-primary);
    line-height: var(--gl-leading-tight);
}

@media (min-width: 992px) {
    .gl-newsletter-section-title {
        font-size: var(--gl-text-3xl);
    }
}

.gl-newsletter-section-desc {
    font-size: var(--gl-text-base);
    color: var(--gl-text-body);
    font-weight: 400;
    line-height: var(--gl-leading-relaxed);
}

/* ==============================================
   SHOP — Layout B category hero (Default Hero slot)
   Container: global .gl-page-container breakpoints (v-core.css)
   ============================================== */

.gl-shop-category-hero__head {
    padding-bottom: 24px;
}

/* ==============================================
   SHOP — Product list layout shell (Layout A / B)
   Breakpoints: width from v-core .gl-container (pair with .gl-shop-layout on same node)
   Full bleed: .gl-container.gl-shop-layout.gl-container--full
   ============================================== */

.gi-shop {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Site mobile <992 — v-core header/nav uses same breakpoint */
@media (max-width: 991px) {
    .gi-shop {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .gi-shop:has(.filter-bar) {
        padding-top: 12px;
    }
}

/* M2 — Mobile filter bar (Layout A only; opens .gi-shop-sidebar drawer) */
.gi-shop .filter-bar {
    padding: 0 12px;
    margin-bottom: 8px;
}

.gi-shop .filter-modal-toggle {
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #262626;
    border-radius: var(--gl-radius-button);
    font-size: 14px;
    color: #262626;
    font-weight: 500;
    background: none;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.gi-shop .filter-modal-toggle:hover {
    background-color: #fafafa;
}

.gi-shop .filter-modal-toggle .fi-rr-filter {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 767px) {
    /* Compact control — same border language as .orderby, not full-width black box */
    .gi-shop .filter-bar {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }

    .gi-shop .filter-modal-toggle {
        width: auto;
        min-height: 36px;
        padding: 8px 12px;
        border: 1px solid #d4d4d4;
        background-color: transparent;
        color: #525252;
    }

    .gi-shop .filter-modal-toggle:hover {
        background-color: #fafafa;
        border-color: #a3a3a3;
        color: #262626;
    }

    .gi-shop .gi-shop-toolbar {
        margin-bottom: 16px;
    }
}

@media (min-width: 768px) {
    .gi-shop .filter-bar {
        display: none;
    }
}

/* #filter-badge-bar — JS toggles .hidden / .flex (product-list.js) */
.gi-shop #filter-badge-bar {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #262626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--gl-radius-button);
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gi-shop #filter-badge-bar.flex {
    display: inline-flex;
}

.gi-shop #filter-badge-bar.hidden {
    display: none;
}

.gi-shop .gl-shop-layout__row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Eat .gl-container padding — same as .gl-row gutter model */
.gl-container.gl-shop-layout > .gl-shop-layout__row {
    margin-left: -12px;
    margin-right: -12px;
    width: auto;
}

/* Main column — default full width (Layout B) */
.gi-shop .gi-shop-rightside {
    box-sizing: border-box;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.gi-shop .gi-shop-rightside--full {
    width: 100%;
}

@media (min-width: 768px) {
    .gi-shop .gi-shop-rightside--full {
        order: 0;
    }
}

/* Toolbar shell */
.gi-shop .gi-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Toolbar — WC catalog widgets (PHP: woocommerce_result_count + woocommerce_catalog_ordering) */
.gi-shop-toolbar .woocommerce-result-count {
    font-size: 14px;
    color: #525252;
    margin: 0;
    float: none;
}

.gi-shop-toolbar .woocommerce-ordering {
    margin: 0;
    float: none;
}

@media (max-width: 767px) {
    .gi-shop-toolbar .woocommerce-ordering {
        margin-left: auto;
    }
}

.gi-shop-toolbar .woocommerce-ordering .orderby {
    appearance: none;
    -webkit-appearance: none;
    font-size: 14px;
    color: #525252;
    background-color: transparent;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23525252' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.gi-shop-toolbar .woocommerce-ordering .orderby:hover {
    border-color: #5a8219;
}

.gi-shop-toolbar .woocommerce-ordering .orderby:focus {
    border-color: #5a8219;
    box-shadow: 0 0 0 2px rgba(90, 130, 25, 0.1);
}

/* ==============================================
   SHOP — Left filter sidebar (product-list Layout A)
   DOM contract: gi-shop-sidebar, gi-sidebar-block, gl-sidebar-select, gl-filter-tag
   No visual rules on #shop_sidebar, #sidebar-* hook IDs
   ============================================== */

/* --- Sidebar column (Layout A: inside --with-sidebar row) --- */
.gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
    box-sizing: border-box;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 768px) {
    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
        order: 6;
    }

    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-rightside {
        order: -1;
    }
}

@media (min-width: 992px) {
    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
        position: sticky;
        top: 24px;
        order: -1;
        width: 33.33%;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-rightside {
        order: 6;
        width: 66.67%;
    }
}

@media (min-width: 1200px) {
    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
        width: 25%;
    }

    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-rightside {
        width: 75%;
    }
}

@media (min-width: 1400px) {
    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
        width: 20%;
    }

    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-rightside {
        width: 80%;
    }
}

@media (min-width: 1488px) {
    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-sidebar {
        width: 20%;
    }

    .gi-shop .gl-shop-layout__row--with-sidebar .gi-shop-rightside {
        width: 80%;
    }
}

/* --- Mobile drawer (state class required by product-list.js) --- */
@media (max-width: 991px) {
    .gi-shop .gi-shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 340px !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1001 !important;
        background: #fdfdfd !important;
        overflow-y: auto !important;
        padding: 0 20px 20px !important;
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out !important;
    }

    .gi-shop .gi-shop-sidebar.gl-sidebar-mobile-open {
        transform: translateX(0);
        opacity: 1;
    }

    .gi-shop .gi-mobile-filter-header {
        display: block !important;
    }

    .gi-shop .gi-sidebar-search-block {
        margin-top: 12px;
    }
}

.gl-sidebar-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* --- Anti-pollution reset (shop sidebar only) --- */
.gi-shop .gi-shop-sidebar *,
.gi-shop .gi-shop-sidebar *::before,
.gi-shop .gi-shop-sidebar *::after {
    box-sizing: border-box;
}

.gi-shop .gi-shop-sidebar ul,
.gi-shop .gi-shop-sidebar ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gi-shop .gi-shop-sidebar li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gi-shop .gi-shop-sidebar a:not(.gl-filter-tag) {
    text-decoration: none;
    color: inherit;
    background: none;
}

.gi-shop .gi-shop-sidebar .gi-sidebar-title {
    margin: 0;
}

.gi-shop .gi-shop-sidebar button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* --- Mobile drawer header (match .gl-side-cart-header bar height) --- */
.gi-shop .gi-mobile-filter-header {
    display: none;
    height: var(--gl-mobile-bar-height);
    min-height: var(--gl-mobile-bar-height);
    margin: 0 -20px;
    padding: 0 15px 0 20px;
    border-bottom: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gi-shop .gl-shop-filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* --- Active condition tags (block hidden when empty; JS toggles .hidden) --- */
.gi-shop .gi-sidebar-search-block {
    margin-bottom: 16px;
}

.gi-shop .gi-sidebar-search-block.hidden {
    display: none;
}

.gi-shop .gl-shop-filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Filter tags --- */
.gi-shop .gl-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px 5px 13px;
    background-color: #fafafa;
    border: 2px solid #262626;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
    transition: background-color 0.2s ease;
}

.gi-shop .gl-filter-tag:hover {
    background-color: #f0f0f0;
}

.gi-shop .gl-filter-tag .gl-tag-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(38, 38, 38, 0.1);
    font-size: 12px;
    color: #262626;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.gi-shop .gl-filter-tag:hover .gl-tag-close {
    background-color: rgba(38, 38, 38, 0.2);
}

/* --- Accordion blocks --- */
.gi-shop .gi-shop-sidebar .gi-sidebar-block {
    border-bottom: 1px solid #e5e5e7;
}

.gi-shop .gi-shop-sidebar .gi-sidebar-title {
    padding: 15px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gl-text-primary, #262626);
    letter-spacing: 0;
}

.gi-shop .gi-shop-sidebar .gi-sb-block-content {
    padding-bottom: 15px;
}

.gi-shop .gi-shop-sidebar .gi-sidebar-title .gi-sidebar-res {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

.gi-shop .gi-shop-sidebar .gi-sidebar-title .gi-sidebar-res i {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .gi-shop .gi-shop-sidebar .gi-sidebar-title .gi-sidebar-res {
        padding-right: 0;
    }
}

/* --- Filter option list --- */
.gi-shop .gl-shop-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gi-shop .gl-shop-filter-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gi-shop .gl-shop-filter-link:not(.gl-sidebar-select):hover {
    background-color: #fafafa;
}

.gi-shop .gl-shop-filter-label {
    font-size: 14px;
    color: var(--gl-text-primary, #262626);
    transition: color 0.2s ease;
}

.gi-shop .gl-shop-filter-sublabel {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.gi-shop .gl-shop-filter-color-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* --- Checkbox faux control (left of label) --- */
.gi-shop .gl-shop-filter-check {
    order: -1;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: var(--gl-radius-button);
    border: 1.5px solid #262626;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, border-width 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.gi-shop .gl-shop-filter-link:hover .gl-shop-filter-check {
    border-width: 2px;
    border-color: #525252;
}

.gi-shop .gl-shop-filter-link:not(.gl-sidebar-select):hover .gl-shop-filter-check::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid rgba(90, 130, 25, 0.5);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* --- Selected row (.gl-sidebar-select = JS/PHP state hook; visual via compound selector) --- */
.gi-shop .gi-shop-sidebar .gl-sidebar-select {
    background-color: #fafafa !important;
}

.gi-shop .gi-shop-sidebar .gl-sidebar-select .gl-shop-filter-check {
    border-width: 2px !important;
    border-color: #262626 !important;
    background-color: #262626 !important;
}

.gi-shop .gi-shop-sidebar .gl-sidebar-select .gl-shop-filter-check::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.gi-shop .gi-shop-sidebar .gl-sidebar-select .gl-shop-filter-label {
    font-weight: 500;
}

.gi-shop .gi-shop-sidebar .gl-sidebar-select:hover {
    background-color: #fafafa !important;
}

.gi-shop .gi-shop-sidebar .gl-sidebar-select:hover .gl-shop-filter-check {
    border-color: #262626 !important;
}

/* --- Color swatches (sidebar filter only) --- */
.gi-shop .gl-shop-filter-swatch {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* --- Empty state (WC: .woocommerce-no-products-found) — portable .gl-shop-empty* --- */
.woocommerce-no-products-found .gl-shop-empty {
    padding-top: 80px;
    padding-bottom: 40px;
}

.gl-shop-empty__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.gl-shop-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
}

.gl-shop-empty__icon i {
    font-size: 28px;
    color: #d4d4d4;
}

.gl-shop-empty__title {
    margin: 0 0 12px;
    font-size: var(--gl-text-2xl);
    font-weight: 600;
    line-height: var(--gl-leading-snug, 1.3);
    color: var(--gl-text-primary);
}

.gl-shop-empty__desc {
    margin: 0 0 28px;
    font-size: var(--gl-text-lg);
    line-height: var(--gl-leading-relaxed, 1.6);
    color: var(--gl-text-secondary);
}

.gl-shop-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Reco block — copy .gl-shop-empty__reco anywhere; max 4 via .columns-4 */
.gl-shop-empty__reco {
    margin-top: 60px;
    text-align: left;
}

.gl-shop-empty__reco[hidden] {
    display: none;
}

.gl-shop-empty__reco-title {
    margin: 0 0 24px;
    font-size: var(--gl-text-xl);
    font-weight: 600;
    color: var(--gl-text-primary);
}

@media (max-width: 991px) {
    .woocommerce-no-products-found .gl-shop-empty {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .gl-shop-empty__title {
        font-size: var(--gl-text-xl);
    }

    .gl-shop-empty__desc {
        font-size: var(--gl-text-base);
    }

    .gl-shop-empty__reco {
        margin-top: 40px;
    }
}

/* ==============================================
   Product loop — grid (ul.products) + card (.gi-product-inner)
   Mobile row list: .shop-pro-inner > ul.products only
   Reco / carousel: default vertical grid + .gl-shop-empty__products 2-col on mobile
   - .gi-pro-body        gap 10px (PC) / 8px (list mobile)
   - .gi-pro-footer      gap 8px between rating / sales / badges / price / stock
   - .gi-pro-badge-row:empty  hidden
   ============================================== */

/* --- Grid --- */
ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 24px;
    row-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    clear: none;
}

ul.products::before,
ul.products::after {
    display: none;
}

@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1488px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    ul.products.columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    ul.products.columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1488px) {
    ul.products.columns-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Empty reco — 2-col vertical grid on mobile */
@media (max-width: 767px) {
    ul.products.gl-shop-empty__products {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
        row-gap: 30px;
    }

    ul.products.gl-shop-empty__products .gi-pro-body {
        padding: 12px;
    }
}

ul.products li.product {
    display: flex;
    float: none;
    width: 100%;
    height: 100%;
    margin: 0;
    list-style: none;
    font-size: inherit;
    clear: none;
    text-align: left;
    position: relative;
}

ul.products li.product img {
    margin: 0;
}

ul.products li.product .button {
    box-shadow: none;
    margin-bottom: 0;
}

ul.products li.product .button:hover {
    box-shadow: none;
}

/* --- Card shell (.gi-product-inner) --- */
.gi-product-inner {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition: box-shadow 0.3s ease;
}

/* Card hover shadow — shop grid only (not homepage/PDP carousel strips) */
.shop-pro-inner > ul.products .gi-product-inner:hover,
ul.products.gl-shop-empty__products .gi-product-inner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gi-product-inner .gi-pro-image-outer {
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.gi-product-inner .gi-pro-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Shop main list — mobile row cards (scoped to .shop-pro-inner wrapper) */
@media (max-width: 767px) {
    .shop-pro-inner > ul.products {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 30px;
    }

    .shop-pro-inner > ul.products .gi-product-inner {
        flex-direction: row;
        align-items: stretch;
        border: 1px solid #e5e5e7;
        border-radius: 8px;
        box-shadow: none;
        background-color: #ffffff;
    }

    .shop-pro-inner > ul.products .gi-product-inner:hover {
        box-shadow: none;
    }

    .shop-pro-inner > ul.products .gi-product-inner .gi-pro-image-outer {
        width: 42%;
        max-width: 160px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #f5f5f5;
    }

    .shop-pro-inner > ul.products .gi-product-inner .gi-pro-image-link {
        background-color: transparent;
    }

    .shop-pro-inner > ul.products .gi-product-inner .gi-pro-body {
        width: 58%;
        flex: 1;
        padding: 16px;
        justify-content: center;
        gap: 8px;
    }

    .shop-pro-inner > ul.products .gi-product-inner .price {
        min-height: auto;
    }
}

.gi-product-inner .gi-pro-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
    background-color: #f5f5f5;
}

.gi-product-inner .gi-pro-image-primary {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.7s ease-out;
}

.gi-product-inner .gi-pro-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.gi-product-inner .gi-pro-badge-row:empty {
    display: none;
}

.gi-product-inner .gi-pro-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    z-index: 10;
}

.gi-product-inner .gi-pro-title {
    margin: 0;
}

.gi-product-inner .gi-pro-title a {
    font-size: 16px;
    color: var(--gl-text-primary, #262626);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gi-product-inner .gi-pro-title a:hover {
    color: #5a8219;
}

.gi-product-inner .gi-pro-feature {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gl-text-tertiary);
}

.gi-product-inner .gi-pro-feature span {
    color: inherit;
}

.gi-product-inner .gi-pro-colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.gi-product-inner .gi-pro-color-dot {
    display: block;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    outline: 1.5px solid transparent;
    outline-offset: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, outline-color 0.2s ease, outline-offset 0.2s ease;
}

/* Hover (non-selected): lighter twin-ring — same logic as .active, less contrast */
.gi-product-inner .gi-pro-color-dot:hover:not(.active) {
    border: 2px solid rgba(255, 255, 255, 0.9);
    outline: 1.5px solid rgba(38, 38, 38, 0.4);
    outline-offset: 1px;
}

/* Selected: white inner ring + offset outer ring — works on light & dark swatches */
.gi-product-inner .gi-pro-color-dot.active {
    border: 2px solid #ffffff;
    outline: 1.5px solid rgba(38, 38, 38, 0.65);
    outline-offset: 1px;
}

@media (max-width: 767px) {
    .gi-product-inner .gi-pro-colors {
        gap: 8px;
    }

    .gi-product-inner .gi-pro-color-dot {
        width: 20px;
        height: 20px;
    }
}

.gi-product-inner .gi-pro-footer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

.gi-product-inner .gi-pro-rating {
    margin: 0;
}

.gi-product-inner .gi-pro-monthly-sales {
    font-size: 14px;
    color: #525252;
    line-height: 1.4;
    margin: 0;
}

.gi-product-inner .price {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px;
    min-height: 28px;
    margin: 0;
}

.gi-product-inner .gi-pro-learnmore {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--gl-text-secondary, #525252);
    transition: color 0.2s ease;
}

.gi-product-inner .gi-pro-learnmore:hover {
    color: #5a8219;
}

.gi-product-inner .gi-pro-learnmore i {
    margin-left: 5px;
    font-size: 18px;
}

.gi-product-inner .price .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--gl-text-primary, #262626) !important;
    letter-spacing: -0.02em;
}

.gi-product-inner .price del {
    opacity: 1 !important;
    order: 2 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

.gi-product-inner .price del .woocommerce-Price-amount {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #999999 !important;
}

.gi-product-inner .price ins {
    text-decoration: none !important;
    order: 1 !important;
}

.gi-product-inner .price del+ins {
    margin-left: 0 !important;
}

@media (max-width: 575px) {
    .gi-product-inner .price .woocommerce-Price-amount {
        font-size: 16px;
    }
}

.gi-product-inner .stock {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.gi-product-inner .stock.in-stock {
    color: #5a8219;
}

.gi-product-inner .stock.in-stock.low-stock {
    color: #ea580c;
}

.gi-product-inner .stock.out-of-stock {
    color: #dc2626;
}

.gi-product-inner .stock.available-on-backorder {
    color: #2563eb;
}

.gi-product-inner.gi-product-preorder .gi-pro-image-outer img {
    filter: saturate(0.6);
    transition: filter 0.4s ease, transform 0.7s ease-out;
}

.gi-product-inner.gi-product-preorder:hover .gi-pro-image-outer img {
    filter: saturate(1);
}

/* ==============================================
   V-STACK GLOBAL UI
   ============================================== */

/* M1 — Series Navigation */
.gl-series-nav { background-color: #ffffff; }
@media (max-width: 991px) { .gl-series-nav { border-bottom: 1px solid #e5e5e7; } }
.gl-series-nav > .gl-container > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 15px; padding-bottom: 15px; }
@media (min-width: 992px) { .gl-series-nav > .gl-container > div { border-bottom: 1px solid #e5e5e7; } }

/* --- GL-TAG --- */

/* 1. Base Tag Styles */
.gl-tag {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* 2. Size Variants */

/* Small: Product card badges (New, -15%, Color) */
.gl-tag-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* Medium: Category badges, filter labels */
.gl-tag-md {
  padding: 5px 10px;
  font-size: 11px;
}

/* 3. Color Variants - Solid Background */

/* Dark (Default) - #262626 */
.gl-tag-dark {
  background-color: rgba(38, 38, 38, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Primary (Brand Green) - #5a8219 */
.gl-tag-primary {
  background-color: #5a8219;
  color: #ffffff;
}

/* Danger (Discount Red) - #dc2626 */
.gl-tag-danger {
  background-color: rgba(220, 38, 38, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* 4. Color Variants - Subtle/Outline */

/* Subtle Primary (Light green background) */
.gl-tag-subtle-primary {
  background-color: rgba(90, 130, 25, 0.1);
  color: #5a8219;
}

/* Outline Style (Border only) - used for product color tags */
.gl-tag-outline {
  background-color: rgba(255, 255, 255, 0.85);
  color: #262626;
  border: 1px solid #e5e5e7;
  padding-right: calc(10px + 0.5px);
  /* compensate letter-spacing trailing space */
  backdrop-filter: blur(4px);
}

.gl-tag-outline:hover {
  border-color: #5a8219;
  color: #5a8219;
}

/* Semantic Aliases — Product Badge System */

/* Brand Tag → Neutral & Elegant #f5f5f5 */
.gl-tag-brand {
  background-color: #f5f5f5;
  color: #525252;
  border-color: #e5e5e7;
}

.gl-tag-brand:hover {
  background-color: #e5e5e7;
  color: #262626;
}


/* New Arrival → Brand Green #5a8219 */
.gl-tag-new {
  background-color: #5a8219;
  color: #ffffff;
}

/* Hot → Dark #262626 */
.gl-tag-bestseller {
  background-color: #f27d0c;
  color: #ffffff;
}

/* Discount → Red #dc2626 */
.gl-tag-discount {
  background-color: rgba(220, 38, 38, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Top Rated → Orange #f27d0c */
.gl-tag-toprated {
  background-color: #f27d0c;
  color: #ffffff;
}

/* Product Color → Outline (white bg + border) */
.gl-tag-color {
  background-color: rgba(255, 255, 255, 0.85);
  color: #262626;
  border: 1px solid #e5e5e7;
  padding-right: calc(10px + 0.5px);
  backdrop-filter: blur(4px);
}

.gl-tag-color:hover {
  border-color: #5a8219;
  color: #5a8219;
}

/* Discontinued gl-tag */
.gl-tag-discontinued {
  background-color: #d4d4d4;
  color: #ffffff;
  border: 1px solid #d4d4d4;

}

.gi-pro-badge-row .gl-tag-discontinued {
  margin-top: 8px
}

/* Certified Standards Badge — "Globlazer Standards" verification seal */
.gl-tag-standards {
  background: linear-gradient(135deg, #f5f0ea 0%, #ece5db 100%);
  color: #5c5347;
  border: 1px solid #d9d0c4;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 5px;
}

.gl-tag-standards i {
  font-size: 12px;
  color: #8a7e6f;
}

/* --- GI-ACCORDION-ITEM --- */
/* GLOBAL ACCORDION COMPONENT */

/* Accordion item container */
.gi-accordion-item {
  transition: all 0.3s ease;
}

/* Active state border highlight */
.gi-accordion-item.gi-accordion-active {
  border-color: #5a8219 !important;
}

/* Accordion header hover */
.gi-accordion-header:hover {
  background-color: rgba(90, 130, 25, 0.03);
}

/* Accordion body (content) */
.gi-accordion-body {
  display: none;
}

/* Icon rotation class */
.gi-accordion-icon {
  transition: transform 0.3s ease;
}

.gi-accordion-icon.rotate-180 {
  transform: rotate(180deg);
}

/* --- GI-RICHTEXT --- */
/* RICH TEXT COMPONENT (.gi-richtext) */

/* Base container */
.gi-richtext {
  font-size: 16px;
  line-height: 1.8;
  color: #525252;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Headings --- */
.gi-richtext h2 {
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 12px;
}

.gi-richtext h3 {
  font-size: 20px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 10px;
}

.gi-richtext h4 {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 8px;
}

.gi-richtext h5 {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 6px;
}

.gi-richtext h6 {
  font-size: 14px;
  font-weight: 600;
  color: #525252;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* First child: no top margin */
.gi-richtext> :first-child {
  margin-top: 0;
}

/* Last child: no bottom margin */
.gi-richtext> :last-child {
  margin-bottom: 0;
}

/* --- Paragraphs --- */
.gi-richtext p {
  margin-bottom: 20px;
}

/* --- Links --- */
.gi-richtext a {
  color: #5a8219;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.gi-richtext a:hover {
  opacity: 0.7;
}

/* --- Bold & Italic --- */
.gi-richtext strong,
.gi-richtext b {
  font-weight: 600;
  color: #262626;
}

.gi-richtext em,
.gi-richtext i {
  font-style: italic;
}

/* --- Blockquote --- */
.gi-richtext blockquote {
  border-left: 3px solid #5a8219;
  padding: 12px 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 17px;
  color: #525252;
  line-height: 1.7;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}

.gi-richtext blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  font-style: normal;
}

/* --- Lists --- */
.gi-richtext ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.gi-richtext ol {
  list-style-type: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
}

.gi-richtext li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.gi-richtext li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
.gi-richtext ul ul,
.gi-richtext ol ol,
.gi-richtext ul ol,
.gi-richtext ol ul {
  margin-top: 6px;
  margin-bottom: 0;
}

/* --- Images --- */
.gi-richtext img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

/* --- Figure & Figcaption --- */
.gi-richtext figure {
  margin: 20px 0;
}

.gi-richtext figure img {
  margin: 0 0 10px 0;
}

.gi-richtext figcaption {
  font-size: 13px;
  color: #999999;
  line-height: 1.5;
  text-align: center;
}

/* --- Horizontal Rule --- */
.gi-richtext hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 24px 0;
}

/* --- Table --- */
.gi-richtext table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gi-richtext thead th {
  background-color: #fafafa;
  font-weight: 600;
  color: #262626;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e5e5e5;
}

.gi-richtext tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  color: #525252;
  vertical-align: top;
}

.gi-richtext tbody tr:hover {
  background-color: #fafafa;
}

/* --- Code --- */
.gi-richtext code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #262626;
}

.gi-richtext pre {
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
  overflow-x: auto;
}

.gi-richtext pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Video / Iframe embeds --- */
.gi-richtext iframe,
.gi-richtext video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .gi-richtext {
    font-size: 15px;
  }

  .gi-richtext h2 {
    font-size: 20px;
  }

  .gi-richtext h3 {
    font-size: 18px;
  }

  .gi-richtext blockquote {
    font-size: 15px;
    padding: 10px 16px;
  }
}

/* --- GI-INPUT --- */
/* GLOBAL FORM INPUT SYSTEM — .gi-input */

/* Base state */
.gi-input {
  width: 100%;
  padding: 12px 16px !important;
  background-color: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #262626 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gi-input::placeholder {
  color: #999999 !important;
}

/* Focus state — brand green glow */
.gi-input:focus {
  border-color: #5a8219 !important;
  box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08) !important;
}

/* Error state — red border */
.gi-input.gi-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06) !important;
}

.gi-input.gi-field-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Valid state — green border (after correcting an error) */
.gi-input.gi-field-valid {
  border-color: #5a8219 !important;
}

.gi-input.gi-field-valid:focus {
  border-color: #5a8219 !important;
  box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08) !important;
}

/* Error message text */
.gi-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.4;
}

/* Error message in dark footer */
.gi-footer .gi-error-msg {
  color: #f87171;
}

/* Error border in dark footer (non .gi-input fields) */
.gi-footer .gi-field-error {
  border-color: #f87171 !important;
}

/* Select dropdown arrow override for .gi-input */
select.gi-input {
  appearance: none !important;
  cursor: pointer;
  padding-right: 40px !important;
}

/* Textarea override for .gi-input */
textarea.gi-input {
  resize: none;
}

/* --- GL-BODY-PRICE-STOCK --- */
/* GL-Body Global Price — non-card contexts (sidebar, promo, PDP blocks, etc.) */
.gl-body .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px;
}

/* Default price amount: 16px semibold dark */
.gl-body .price .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #262626 !important;
  letter-spacing: -0.02em;
}

/* Sale: <del> = old price — smaller, gray, strikethrough — display SECOND */
.gl-body .price del {
  opacity: 1 !important;
  order: 2 !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}

.gl-body .price del .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #999999 !important;
}

/* Sale: <ins> = new/current price — display FIRST */
.gl-body .price ins {
  text-decoration: none !important;
  order: 1 !important;
}

/* Reset Storefront del+ins margin */
.gl-body .price del+ins {
  margin-left: 0 !important;
}

/* Stock Status — PDP / global WC <p class="stock">; list loop cards → v-components.css (.gi-product-inner .stock) */
.stock {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 500;
}

/* In Stock */
.stock.in-stock {
  color: #5a8219;
}

/* Low Stock (urgent) */
.stock.in-stock.low-stock {
  color: #ea580c;
}

/* Out of Stock */
.stock.out-of-stock {
  color: #dc2626;
}

/* Available on Backorder */
.stock.available-on-backorder {
  color: #2563eb;
}


/* --- GL-TOAST-ACCORDION --- */
/* GLOBAL TOAST NOTIFICATION — .gl-toast */

.gl-toast {
  position: fixed;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 360px;
  padding: 14px 20px;
  background: #ffffff;
  border-radius: 8px;
  border-bottom: 3px solid #5a8219;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: gl-toast-slide-in 0.3s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Icon */
.gl-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Fade-out state */
.gl-toast--out {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

/* Slide-in animation */
@keyframes gl-toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile */
@media (max-width: 575px) {
  .gl-toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 20px;
    max-width: none;
    transform: none;
  }

  @keyframes gl-toast-slide-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .gl-toast--out {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Details / Summary Accordion — Hide native marker */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

/* Accordion arrow — vertical centering & rotation */
.gi-accordion summary>span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gi-accordion details[open]>summary>span:last-child {
  transform: rotate(180deg);
}

/* Policy accordion (no .gi-accordion wrapper) */
details.group>summary>span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

details.group[open]>summary>span:last-child {
  transform: rotate(180deg);
}

/* --- GI-ACCORDION-LINE --- */
/* FAQ Accordion — Two Styles */
.gi-accordion--line .gi-faq-item {
  border-left: 3px solid #e5e5e5;
  border-radius: 0;
  padding-left: 0;
  transition: all 0.25s ease;
}

.gi-accordion--line .gi-faq-item[open] {
  border-left-color: #5a8219;
  background: #fafcf6;
  border-radius: 0 8px 8px 0;
}

/* --- GL-SHOP-LOADING --- */
/* Shop Loading Overlay — compact centered pill during sort/filter page transitions */
.gl-shop-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gl-shop-loading.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.gl-shop-loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e5e5e5;
  border-top-color: #5a8219;
  border-radius: 50%;
  animation: glShopSpin 0.7s linear infinite;
}

@keyframes glShopSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   SITE MODAL — unified shell; __layout = free HTML content slot
   ========================================================================== */

.gl-site-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
    font-family: inherit;
}

.gl-site-modal.is-open {
    display: block;
}

.gl-site-modal__backdrop {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

/* mask: dark (default) */
.gl-site-modal--mask-dark .gl-site-modal__backdrop {
    background: rgba(10, 10, 10, 0.52);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* mask: light */
.gl-site-modal--mask-light .gl-site-modal__backdrop {
    background: rgba(10, 10, 10, 0.18);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* mask: none — no dimming; backdrop non-interactive */
.gl-site-modal--mask-none .gl-site-modal__backdrop {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.gl-site-modal--mask-none .gl-site-modal__dialog {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gl-site-modal.is-visible .gl-site-modal__backdrop {
    opacity: 1;
}

.gl-site-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: var(--gl-radius-surface);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.gl-site-modal.is-visible .gl-site-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gl-site-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #525252;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.gl-site-modal__close:hover {
    background: #f5f5f5;
    color: #262626;
}

.gl-site-modal__close i {
    font-size: 16px;
}

.gl-site-modal__layout {
    /* Free content slot — no imposed layout; put any HTML here */
    min-width: 0;
}

/* Edge-to-edge image (or full-bleed creative) inside dialog */
.gl-site-modal--flush .gl-site-modal__dialog {
    overflow: hidden;
}

.gl-site-modal--flush .gl-site-modal__layout {
    line-height: 0;
}

.gl-site-modal__link-block {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gl-site-modal__img-fluid {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* ── Optional demo preset: split (image + copy) ── */
.gl-site-modal-split {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .gl-site-modal-split {
        grid-template-columns: 42% 1fr;
        min-height: 360px;
        align-items: stretch;
    }
}

.gl-site-modal-split__media {
    background: #f5f5f5;
    overflow: hidden;
    min-width: 0;
}

.gl-site-modal-split__image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .gl-site-modal-split__image {
        height: 100%;
        min-height: 360px;
    }
}

.gl-site-modal-split__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px 24px;
    min-width: 0;
}

@media (min-width: 768px) {
    .gl-site-modal-split__body {
        padding: 36px 32px 32px;
    }
}

.gl-site-modal-split__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a8219;
}

.gl-site-modal-split__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #262626;
}

@media (min-width: 768px) {
    .gl-site-modal-split__title {
        font-size: 28px;
    }
}

.gl-site-modal-split__desc {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #525252;
}

.gl-site-modal-split__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

/* Mode A — primary button + text dismiss (mutually exclusive with form) */
.gl-site-modal-split__actions--cta {
    flex-direction: row;
}

/* Mode B — email field + submit only (close via X / backdrop) */
.gl-site-modal-split__actions--form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Email / lead row: input + primary button */
.gl-site-modal__form {
    display: block;
    width: 100%;
}

.gl-site-modal__field-block {
    width: 100%;
}

.gl-site-modal__field-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 0;
    border: 1px solid #d4d4d4;
    border-radius: var(--gl-radius-field);
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gl-site-modal__field-row:focus-within {
    border-color: #5a8219;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08);
}

.gl-site-modal__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0 14px;
    min-height: 44px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #262626;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.gl-site-modal__input::placeholder {
    color: #999999;
}

/* Error sits under the bordered row, not inside it */
.gl-site-modal__field-block > .gi-error-msg {
    margin: 8px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #dc2626;
    background: transparent;
    border: none;
}

/* Beat Tailwind CDN button preflight */
button.gl-site-modal__btn--primary,
.gl-site-modal__btn--primary {
    flex-shrink: 0;
    border-radius: 4px;
    min-height: 44px;
    padding: 0 18px;
    background-color: #5a8219 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

.gl-site-modal__field-row .gl-site-modal__btn--primary {
    border-radius: 0;
}

button.gl-site-modal__btn--primary:hover,
.gl-site-modal__btn--primary:hover {
    opacity: 0.85;
    background-color: #5a8219 !important;
    color: #ffffff !important;
}

/* Primary = core CTA button; text = dismiss / secondary action */
.gl-site-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gl-site-modal__btn--text {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: #737373 !important;
    font-size: 14px;
    font-weight: 500;
}

.gl-site-modal__btn--text:hover {
    color: #262626 !important;
    background: transparent !important;
    opacity: 1;
}

@media (max-width: 479px) {
    .gl-site-modal__field-row {
        flex-direction: column;
        border: none;
        background: transparent;
        box-shadow: none;
        gap: 10px;
        overflow: visible;
    }

    .gl-site-modal__field-row:focus-within {
        box-shadow: none;
    }

    .gl-site-modal__input {
        border: 1px solid #d4d4d4;
        border-radius: var(--gl-radius-field);
        box-shadow: none;
    }

    .gl-site-modal__input:focus {
        border-color: #5a8219;
        box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08);
    }

    button.gl-site-modal__btn--primary,
    .gl-site-modal__field-row .gl-site-modal__btn--primary {
        width: 100%;
        border-radius: var(--gl-radius-field);
    }

    .gl-site-modal__field-block > .gi-error-msg {
        margin-top: 6px;
    }
}

body.gl-site-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gl-site-modal__dialog {
        width: calc(100% - 32px);
        max-width: none;
        border-radius: var(--gl-radius-surface);
        padding: 24px 20px 20px;
    }

    .gl-site-modal-split__title {
        font-size: 22px;
    }

    .gl-site-modal-split__image {
        height: 200px;
    }
}
