/* ============================================================
   SHOPS - MapoYes Theme Styling
   Based on ZZZ_Theme design patterns
   ============================================================ */

/* === BREADCRUMBS (inherit from routers) === */
.breadcrumb,
.breadcrumb-line {
    background-color: #008C93;
    color: #fff;
    padding: 12px 15px;
    margin-bottom: 0;
    border-radius: 0;
}

.breadcrumb a { color: #fff; }
.breadcrumb > .active { color: rgba(255,255,255,0.8); }

/* === PAGE TITLES === */
.cart-title,
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #055C61;
    margin-bottom: 30px;
}

.title-line {
    font-size: 24px;
    font-weight: 700;
    color: #055C61;
}

/* === CART ITEMS === */
.cart-item,
.booking-item-payment,
.order-item {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.16);
    border-radius: 20px;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
}

.cart-item:hover {
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

.cart-item .item-image,
.order-item .item-image {
    border-radius: 15px;
    overflow: hidden;
}

.cart-item .item-title,
.order-item .item-title {
    color: #055C61;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.cart-item .item-price,
.order-item .item-price {
    color: #0B8C93;
    font-weight: 700;
    font-size: 20px;
}

/* Remove Button */
.cart-item .btn-remove,
.remove-item {
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-item .btn-remove:hover,
.remove-item:hover {
    background: #dc3545;
    color: #fff;
}

/* === SIDEBAR WIDGETS === */
.widget,
.widget-post,
.widget-top-sellers,
.order-summary-widget {
    background: #F3F7E4;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.widget h4,
.widget-title {
    color: #055C61;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bfde50;
}

.widget-post .item-recent,
.widget-top-sellers .item-top-sellers {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.widget-post .item-recent:last-child,
.widget-top-sellers .item-top-sellers:last-child {
    border-bottom: none;
}

.widget-post .price,
.widget-top-sellers .price {
    color: #0B8C93;
    font-weight: 700;
    font-size: 18px;
}

.widget-post .date-recent {
    color: #666;
    font-size: 14px;
}

/* === ORDER SUMMARY === */
.order-summary,
.cart-summary {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
}

.order-summary h4,
.cart-summary h4 {
    color: #055C61;
    font-weight: 700;
    margin-bottom: 20px;
}

.order-summary .summary-row,
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-summary .total-row,
.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    margin-top: 10px;
    border-top: 2px solid #055C61;
    font-weight: 700;
}

.order-summary .total,
.cart-summary .total {
    font-size: 24px;
    font-weight: 700;
    color: #0B8C93;
}

/* === BOOKING FORM === */
.booking-form,
.checkout-form {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.booking-form h3,
.checkout-form h3,
.form-section-title {
    color: #055C61;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bfde50;
}

.booking-form label,
.checkout-form label {
    color: #055C61;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.booking-form .form-group,
.checkout-form .form-group {
    margin-bottom: 20px;
}

.booking-form .form-control,
.checkout-form .form-control {
    border-radius: 25px !important;
    height: 50px;
    border: 1px solid #ddd !important;
    padding: 10px 20px;
    font-size: 14px;
    color: #055C61;
}

.booking-form .form-control:focus,
.checkout-form .form-control:focus {
    border-color: #0B8C93 !important;
    box-shadow: 0 0 0 3px rgba(11, 140, 147, 0.15) !important;
}

.booking-form textarea.form-control,
.checkout-form textarea.form-control {
    border-radius: 20px !important;
    min-height: 100px;
}

/* Form group small spacing */
.form-group-small {
    margin-bottom: 10px;
}

/* Optional field indicator */
.facoltativo,
.optional-label {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-left: 5px;
}

/* === PAYMENT OPTIONS === */
.payment-options,
.payment-methods {
    margin: 20px 0;
}

.payment-option,
.payment-method {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-option:hover,
.payment-method:hover {
    border-color: #0B8C93;
    background-color: #F3F7E4;
}

.payment-option.selected,
.payment-method.selected,
.payment-option input[type="radio"]:checked + label,
.payment-method.active {
    border-color: #0B8C93;
    background-color: #F3F7E4;
    box-shadow: 0 0 0 3px rgba(11, 140, 147, 0.2);
}

.payment-option img,
.payment-method img {
    max-height: 40px;
    width: auto;
}

.payment-option .payment-name,
.payment-method .payment-name {
    color: #055C61;
    font-weight: 600;
    font-size: 16px;
}

.payment-option .payment-description,
.payment-method .payment-description {
    color: #666;
    font-size: 13px;
}

/* === CONFIRMATION PAGE === */
.confirmation-box,
.success-box {
    background: linear-gradient(135deg, #bfde50 0%, #9BC83B 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-box .success-icon,
.success-box .success-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.confirmation-box .success-icon i,
.success-box .success-icon i {
    font-size: 40px;
    color: #0B8C93;
}

.confirmation-box h2,
.success-box h2 {
    color: #055C61;
    font-weight: 700;
    margin-bottom: 15px;
}

.confirmation-box p,
.success-box p {
    color: #055C61;
    font-size: 16px;
}

.order-number {
    background: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    color: #0B8C93;
    font-size: 18px;
}

/* === PROMO CODE === */
#get_promo_code,
.promo-code-box {
    background: #F3F7E4;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#get_promo_code input[type=text],
.promo-code-input {
    border-radius: 25px !important;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 14px;
    width: 70%;
}

#get_promo_code input[type=button],
.promo-code-btn {
    background-color: #0B8C93;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#get_promo_code input[type=button]:hover,
.promo-code-btn:hover {
    background-color: #067a80;
}

#wrong_code { color: #dc3545; }
#right_code { color: #28a745; }

/* === BUTTONS === */
.btn-primary,
.btn-success,
.btn-checkout,
.btn-continue {
    background-color: #0B8C93 !important;
    border: none !important;
    border-radius: 44px !important;
    font-weight: 700;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.16);
    color: #fff !important;
    padding: 15px 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-success:hover,
.btn-checkout:hover {
    background-color: #067a80 !important;
    transform: translateY(-2px);
}

/* Full width button */
.btn-block {
    width: 100%;
}

/* === PRICE DISPLAYS === */
.booking-item-price {
    font-size: 24px;
    color: #0B8C93;
    font-weight: 700;
}

.booking-item-price-from {
    display: inline;
    font-size: 14px;
    color: #666;
}

/* === SCALAPAY WIDGET === */
.scalapay-widget {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* === MARGINS & SPACING === */
.mt-dash {
    margin-top: 5rem;
}

.pad-cart {
    padding: 15px;
}

/* === THUMBNAILS CAROUSEL === */
.thumbnails li > .fff .caption {
    background: #fff !important;
    padding: 15px;
    border-radius: 0 0 15px 15px;
}

.caption h4 {
    color: #055C61;
    font-weight: 700;
}

.caption p {
    color: #666;
}

/* Control Box */
.control-box {
    text-align: right;
    margin-bottom: 15px;
}

.carousel-control {
    background: #0B8C93;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    margin: 0 5px;
}

.carousel-control:hover {
    opacity: 1;
    background: #067a80;
}

/* === FORM CONTROL OVERRIDES FOR SHOPS === */
.form-control {
    height: 45px;
    border-radius: 25px !important;
    border: 1px solid #ddd;
}

.select2-container .select2-selection--single {
    border-radius: 25px !important;
    height: 45px !important;
    border: 1px solid #ddd;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px;
    color: #055C61;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .cart-title,
    .page-title {
        font-size: 22px;
    }

    .title-line {
        font-size: 20px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 16px;
    }

    .font-cart-p {
        font-size: 14px;
    }

    .pad-cart {
        padding: 0;
    }

    .mt-dash {
        margin-top: 2rem;
    }

    .booking-form,
    .checkout-form {
        padding: 20px;
        border-radius: 15px;
    }

    .payment-option,
    .payment-method {
        padding: 15px;
        border-radius: 15px;
    }

    .order-summary,
    .cart-summary {
        padding: 20px;
        border-radius: 15px;
    }

    .confirmation-box,
    .success-box {
        padding: 25px;
        border-radius: 15px;
    }

    .cart-item,
    .order-item {
        padding: 15px;
        border-radius: 15px;
    }
}
