.wrapper {
    width: 100%;
    height: 40px;
    position: relative;
}

.pattern {
    position: absolute;
    left: 5%;
    width: 20%;
    height: 100vh;
    background-image: url(/img/collegeicons/linebg2.png);
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
    background-position: center;
}

@media (max-width: 768px) {
    .box, .pattern {
        display: none;
    }
}

.card-wrapper {
    max-width: 95%;
    margin: 0 auto;
    /*margin-top: 10px;*/
    margin-top: 50px;
}

    .card-wrapper img {
        width: 100%;
        display: block;
    }

.img-display {
    overflow: hidden;
}

.img-showcase {
    display: flex;
    width: 100%;
    transition: all 0.5s ease;
}

    .img-showcase img {
        min-width: 100%;
    }

.img-select {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    margin-top: 1rem;
}

.img-item {
    /* margin: 0.3rem; Removed */
    border: 1px solid #ddd;
    width: 25%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
    display: flex;
    box-sizing: border-box;
    position: relative;
    /* max-width: 150px; Removed matching Ar version */
}

    /* Deleted: .img-item:nth-child... margin hacks */

    .img-item:hover {
        opacity: 0.8;
        border-color: #245d55;
    }

    .img-item img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.product-content {
    padding: 2rem 1rem;
    padding-top: 0px;
}

    .product-content li {
        cursor: pointer;
    }

.product-title {
    font-size: 1.2rem;
    text-transform: capitalize;
    font-weight: 700;
    position: relative;
    color: #12263a;
    margin: 1rem 0;
    line-height: 30px;
    text-align: justify;
}

    .product-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        height: 4px;
        /*width: 85px;*/
        width: 100%;
        /*background: #212529;*/
        background: #6bddcd;
    }

.product-link {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    background: #245d55;
    color: #fff;
    padding: 0 0.3rem;
    transition: all 0.5s ease;
}

    .product-link:hover {
        opacity: 0.9;
    }

.product-rating {
    color: #ffc107;
}

    .product-rating span {
        font-weight: 600;
        color: #252525;
    }

.product-price {
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
}

    .product-price span {
        font-weight: 400;
    }

.last-price span {
    color: #f64749;
    text-decoration: line-through;
}

.new-price span {
    color: #256eff;
}

.product-detail h2 {
    text-transform: capitalize;
    color: #12263a;
    padding-bottom: 0.6rem;
}

.product-detail p {
    /*font-size: 1rem;*/
    font-size: 1.2rem;
    padding: 0.3rem;
    opacity: 0.8;
    text-align: justify;
    color: #212529;
}

.purchase-info {
    margin: 1.5rem 0;
}

    .purchase-info input,
    .purchase-info .btn {
        border: 1.5px solid #ddd;
        border-radius: 25px;
        text-align: center;
        padding: 0.45rem 0.8rem;
        outline: 0;
        margin-right: 0.2rem;
        margin-bottom: 1rem;
    }

    .purchase-info input {
        width: 60px;
    }

    .purchase-info .btn {
        cursor: pointer;
        color: #fff;
    }

        .purchase-info .btn:first-of-type {
            background: #256eff;
        }

        .purchase-info .btn:last-of-type {
            background: #f64749;
        }

        .purchase-info .btn:hover {
            opacity: 0.9;
        }

.social-links {
    display: flex;
    align-items: center;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        color: #000;
        border: 1px solid #000;
        margin: 0 0.2rem;
        border-radius: 50%;
        text-decoration: none;
        font-size: 0.8rem;
        transition: all 0.5s ease;
    }

        .social-links a:hover {
            background: #000;
            border-color: transparent;
            color: #fff;
        }

@media screen and (min-width: 992px) {
    .card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 1.5rem;
    }

    .card-wrapper {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
    }

    .product-imgs {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-content {
        padding-top: 0;
    }
}

.img-select a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

@keyframes march {
    to {
        background-position: 100% 100%;
    }
}

.img-select a.active {
    border: none;
    background: none;
    animation: none;
}

.img-select a.active::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 4px solid transparent;
    border-radius: 5px;
    background: repeating-linear-gradient(white, white) padding-box, 
                repeating-linear-gradient(-45deg, black 0, black 25%, white 0, white 50%) 0 / .6em .6em;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    /* Simplification to match Ar version exact fix logic if needed, but the gradient trick is complex. 
       Let's use the simpler version I deployed in Ar for consistency and robustness. */
    border: 2px solid transparent; /* Reset foundation */
    background: linear-gradient(transparent, transparent) padding-box, 
                repeating-linear-gradient(-45deg, black 0, black 25%, transparent 0, transparent 50%) 0 / .6em .6em border-box;
    animation: march 12s linear infinite;
}

/* Brand colors */
.fa-linkedin {
    color: #0077B5;
}

.fa-whatsapp {
    color: #25D366;
}

.fa-telegram {
    color: #0088cc;
}

.fa-facebook {
    color: #1877F2;
}

.fa-copy {
    color: #6c757d;
}

.whatsapp-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px; /* control size */
    height: 17px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 20px;
    line-height: 1;
}
