/* ===========================================
   CLEAN SHORTCODE WRAPPER + CENTER IT
   =========================================== */
.add_to_cart_inline {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* ===========================================
   150x150 CIRCLE BUTTON
   SUBTLE, DIALLED-DOWN EFFECTS
   =========================================== */
.add_to_cart_inline .button,
.woocommerce .add_to_cart_inline .button,
.add_to_cart_inline a.button,
.add_to_cart_inline button {
    position: relative !important;
    overflow: hidden !important;

    width: 150px !important;
    height: 150px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 20px !important;
    box-sizing: border-box !important;

    border-radius: 50% !important;

    /* BASE COLOR */
    background: #586468 !important;

    /* softer text + border */
    color: #e6dfd1 !important;
    border: 2px solid rgba(230, 223, 209, 0.45) !important;

    text-transform: none !important;
    letter-spacing: 0.03em !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;

    margin: 0 auto 1rem auto !important;

    /* softer shadow */
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
    transition:
        transform 0.12s ease-out,
        color 0.12s ease-out,
        border-color 0.12s ease-out,
        box-shadow 0.12s ease-out;

    /* ALWAYS-ON animations — SUBTLE */
    animation:
        film-flicker 1.2s steps(2, end) infinite alternate,
        text-glitch 1.8s linear infinite alternate;
}

/* ===========================================
   SUBTLE GRAIN OVERLAY
   =========================================== */
.add_to_cart_inline .button::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    pointer-events: none;

    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0, transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(255,255,255,0.04) 0, transparent 50%),
        radial-gradient(circle at 0% 80%, rgba(0,0,0,0.2) 0, transparent 55%),
        radial-gradient(circle at 100% 85%, rgba(0,0,0,0.15) 0, transparent 50%);
    mix-blend-mode: screen;
    opacity: 0.22;
}

/* ===========================================
   SUBTLE CHROMATIC EDGE
   =========================================== */
.add_to_cart_inline .button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    box-shadow:
        0.5px 0 0 rgba(255,70,70,0.25),
        -0.5px 0 0 rgba(80,255,255,0.25);
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

/* ===========================================
   SOFT HOVER EFFECT
   =========================================== */
.add_to_cart_inline .button:hover,
.woocommerce .add_to_cart_inline .button:hover {
    transform: translateY(-1px);
    color: #f0e8da !important;
    border-color: rgba(240, 232, 218, 0.65) !important;

    /* slightly stronger shadow but still subtle */
    box-shadow: 0 10px 22px rgba(0,0,0,0.32);
}

.add_to_cart_inline .button:hover::after {
    opacity: 0.55; /* not full-on, just a hint */
}

/* ===========================================
   SOFT FILM FLICKER
   =========================================== */
@keyframes film-flicker {
    0%   { filter: brightness(0.96) contrast(1.00); }
    40%  { filter: brightness(1.01) contrast(1.04); }
    75%  { filter: brightness(0.94) contrast(1.06); }
    100% { filter: brightness(1.05) contrast(1.08); }
}

/* ===========================================
   VERY SUBTLE TEXT GLITCH
   =========================================== */
@keyframes text-glitch {
    0% {
        text-shadow: 0 0 0 rgba(0,0,0,0);
    }
    25% {
        text-shadow:
            -0.5px 0 rgba(255,70,70,0.18),
            0.5px 0 rgba(80,255,255,0.15);
    }
    50% {
        text-shadow:
            0.3px 0.3px rgba(255,255,255,0.18),
            -0.3px -0.3px rgba(0,0,0,0.18);
    }
    75% {
        text-shadow:
            -0.4px 0.4px rgba(255,70,70,0.20),
            0.4px -0.4px rgba(80,255,255,0.16);
    }
    100% {
        text-shadow: 0 0 0 rgba(0,0,0,0);
    }
}

/* ===========================================
   VIEW CART LINK
   =========================================== */
.add_to_cart_inline .added_to_cart {
    display: block !important;
    margin-top: 0.6rem !important;
    font-size: 1rem !important;
    text-decoration: underline !important;
    color: #000000 !important;
    text-align: center !important;
}

/* ===========================================
   REMOVE BR TAGS FROM SHORTCODE
   =========================================== */
.add_to_cart_inline br {
    display: none !important;
}
/* Hide Quantity column (header + cells) on the cart page */
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity {
    display: none !important;
}

/* On small screens, WooCommerce adds a "Quantity" label via ::before */
.woocommerce-cart td.product-quantity::before {
    display: none !important;
}
/* Hide Subtotal column (header + cells) on the cart page */
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
    display: none !important;
}

/* On mobile, WooCommerce injects "Subtotal" labels ::before */
.woocommerce-cart td.product-subtotal::before {
    display: none !important;
}
/* ------------------------------------------
   REMOVE SUBTOTAL FROM CART (header + cells)
------------------------------------------- */

.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
    display: none !important;
}

.woocommerce-cart td.product-subtotal::before {
    display: none !important;
}

/* ------------------------------------------
   REMOVE SUBTOTAL ROWS IN CART TOTALS
------------------------------------------- */

.woocommerce-cart .cart_totals .cart-subtotal {
    display: none !important;
}

/* ------------------------------------------
   REMOVE SUBTOTAL FROM CHECKOUT PAYMENT SUMMARY
------------------------------------------- */

.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table tr.cart-subtotal {
    display: none !important;
}

/* ------------------------------------------
   REMOVE MOBILE "Subtotal" LABELS ON CHECKOUT
------------------------------------------- */

.woocommerce-checkout-review-order-table td.product-total::before {
    display: none !important;
}

.woocommerce-checkout-review-order-table td.product-subtotal::before {
    display: none !important;
}

/* ------------------------------------------
   REMOVE “×1” QUANTITY FROM CHECKOUT LINE ITEMS
------------------------------------------- */

.woocommerce-checkout-review-order-table .product-quantity,
.woocommerce-checkout-review-order-table .product-quantity::before {
    display: none !important;
}

/* Some themes append "×1" inside the name column */
.woocommerce-checkout-review-order-table .product-name .quantity,
.woocommerce-checkout-review-order-table .product-name .quantity::before {
    display: none !important;
}
/* Remove quantity (×1) from the Order Complete / Thank You page */
.woocommerce-order .product-quantity,
.woocommerce-order .product-quantity::before,
.woocommerce-order .product-name .quantity,
.woocommerce-order .product-name .quantity::before {
    display: none !important;
}