@layer woocommerce {
  /* ==========================================================================
     AgniByte Custom Product Cards & WooCommerce Grid (v4.0.0)
     ========================================================================== */

  /* Master Grid Layout Overrides to prevent layout collapsing */
  .agni-products-grid,
  .wp-block-query.agni-products-grid-query .wp-block-post-template,
  .wc-block-grid__products,
  .wc-block-product-template,
  ul.products,
  .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Reset width and flexibility constraints on direct list items */
  .agni-products-grid > li,
  .agni-products-grid > div,
  .wp-block-query.agni-products-grid-query .wp-block-post-template > li,
  .wp-block-query.agni-products-grid-query .wp-block-post-template > div,
  ul.products > li.product,
  .wc-block-grid__product,
  .wc-block-product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Remove Quantity Selectors from Catalog grids */
  .agni-product-card .quantity,
  .wc-block-grid__product .quantity,
  ul.products .quantity {
    display: none !important;
  }

  /* Scoped Product Card Component */
  .agni-product-card {
    background: var(--agni-surface-card) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-lg) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transition: var(--agni-transition) !important;
    box-shadow: var(--agni-shadow-sm) !important;
    height: 100% !important;
    min-height: 390px !important;
  }

  .agni-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--agni-shadow-lg) !important;
    border-color: rgba(16, 158, 91, 0.4) !important;
  }

  .agni-product-thumb {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    background: var(--agni-surface-light) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .agni-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform var(--agni-duration-page) var(--agni-ease) !important;
  }

  .agni-product-card:hover .agni-product-thumb img {
    transform: scale(1.05) !important;
  }

  /* Badge styling */
  .agni-sale-badge {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.75rem !important;
    background: var(--green-600) !important;
    color: var(--agni-white) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 0.25rem 0.55rem !important;
    border-radius: var(--agni-radius-sm) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    z-index: 2 !important;
  }

  .agni-product-body {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
  }

  .agni-product-meta-cat {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--green-700) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.35rem !important;
  }

  .agni-ds-card__ratings {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin: 0 0 0.5rem 0 !important;
    font-size: 0.8rem !important;
  }
  .agni-ds-card__ratings .agni-stars {
    color: var(--green-600) !important;
    font-size: 0.85rem !important;
  }

  /* Clamped 2-Line Product Title */
  .agni-product-card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.5rem 0 !important;
    word-break: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.8em !important;
    max-height: 2.8em !important;
  }

  .agni-product-card-title a {
    color: var(--agni-text-primary) !important;
    text-decoration: none !important;
    transition: var(--agni-transition) !important;
  }

  .agni-product-card-title a:hover {
    color: var(--green-600) !important;
  }

  /* No Visited styling Mutation on titles */
  .agni-product-card-title a:visited {
    color: var(--agni-text-primary) !important;
  }

  .agni-product-price-row {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
  }

  .agni-product-price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--agni-text-primary) !important;
  }

  /* Scoped pricing overrides */
  .agni-product-price del {
    font-size: 0.9rem !important;
    color: var(--agni-text-muted) !important;
    font-weight: 500 !important;
  }

  .agni-product-price ins {
    text-decoration: none !important;
    color: var(--green-600) !important;
    font-weight: 800 !important;
  }

  /* Card Action Row */
  .agni-product-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid var(--agni-border-light) !important;
    margin-top: auto !important;
  }

  .agni-btn-details {
    background: var(--agni-surface-light) !important;
    color: var(--agni-text-primary) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-sm) !important;
    padding: 0.55rem 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    text-align: center !important;
    transition: var(--agni-transition) !important;
  }

  .agni-btn-details:hover {
    background: var(--agni-white) !important;
    border-color: var(--green-600) !important;
    color: var(--green-600) !important;
  }

  .agni-btn-details:visited {
    color: var(--agni-text-primary) !important;
  }

  .agni-btn-addtocart {
    background: var(--green-600) !important;
    color: var(--agni-white) !important;
    border: none !important;
    border-radius: var(--agni-radius-sm) !important;
    padding: 0.55rem 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    text-align: center !important;
    transition: var(--agni-transition) !important;
  }

  .agni-btn-addtocart:hover {
    background: var(--green-800) !important;
    color: var(--agni-white) !important;
  }

  .agni-btn-addtocart:visited {
    color: var(--agni-white) !important;
  }

  /* ==========================================================================
     Single Product Block Theme Styles (v4.2.0)
     ========================================================================== */
  body.single-product .agni-single-product-page {
    max-width: 1320px !important;
    width: calc(100% - var(--agni-space-12)) !important;
    margin: 0 auto !important;
    padding-top: var(--agni-space-12) !important;
    padding-bottom: var(--agni-space-20) !important;
    box-sizing: border-box !important;
  }

  body.single-product .agni-single-product-main {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    gap: var(--agni-space-12) !important;
    align-items: start !important;
    margin-bottom: 4rem !important;
  }

  body.single-product .agni-single-product-gallery,
  body.single-product .agni-single-product-summary {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.single-product .agni-single-product-summary {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  /* Gallery frame */
  body.single-product .agni-single-product-gallery {
    border-radius: var(--agni-radius-lg) !important;
    border: 1px solid var(--agni-border-light) !important;
    background: var(--agni-surface-card) !important;
    overflow: hidden !important;
    aspect-ratio: 4 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-height: 480px !important;
    position: relative !important;
  }

  body.single-product .agni-single-product-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Sale Badge Position Fix */
  .wc-block-components-product-image,
  .wp-block-woocommerce-product-image,
  .agni-product-thumb {
    position: relative !important;
  }

  .wp-block-woocommerce-product-sale-badge,
  .onsale,
  .agni-sale-badge {
    position: absolute !important;
    top: var(--agni-space-2) !important;
    right: var(--agni-space-2) !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    display: inline-block !important;
  }

  .wc-block-components-product-sale-badge,
  .onsale,
  .agni-sale-badge {
    background: var(--agni-fire-orange, var(--agni-fire-orange)) !important;
    color: var(--agni-white) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: var(--agni-space-1) 10px !important;
    border-radius: var(--agni-radius-xs) !important;
    text-transform: uppercase !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }

  /* Title, Price, & Text Typography */
  body.single-product .agni-single-product-summary h1.wp-block-post-title {
    font-size: clamp(34px, 4vw, 48px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    color: var(--agni-text-primary) !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.single-product .agni-single-product-summary .price,
  body.single-product .agni-single-product-summary .wc-block-components-product-price {
    font-size: clamp(26px, 3vw, 30px) !important;
    font-weight: 800 !important;
    color: var(--agni-fire-orange) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
  }

  body.single-product .agni-single-product-summary .price del,
  body.single-product .agni-single-product-summary .wc-block-components-product-price del {
    font-size: 1.25rem !important;
    color: var(--agni-text-muted) !important;
    font-weight: 500 !important;
  }

  body.single-product .agni-single-product-summary .price ins,
  body.single-product .agni-single-product-summary .wc-block-components-product-price ins {
    text-decoration: none !important;
    color: var(--agni-fire-orange) !important;
    font-weight: 800 !important;
  }

  body.single-product .agni-single-product-summary .wp-block-post-excerpt,
  body.single-product .agni-single-product-summary .wc-block-components-product-summary {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--agni-text-secondary) !important;
    margin: 0 !important;
  }

  /* Add to cart forms */
  body.single-product .agni-single-product-summary form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 1rem 0 !important;
    position: static !important;
  }

  body.single-product .agni-single-product-summary form.cart .quantity {
    width: 72px !important;
    display: block !important;
  }

  body.single-product .agni-single-product-summary form.cart .quantity .qty {
    width: 100% !important;
    height: 50px !important;
    padding: 0 0.5rem !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-sm) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    outline: none !important;
    background: var(--wp--preset--color--surface-light) !important;
    color: var(--agni-text-primary) !important;
  }

  body.single-product .agni-single-product-summary form.cart .single_add_to_cart_button {
    background: var(--agni-fire-orange) !important;
    color: var(--agni-white) !important;
    border: none !important;
    border-radius: var(--agni-radius-sm) !important;
    padding: 0 2rem !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--agni-transition) !important;
    position: static !important;
  }

  body.single-product .agni-single-product-summary form.cart .single_add_to_cart_button:hover {
    background: var(--agni-fire-deep) !important;
  }

  body.single-product .agni-single-product-summary form.cart .single_add_to_cart_button:focus-visible {
    outline: 3px solid var(--agni-fire-orange) !important;
  }

  /* Support Panel Styling */
  .agni-product-support-panel {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem !important;
    background: var(--agni-surface-light) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-md) !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .agni-product-support-panel h4 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--agni-text-primary) !important;
  }
  .agni-product-support-panel p {
    margin: 0 0 0.75rem 0 !important;
    color: var(--agni-text-secondary) !important;
    line-height: 1.5 !important;
  }
  .agni-product-support-panel ul {
    margin: 0 !important;
    padding-left: 1.25rem !important;
    color: var(--agni-text-secondary) !important;
    line-height: 1.5 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  /* Metadata */
  body.single-product .agni-single-product-summary .wp-block-woocommerce-product-meta,
  body.single-product .agni-single-product-summary .product_meta {
    width: 100% !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--agni-border-light) !important;
    font-size: 14px !important;
    color: var(--agni-text-muted) !important;
    line-height: 1.5 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
  }

  body.single-product .agni-single-product-summary .wp-block-woocommerce-product-meta a,
  body.single-product .agni-single-product-summary .product_meta a {
    color: var(--agni-electric-indigo) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
  }

  body.single-product .agni-single-product-summary .wp-block-woocommerce-product-meta a:visited,
  body.single-product .agni-single-product-summary .product_meta a:visited {
    color: var(--agni-electric-indigo) !important;
  }

  /* Product details area */
  body.single-product .agni-product-details {
    background: var(--agni-surface-card) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-lg) !important;
    padding: var(--agni-space-8) !important; /* Compact padding */
    margin-top: 4rem !important; /* Spacing rhythm */
    box-shadow: var(--agni-shadow-sm) !important;
    overflow: visible !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  body.single-product .agni-product-details h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    color: var(--agni-text-primary) !important;
  }

  body.single-product .agni-product-details p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--agni-text-secondary) !important;
  }

  /* Related products area */
  body.single-product .agni-related-products {
    margin-top: 5rem !important; /* Spacing rhythm (var(--agni-space-20)) */
    border-top: 1px solid var(--agni-border-light) !important;
    padding-top: 3rem !important;
    margin-bottom: 5rem !important; /* Spacing rhythm (var(--agni-space-20)) */
  }

  body.single-product .agni-related-products h2 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    margin-bottom: 2rem !important;
    color: var(--agni-text-primary) !important;
  }

  body.single-product .agni-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ==========================================================================
     Catalog Product Cards & Grid Layouts (v4.2.1)
     ========================================================================== */
  .agni-catalog-page .wp-block-woocommerce-product-collection ul,
  .agni-catalog-page .wp-block-woocommerce-product-collection .wc-block-product-layout,
  .agni-catalog-page .wp-block-woocommerce-product-collection [class*="product-layout"],
  body.tax-product_cat .wp-block-woocommerce-product-collection ul,
  body.tax-product_cat .wp-block-woocommerce-product-collection .wc-block-product-layout,
  body.tax-product_cat .wp-block-woocommerce-product-collection [class*="product-layout"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.75rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Shared Card Item Container */
  .agni-catalog-page .wc-block-product,
  .agni-catalog-page li.product,
  .agni-catalog-page .wp-block-post,
  body.tax-product_cat .wc-block-product,
  body.tax-product_cat li.product,
  body.tax-product_cat .wp-block-post,
  .agni-related-products .products li.product,
  .agni-related-products .wc-block-product,
  .single-product ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow: visible !important;
    background: var(--agni-surface-card) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-lg) !important;
    padding: 0 !important; /* Flush layout for top image */
    box-shadow: var(--agni-shadow-sm) !important;
    transition: var(--agni-transition) !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .agni-catalog-page .wc-block-product:hover,
  .agni-catalog-page li.product:hover,
  body.tax-product_cat .wc-block-product:hover,
  body.tax-product_cat li.product:hover,
  .agni-related-products .products li.product:hover,
  .agni-related-products .wc-block-product:hover,
  .single-product ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--agni-shadow-lg) !important;
    border-color: rgba(16, 158, 91, 0.4) !important;
  }

  /* Image Frame */
  .wc-block-components-product-image,
  .wp-block-woocommerce-product-image {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    border-radius: var(--agni-radius-lg) var(--agni-radius-lg) 0 0 !important;
    margin-bottom: 1.25rem !important;
    background: var(--wp--preset--color--surface-light, var(--agni-surface-dark)) !important;
    position: relative !important;
    float: none !important;
    flex: 0 0 auto !important;
  }

  .wc-block-components-product-image a,
  .wp-block-woocommerce-product-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .wc-block-components-product-image img,
  .wp-block-woocommerce-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform var(--agni-duration-page) var(--agni-ease) !important;
  }

  .agni-catalog-page .wc-block-product:hover .wc-block-components-product-image img,
  body.tax-product_cat .wc-block-product:hover .wc-block-components-product-image img,
  .agni-related-products .products li.product:hover img {
    transform: scale(1.05) !important;
  }

  /* Indent all metadata/title/price/button elements inside the card */
  .agni-catalog-page .wc-block-product h3.wp-block-post-title,
  .agni-catalog-page .wc-block-product h2.wp-block-post-title,
  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-price,
  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-button,
  body.tax-product_cat .wc-block-product h3.wp-block-post-title,
  body.tax-product_cat .wc-block-product h2.wp-block-post-title,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-price,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-button,
  .agni-related-products .wc-block-product h3.wp-block-post-title,
  .agni-related-products .wc-block-product h2.wp-block-post-title,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-price,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-button,
  .agni-related-products .products li.product .woocommerce-loop-product__title,
  .agni-related-products .products li.product .price,
  .agni-related-products .products li.product a.button,
  .single-product ul.products li.product .woocommerce-loop-product__title,
  .single-product ul.products li.product .price,
  .single-product ul.products li.product a.button {
    padding-left: var(--agni-space-5) !important;
    padding-right: var(--agni-space-5) !important;
  }

  /* Titles */
  .agni-catalog-page .wc-block-product h3.wp-block-post-title,
  .agni-catalog-page .wc-block-product h2.wp-block-post-title,
  body.tax-product_cat .wc-block-product h3.wp-block-post-title,
  body.tax-product_cat .wc-block-product h2.wp-block-post-title,
  .agni-related-products .wc-block-product h3.wp-block-post-title,
  .agni-related-products .wc-block-product h2.wp-block-post-title,
  .agni-related-products .products li.product .woocommerce-loop-product__title,
  .single-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 0.5rem 0 !important;
    color: var(--agni-text-primary) !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    box-sizing: content-box !important;
  }

  .agni-catalog-page .wc-block-product h3.wp-block-post-title a,
  .agni-catalog-page .wc-block-product h2.wp-block-post-title a,
  body.tax-product_cat .wc-block-product h3.wp-block-post-title a,
  body.tax-product_cat .wc-block-product h2.wp-block-post-title a,
  .agni-related-products .wc-block-product h3.wp-block-post-title a,
  .agni-related-products .wc-block-product h2.wp-block-post-title a,
  .agni-related-products .products li.product .woocommerce-loop-product__title a,
  .single-product ul.products li.product .woocommerce-loop-product__title a {
    color: var(--agni-text-primary) !important;
    text-decoration: none !important;
  }

  .agni-catalog-page .wc-block-product h3.wp-block-post-title a:hover,
  .agni-catalog-page .wc-block-product h2.wp-block-post-title a:hover,
  body.tax-product_cat .wc-block-product h3.wp-block-post-title a:hover,
  body.tax-product_cat .wc-block-product h2.wp-block-post-title a:hover,
  .agni-related-products .wc-block-product h3.wp-block-post-title a:hover,
  .agni-related-products .wc-block-product h2.wp-block-post-title a:hover,
  .agni-related-products .products li.product .woocommerce-loop-product__title a:hover,
  .single-product ul.products li.product .woocommerce-loop-product__title a:hover {
    color: var(--agni-fire-orange) !important;
  }

  /* Prices */
  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-price,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-price,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-price,
  .agni-related-products .products li.product .price,
  .single-product ul.products li.product .price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--agni-text-primary) !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    margin-top: auto !important; /* Push actions down */
  }

  .wc-block-components-product-price del,
  .price del {
    font-size: 0.9rem !important;
    color: var(--agni-text-muted) !important;
    font-weight: 500 !important;
  }

  .wc-block-components-product-price ins,
  .price ins {
    text-decoration: none !important;
    color: var(--agni-fire-orange) !important;
    font-weight: 800 !important;
  }

  /* Actions wrapper & button rules */
  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-button,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-button,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-button {
    margin-top: auto !important;
    padding-bottom: var(--agni-space-5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
  .agni-catalog-page .wc-block-product .wc-block-components-product-button__button,
  .agni-catalog-page .wc-block-product a.button,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
  body.tax-product_cat .wc-block-product .wc-block-components-product-button__button,
  body.tax-product_cat .wc-block-product a.button,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link,
  .agni-related-products .wc-block-product .wc-block-components-product-button__button,
  .agni-related-products .wc-block-product a.button,
  .agni-related-products .products li.product a.button,
  .single-product ul.products li.product a.button {
    background: var(--agni-fire-orange) !important;
    color: var(--agni-white) !important;
    border: none !important;
    border-radius: var(--agni-radius-sm) !important;
    padding: 0.55rem 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    text-align: center !important;
    transition: var(--agni-transition) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  .agni-catalog-page .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link:hover,
  .agni-catalog-page .wc-block-product .wc-block-components-product-button__button:hover,
  .agni-catalog-page .wc-block-product a.button:hover,
  body.tax-product_cat .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link:hover,
  body.tax-product_cat .wc-block-product .wc-block-components-product-button__button:hover,
  body.tax-product_cat .wc-block-product a.button:hover,
  .agni-related-products .wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link:hover,
  .agni-related-products .wc-block-product .wc-block-components-product-button__button:hover,
  .agni-related-products .wc-block-product a.button:hover,
  .agni-related-products .products li.product a.button:hover,
  .single-product ul.products li.product a.button:hover {
    background: var(--agni-fire-deep) !important;
    color: var(--agni-white) !important;
  }

  /* Single Product Related products margin & layout override */
  .single-product ul.products li.product a.button {
    margin-top: auto !important;
    margin-bottom: var(--agni-space-5) !important;
  }
  .single-product ul.products li.product {
    padding-bottom: 0 !important;
  }

  /* Catalog Toolbar Alignment */
  .agni-catalog-toolbar .wp-block-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  /* Sorting Control Styling */
  .woocommerce-ordering select,
  select.orderby,
  .wc-block-product-sort select {
    height: var(--agni-btn-height) !important;
    border: 1px solid var(--agni-border-light) !important;
    border-radius: var(--agni-radius-sm) !important;
    padding: 0 1.25rem !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: var(--agni-surface-card) !important;
    color: var(--agni-text-primary) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: var(--agni-transition) !important;
  }
  .woocommerce-ordering select:focus,
  select.orderby:focus,
  .wc-block-product-sort select:focus {
    border-color: var(--agni-emerald, var(--agni-accent)) !important;
    box-shadow: 0 0 0 3px rgba(16, 158, 91, 0.2) !important;
  }



@layer woocommerce {
  /* ==========================================================================
     AgniByte Market v5.9.7 — Checkout Visual Upgrades (Layered)
     ========================================================================== */

  /* Checkout Header Banner Styles */
  .agni-checkout-header-banner {
    background: #012117 !important; /* Brand dark green background */
    padding: 3.5rem 0 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin-bottom: 0 !important; /* Touch progress bar directly */
    border-bottom: 3px solid #109E5B !important; /* Emerald green accent */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .agni-checkout-banner-title {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    font-family: var(--agni-font-heading) !important;
  }

  .agni-checkout-banner-breadcrumbs {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .agni-checkout-banner-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
  }

  .agni-checkout-banner-breadcrumbs a:hover {
    color: #109E5B !important;
  }

  .agni-checkout-banner-breadcrumbs .sep {
    margin: 0 8px !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }

  .agni-checkout-banner-breadcrumbs .current {
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  /* Center and style the title block inside order summary card like GPLRock */
  .wc-block-components-order-summary .wc-block-components-title {
    font-family: var(--agni-font-heading) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: var(--agni-space-6) !important;
    border-bottom: 2px solid rgba(16, 158, 91, 0.08) !important;
    padding-bottom: var(--agni-space-4) !important;
    text-align: center !important;
  }

  /* Scalloped Receipt Ticket Effect for Checkout Sidebar */
  .wc-block-checkout__sidebar,
  .woocommerce-checkout-review-order,
  #order_review {
    background-color: #ffffff !important;
    background-image: 
      radial-gradient(circle at 50% 0%, #F4FAF7 4px, transparent 5px),
      radial-gradient(circle at 50% 100%, #F4FAF7 4px, transparent 5px) !important;
    background-repeat: repeat-x !important;
    background-position: top left, bottom left !important;
    background-size: 12px 6px !important;
    border: 1px solid rgba(16, 158, 91, 0.08) !important;
    border-radius: 12px !important;
    padding: 2.25rem 1.75rem !important;
    box-shadow: 0 10px 30px rgba(1, 33, 23, 0.04) !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin-top: 1.5rem !important;
  }
}


/* ==========================================================================
   My Account Logged-Out Login & Register Overrides (v6.0.2 - Compact Fix)
   ========================================================================== */

/* Center the page H1 title specifically when logged out */
body.woocommerce-account:not(.logged-in) h1.wp-block-post-title,
body.woocommerce-account:not(.logged-in) h1 {
  text-align: center !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  font-size: clamp(24px, 3.5vw, 30px) !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
}

/* Centered login form wrapper card layout */
.woocommerce-account .woocommerce:not(:has(#customer_login)) .woocommerce-form-login.login {
  max-width: 400px !important;
  margin: 20px auto 40px auto !important;
  background: var(--white, #ffffff) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: var(--agni-radius-lg, 12px) !important;
  box-shadow: var(--agni-shadow-md, 0 4px 20px -2px rgba(0,0,0,0.05)) !important;
  padding: 26px 28px 20px 28px !important;
  box-sizing: border-box !important;
}

/* Welcome subtitle/header added inside the card */
.woocommerce-account .woocommerce:not(:has(#customer_login)) .woocommerce-form-login.login::before {
  content: "Welcome Back" !important;
  display: block !important;
  font-family: var(--agni-font-heading) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.015em !important;
}

/* Clean and reset form layout elements (Reduced Form Gap) */
.woocommerce-account .woocommerce-form-login.login,
.woocommerce-account .woocommerce-form-register.register {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide all raw line breaks inside the form */
.woocommerce-account .woocommerce-form-login.login br,
.woocommerce-account .woocommerce-form-register.register br {
  display: none !important;
}

/* Individual Form Rows */
.woocommerce-account .woocommerce-form-login.login .form-row,
.woocommerce-account .woocommerce-form-register.register .form-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Labels */
.woocommerce-account .woocommerce-form-login.login label,
.woocommerce-account .woocommerce-form-register.register label {
  font-family: var(--agni-font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-dark, #1e293b) !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.3 !important;
}

.woocommerce-account .woocommerce-form-login.login label .required,
.woocommerce-account .woocommerce-form-register.register label .required {
  color: var(--agni-red, #ef4444) !important;
  text-decoration: none !important;
}

/* Text Inputs */
.woocommerce-account .woocommerce-form-login.login input[type="text"],
.woocommerce-account .woocommerce-form-login.login input[type="password"],
.woocommerce-account .woocommerce-form-register.register input[type="text"],
.woocommerce-account .woocommerce-form-register.register input[type="email"],
.woocommerce-account .woocommerce-form-register.register input[type="password"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid var(--border-light, #cbd5e1) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-family: var(--agni-font-sans) !important;
  background: var(--warm-white, #f8fafc) !important;
  color: var(--text-dark, #0f172a) !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce-account .woocommerce-form-login.login input[type="text"]:focus,
.woocommerce-account .woocommerce-form-login.login input[type="password"]:focus,
.woocommerce-account .woocommerce-form-register.register input[type="text"]:focus,
.woocommerce-account .woocommerce-form-register.register input[type="email"]:focus,
.woocommerce-account .woocommerce-form-register.register input[type="password"]:focus {
  border-color: #059669 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12) !important;
}

/* Password wrapper and toggle button */
.woocommerce-account .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-account .password-input input {
  padding-right: 2.75rem !important;
}

.woocommerce-account .show-password-input {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

/* Submit row container styling (Tightened Container) */
.woocommerce-account .woocommerce-form-login.login p.form-row:not(.woocommerce-form-row),
.woocommerce-account .woocommerce-form-login.login p.form-row:nth-of-type(3),
.woocommerce-account .woocommerce-form-register.register p.form-row:last-of-type {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  height: auto !important;
  overflow: visible !important;
  float: none !important;
  clear: both !important;
}

/* Remember Me Checkbox */
.woocommerce-account .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  cursor: pointer !important;
  margin: 2px 0 6px 0 !important;
  line-height: 1 !important;
}

.woocommerce-account .woocommerce-form__input-checkbox {
  width: 15px !important;
  height: 15px !important;
  border-radius: 4px !important;
  border: 1px solid #cbd5e1 !important;
  accent-color: #059669 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* Submit Buttons */
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit,
.agni-login-tab-content button[type="submit"],
.agni-login-tab-content .button {
  width: 100% !important;
  height: 42px !important;
  background: #059669 !important;
  color: #ffffff !important;
  font-family: var(--agni-font-sans) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15) !important;
  margin: 2px 0 4px 0 !important;
}

.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover,
.agni-login-tab-content button[type="submit"]:hover {
  background: #047857 !important;
}

/* Lost Password Link (Zero Extra Margin) */
.woocommerce-account .lost_password,
.agni-login-tab-content .lost_password,
.agni-login-tab-content .woocommerce-LostPassword {
  text-align: center !important;
  margin: 2px 0 4px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-account .lost_password a,
.agni-login-tab-content .lost_password a,
.agni-login-tab-content .woocommerce-LostPassword a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #059669 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.woocommerce-account .lost_password a:hover,
.agni-login-tab-content .lost_password a:hover {
  text-decoration: underline !important;
}

/* Footer "Don't have an account? Sign Up" Switch (Tight Spacing) */
.agni-login-switch-footer {
  text-align: center !important;
  margin: 4px 0 0 0 !important;
  padding-top: 8px !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 13px !important;
  color: #64748b !important;
  width: 100% !important;
}

.agni-login-switch-footer a {
  color: #059669 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.agni-login-switch-footer a:hover {
  text-decoration: underline !important;
}

/* Tabbed customer login layout when both login and register are active */
.woocommerce-account #customer_login.agni-customer-login-card-layout {
  display: block !important;
  max-width: 400px !important;
  margin: 20px auto 40px auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 22px 26px 18px 26px !important;
  box-sizing: border-box !important;
}

.woocommerce-account #customer_login.agni-customer-login-card-layout .col-1,
.woocommerce-account #customer_login.agni-customer-login-card-layout .col-2 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.woocommerce-account #customer_login.agni-customer-login-card-layout .agni-login-tab-content {
  display: none !important;
}
.woocommerce-account #customer_login.agni-customer-login-card-layout .agni-login-tab-content.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Tab headers layout styling */
.agni-login-tab-headers {
  display: flex !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  padding: 0 !important;
}

.agni-login-tab-btn {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 6px 0 8px 0 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  box-shadow: none !important;
}

.agni-login-tab-btn:hover {
  color: #1e293b !important;
}

.agni-login-tab-btn.active {
  color: #059669 !important;
  border-bottom-color: #059669 !important;
  font-weight: 600 !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .woocommerce-account #customer_login.agni-customer-login-card-layout,
  .woocommerce-account .woocommerce:not(:has(#customer_login)) .woocommerce-form-login.login {
    padding: 18px 16px !important;
    margin: 15px auto 30px auto !important;
  }
}
	
	
/* ==========================================================
   Cart Page: Totals Sidebar Optimization (v6.0.5)
   ========================================================== */
.wc-block-components-sidebar-layout .wc-block-components-sidebar,
.wc-block-components-sidebar-layout .wc-block-cart__sidebar,
.wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
  width: 100% !important;
  max-width: 100% !important;
}

.wc-block-cart__sidebar {
  background-color: #ffffff !important;
  border: 2px solid var(--green-600) !important;
  border-radius: 12px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 12px 32px rgba(16, 158, 91, 0.05) !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin-top: 1.5rem !important;
}

.wc-block-cart__sidebar h2,
.wc-block-cart__sidebar h2.wc-block-cart__totals-title {
  font-family: var(--agni-font-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--green-600) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: var(--agni-space-4) !important;
  border-bottom: 1.5px solid rgba(16, 158, 91, 0.15) !important;
  padding-bottom: var(--agni-space-4) !important;
  text-align: left !important;
  margin-top: 0 !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex-grow: 1 !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form .wc-block-components-text-input input {
  height: 40px !important;
  border: 1px solid var(--border-light, #ddebe4) !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  font-size: 13.5px !important;
  background: var(--warm-white, #f6f6f3) !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form button {
  height: 40px !important;
  background: var(--green-600) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--agni-transition) !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form button:hover {
  background: var(--green-800) !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(16, 158, 91, 0.06) !important;
  font-size: 14.5px !important;
  margin-bottom: 0 !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-item__label {
  font-weight: 600 !important;
  color: var(--text-body, #5c6856) !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-item__value {
  font-weight: 700 !important;
  color: var(--text-dark, #012117) !important;
}

.wc-block-cart__sidebar .wc-block-components-panel {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-block-cart__sidebar .wc-block-components-panel__button {
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(16, 158, 91, 0.06) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-body) !important;
  background: transparent !important;
}

.wc-block-cart__sidebar .wc-block-components-panel__button:hover {
  background: transparent !important;
  color: var(--green-600) !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-footer-item {
  border-top: none !important;
  border-bottom: 1px solid rgba(16, 158, 91, 0.06) !important;
  padding: 16px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  font-size: 15px !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--green-600) !important;
}

.wc-block-cart__sidebar .wc-block-cart__submit-button,
.wc-block-cart__sidebar button.wc-block-cart__submit-button {
  width: 100% !important;
  height: 48px !important;
  background: var(--green-600) !important;
  color: var(--white) !important;
  border-radius: var(--agni-radius-sm, 6px) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  margin-top: 1.5rem !important;
  box-shadow: 0 4px 12px rgba(16, 158, 91, 0.15) !important;
  transition: var(--agni-transition) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.wc-block-cart__sidebar .wc-block-cart__submit-button:hover {
  background: var(--green-800) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--agni-shadow-md) !important;
}


/* ==========================================================================
   COMPLETE FLUSH TOP SPACE RESET - MY ACCOUNT
   ========================================================================== */

/* 1. Header Navigation Bottom Gap Elimination */
header,
.wp-block-template-part,
.agni-header,
.site-header,
.agni-navbar-container,
.agni-secondary-nav,
nav {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Site Blocks Direct Children Reset */
.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* 3. Agni Main Account Page Top Flush */
.agni-account-page,
div.agni-account-page,
main.agni-account-page {
  padding-top: 10px !important; /* Ekdum clean 10px compact distance */
  margin-top: 0 !important;
}

/* 4. Container & WooCommerce Wrappers Zero Spacing */
.agni-account-page .agni-container,
.agni-account-page .woocommerce {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 5. Hide Empty WooCommerce Block Notices */
.agni-account-page .wc-block-store-notices,
.agni-account-page .woocommerce-notices-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.agni-account-page .wc-block-store-notices:empty,
.agni-account-page .woocommerce-notices-wrapper:empty {
  display: none !important;
}

/* 6. Workspace & Breadcrumbs Zero Extra Margin */
.agni-account-page .agni-account-workspace {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.agni-account-page .agni-account-breadcrumb {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 8px !important;
}
	

/* ==========================================================================
   Hide Coupon Section on Cart Page Only
   ========================================================================== */
.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block,
.woocommerce-cart .wc-block-components-totals-coupon,
.woocommerce-cart .wc-block-components-totals-coupon__content,
.woocommerce-cart .coupon {
  display: none !important;
}

/* ==========================================================================
   Shop Toolbar & Controls Bar Perfect Alignment
   ========================================================================== */
.agni-shop-controls,
.woocommerce-products-header + .storefront-sorting,
.agni-catalog-toolbar,
div:has(> .agni-filter-toggle-btn) {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #ffffff !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
  gap: 15px !important;
}

/* Left controls (Filters button & Result count) */
.agni-catalog-toolbar__left,
.agni-shop-controls-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.woocommerce-result-count {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}

/* Right controls (Show, Sorting Dropdown, Grid/List view) */
.agni-catalog-toolbar__right,
.agni-shop-controls-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.woocommerce-ordering {
  margin: 0 !important;
}

.woocommerce-ordering select {
  height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  background: #f8fafc !important;
  outline: none !important;
}
	
	

/* ==========================================================================
   FLUID CHECKOUT SIDEBAR COUPON FIX (ABSOLUTE OVERRIDE)
   ========================================================================== */

/* 1. Parent Wrapper Full Width */
.fc-checkout-order-review__inner .agnibyte-sidebar-coupon-wrapper,
.agnibyte-sidebar-coupon-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 10px !important;
  margin: 18px 0 16px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

/* 2. Hide Extra Elements */
.agnibyte-sidebar-coupon-wrapper .woocommerce-form-coupon-toggle,
.agnibyte-sidebar-coupon-wrapper .clear,
.agnibyte-sidebar-coupon-wrapper .screen-reader-text,
.agnibyte-sidebar-coupon-wrapper ::before,
.agnibyte-sidebar-coupon-wrapper ::after {
  display: none !important;
}

/* 3. Input Wrapper: 60% Width */
.agnibyte-sidebar-coupon-wrapper p.form-row-first,
.agnibyte-sidebar-coupon-wrapper p:first-of-type {
  flex: 1 1 60% !important;
  width: 60% !important;
  min-width: 0 !important;
  max-width: 60% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* 4. Input Field Itself */
.agnibyte-sidebar-coupon-wrapper input#coupon_code,
.agnibyte-sidebar-coupon-wrapper input.input-text,
.agnibyte-sidebar-coupon-wrapper input[type="text"] {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  padding: 0 12px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  outline: none !important;
  margin: 0 !important;
}

/* 5. Button Wrapper: 40% Width */
.agnibyte-sidebar-coupon-wrapper p.form-row-last,
.agnibyte-sidebar-coupon-wrapper p:last-of-type {
  flex: 0 0 38% !important;
  width: 38% !important;
  min-width: 110px !important;
  max-width: 40% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* 6. Apply Button Itself */
.agnibyte-sidebar-coupon-wrapper button[name="apply_coupon"],
.agnibyte-sidebar-coupon-wrapper button.button,
.agnibyte-sidebar-coupon-wrapper .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background-color: #059669 !important; /* Brand Green */
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: none !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.agnibyte-sidebar-coupon-wrapper button[name="apply_coupon"]:hover {
  background-color: #047857 !important;
}
	
	
/* ==========================================================================
   GPLRock Changelog Bar & Table Complete Redesign
   ========================================================================== */

/* Main Container */
.ab-changelog-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.5rem 0 3rem 0 !important;
}

/* Controls Bar (Tabs Left + Search/Filter Right) */
.ab-changelog-wrap .ab-changelog-bar,
.ab-changelog-wrap form.ab-changelog-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  background: #ffffff !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 22px !important;
}

/* Input Fields inside bar */
.ab-changelog-bar input[type="text"],
.ab-changelog-bar input[type="search"] {
  height: 40px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  outline: none !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
}

.ab-changelog-bar input[type="text"]:focus {
  border-color: #059669 !important;
  background: #ffffff !important;
}

.ab-changelog-bar select {
  height: 40px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  outline: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Table Container Box */
.ab-table-responsive {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
}

/* Table Elements */
.ab-changelog-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

.ab-changelog-table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.ab-changelog-table tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.15s ease !important;
}

.ab-changelog-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.ab-changelog-table tbody tr:last-child {
  border-bottom: none !important;
}

.ab-changelog-table td {
  padding: 14px 20px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  color: #334155 !important;
}

.ab-changelog-table img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 1px solid #e2e8f0 !important;
  display: block !important;
}

.ab-changelog-table a {
  font-weight: 600 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.ab-changelog-table a:hover {
  color: #059669 !important;
}