.random_products .products-section {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 10px;
}

.random_products .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.random_products .products-section h1 {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.random_products .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.random_products .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.random_products .product-card {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.random_products .product-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.random_products .product-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
}

.random_products .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.random_products .product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 100px;
}

.random_products .product-name {
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.random_products .product-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.random_products .product-pricing {
    margin-top: auto;
}

.random_products .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
}

.random_products .product-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.random_products .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
}

.random_products .product-rating .stars {
    display: flex;
    gap: 2px;
}

.text-yellow-400 {
    color: #fbbf24;
}

.text-gray-300 {
    color: #d1d5db;
}

.random_products .product-rating .stars i {
    font-size: 14px;
}

.random_products .product-rating .rating-count {
    color: #666;
}

.random_products .no-products {
    text-align: center;
    padding: 60px 20px;
    color: #1e3a8a;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.random_products .no-products i {
    font-size: 48px;
    color: #1e3a8a;
}

/* View All Categories Button */
.random_products .view-all-categories {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.random_products .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.random_products .view-all-btn:hover {
    background: #1e40af;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.random_products .view-all-btn i {
    font-size: 18px;
}

/* Mobile: 0-550px */
@media (max-width: 550px) {
    .random_products .products-section {
        padding: 0 10px;
    }

    .random_products .products-section h1 {
        font-size: 18px;
    }

    .random_products .header-row {
        margin-bottom: 15px;
    }

    .random_products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .random_products .product-card {
        min-height: 220px;
    }

    .random_products .product-image-container {
        height: 160px;
    }

    .random_products .product-image {
        object-fit: contain;
    }

    .random_products .product-name {
        font-size: 13px;
    }

    .random_products .product-price {
        font-size: 15px;
    }

    .random_products .product-original-price {
        font-size: 12px;
    }

    .random_products .product-info {
        padding: 10px;
        min-height: 90px;
    }

    .random_products .product-name {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .random_products .product-description {
        font-size: 11px;
        margin-bottom: 4px;
    }
}

/* Tablet: 551-600px */
@media (min-width: 551px) and (max-width: 600px) {
    .random_products .products-section {
        padding: 0 15px;
    }

    .random_products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .random_products .product-card {
        min-height: 260px;
    }

    .random_products .product-image-container {
        height: 200px;
    }

    .random_products .product-image {
        object-fit: contain;
    }

    .random_products .product-name {
        font-size: 14px;
    }

    .random_products .product-price {
        font-size: 16px;
    }

    .random_products .product-info {
        padding: 12px;
        min-height: 95px;
    }

    .random_products .product-name {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .random_products .product-description {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

/* Tablet larger: 601-767px */
@media (min-width: 601px) and (max-width: 767px) {
    .random_products .products-section {
        padding: 0 15px;
    }

    .random_products .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .random_products .product-card {
        min-height: 260px;
    }

    .random_products .product-image-container {
        height: 200px;
    }

    .random_products .product-image {
        object-fit: contain;
    }

    .random_products .product-name {
        font-size: 14px;
    }

    .random_products .product-price {
        font-size: 16px;
    }

    .random_products .product-info {
        padding: 12px;
        min-height: 75px;
    }
}

/* Desktop: 768px+ */
@media (min-width: 768px) {
    .random_products .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .random_products .product-card {
        min-height: 280px;
    }

    .random_products .product-image-container {
        height: 220px;
    }

    .random_products .product-name {
        font-size: 14px;
    }

    .random_products .product-info {
        padding: 12px;
        gap: 8px;
        min-height: 100px;
    }

    .random_products .product-name {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .random_products .product-description {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .random_products .product-price {
        font-size: 16px;
    }

    .random_products .product-original-price {
        font-size: 13px;
    }

    .random_products .products-section h1 {
        font-size: 22px;
    }
}