 /* ============================================================
     gowrishop site-wide CSS
     ============================================================ */

  /* ----- Page-specific overrides ----- */
  .page-id-104 #norder,
  .page-id-104 label[for="norder"] {
      visibility: hidden;
  }

  /* ----- Hide product short description in Cart, Checkout, Order Summary ----- */
  .wc-block-cart-items .wc-block-components-product-details,
  .wc-block-cart-items .wc-block-components-product-metadata,
  .wc-block-checkout-cart-items .wc-block-components-product-details,
  .wc-block-checkout-cart-items .wc-block-components-product-metadata,
  .wc-block-cart-items__row .wc-block-components-product-metadata__description,
  .wp-block-woocommerce-cart-line-items-block .wc-block-cart-item__short-description,
  .wc-block-components-order-summary-item__description em,
  .wc-block-components-order-summary-item__description small,
  .wc-block-components-order-summary-item .wc-block-components-product-metadata__description {
      display: none !important;
  }

  /* ----- Hide MailPoet marketing opt-in (residual block after plugin removal) ----- */
  .wp-block-mailpoet-marketing-optin-block,
  #checkbox-control-1,
  .wp-block-mailpoet-marketing-optin-block * {
      display: none !important;
  }

  /* ----- Add to Cart (blue) vs Buy Now (red) color hierarchy ----- */
  .single_add_to_cart_button:not(.buy-now-button),
  .add_to_cart_button:not(.buy-now-button),
  .wp-block-button .wp-element-button.add_to_cart_button,
  .wc-block-cart__submit-button {
      background-color: #1e3a8a !important;
      border-color: #1e3a8a !important;
      color: #fff !important;
  }
  .single_add_to_cart_button:not(.buy-now-button):hover,
  .add_to_cart_button:not(.buy-now-button):hover {
      background-color: #1557b0 !important;
      border-color: #1557b0 !important;
  }

  .buy-now-button {
      background-color: #c92121 !important;
      border-color: #c92121 !important;
      color: #fff !important;
  }
  .buy-now-button:hover {
      background-color: #a01818 !important;
      border-color: #a01818 !important;
      color: #fff !important;
  }

  /* ============================================================
     Product Collection Carousel — uniform card heights
     ============================================================ */

  /* Stretch all carousel slides to equal heights */
  .wp-block-woocommerce-product-collection,
  .wp-block-woocommerce-product-collection ul,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template,
  .wp-block-woocommerce-product-collection .swiper-wrapper {
      align-items: stretch !important;
  }

  /* Each card: flex column, forced minimum height */
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template > li,
  .wp-block-woocommerce-product-collection .wc-block-product,
  .wp-block-woocommerce-product-collection .swiper-slide,
  .wp-block-woocommerce-product-collection .swiper-slide > * {
      display: flex !important;
      flex-direction: column !important;
      height: 100% !important;
      min-height: 520px !important;
  }

  /* Force product image to show fully — direct attribute selector wins over inline style */
  img[data-testid="product-image"] {
      object-fit: contain !important;
      object-position: center !important;
      height: 220px !important;
      width: 100% !important;
      background: #fafafa !important;
      display: block !important;
  }

  /* Fixed 2-line title */
  .wp-block-woocommerce-product-collection .wp-block-post-title,
  .wp-block-woocommerce-product-collection .wp-block-post-title a,
  .wp-block-woocommerce-product-collection .woocommerce-loop-product__title {
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden !important;
      text-overflow: ellipsis;
      line-height: 1.3 !important;
  }
  .wp-block-woocommerce-product-collection .wp-block-post-title {
      height: 2.6em !important;
      margin: 0.3em 0 0.5em !important;
  }

  /* Reserve consistent space for rating block on every card */
  .wp-block-woocommerce-product-collection .wc-block-product-rating,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating,
  .wp-block-woocommerce-product-collection .wc-block-components-product-rating,
  .wp-block-woocommerce-product-collection .star-rating {
      min-height: 1.4em !important;
      display: block !important;
      margin: 0.3em 0 !important;
      visibility: visible !important;
  }

  /* Push Add-to-Cart and Buy-Now buttons to the bottom of each card */
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template > li > .wp-block-woocommerce-product-button,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template > li > .wp-block-buttons,
  .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-button,
  .wp-block-woocommerce-product-collection li > .wp-block-woocommerce-product-button,
  .wp-block-woocommerce-product-collection .wc-block-components-product-button {
      margin-top: auto !important;
  }

  /* Buy Now button — full width, just below Add to Cart */
  .wp-block-woocommerce-product-collection .buy-now-button {
      display: block !important;
      width: 100% !important;
      margin-top: 6px !important;
      text-align: center !important;
  }

  /* ============================================================
     Glossy shiny yellow-gold stars (carousel)
     ============================================================ */

  .wp-block-woocommerce-product-collection .wc-block-components-product-rating,
  .wp-block-woocommerce-product-collection .wc-block-components-product-rating *,
  .wp-block-woocommerce-product-collection .wc-block-product-rating,
  .wp-block-woocommerce-product-collection .wc-block-product-rating *,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating *,
  .wp-block-woocommerce-product-collection .star-rating,
  .wp-block-woocommerce-product-collection .star-rating * {
      color: #FFD700 !important;
      text-shadow:
          0 0 6px rgba(255, 215, 0, 0.55),
          0 1px 2px rgba(0, 0, 0, 0.35),
          0 -1px 0 rgba(255, 255, 200, 0.45) !important;
  }

  /* SVG stars — gold fill + glossy glow */
  .wp-block-woocommerce-product-collection .wc-block-components-product-rating svg,
  .wp-block-woocommerce-product-collection .wc-block-components-product-rating svg *,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating svg,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating svg * {
      fill: #FFD700 !important;
      filter:
          drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3))
          drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)) !important;
  }

  /* Subtle gloss on rating row container */
  .wp-block-woocommerce-product-collection .wc-block-components-product-rating__stars,
  .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-rating__stars,
  .wp-block-woocommerce-product-collection .star-rating {
      filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25));
  }
