/* Product Details Hub CSS */
.product-hub-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.product-hub-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #06adeb, #00d2ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* RTL Support for transform-origin */
[dir="rtl"] .product-hub-card::after {
    transform-origin: right;
}

.product-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 173, 235, 0.15);
    border-color: rgba(6, 173, 235, 0.2);
}

.product-hub-card:hover::after {
    transform: scaleX(1);
}

.card-content {
    padding: 1.5rem 1rem; /* Further reduced padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 140px; /* Further reduced height from 180px */
}

.card-icon {
    font-size: 2.5rem; /* Further reduced icon size from 3.5rem */
    color: #64748b; /* Slate 500 */
    margin-bottom: 0.75rem; /* Further reduced margin */
    transition: all 0.3s ease;
}

.card-title {
    font-size: 1.1rem; /* Further reduced font size */
    font-weight: 700;
    color: #1e293b; /* Slate 800 */
    margin: 0;
    transition: color 0.3s ease;
}

.product-hub-card:hover .card-icon {
    color: #06adeb;
    transform: scale(1.1);
}

.product-hub-card:hover .card-title {
    color: #06adeb;
}

/* Dark Mode Support */
body.dark-mode .product-hub-card {
    background: #1e293b; /* Slate 800 */
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

body.dark-mode .card-title {
    color: #f1f5f9; /* Slate 100 */
}

body.dark-mode .card-icon {
    color: #94a3b8; /* Slate 400 */
}

body.dark-mode .product-hub-card:hover {
    background: #253346;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-color: rgba(6, 173, 235, 0.3);
}
