/* Product Frames - Enhanced Styling */
.product-with-frame {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-with-frame:hover {
    transform: translateY(-5px);
}

.product-with-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #38bdf8, #0077e6, #005bb8, #0077e6, #38bdf8);
    border-radius: 10px;
    z-index: -1;
    animation: rotateBorder 6s linear infinite;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.product-with-frame .card {
    border: 3px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

/* Animation for the gradient border */
@keyframes rotateBorder {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(30deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }
}

/* Optional: Add a small badge to highlight framed products */
.product-with-frame::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffb800;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Styles for table rows with frames (Notebook products) */
tr.row-with-frame {
    position: relative;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(0, 119, 230, 0.1));
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    animation: rotateBorderRow 6s linear infinite;
    transition: transform 0.3s ease;
}

tr.row-with-frame:hover {
    transform: translateY(-3px);
}

tr.row-with-frame td {
    border-top: 2px solid rgba(56, 189, 248, 0.7) !important;
    border-bottom: 2px solid rgba(56, 189, 248, 0.7) !important;
}

tr.row-with-frame td:first-child {
    border-left: 2px solid rgba(56, 189, 248, 0.7) !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

tr.row-with-frame td:last-child {
    border-right: 2px solid rgba(56, 189, 248, 0.7) !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Animation for table rows */
@keyframes rotateBorderRow {
    0% {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(0, 119, 230, 0.1));
    }
    50% {
        background: linear-gradient(135deg, rgba(0, 119, 230, 0.15), rgba(0, 91, 184, 0.1));
    }
    100% {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(0, 119, 230, 0.1));
    }
}
