/* Cart page (frontend/Cart.php). The request form has its own file: booking-form.css.
   Site theme: navy #0B132B, gold #FFCA5C (buttons) / #FFDB86 (headings), Playfair Display headings. */

#CartItemStore {
    --cart-gold: #FFCA5C;
    --cart-gold-light: #FFDB86;
    --cart-text: #FFFFFF;
    --cart-muted: rgba(255, 255, 255, 0.72);

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    width: 95%;
    margin: 0 auto;
}

/* ---------- place cards ---------- */
.CartItem {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 202, 92, 0.3);
    border-radius: 16px;
    background: #0B132B;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.CartItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.CartItem:hover img { transform: scale(1.04); }

.CartItem .Info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 60px 18px 16px;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.7) 45%, rgba(11, 19, 43, 0) 100%);
}

.CartItem .Info h3 {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cart-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.CartItem .Info button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(11, 19, 43, 0.55);
    backdrop-filter: blur(4px);
    color: var(--cart-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.CartItem .Info button:hover,
.CartItem .Info button:focus-visible {
    background: #b3413a;
    border-color: #b3413a;
    color: #fff;
}

/* ---------- empty cart ---------- */
#empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 50px 20px;
    border: 1px dashed rgba(255, 202, 92, 0.45);
    border-radius: 16px;
    background: rgba(11, 19, 43, 0.55);
    text-align: center;
}

#empty .fa { font-size: 44px; color: var(--cart-gold); }

#EmptyText {
    margin: 4px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--cart-gold-light);
}

#empty p { max-width: 420px; margin: 0; color: var(--cart-muted); }

#empty .EmptyButton {
    margin-top: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--cart-gold);
    color: #0B132B;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

#empty .EmptyButton:hover { background: var(--cart-gold-light); transform: translateY(-2px); }

/* the page's "Confirm & Send" button (made in Elementor) is only shown when the cart has places,
   and gets the same gold style as the rest of the cart */
#Confirm { display: none; }

#Confirm .elementor-button {
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: #FFCA5C;
    color: #0B132B;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s, transform 0.2s;
}

#Confirm .elementor-button:hover,
#Confirm .elementor-button:focus {
    background: #FFDB86;
    color: #0B132B;
    transform: translateY(-2px);
}

@media screen and (max-width: 640px) {
    #CartItemStore { grid-template-columns: 1fr; gap: 18px; }
    .CartItem .Info { flex-direction: column; align-items: flex-start; }
}
