/*cards and modal*/

.CardPrincipal,
.CardPrincipal .card-header,
.CardPrincipal .card-body,
.CardPrincipal .k-label,
.CardPrincipal p {
    color: var(--main-black);
}

.CardPrincipal {
    background-color: var(--supporting-light-pink);
    border-radius: 25px;
    border: none;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.CardPrincipal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.modal-content {
    background-color: var(--supporting-light-pink);
    color: var(--main-black);
    border-radius: 25px;
    position: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    animation: fadeInUp 0.3s ease-out;
}

.modal-body {
    padding: .5rem !important;
    color: var(--main-black);
    overflow-y: auto;
    max-height: 80vh;
}

.modal-header {
    border-bottom: 1px solid var(--supporting-pink);
}

.CardHeadPrincipal {
    background-color: var(--main-pink);
    color: white;
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    align-items: center;
    justify-items: center;
    box-shadow: 0 2px 8px rgba(221,0,133,0.2);
}

.CardSecondary {
    background-color: var(--supporting-pink);
    color: var(--main-black);
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.CardSecondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Responsive product card grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-items: center;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.product-card .image-container img {
    transition: transform 0.3s ease;
}

.product-card:hover .image-container img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-card.in-cart {
    border-color: var(--main-pink);
    box-shadow: 0 0 16px rgba(221,0,133,0.3);
}

.product-card.product-loading {
    opacity: 0.7;
    pointer-events: none;
    animation: cardPulse 0.8s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

/* Description modal improvements */
.description-modal-dialog {
    max-width: 480px;
}

.description-modal-body {
    position: relative;
    padding: 2rem 1.5rem 1.5rem 1.5rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    max-width: 100%;
}

.description-modal-img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
}

.description-modal-text {
    line-height: 1.6;
    color: #333;
}

/* Mobile bottom-sheet behavior for description modal */
@media (max-width: 575.98px) {
    .description-modal-dialog {
        margin: 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .description-modal-dialog .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Sticky section navigation */
.section-nav-sticky {
    position: sticky;
    top: 70px;
    z-index: 100;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    margin: 16px -12px 0;
    border-bottom: 1px solid var(--main-pink);
}

.section-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-nav-scroll::-webkit-scrollbar {
    display: none;
}

.section-nav-pill {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.section-nav-pill:hover,
.section-nav-pill:focus {
    background-color: var(--main-pink);
    color: #fff;
}
