/* WooCommerce Custom Pricing Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    /* Disable woo clearfixes */
}

/* Responsive Grid */
@media screen and (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media screen and (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Pricing Card Styling */
.woocommerce ul.products li.pricing-card {
    list-style: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    /* reset woo defaults */
}

.pricing-card-inner {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer, larger outer shadow */
    border-radius: 12px;
    padding: 0 30px 30px 30px;
    /* 0 padding on top for ribbon */
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    border: 1px solid #f2f2f2;
    /* subtle definition */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
}

.pricing-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Header Ribbon Design */
.pricing-card-header {
    color: #fff;
    margin: -1px -30px 15px -30px;
    padding: 25px 15px 30px 15px;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: none;
    position: relative;
    z-index: 2;
    background-color: #29282d;
    background-size: 10px 10px;
    background-image: repeating-linear-gradient(45deg, #3a393f 0, #3a393f 1px, #29282d 0, #29282d 50%);
}

/* Discount Text Inside Ribbon */
.pricing-discount-text {
    font-size: 14px;
    color: #fff;
    background: transparent;
    display: block;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 10px;
    box-shadow: none;
    opacity: 0.9;
}

/* Price Texts inside Ribbon */
.pricing-price-sale,
.pricing-price-regular {
    color: #fff;
    font-size: 14px;
    font-family: "Barlow", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pricing-price-sale .price-old {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    font-size: 1.75rem;
}

.pricing-price-sale .price-new,
.pricing-price-regular .price-val {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Make text pop against gradient */
}

/* Title */
.pricing-card-title {
    font-size: 1.75rem;
    color: #29282d;
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    margin-bottom: 25px;
    padding: 10px 0 15px 0;
}

/* Checkout Button */
.pricing-card-action-primary {
    margin-top: auto;
    margin-bottom: 25px;
}

.btn-primary-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #D11120, #e81324);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 16px 20px;
    border-radius: 8px;
    /* Softer radius */
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(209, 17, 32, 0.25);
}

.btn-primary-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(209, 17, 32, 0.4);
}

/* Gift Alert */
.pricing-card-gift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(209, 17, 32, 0.05);
    border: 1px dashed rgba(209, 17, 32, 0.6);
    color: #D11120;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 25px 0;
}

/* Features List */
.pricing-card-features {
    text-align: left;
    margin-bottom: 0px;
}

/* We target wpautop ul/li coming from editor */
.pricing-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricing-card-features ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.pricing-card-features ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #D11120;
    font-weight: bold;
    font-size: 16px;
    background: rgba(209, 17, 32, 0.1);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Footer Button */
.pricing-card-action-secondary.mt-auto {
    border-top: 1px solid #ddd;
    margin-left: -30px;
    margin-right: -30px;
    padding-top: 25px;
}

.btn-secondary-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #444 !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.btn-secondary-details:hover {
    color: #D11120 !important;
}

/* Reset image output inside the override just in case woo adds it by default */
.pricing-card-inner img.attachment-woocommerce_thumbnail {
    display: none !important;
}

/* Single Product Page Customizations */
.single-product-checkout-wrap {
    margin: 30px 0;
}

.btn-primary-checkout.single-page-cta {
    display: inline-flex;
    min-width: 280px;
    padding: 18px 40px;
}

/* Related Products Styling Fix */
.related.products {
    margin-top: 80px;
    border-top: 1px solid #f0f0f0;
    padding-top: 60px;
}

.related.products h2 {
    font-size: 32px;
    margin-bottom: 60px;
    text-align: center;
    color: #29282d;
}