/*
Theme Name: Edublink Child
Template: edublink
*/

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
    min-height: 60px;
}

.card-price {
    font-size: 1.1rem;
    color: #d43f8d;
}

.card .btn-primary {
    background-color: #5a32a3;
    border: none;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 0;
    transition: background 0.3s ease;
}

.card .btn-primary:hover {
    background-color: #431c7d;
}

.nav-pills .nav-link.active {
    background-color: #5a32a3 !important;
}

.nav-pills .nav-link {
    border-radius: 30px;
    margin: 0 5px;
}

/* Hover Overlay */
.card {
    position: relative;
    overflow: hidden;
}

.card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-overlay p {
    margin: 0.25rem 0;
}



/* === Force Full Width Container === */
.single-product .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* === Main Content Layout === */
.edublink-single-product-main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 80px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* === Product Grid === */
.bundle-grid {
    flex: 1 1 70%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 20px;
}

/* === Right Summary Panel === */
.bundle-summary {
    flex: 1 1 28%;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

/* === Bundle Product Box === */
.bundle-product {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bundle-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.bundle-product h4 {
    font-size: 16px;
    margin-bottom: 5px;
    min-height: 45px;
}

.bundle-product .price {
    font-size: 15px;
    margin-bottom: 8px;
}

.bundle-product .price del {
    color: #888;
    margin-right: 5px;
}

/* === Add to Cart Button === */
#add-to-cart-button {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(to right, #a64bf4, #59d3ff);
    border: none;
    border-radius: 6px;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

#add-to-cart-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* === Mobile Responsiveness === */
@media (max-width: 1024px) {
    .bundle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .edublink-single-product-main-content-wrapper {
        flex-direction: column;
    }

    .bundle-grid,
    .bundle-summary {
        width: 100%;
        flex: unset;
    }

    .bundle-grid {
        grid-template-columns: 1fr;
    }

    .bundle-summary {
        position: static;
        margin-top: 30px;
    }
}
