/* Mobile-Responsive Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.focus-none:focus {
    box-shadow: none !important;
}

/* Card Hover Animation */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.product-image-area {
    min-height: 220px;
}

.product-image-link {
    height: 180px;
    max-width: 100%;
}

.product-image-link img {
    max-width: 100%;
    max-height: 100%;
}

.product-points-badge,
.product-save-badge {
    max-width: calc(50% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .card-body,
.product-price-row,
.product-actions {
    min-width: 0;
}

.product-price-row {
    flex-wrap: wrap;
}

.product-current-price {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1;
    white-space: nowrap;
}

.product-mrp {
    white-space: nowrap;
}

.product-discount {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-actions > a,
.product-actions > form {
    flex: 1 1 0;
    min-width: 0;
}

.product-actions .btn {
    width: 100%;
    min-height: 56px;
    white-space: normal;
}

.product-card h6 a,
.product-card .badge {
    overflow-wrap: anywhere;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

/* Tree Node Visualizer */
.tree-node {
    transition: all 0.2s ease;
    background: #ffffff;
}

.tree-node:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Mobile Media Queries */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #212529;
        padding: 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    
    .navbar-nav .nav-link {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

@media (max-width: 575.98px) {
    .container, .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h2, .display-6 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.875rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .product-image-area {
        min-height: 200px;
    }

    .product-image-link {
        height: 160px;
    }

    .product-points-badge,
    .product-save-badge {
        margin: 0.75rem !important;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.75rem;
    }

    .product-card .card-body {
        padding: 1rem !important;
    }
}
