    /* General Styles */
    .w-90 {
        width: 90% !important;
    }
    .main {
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .main-container {
        display: flex; 
        justify-content: center;
        align-items: center;
        width: 100%;
        flex: 1;
        gap: 24px;
    }
    .calendar-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
        align-self: start;
    }
    .cart-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30%;
        align-self: start;
    }

    /* Calendar Styles */
    .calendar-container {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
    }
    .calendar-left {
        width: 300px;
        height: auto;
        padding: 20px;
    }

    /* .calendar-left{
        flex: 1;
    } */

    .calendar-right {
        flex: 1;
        border-radius: 20px;
        background-color: white;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    .semana{
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }
    .num-date {
        font-size: 48px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 4px;
    }
    .day {
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }
    .year {
        text-align: right;
        font-size: 24px;
        color: #aaa;
        margin-bottom: 10px;
    }
    .months {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        gap: 24px;
    }
    .months li a {
        text-decoration: none;
        color: #aaa;
        font-size: 24px;
        transition: color 0.3s ease;
    }
    .months li a.selected {
        color: #007bff;
        font-weight: bold;
    }
    .months li a:hover {
        color: #007bff;
    }
    .previous-month{
        color: #aaa;
    }   

    .weekday {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 14px;
        color: #aaa;
        margin-bottom: 10px;
    }
    .days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }
    .days li {
        text-align: center;
        padding: 10px;
        transition: background-color 0.3s ease;
        cursor: pointer;
        margin: 4px; 
        border-radius: 10px;
    }
    .days li a {
        text-decoration: none;
        color: #333;
        font-size: 14px;
    }
    .days li a.selected {
        color: white;
        background-color: #007bff;
        border-radius: 50%;
        display: block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        margin: auto;
    }

    .packages-row {
        width: 100%;        
    }

    .packages-section {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }
    
    .package-card {
        position: relative;
        overflow: visible;
        background: white;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        width: calc(20% - 20px);
        min-width: 200px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .package-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .package-header {
        position: relative;
        text-align: center;
    }

    .package-name {
        color: #2c3e50;
        font-size: 1.2rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .age-badge {
        background: #e8f5e9;
        color: #2e7d32;
        padding: 5px 10px;
        border-radius: 20px;    
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .package-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .quantity-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .quantity-container .btn {
        width: 35px;
        height: 35px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .input-number {
        width: 60px;
        text-align: center;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        padding: 5px;
        -moz-appearance: textfield;
    }

    .input-number::-webkit-outer-spin-button,
    .input-number::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .package-price {
        text-align: center;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .price-label {
        color: #666;
        font-size: 0.9rem;
    }

    .price-value {
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.1rem;
        margin-left: 5px;
    }

    .price-discount {
        color: #28a745;
        font-weight: 600;
        font-size: 1.1rem;
        margin-left: 5px;
    }

    .line-through {
        text-decoration: line-through;
        color: #e74c3c;
    }

    /* Package Responsive Styles */
    @media (max-width: 1200px) {
        .package-card {
            width: calc(33.333% - 20px);
        }
    }

    @media (max-width: 768px) {
        .package-card {
            width: calc(50% - 20px);
        }
    }

    @media (max-width: 480px) {
        .package-card {
            width: 100%;
        }
    }

    /* Total Section Styles */
    .total-section {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
    }
    .btn-success {
        background-color: #28a745;
        border-color: #28a745;
    }

    .packageList{
        list-style: disc;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .packageList li{
        margin-left: 40px;
    }
    .primary-color{
        color: #007bff;
        font-weight: bold;
    }


    /* Form */

    .error-message {
        font-size: 0.875em;
        margin-top: 0.25rem;
    }
    
    .form-control.error {
        border-color: #dc3545;
    }

    /* week selection */

    .week-selection-section{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .week-button {
        display: inline-block;
        margin: 0 8px 12px 0;
        padding: 14px 28px;
        border-radius: 16px;
        border: 4px dashed;
        background: #fff;
        color: #222; /* Dark text for contrast */
        font-weight: 600;
        font-size: 1.1rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: 
            background 0.2s,
            border-color 0.2s,
            color 0.2s,
            box-shadow 0.2s,
            transform 0.15s;
        outline: none;
    }
    
    .week-button.selected {
        border-width: 3px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 0 0 4px rgba(0,0,0,0.04);
        background: #a4f5bc; /* very light blue for selected */
        color: #111;
        transform: scale(1.04);
    }
    
    .week-button:hover:not(.selected) {
        background: #e3f2fd; /* light blue on hover */
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
        color: #111;
        transform: scale(1.03);
    }

    .discount-section-text{
        font-size: 1.1rem;
        font-weight: 600;
        color: #007bff;
        text-align: center;
        margin-bottom: 10px;
    }

    .package-disabled {
        opacity: 0.6;
        background-color: #f5f5f5;
        cursor: not-allowed;
    }
    
    .package-disabled .package-header,
    .package-disabled .package-content {
        pointer-events: none;
    }
    
    .package-limit {
        margin-top: 8px;
        font-weight: 500;
        text-align: center;
    }
    
    .text-danger {
        color: #e74c3c !important;
    }
    
    .text-warning {
        color: #f8c471 !important;
    }
    

    .text-warning1 {
        color: #007bff !important;
    }

    .text-warning2 {
        color: #f9e79f !important;
    }

    .text-warning3 {
        color: #f8c471 !important;
    }

    .text-warning4 {
        color: #e67e22 !important;
    }

    .text-danger{
        color: #e74c3c !important;
    }


.package-card {
    position: relative;
    overflow: hidden;
}

.package-header {
    position: relative;
    /* ... existing package-header styles ... */
}

.animal-image {
    position: absolute;
    bottom: -10px;
    right: -24px;
    width: 50px; /* Slightly larger to ensure good overlap */
    height: 50px;
    z-index: 2;
    transform: translate(0, 0); /* Reset any transform */
}

.animal-overlay {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* transform: rotate(15deg); */
    transition: transform 0.3s ease;
}

/* Hover effect for the animal image */
.package-card:hover .animal-overlay {
    transform: rotate(0deg) scale(1.1);
}

/* Ensure the image stays visible in disabled state */
.package-disabled .animal-overlay {
    opacity: 0.7;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .animal-image {
        width: 40px; /* Keep consistent size ratio */
        height: 40px;
        bottom: 0px;
        right: -20px;
    }
}


/* Ensure the image doesn't overflow in grid layout */
.packages-section {
    position: relative;
    overflow: visible;
}


    /* Mobile styles */
@media screen and (max-width: 768px) {
    .main{
        width: 100% !important;
    }
    .calendar-row{
        width: 100%;
        align-self: center;
    }   
    .calendar-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .calendar-left,
    .calendar-right {
        width: 100%;
    }

    /* Grid layout only for mobile */
    .week-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: center;
        justify-items: center;
    }

    /* Ensure proper spacing between sections */
    .calendar-container {
        margin-bottom: 20px;
    }

    .week-buttons > *,
    .packages-row > * {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .packages-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        align-items: center;
    }

    .packages-section > * {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }


    .packages-row {
        margin-bottom: 20px;
    }

    .cart-row {
        margin-bottom: 20px;
        width: 100%;
        flex: 1;
    }

    /* Adjust any internal padding or margins for mobile */
    .calendar-left,
    .calendar-right,
    .packages-row,
    .cart-row {
        padding: 8px;
    }

    .main-container{
        flex-direction: column;
    }

    .package-card {
        /* width: calc(50% - 10px);  */
        /* Reduced gap between cards */
        min-width: 140px; /* Reduced minimum width */
        max-width: 180px; /* Added maximum width for mobile */
        padding: 12px; /* Reduced padding */
        gap: 10px; /* Reduced gap between elements */
    }

    .packages-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Reduced gap between cards */
        justify-content: center; /* Center the cards */
        padding: 0 5px; /* Reduced section padding */
    }

    /* Adjust internal spacing for mobile */
    .package-content {
        gap: 10px; /* Reduced gap between content elements */
    }

    .quantity-container {
        gap: 5px; /* Reduced gap between quantity controls */
    }

    .quantity-container .btn {
        width: 30px; /* Slightly smaller buttons */
        height: 30px;
    }

    .input-number {
        width: 50px; /* Slightly smaller input */
    }

    .package-price {
        padding-top: 8px; /* Reduced padding */
    }
}

/* Optional: Add a transition for smooth layout changes */
.calendar-container,
.calendar-left,
.calendar-right {
    transition: all 0.3s ease;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    /* ... existing mobile styles ... */

    /* Reduce font sizes for mobile */
    .package-name {
        font-size: 1rem; /* Reduced from 1.2rem */
    }

    .age-badge {
        font-size: 0.8rem; /* Reduced from 0.9rem */
    }

    .price-label {
        font-size: 0.8rem; /* Reduced from 0.9rem */
    }

    .price-value {
        font-size: 0.9rem; /* Reduced from 1.1rem */
    }

    .package-limit {
        font-size: 0.8rem; /* Reduced from 1rem */
    }

    .week-button {
        font-size: 0.9rem; /* Reduced from 1.1rem */
    }

    .total-section h3 {
        font-size: 1.1rem; /* Reduced from 1.3rem */
    }

    .form-label {
        font-size: 0.9rem; /* Reduced from 1rem */
    }

    li{
        font-size: 0.8rem;
    }
}




/* Floating cart button and mobile cart panel styles */
.floating-cart-button {
    display: none; /* Hidden by default, shown only on mobile */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.floating-cart-button:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-cart-panel {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-cart-panel.active {
    right: 0;
}

.mobile-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.mobile-cart-content {
    padding: 15px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .floating-cart-button {
        display: flex; /* Show on mobile */
    }

    .cart-row {
        display: none; /* Hide the original cart on mobile */
    }

    .mobile-cart-panel {
        display: block;
    }
}