.hero-area.package-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.hero-area.package-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-area.package-hero .hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-area.package-hero .hero-content {
    max-width: 650px;
    color: #ffffff;
}
/* ==========================================
   PACKAGE PAGE – SERVICE TITLE MOBILE SIZE
========================================== */

@media (max-width: 767px) {
    .services-area .services-item .title {
        font-size: 25px;
        line-height: 1.3;
        font-weight: 600;
    }
}
/* ==========================================
   PACKAGE PAGE – SERVICE TITLE MOBILE FIX
========================================== */

@media (max-width: 767px) {
    body.page-template-package-php 
    .services-content 
    h4.title {
        font-size: 26px;
        line-height: 1.3;
        font-weight: 700;
    }
}

/* =========================
   VIEW CART BUTTON – PACKAGE PAGE
   ========================= */

.package-cart-bar {
    background: #f7f7f7;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.package-cart-bar .view-cart-btn {
    display: inline-block;
    background: #5e5e5e;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.package-cart-bar .view-cart-btn:hover {
    background: #e3d1a6;
    color: #5e5e5e;
}

/* =========================
   VIEW CART BUTTON – CHECKOUT
   ========================= */

.checkout-cart-link {
    margin-bottom: 30px;
    text-align: right;
}

.checkout-cart-link .checkout-view-cart {
    background: #5e5e5e;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.checkout-cart-link .checkout-view-cart:hover {
    background: #e3d1a6;
    color: #5e5e5e;
}
/* =========================================
   PACKAGE PAGE – STABLE ADD TO CART LAYOUT
   ========================================= */

/* Lock button container height */
.packagecart {
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force button to stay centered and stable */
.packagecart a.button,
.packagecart a.add_to_cart_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 48px;
    transition: background-color 0.2s ease, color 0.2s ease;
}


/* Prevent hover animation from shifting layout */
.services-item,
.services-item * {
    box-sizing: border-box;
}

/* Stop hover effects from resizing cards */
.services-item:hover {
    transform: none !important;
}

/* Mobile safety */
@media (max-width: 768px) {
    .packagecart {
        min-height: 48px;
    }
}


/* Prevent layout shift after add to cart */
body.page-template-package-php 
.packagecart {
    display: flex;
    justify-content: center;
}

/* Ensure button stays centered */
body.page-template-package-php 
.packagecart .button {
    margin: 0;
}


/* =========================================
   DISABLE HOVER RESIZE ON PACKAGE PAGE ONLY
   ========================================= */

body.page-template-package-php 
.shine-animate-item:hover {
    transform: none !important;
}
/* =========================
   CART POPUP FINAL FIX
========================= */

#cart-popup {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999999 !important;
}

#cart-popup.show-popup {
    display: flex !important;
}

.cart-popup-inner {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.cart-success-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
}

/* Add To Cart Button Base */
.custom-add-to-cart {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover State */
.custom-add-to-cart:hover {
    background: #c8a96a; /* luxury gold tone */
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Active Click */
.custom-add-to-cart:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Disabled / Adding */
.custom-add-to-cart:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Success Message */
.cart-success-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #28a745;
}

/* FORCE OVERRIDE WooCommerce button styling */
.packagecart .custom-add-to-cart.button {
    background-color: #111 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 35px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.packagecart .custom-add-to-cart.button:hover {
    background-color: #c8a96a !important;
    color: #111 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.packagecart .custom-add-to-cart.button:disabled {
    background-color: #999 !important;
    cursor: not-allowed !important;
}

/* Stack button and success message vertically */
.packagecart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Style success message */
.packagecart .cart-success-message {
    display: none;
    font-size: 14px;
    font-weight: 500;
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
    padding: 8px 16px;
    border-radius: 6px;
}
