/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Child Theme for Astra
 Author:       Brainstorm Force
 Author URI:   https://wpastra.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ==========================
   ELVORA Product — Premium UI (Fixed SVG + Header OK)
   ========================== */

/* Fonts (Mocking Astra/Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');

/* COUPON BAR */
.elvora-coupon-bar {
  background: linear-gradient(90deg, #1a1a1a 0%, #3a3a3a 100%);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
  position: relative;
}

.elvora-coupon-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-weight: 700;
  margin-left: 5px;
}

.elvora-coupon-text-mobile {
  display: none;
}

@media(max-width: 600px) {
  .elvora-coupon-bar {
    flex-direction: row;
    /* Force single line */
    padding: 6px 4px;
    font-size: 11px;
    /* Smaller text */
    gap: 6px;
    white-space: nowrap;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-hide {
    display: none !important;
  }

  .elvora-coupon-text-mobile {
    display: inline;
  }
}


.elvora-product {
  --green: #1F4D2B;
  --text: #1f1f1f;
  --muted: #6b7280;
  --border: #e7e9e7;
  --soft: #f7f8f7;
  --shadow: 0 14px 34px rgba(0, 0, 0, .10);
  --transition: all .3s cubic-bezier(.25, .8, .25, 1);
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
}

.elvora-container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Full width fix for Astra container (product only) */
.single-product .ast-container,
.single-product .ast-row {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

/* Breadcrumb */
.elvora-bc {
  padding: 14px 0 0;
}

.elvora-bc .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.elvora-bc a {
  color: var(--green);
  text-decoration: none;
}

/* HERO */
.elvora-hero {
  padding: 34px 0 50px;
}

.elvora-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: start;
}

@media(max-width:960px) {
  .elvora-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================
   PREMIUM GALLERY DESIGN
   ================================ */

/* Outer wrapper - creates the outer card with arrows space */
.elvora-media {
  position: relative;
  padding: 0 50px;
  /* Space for arrows on sides */
}

@media (max-width: 600px) {
  .elvora-media {
    padding: 0 40px;
  }
}

/* The WooCommerce gallery container */
.elvora-media .woocommerce-product-gallery {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: visible !important;
}

/* Inner image area */
.elvora-media .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  background: #f8f9fa;
  border-radius: 18px;
  overflow: hidden;
}

.elvora-media .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hide thumbnails */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
  display: none !important;
}

/* Arrow Container - Position outside the card */
.woocommerce-product-gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-direction-nav li {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

/* Left arrow - outside the card on left */
.elvora-media .woocommerce-product-gallery .flex-direction-nav li.flex-nav-prev {
  left: -50px;
}

/* Right arrow - outside the card on right */
.elvora-media .woocommerce-product-gallery .flex-direction-nav li.flex-nav-next {
  right: -50px;
}

@media (max-width: 600px) {
  .elvora-media .woocommerce-product-gallery .flex-direction-nav li.flex-nav-prev {
    left: -40px;
  }

  .elvora-media .woocommerce-product-gallery .flex-direction-nav li.flex-nav-next {
    right: -40px;
  }
}

/* Arrow Buttons */
.woocommerce-product-gallery .flex-direction-nav a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--green, #1F4D2B);
  border-radius: 50%;
  text-decoration: none;
  font-size: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  opacity: 1;
}

.woocommerce-product-gallery .flex-direction-nav a:hover {
  transform: scale(1.08);
  background: var(--green, #1F4D2B);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 77, 43, 0.25);
}

/* Arrow Icons */
.woocommerce-product-gallery .flex-direction-nav a::before {
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
  content: '‹';
  font-size: 28px;
  margin-right: 2px;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next::before {
  content: '›';
  font-size: 28px;
  margin-left: 2px;
}



/* Summary */
.elvora-summary {
  padding-top: 6px;
}

.elvora-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.elvora-cat {
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
}

.elvora-sku {
  font-size: 12px;
  color: var(--muted);
}

.elvora-title {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  font-weight: 900;
}

@media(max-width:600px) {
  .elvora-title {
    font-size: 30px;
  }
}

.elvora-rating {
  margin: 6px 0 16px;
  font-size: 14px;
}

.elvora-short {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 92%;
}

.elvora-price .price {
  font-size: 32px;
  font-weight: 950;
  color: var(--text);
}

.elvora-cod-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
}

/* Badges */
.elvora-badges {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.elvora-badge {
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

/* Ritual */
.elvora-rituel {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .04);
}

.elvora-rituel-h {
  font-weight: 950;
  margin-bottom: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.elvora-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.elvora-step {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 10px;
  background: var(--soft);
  text-align: center;
  transition: var(--transition);
}

.elvora-step:hover {
  transform: translateY(-3px);
}

.elvora-step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 950;
  margin-bottom: 10px;
  font-size: 14px;
}

.elvora-step b {
  display: block;
  font-size: 13px;
}

.elvora-step small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

/* Cart */
.elvora-cart {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .04);
}

.elvora-cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Quantity wrapper */
.elvora-qty-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 50px;
  width: 120px;
  background: #fff;
}

.elvora-qty-btn {
  width: 36px;
  height: 100%;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.elvora-qty-btn:hover {
  background: var(--soft);
}

.elvora-cart .quantity {
  margin: 0;
}

.elvora-cart .quantity input {
  height: 50px;
  width: 48px;
  border: none;
  border-radius: 0;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  -moz-appearance: textfield;
}

.elvora-cart .quantity input::-webkit-outer-spin-button,
.elvora-cart .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.elvora-cart button.single_add_to_cart_button {
  height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  border: 0;
  background: var(--green) !important;
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 77, 43, .25);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  flex: 1;
}

.elvora-cart button.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 77, 43, .35);
}

.elvora-buy-now {
  height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  border: 2px solid var(--green) !important;
  background: #fff !important;
  color: var(--green) !important;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}

.elvora-buy-now:hover {
  background: var(--green) !important;
  color: #fff !important;
}

.elvora-cart-micro {
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.elvora-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  width: 100%;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, .06);
  font-weight: 900;
  text-decoration: none;
  margin-top: 14px;
  transition: var(--transition);
}

.elvora-wa:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-2px);
}

.elvora-wa-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Benefits card */
.elvora-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .04);
}

.elvora-h2 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 950;
}

.elvora-list {
  margin: 0;
  padding-left: 18px;
}

.elvora-list li {
  margin: 8px 0;
}

/* Meta Minimal (Category & Brand only) */
.elvora-meta-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--soft);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.elvora-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elvora-meta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.elvora-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.elvora-meta-value a {
  color: var(--green);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.elvora-meta-value a:hover {
  opacity: 0.75;
}

.elvora-brand-name {
  font-weight: 900;
  color: var(--green);
}

/* TRUST BAR (Fix SVG huge issue) */
.elvora-trust {
  padding: 26px 0;
  background: #fafafa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.elvora-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

@media(max-width: 600px) {
  .elvora-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.elvora-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.elvora-trust-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: block !important;
  color: var(--green);
  flex: 0 0 auto;
}

.elvora-trust-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

/* Description */
.elvora-desc-section {
  padding: 58px 0 36px;
  background: #fff;
  text-align: center;
}

.elvora-desc-content {
  max-width: 820px;
  margin: 0 auto;
}

.elvora-h2-large {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 950;
  letter-spacing: -.03em;
  color: var(--green);
}

.elvora-desc-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 16px;
  text-align: left;
}

@media(max-width:600px) {
  .elvora-h2-large {
    font-size: 26px;
  }

  .elvora-desc-content p {
    font-size: 16px;
  }
}

/* Rich text */
.elvora-richtext ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  text-align: left;
  max-width: 640px;
  margin-inline: auto;
}

.elvora-richtext li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

.elvora-richtext li::before {
  content: '•';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.elvora-richtext h3 {
  font-size: 22px;
  font-weight: 950;
  color: var(--green);
  margin-top: 30px;
  margin-bottom: 14px;
  text-align: left;
}

.elvora-richtext strong {
  color: var(--green);
}

/* Tabs */
.elvora-tabs-section {
  padding: 36px 0 16px;
  background: var(--soft);
  border-top: 1px solid var(--border);
}

.elvora-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.elvora-tab-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
  cursor: pointer;
  border-radius: 14px;
}

.elvora-tab-btn.active {
  color: var(--green);
  border-color: rgba(31, 77, 43, .35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.elvora-tabs-content {
  background: #fff;
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 240px;
}

.elvora-tab-pane {
  display: none;
}

.elvora-tab-pane.active {
  display: block;
}

.elvora-cols-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: center;
}

@media(max-width:960px) {
  .elvora-cols-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.elvora-tab-bg-icon {
  display: flex;
  justify-content: center;
  color: var(--green);
  opacity: .10;
}

.elvora-icon-large {
  width: 120px;
  height: 120px;
}

@media(max-width:960px) {
  .elvora-tab-bg-icon {
    display: none;
  }
}

.elvora-faq-grid {
  display: grid;
  gap: 18px;
}

.elvora-faq-grid h4 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.elvora-muted {
  color: var(--muted);
}

/* Related */
.elvora-related {
  padding: 36px 0 60px;
  background: #fff;
}

.elvora-section-head {
  margin-bottom: 12px;
}

.elvora-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Sticky bar (mobile clean) */
.elvora-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .08);
  padding: 10px 0;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform .25s ease;
  border-top: 1px solid #efefef;
}

/* ==========================
   NYRALE DISCOVERY RAIL
   ========================== */
.nyrale-related-section {
  padding: 40px 0 80px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.nyrale-related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-right: 20px;
  /* space for scroll */
}

.nyrale-related-title {
  font-size: 22px;
  font-weight: 950;
  color: var(--text);
  margin: 0;
}

.nyrale-related-link {
  font-size: 14px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

/* Scroll Container */
.nyrale-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  /* Space for shadow */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nyrale-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Card */
.nyrale-card {
  flex: 0 0 280px;
  /* Fixed width for consistency */
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nyrale-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.nyrale-card-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  /* Square-ish aspect */
  background: #f9f9f9;
  overflow: hidden;
}

.nyrale-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nyrale-card:hover .nyrale-card-img {
  transform: scale(1.05);
}

/* Quick Add Button */
.nyrale-quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}

.nyrale-quick-add:hover {
  background: var(--green);
  color: #fff;
  transform: scale(1.1);
}

.nyrale-quick-add svg {
  width: 22px;
  height: 22px;
}

/* Info */
.nyrale-card-info {
  padding: 16px;
}

.nyrale-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.nyrale-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nyrale-card-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--green);
}

/* View More Card (Last item) */
.nyrale-card-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  text-decoration: none;
  color: var(--green);
  gap: 12px;
}

.nyrale-more-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media(min-width: 960px) {
  .nyrale-card {
    flex: 1;
    /* Distribute evenly on desktop */
    min-width: 0;
    /* Fix flex overflow */
  }

  .nyrale-scroll-container {
    overflow: visible;
    /* Grid behavior on desktop if preferred, or keep scroll */
    /* Let's keep scroll for "Netflix" style or Grid? 
       Plan said "4-col grid". Let's enforce grid.
    */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nyrale-card-more {
    /* Hide card-more in grid, show button below instead? 
       Or make it the 4th item. 
       Let's stick to simple grid for now.
    */
  }
}

.elvora-sticky.is-visible {
  transform: translateY(0);
}

.elvora-sticky-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Product info section */
.elvora-sticky-product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.elvora-sticky-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.elvora-sticky-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elvora-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.elvora-sticky-title {
  font-weight: 800;
  font-size: 14px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.elvora-sticky-price {
  color: var(--green);
  font-weight: 950;
  font-size: 15px;
}

/* Actions section */
.elvora-sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quantity Selector */
.elvora-sticky-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 44px;
}

.elvora-sticky-qty-btn {
  width: 36px;
  height: 100%;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.elvora-sticky-qty-btn:hover {
  background: var(--soft);
}

.elvora-sticky-qty-input {
  width: 40px;
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  -moz-appearance: textfield;
}

.elvora-sticky-qty-input::-webkit-outer-spin-button,
.elvora-sticky-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to Cart Button */
.elvora-sticky-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 77, 43, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.elvora-sticky-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 77, 43, 0.35);
}

.elvora-sticky-add svg {
  flex-shrink: 0;
}

/* Buttons Container */
.elvora-sticky-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Commander maintenant Button */
.elvora-sticky-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.elvora-sticky-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  background: #222;
}

/* Responsive */
@media(max-width:960px) {
  .elvora-trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media(max-width:600px) {
  .elvora-trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Sticky bar mobile - hide product info, vertical layout */
  .elvora-sticky-product {
    display: none;
  }

  .elvora-sticky-inner {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .elvora-sticky-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .elvora-sticky-qty {
    width: 100%;
    justify-content: center;
    height: 42px;
  }

  .elvora-sticky-qty-btn {
    width: 44px;
    font-size: 18px;
  }

  .elvora-sticky-qty-input {
    flex: 1;
    max-width: 80px;
    font-size: 15px;
  }

  .elvora-sticky-btns {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .elvora-sticky-add,
  .elvora-sticky-checkout {
    width: 100%;
    height: 46px;
    font-size: 14px;
  }

  .elvora-sticky-add svg {
    width: 16px;
    height: 16px;
  }
}

/* ✅ Nuclear fix: prevent any global SVG rule from exploding icons */
/* EXCEPT for header icons which need their own sizes */
.single-product .elvora-product svg:not(.elvora-icon-cart):not(.elvora-burger-icon):not(.elvora-close-icon) {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* ✅ Lock header cart icon size */
.elvora-icon-cart {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* ✅ Trust icons are HARD locked */
.single-product .elvora-product .elvora-trust .elvora-trust-item svg,
.single-product .elvora-product .elvora-trust svg.elvora-trust-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  flex: 0 0 26px !important;
  display: block !important;
}

/* ✅ Avoid giant stroke when scaling happens */
.single-product .elvora-product .elvora-trust svg * {
  vector-effect: non-scaling-stroke;
}

/* ✅ Trust bar layout stays premium on mobile */
@media (max-width: 600px) {
  .elvora-trust {
    padding: 16px 0 !important;
  }

  .elvora-trust-grid {
    gap: 10px !important;
  }

  .elvora-trust-text {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }
}

/* Fix sticky bar mobile responsiveness (Consolidated Final Fix) */
@media (max-width: 600px) {

  /* 1. Ensure container is visible and on top */
  .elvora-sticky {
    z-index: 2147483647 !important;
  }

  /* 2. Hide desktop elements */
  .elvora-sticky-left,
  .elvora-sticky-wa {
    display: none !important;
  }

  /* 3. Stack Setup */
  .elvora-sticky-inner {
    align-items: stretch !important;
    /* Fill width */
    flex-direction: column !important;
    justify-content: flex-end !important;
    height: auto !important;
  }

  /* 4. Vertical Buttons */
  .elvora-sticky-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .elvora-sticky-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 0 !important;
    font-size: 14px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
}

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */
.nyrale-footer {
  background-color: #1a3c34;
  /* Dark Green - Hardcoded to ensure visibility if var missing */
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 60px;
  font-family: 'Inter', sans-serif;
}

.nyrale-footer a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nyrale-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nyrale-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
  text-align: left;
  /* Ensure left align */
}

.nyrale-footer-brand p {
  margin-top: 16px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 300px;
  font-size: 14px;
}

.nyrale-footer-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nyrale-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nyrale-footer-links li {
  margin-bottom: 12px;
  font-size: 14px;
}

.nyrale-footer-newsletter p {
  opacity: 0.8;
  margin-bottom: 16px;
  font-size: 14px;
}

.nyrale-newsletter-form {
  display: flex;
  gap: 8px;
}

.nyrale-newsletter-input {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.nyrale-newsletter-btn {
  background: #fff;
  color: #1a3c34;
  border: none;
  padding: 0 20px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.nyrale-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
}

/* Footer Responsive */
@media (max-width: 900px) {
  .nyrale-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nyrale-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nyrale-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nyrale-footer {
    padding-bottom: 100px;
  }
}

/* =========================================
   FOOTER NEWSLETTER (Forminator Override)
   ========================================= */
.nyrale-footer-newsletter .forminator-ui {
  margin-top: 10px;
}

/* Hide default "design" padding if any */
.nyrale-footer-newsletter .forminator-ui.forminator-design--default {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Rows/Columns */
.nyrale-footer-newsletter .forminator-row {
  margin-bottom: 15px !important;
}

.nyrale-footer-newsletter .forminator-col {
  padding: 0 !important;
}

/* Label styling - Make it subtle and white */
.nyrale-footer-newsletter .forminator-label {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  display: block;
}

/* Input Fields */
.nyrale-footer-newsletter .forminator-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  height: 46px !important;
  transition: all 0.3s ease !important;
}

.nyrale-footer-newsletter .forminator-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Placeholder */
.nyrale-footer-newsletter .forminator-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Submit Button */
.nyrale-footer-newsletter .forminator-button-submit {
  background: #fff !important;
  color: #1a3c34 !important;
  /* Dark Green Text */
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  border-radius: 8px !important;
  width: 100% !important;
  height: 46px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.nyrale-footer-newsletter .forminator-button-submit:hover {
  background: #f0f0f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

.nyrale-footer-newsletter .forminator-button-submit:active {
  transform: translateY(0) !important;
}

/* Error/Success Messages */
.nyrale-footer-newsletter .forminator-error-message {
  color: #ff8e8e !important;
  font-size: 12px !important;
  margin-top: 5px !important;
}

.nyrale-footer-newsletter .forminator-response-message.forminator-success {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-top: 15px !important;
}

/* Custom Header moved to assets/header-premium.css */

/* =========================================
   QUANTITY BUTTONS CSS
   ========================================= */
.quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid #e2e6e3;
  border-radius: 99px;
  /* Pill shape for quantity */
  background: #fff;
  overflow: hidden;
  margin-right: 15px;
  /* Spacing from Add to Cart */
  vertical-align: middle;
  height: 48px;
  /* Match button height */
}

.quantity .qty {
  border: none !important;
  background: transparent !important;
  width: 40px !important;
  text-align: center !important;
  padding: 0 !important;
  height: 100% !important;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  -moz-appearance: textfield;
}

.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.elvora-qty-btn {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.elvora-qty-btn:hover {
  background: #f0f0f0;
  color: #111;
}

/* Ensure form layout handles the inline-flex properly */
form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* =========================================
   ADD TO CART & CHECKOUT BUTTONS (Green Filled)
   ========================================= */
/* Standard Add to Cart */
.single_add_to_cart_button {
  background: #1F4D2B !important;
  /* Green Primary */
  color: #fff !important;
  border: none !important;
  border-radius: 99px !important;
  /* Pill shape */
  padding: 0 40px !important;
  height: 48px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-transform: none !important;
  /* No UPPERCASE forced */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  flex-grow: 1;
  /* Expand to fill space */
  max-width: 400px;
  /* But not too wide */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.single_add_to_cart_button:hover {
  background: #163a20 !important;
  /* Darker green */
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 77, 43, 0.25) !important;
}

/* Buy Now (Secondary) */
.elvora-buy-now {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  color: #1F4D2B !important;
  border: 2px solid #1F4D2B !important;
  border-radius: 99px !important;
  height: 48px !important;
  font-weight: 700 !important;
  margin-top: 10px;
  margin-left: 0 !important;
}

.elvora-buy-now:hover {
  background: #f4f8f5 !important;
  color: #1F4D2B !important;
}

/* WhatsApp Button styling override to match pill shape */
.elvora-wa {
  border-radius: 99px !important;
}

/* =========================
   TOAST NOTIFICATION SYSTEM
   ========================= */
#elvora-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 40px);
}

@media (max-width: 600px) {
  #elvora-toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}

.elvora-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 14px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--green, #1F4D2B);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: auto;
}

.elvora-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.elvora-toast--hiding {
  opacity: 0;
  transform: translateX(100%);
}

/* Toast Types */
.elvora-toast--success {
  border-left-color: #1F4D2B;
}

.elvora-toast--success .elvora-toast__icon {
  color: #1F4D2B;
}

.elvora-toast--error {
  border-left-color: #dc3545;
}

.elvora-toast--error .elvora-toast__icon {
  color: #dc3545;
}

.elvora-toast--info {
  border-left-color: #0d6efd;
}

.elvora-toast--info .elvora-toast__icon {
  color: #0d6efd;
}

.elvora-toast__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elvora-toast__icon svg {
  width: 20px;
  height: 20px;
}

.elvora-toast__msg {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f1f1f);
  line-height: 1.4;
}

.elvora-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.elvora-toast__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text, #1f1f1f);
}

/* Hide default WooCommerce messages completely */
.woocommerce-message,
.woocommerce-error,
/* =========================================
   10) PREMIUM CHECKOUT STYLES
   ========================================= */
.woocommerce-checkout .entry-header {
  display: none !important;
  /* Hide default title */
}

/* Layout - 2 Columns Desktop */
@media (min-width: 1000px) {
  .woocommerce-checkout #customer_details {
    width: 55% !important;
    float: left !important;
    margin-right: 5% !important;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 40% !important;
    float: right !important;
    clear: right !important;
  }

  .woocommerce-checkout #order_review {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e7e9e7;
  }
}

/* Inputs */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout textarea {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e6e3 !important;
  background: #fff !important;
  font-size: 15px !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus {
  border-color: #1a3c34 !important;
  /* Brand Dark Green */
  outline: none !important;
}

.woocommerce-checkout label {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #4a4a4a !important;
  margin-bottom: 6px !important;
}

/* Order Summary */
.woocommerce-checkout table.shop_table {
  border: none !important;
  margin-bottom: 20px !important;
}

.woocommerce-checkout table.shop_table th {
  font-weight: 700 !important;
  color: #1a3c34 !important;
  border-bottom: 2px solid #e7e9e7 !important;
}

.woocommerce-checkout table.shop_table td {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 15px 0 !important;
}

/* Free Shipping Highlight */
.woocommerce-checkout .shipping th,
.woocommerce-checkout .shipping td {
  color: #1F4D2B !important;
  font-weight: 700 !important;
}

/* Payment Methods */
.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: none !important;
  padding: 0 !important;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
  background: #1a3c34 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 18px 30px !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(26, 60, 52, 0.2) !important;
}

.woocommerce-checkout #place_order:hover {
  background: #123028 !important;
  /* Darker */
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 60, 52, 0.3) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .woocommerce-checkout form.checkout {
    display: flex;
    flex-direction: column;
  }

  /* Summary at bottom */
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    order: 2;
    margin-top: 30px;
  }

  .woocommerce-checkout #customer_details {
    order: 1;
  }

  /* Sticky Button on Mobile (Optional - can be jarring if form not filled) */
  /* Keeping it static for simplicity as requested "simple" */
}