.trw-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.trw-product-card {
	max-width: 600px;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color:#fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.15s ease-in-out;
}
.trw-product-title {
    font-size: 1.5rem;
    color: #04385C;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Montserrat';
}
.trw-product-price {
    color: #12C3FC;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Montserrat';
}

/* Sale price formatting: make old price grey */
.trw-product-price del,
.trw-product-price del .woocommerce-Price-amount,
.trw-product-price del .amount{
    color: #777 !important;
    font-weight: 600;
    opacity: 0.9;
}
.trw-product-price ins{background:transparent;text-decoration:none}
.trw-product-description {
    font-size: 1.1rem;
    color: #000;
    flex-grow: 0;
    margin-bottom: 20px;
    font-family: 'Outfit';

    /* Limit to exactly 3 lines */
    line-height: 1.2rem; /* adjust if font-size changes */
    max-height: calc(1.2rem * 3);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.trw-fasting {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #0A5FA7;
    margin-bottom: 10px;
    font-family: 'Outfit';
}

.trw-meta-icon{
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-block;
}
.trw-product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
}
.trw-product-buttons a {
    border-radius: 30px!important;
    text-decoration: none!important;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}
.trw-read-more {
    background-color: #582438;
    color: #fff;
    font-family: 'Outfit'!important;
    border-radius: 30px!important;
}
.trw-read-more:hover {
    background-color:rgb(75, 30, 47);
}
.trw-add-to-cart {
    background-color: #04385C;
    color: #fff;
    padding: 13px 20px!important;
    border-radius: 50px!important;
    text-decoration: none!important;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    border: 0px solid transparent;
    font-family: 'Outfit'!important;
    width: 100%;
    cursor: pointer;
}
.trw-add-to-cart:hover {
    background-color:rgb(4, 45, 74);
}

/* Hover scale: increase by 2% */
.trw-product-card:hover {
    transform: scale(1.02);
}

.trw-booking-link {
    display: block;
    text-align: center;
    color: #04385C;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* Make whole card feel clickable */
.trw-product-card {
    cursor: pointer;
    overflow: hidden;
}

/* Ensure read-more (if any) is hidden since card is clickable */
.trw-read-more {
    display: none !important;
}


/* Sale styling */
.trw-on-sale {
    border-color: #EF6C00 !important;
    border-width: 1px !important;
}
.trw-sale-badge {
    position: absolute;
    top: 0;
    right: -12px;
    transform: translateY(-50%);
    background: #EF6C00;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 5;
}

/* Allow badge to appear outside the card */
.trw-product-card {
    overflow: visible;
}
.trw-30day-price {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 6px;
}
.trw-30day-value {
    color: #777;
    font-weight: 600;
}
.trw-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #fffbea;
    border-left: 4px solid #fbc02d;
    font-size: 1rem;
    border-radius: 10px;
}
.trw-info-box strong {
    display: block;
    margin-bottom: 5px;
}
.trw-icon-booking::before {
    content: '\1F4C5';
    margin-right: 8px;
}
.trw-icon-info::before {
    content: '\2139';
    margin-right: 8px;
}
.ms-2{
    margin-left: 0.5rem;
}

/* --- TRW Notification Banners (Bootstrap-like colors, no Bootstrap dependency) --- */
#trw-notification-banners{width:100%;max-width:none;margin:0;padding:0}
.trw-notice{margin:0;border:0;border-radius:0;padding:12px 14px;display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.trw-notice a{color:inherit;text-decoration:underline;font-weight:600}
.trw-notice a:hover{text-decoration:none}
.trw-notice-content{flex:1 1 auto;color:inherit}
.trw-notice-close{flex:0 0 auto;border:0;background:transparent;padding:2px 6px;line-height:1;font-size:18px;font-weight:700;cursor:pointer;color:inherit;opacity:.75}
.trw-notice-close:hover{opacity:1}

/* Variants roughly matching Bootstrap 5 */
.trw-notice-primary{background:#cfe2ff;color:#084298}
.trw-notice-secondary{background:#e2e3e5;color:#41464b}
.trw-notice-success{background:#d1e7dd;color:#0f5132}
.trw-notice-danger{background:#f8d7da;color:#842029}
.trw-notice-warning{background:#fff3cd;color:#664d03}
.trw-notice-info{background:#cff4fc;color:#055160}
.trw-notice-light{background:#f8f9fa;color:#343a40}
.trw-notice-dark{background:#d3d3d4;color:#141619}

/* --- TRW Checkout Coupon (shortcode) --- */
.trw-checkout-coupon .trw-checkout-coupon-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.trw-checkout-coupon .trw-checkout-coupon-form .form-row{margin:0;float:none;width:auto;flex:1 1 260px}
.trw-checkout-coupon .trw-checkout-coupon-form .form-row-last{flex:0 0 auto}
.trw-checkout-coupon .trw-checkout-coupon-form .input-text{width:100%}
.trw-checkout-coupon .clear{display:none}

.trw-checkout-coupon .trw-checkout-coupon-form .trw-apply-coupon{
    color: #FFFFFF !important;
    border-radius: 30px;
    letter-spacing: 1px;
    font-family: 'Outfit', Helvetica, Arial, Lucida, sans-serif !important;
    background-color: #04385C;
    padding-top: 9px !important;
    padding-right: 53px !important;
    padding-bottom: 9px !important;
    padding-left: 53px !important;
    margin-top: 28px !important;
}

.trw-coupon-notice{align-items:center}
.trw-coupon-icon{flex:0 0 auto;font-weight:900;line-height:1}
.trw-coupon-notice .trw-notice-content{margin-left:10px}
.trw-coupon-notice .trw-notice-content ul{margin:0;padding-left:0;list-style:none}
.trw-coupon-notice .trw-notice-content li{margin:0}

/* --- TRW Checkout Summary Table --- */
.trw-checkout-summary-table .product-name{position:relative}
.trw-checkout-summary-table .trw-remove-item{float:right;text-decoration:none;font-weight:900;line-height:1;padding:0 6px}
.trw-checkout-summary-table .trw-remove-item:hover{text-decoration:none;opacity:.8}
.trw-checkout-summary h3{margin-top:18px}

.trw-cart-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.trw-cart-icon {
    position: relative;
    font-size: 24px;
    color: #fff;
    background: #5a3ea1;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.trw-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Booking link text variants: show shorter text on mobile */
.trw-booking-mobile{display:none}
.trw-booking-desktop{display:inline}

@media(max-width:600px){
    .trw-booking-mobile{display:inline}
    .trw-booking-desktop{display:none}
}


